/* RankDesk UI release v008.2.29 — Prompt Details summary card spacing refinement (frontend only) */
/* RankDesk UI release v008.2.25 — Prompt Templates target badge readability fix (frontend only) */
/* RankDesk UI release v008.2.23 — Prompt Template field label one-line fix (frontend only) */
/* RankDesk UI release v008.2.22 — Add/Edit Prompt label row hard fix (frontend only) */
/* RankDesk UI release v008.2.21 — Prompt field label row alignment fix (frontend only) */
/* RankDesk Hostinger Frontend v001 — extracted from Blogger UI v228 */
:root{--bg:#fafafa;--card:#ffffff;--ink:#2d2d2f;--muted:#6f7787;--line:#e7e8ee;--accent:#7567f4;--accent-dark:#5546e8;--accent-soft:#f1efff;--accent-hover:#6758ee;--ok:#16a56a;--warn:#d59a1a;--bad:#d9343f}
    *{box-sizing:border-box} html,body,button,input,textarea,select,table,th,td{font-family:'Inter',Arial,Helvetica,sans-serif!important} body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
    .app{display:flex;min-height:100vh}.side{width:280px;background:linear-gradient(180deg,#232232 0%,#14141e 100%);color:#fff;padding:16px;position:fixed;top:0;bottom:0;overflow:auto}.side-inner{min-height:100%;display:flex;flex-direction:column}.brand-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);border-radius:18px;margin-bottom:14px}.brand-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:900;letter-spacing:.05em;box-shadow:0 12px 28px rgba(117,103,244,.24)}.brand{font-size:17px;font-weight:900;letter-spacing:-.02em;line-height:1.15;margin:0}.version{font-size:12px;color:#bfc1d6;margin:3px 0 0}.workspace-card{padding:12px;border:1px solid rgba(255,255,255,.08);background:rgba(117,103,244,.10);border-radius:16px;margin-bottom:18px}.workspace-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#9ea3bd;font-weight:900}.workspace-name{font-size:13px;color:#fff;font-weight:700;margin-top:4px}.nav-section-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#8d93ad;font-weight:900;margin:4px 6px 8px}.nav button{display:flex;align-items:center;gap:10px;width:100%;background:transparent;color:#cdd0e4;border:1px solid transparent;text-align:left;padding:11px 12px;border-radius:13px;margin:4px 0;cursor:pointer;font-weight:800;transition:.18s ease}.nav button .nav-ico{width:28px;height:28px;border-radius:10px;background:rgba(255,255,255,.06);display:inline-flex;align-items:center;justify-content:center;color:#d7d9ee;font-size:14px}.nav button.active{background:rgba(117,103,244,.20);color:#fff;border-color:rgba(117,103,244,.36);box-shadow:inset 3px 0 0 var(--accent)}.nav button.active .nav-ico{background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);color:#fff}.nav button:hover{background:rgba(255,255,255,.08);color:#fff}.side-spacer{flex:1}.side-actions{border-top:1px solid rgba(255,255,255,.08);padding-top:12px;margin-top:16px}.side-action-btn{width:100%;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#e6e8f6;border-radius:13px;padding:10px 12px;margin:5px 0;display:flex;align-items:center;gap:10px;cursor:pointer;text-align:left}.side-action-btn span{width:26px;height:26px;border-radius:9px;background:rgba(255,255,255,.07);display:inline-flex;align-items:center;justify-content:center}.side-action-btn:hover{background:rgba(117,103,244,.16)}.side-action-btn.logout{color:#ffb6bd}.main{margin-left:280px;flex:1;padding:24px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.top h1{margin:0;font-size:26px;letter-spacing:-.03em;color:var(--ink)}.user{font-size:13px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 12px;box-shadow:0 8px 20px rgba(30,32,45,.04)}
    .card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 8px 24px rgba(30,32,45,.045);margin-bottom:16px}.grid{display:grid;gap:14px}.grid.cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.metric{font-size:28px;font-weight:700;margin-top:8px}.label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.row4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
    input,textarea,select{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;color:var(--ink);font:inherit}input:focus,textarea:focus,select:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px rgba(117,103,244,.16)} textarea{min-height:90px;resize:vertical} select[multiple]{min-height:110px}.btn{border:0;border-radius:10px;padding:10px 13px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);color:#fff;cursor:pointer;margin:3px;font-weight:700;box-shadow:0 10px 24px rgba(117,103,244,.22)}.btn:hover{background:linear-gradient(135deg,var(--accent-hover) 0%,var(--accent-dark) 100%)}.btn.secondary{background:#f3f4f8;color:#3f4452;box-shadow:none}.btn.secondary:hover{background:#ebedf4}.btn.danger{background:var(--bad);box-shadow:0 6px 16px rgba(195,38,45,.12)}.btn.danger:hover{background:#a91e25}.btn.small{padding:6px 8px;font-size:12px}.btn:disabled{opacity:.5;cursor:not-allowed}.actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.toolbar{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap}
    table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}th,td{border-bottom:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}th{background:#f5f5f8;font-size:12px;text-transform:uppercase;color:#5f6675}tr:hover td{background:#f8f7ff}.pill{display:inline-block;padding:4px 8px;border-radius:999px;background:var(--accent-soft);font-size:12px;margin:2px;font-weight:700}.pill.ok{background:#e7f8ef;color:var(--ok)}.pill.warn{background:#fff5d9;color:#9d6a00}.pill.bad{background:#ffe8ea;color:var(--bad)}
    .login{max-width:420px;margin:60px auto}.hidden{display:none!important}.split{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}.feedback{position:sticky;top:16px}.issue{padding:8px;border-left:3px solid var(--bad);background:#fff4f4;margin:6px 0;border-radius:8px}.pass{padding:8px;border-left:3px solid var(--ok);background:#f1fff6;margin:6px 0;border-radius:8px}.muted{color:var(--muted)}.section-title{font-size:18px;font-weight:700;margin:8px 0 10px}.copybox{white-space:pre-wrap;background:#252738;color:#fff;padding:14px;border-radius:12px;max-height:400px;overflow:auto}.hr{height:1px;background:var(--line);margin:16px 0}.image-row{display:grid;grid-template-columns:48px minmax(0,1fr) minmax(220px,.7fr) 220px;gap:8px;margin-bottom:8px;align-items:start}.image-row .num{font-weight:700;padding-top:10px}.toast{position:fixed;right:24px;bottom:24px;background:#252738;color:#fff;padding:12px 16px;border-radius:12px;z-index:99;max-width:420px;box-shadow:0 16px 36px rgba(30,32,45,.22)}.loading{opacity:.65;pointer-events:none}
    .modal-backdrop{position:fixed;inset:0;background:rgba(25,25,35,.46);z-index:120;display:flex;align-items:center;justify-content:center;padding:20px}
    .modal{width:min(560px,100%);background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.22);overflow:hidden}
    .modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line)}
    .modal-head .section-title{margin:0}.modal-body{padding:18px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid var(--line);background:#fafafa}
    .icon-btn{border:0;background:#f3f4f8;color:#353946;width:32px;height:32px;border-radius:999px;cursor:pointer;font-size:18px;line-height:1}.icon-btn:hover{background:#ebedf4}
    .modal.wide{width:min(920px,100%);display:flex;flex-direction:column;max-height:92vh;overflow:hidden}.modal.wide .modal-body{max-height:none;overflow:auto;padding-bottom:20px}
    .searchbar{min-width:280px;max-width:420px}.table-meta{font-size:12px;color:var(--muted);margin-left:6px}
    /* V224 — Blogger-safe SVG and dropdown icon rendering */
    .ms{position:relative}.ms-btn{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;min-height:42px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-btn:after{content:'\25BE';float:right;color:var(--muted);margin-left:8px}
    .ms-btn.open{border-color:var(--accent);box-shadow:0 0 0 3px rgba(117,103,244,.16)}.ms-menu{position:fixed;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px rgba(0,0,0,.20);padding:10px;z-index:500;overflow:hidden}.ms-menu-head,.ms-menu-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.ms-menu-title{font-weight:700}.ms-options{max-height:230px;overflow:auto;margin-top:8px;border-top:1px solid var(--line);padding-top:6px}.ms-option{display:flex;gap:9px;align-items:center;padding:9px;border-radius:9px;cursor:pointer}.ms-option:hover{background:var(--accent-soft)}.ms-option input{width:auto}.ms-empty{padding:10px;color:var(--muted)}.ms-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;min-height:26px}.ms-chip{display:inline-flex;align-items:center;gap:6px;background:#f1eee9;border:1px solid var(--line);border-radius:999px;padding:5px 8px;font-size:12px}.ms-chip button{border:0;background:transparent;cursor:pointer;color:#555;padding:0;font-size:14px;line-height:1}.ms-help{margin:8px 0 0;font-size:12px;color:var(--muted)}.toolbar.space-between{justify-content:space-between;align-items:center}.toolbar-group{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.section-subtitle{font-size:13px;color:var(--muted);margin-top:-2px}.search-input{min-width:320px;padding:11px 12px;border-radius:12px;background:#fff;border:1px solid var(--line)}.filter-tabs{display:flex;gap:8px;flex-wrap:wrap}.filter-tab{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;color:#5f6675;cursor:pointer;font-size:13px;font-weight:700}.filter-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px}.kpi-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.kpi-value{font-size:24px;font-weight:700;margin-top:6px}.table-shell{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(30,32,45,.04)}.table-scroll{overflow:auto}.keyword-table{min-width:1120px}.keyword-table th{position:sticky;top:0;z-index:1;background:#f6f1ea}.keyword-table td,.keyword-table th{padding:14px 16px}.keyword-table tbody tr:nth-child(even) td{background:#fcfcfe}.keyword-main{display:flex;flex-direction:column;gap:3px}.keyword-title{font-weight:700;color:#1f1f1f}.keyword-meta{font-size:12px;color:var(--muted)}.td-actions{white-space:nowrap}.btn.small.secondary.soft{background:#f1eee9}.count-badge,.use-badge{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:6px 10px;border-radius:999px;background:#f5f1ea;font-weight:700;font-size:12px}.use-badge{min-width:auto}.source-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#f7f4ef;border:1px solid var(--line);font-size:12px;color:#57534e}.cat-list{display:flex;flex-wrap:wrap;gap:6px;max-width:360px}.cat-chip{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#f7f4ef;border:1px solid var(--line);font-size:12px;color:#4b5563}.table-empty{padding:34px 20px;text-align:center;color:var(--muted)}.table-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px 16px;border-top:1px solid var(--line);background:#fcfaf7}.mini-note{font-size:12px;color:var(--muted)}

    .filter-ms{position:relative;display:inline-flex}.filter-cat-btn{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;color:#5f6675;cursor:pointer;font-size:13px;min-width:130px;text-align:left;font-weight:700}.filter-cat-btn:after{content:'\25BE';float:right;color:var(--muted);margin-left:8px}.filter-cat-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}.filter-cat-btn.active:after{color:#fff}.keyword-link{border:0;background:transparent;padding:0;text-align:left;font:inherit;cursor:pointer;color:#111}.keyword-link:hover{text-decoration:underline}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-item{border:1px solid var(--line);background:#fff;border-radius:14px;padding:13px}.detail-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:5px}.detail-value{font-weight:700;line-height:1.35}.detail-wide{grid-column:1/-1}.keyword-view-title{font-size:22px;font-weight:800;line-height:1.25;margin:0 0 6px}.keyword-view-sub{color:var(--muted);font-size:13px;margin-bottom:14px}.filter-count-dot{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:999px;background:#ecebff;margin-left:6px;font-size:11px;color:#5546e8}.filter-cat-btn.active .filter-count-dot{background:#fff;color:#222}

    .keyword-row{cursor:pointer}.keyword-row:hover td{background:#f5f3ff!important}.keyword-title{font-size:15.8px;font-weight:800;color:var(--ink);letter-spacing:-.01em}.keyword-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:4px}.meta-dot{color:#b4a9c1}.priority-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;line-height:1}.priority-high{background:#e3f7ec;color:#16834a}.priority-medium{background:#fff4d8;color:#9a6400}.priority-low{background:#fde8ea;color:#c3262d}.priority-neutral{background:var(--accent-soft);color:var(--accent-dark)}.keyword-view-priority{margin:8px 0 16px}.keyword-view-priority .priority-pill{font-size:13px;padding:7px 13px}.source-badge{background:#f5f4ff;color:#595085;border-color:#e2defb}.cat-chip{background:#f5f4ff;color:#5f6675;border-color:#e2defb}.count-badge,.use-badge{background:#f5f4ff;color:#5546e8}.kpi-card{box-shadow:0 10px 24px rgba(30,32,45,.04)}.modal{box-shadow:0 26px 80px rgba(30,32,45,.22)}

    .keyword-control-panel{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
    .keyword-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
    .keyword-filter-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
    .reset-btn{height:42px;min-width:92px;border:1px solid #e2e4ec;background:#f6f7fb!important;color:#3f4452!important;border-radius:12px;box-shadow:none!important;font-weight:700}
    .reset-btn:hover{background:#eceef7!important;border-color:#d9dce8}
    .keyword-table th{background:#f1efff!important;color:#4f46a8!important;border-bottom:1px solid #dedafe}
    .keyword-table thead tr{box-shadow:inset 0 -1px 0 #dedafe}
    .keyword-table th:first-child{border-top-left-radius:14px}
    .keyword-table th:last-child{border-top-right-radius:14px}

    .icon-action{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:#fff;cursor:pointer;transition:.18s ease;box-shadow:none;padding:0}
    .icon-action + .icon-action{margin-left:8px}
    .icon-action svg{width:16px;height:16px;display:block}
    .icon-action.edit{color:#5e6472;background:#f6f7fb}
    .icon-action.edit:hover{background:#eceef5;color:#3d4352}
    .icon-action.delete{color:#e13c45;background:#fff0f1;border-color:#ffd7da}
    .icon-action.delete:hover{background:#ffe4e7;color:#c52933;border-color:#ffc8cc}
    .td-actions{white-space:nowrap}

    .advanced-filter-panel{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px;margin-top:2px}
    .filter-field{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;min-height:66px}
    .filter-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800;margin-bottom:7px}
    .range-row{display:grid;grid-template-columns:1fr auto 1fr;gap:7px;align-items:center}
    .range-row input,.use-filter-select{height:36px;border-radius:10px;padding:7px 9px;font-size:13px}
    .range-sep{color:var(--muted);font-size:12px;font-weight:700}
    .filter-cat-btn.wide{min-width:100%;height:36px;border-radius:10px;padding:7px 10px;background:#fff}
    .filter-summary-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
    .filter-summary-chip{display:inline-flex;align-items:center;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);padding:5px 8px;font-size:12px;font-weight:700}
    @media(max-width:1100px){.advanced-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}

    .category-control-panel{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
    .category-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
    .category-toolbar-left,.category-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
    .category-search{min-width:320px;max-width:520px;padding:11px 12px;border-radius:12px;background:#fff;border:1px solid var(--line)}
    .category-tabs{display:flex;gap:8px;flex-wrap:wrap}
    .category-filter-tab{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;color:#5f6675;cursor:pointer;font-size:13px;font-weight:700}
    .category-filter-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}
    .category-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
    .category-kpi-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:0 10px 24px rgba(30,32,45,.04)}
    .category-kpi-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
    .category-kpi-value{font-size:24px;font-weight:800;margin-top:6px;color:var(--ink)}
    .category-name{font-size:15px;font-weight:700;color:var(--ink)}
    .category-meta{font-size:12px;color:var(--muted);margin-top:3px}
    .category-table-shell{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(30,32,45,.04)}
    .category-table{min-width:860px}
    .category-table th{background:#f1efff!important;color:#4f46a8!important;border-bottom:1px solid #dedafe}
    .category-table tbody tr:nth-child(even) td{background:#fcfcfe}
    .category-table th,.category-table td{padding:14px 16px}
    .category-table tr:hover td{background:#f8f7ff}
    .category-table-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px 16px;border-top:1px solid var(--line);background:#fcfcfe}
    @media(max-width:1100px){.category-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    
    .category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
    .category-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 10px 26px rgba(30,32,45,.045);transition:.18s ease;position:relative;overflow:hidden}
    .category-card:before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--accent),var(--accent-dark))}
    .category-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(30,32,45,.08);border-color:#dedafe}
    .category-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-top:4px}
    .category-card-title{font-size:16px;font-weight:800;color:var(--ink);line-height:1.3;letter-spacing:-.01em}
    .category-card-meta{font-size:12px;color:var(--muted);margin-top:6px}
    .category-card-actions{display:flex;gap:8px;align-items:center}
    .category-card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
    .category-empty{padding:40px 20px;text-align:center;border:1px dashed var(--line);border-radius:18px;background:#fff;color:var(--muted)}

    .desc-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
    .desc-kpi-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:0 10px 24px rgba(30,32,45,.04)}
    .desc-kpi-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
    .desc-kpi-value{font-size:24px;font-weight:800;margin-top:6px;color:var(--ink)}
    .desc-control-panel{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
    .desc-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
    .desc-toolbar-left,.desc-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
    .desc-search{min-width:340px;max-width:560px;padding:11px 12px;border-radius:12px;background:#fff;border:1px solid var(--line)}
    .desc-tabs{display:flex;gap:8px;flex-wrap:wrap}
    .desc-filter-tab{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;color:#5f6675;cursor:pointer;font-size:13px;font-weight:700}
    .desc-filter-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}
    .desc-table-shell{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(30,32,45,.04)}
    .desc-table{min-width:1120px}
    .desc-table th{background:#f1efff!important;color:#4f46a8!important;border-bottom:1px solid #dedafe}
    .desc-table th,.desc-table td{padding:14px 16px}
    .desc-table tbody tr:nth-child(even) td{background:#fcfcfe}
    .desc-table tr:hover td{background:#f8f7ff}
    .desc-title{font-size:15px;font-weight:800;color:var(--ink);line-height:1.3}
    .desc-meta{font-size:12px;color:var(--muted);margin-top:4px}
    .desc-copy-preview{max-width:420px;color:#5f6675;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .desc-table-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px 16px;border-top:1px solid var(--line);background:#fcfcfe}
    @media(max-width:1100px){.desc-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

    .desc-drag-head{width:58px;text-align:center}
    .desc-drag-cell{width:58px;text-align:center}
    .drag-handle{width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#7567f4;display:inline-flex;align-items:center;justify-content:center;cursor:grab;box-shadow:0 4px 12px rgba(30,32,45,.04)}
    .drag-handle:active{cursor:grabbing}
    .drag-handle svg{width:16px;height:16px}
    .drag-handle.disabled{opacity:.35;cursor:not-allowed}
    .desc-row-dragging{opacity:.55;background:#f5f3ff!important}
    .desc-row-drop-target td{box-shadow:inset 0 2px 0 #7567f4}
    .desc-reorder-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}

    .desc-order-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
    .save-order-btn{background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%)!important;color:#fff!important}
    .save-order-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none!important;background:#eceef7!important;color:#8a90a0!important}
    .discard-order-btn{background:#fff!important;border:1px solid var(--line)!important;color:#5f6675!important;box-shadow:none!important}
    .unsaved-order-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#fff5d9;color:#9d6a00;padding:6px 10px;font-size:12px;font-weight:800}
    .unsaved-order-pill:before{content:'';width:7px;height:7px;border-radius:999px;background:#d59a1a}
    .unsaved-modal-copy{color:var(--muted);line-height:1.55;margin:4px 0 0}
    .unsaved-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;width:100%}

    .desc-form-section{border:1px solid var(--line);background:#fff;border-radius:16px;padding:14px;margin-top:12px}
    .desc-form-note{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.45}
    .desc-key-input[readonly]{background:#f7f7fb;color:#6f7787;cursor:not-allowed}
    .desc-required{color:var(--bad);font-weight:800}

    .desc-delete-warning{color:var(--bad);font-weight:800}
    .order-saved-note{font-size:11px;color:var(--muted);font-weight:700}

    .desc-sort-row{cursor:pointer}
    .desc-sort-row:hover td{background:#f8f7ff}
    .desc-view-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}
    .desc-view-title{font-size:22px;font-weight:900;color:var(--ink);letter-spacing:-.02em;line-height:1.25}
    .desc-view-sub{font-size:13px;color:var(--muted);margin-top:5px}
    .desc-view-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
    .desc-view-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:13px}
    .desc-view-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:900;margin-bottom:7px}
    .desc-view-value{font-weight:800;color:var(--ink);line-height:1.4}
    .desc-view-section{border:1px solid var(--line);background:#fff;border-radius:16px;padding:15px;margin-top:12px}
    .desc-view-copy{white-space:pre-wrap;line-height:1.55;color:#4f5666;font-size:13px;max-height:230px;overflow:auto}
    .desc-prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
    .desc-prompt-card{border:1px solid var(--line);background:#fcfcfe;border-radius:16px;overflow:hidden}
    .desc-prompt-head{padding:12px 14px;border-bottom:1px solid var(--line);background:#f1efff}
    .desc-prompt-title{font-weight:900;color:#4f46a8}
    .desc-prompt-meta{font-size:12px;color:var(--muted);margin-top:3px}
    .desc-prompt-body{white-space:pre-wrap;font-family:'Inter',Arial,Helvetica,sans-serif!important;font-size:12.5px;line-height:1.55;color:#33384a;padding:14px;max-height:340px;overflow:auto}
    .desc-no-prompt{padding:18px 14px;color:var(--muted);font-size:13px}
    @media(max-width:1100px){.desc-view-grid,.desc-prompt-grid{grid-template-columns:1fr}}

    .prompt-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:14px}
    .prompt-kpi-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:0 10px 24px rgba(30,32,45,.04)}
    .prompt-kpi-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
    .prompt-kpi-value{font-size:24px;font-weight:800;margin-top:6px;color:var(--ink)}
    .prompt-control-panel{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
    .prompt-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
    .prompt-toolbar-left,.prompt-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
    .prompt-search{min-width:360px;max-width:620px;padding:11px 12px;border-radius:12px;background:#fff;border:1px solid var(--line)}
    .prompt-tabs{display:flex;gap:8px;flex-wrap:wrap}
    .prompt-filter-tab{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;color:#5f6675;cursor:pointer;font-size:13px;font-weight:700}
    .prompt-filter-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}
    .prompt-table-shell{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(30,32,45,.04)}
    .prompt-table{min-width:1120px}
    .prompt-table th{background:#f1efff!important;color:#4f46a8!important;border-bottom:1px solid #dedafe}
    .prompt-table th,.prompt-table td{padding:14px 16px}
    .prompt-table tbody tr:nth-child(even) td{background:#fcfcfe}
    .prompt-row{cursor:pointer}
    .prompt-row:hover td{background:#f8f7ff!important}
    .prompt-title{font-size:15px;font-weight:800;color:var(--ink);line-height:1.3}
    .prompt-meta{font-size:12px;color:var(--muted);margin-top:4px}
    .prompt-preview{max-width:470px;color:#5f6675;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .prompt-table-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px 16px;border-top:1px solid var(--line);background:#fcfcfe}
    .prompt-template-editor{min-height:300px;font-family:'Inter',Arial,Helvetica,sans-serif!important;line-height:1.55}
    .prompt-template-composer{margin-top:7px;border:1px solid #e3e6ef;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 22px rgba(30,32,45,.035)}
    .prompt-placeholder-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px 13px;background:#fafaff;border-bottom:1px solid #eceef4}
    .prompt-placeholder-copy{min-width:0}
    .prompt-placeholder-title{font-size:13px;font-weight:700;color:#272b37;line-height:1.3}
    .prompt-placeholder-sub{font-size:11.5px;font-weight:400;color:#7b8496;line-height:1.4;margin-top:3px}
    .prompt-placeholder-picker{display:grid;grid-template-columns:minmax(230px,330px) auto;gap:8px;align-items:center;flex:0 1 auto}
    .prompt-placeholder-picker select{height:38px;padding:8px 34px 8px 10px;border-radius:11px;background:#fff;font-size:12.5px}
    .prompt-placeholder-insert{height:38px!important;margin:0!important;padding:0 13px!important;border-radius:11px!important;white-space:nowrap}
    .prompt-placeholder-quick-wrap{padding:10px 13px 11px;border-bottom:1px solid #eef0f5;background:#fff}
    .prompt-placeholder-quick-label{font-size:11px;color:#858d9d;margin-bottom:7px}
    .prompt-placeholder-quick{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
    .prompt-placeholder-chip{border:1px solid #dfdcfb;background:#f5f3ff;color:#5b4ded;border-radius:999px;padding:6px 9px;font-size:11.5px;font-weight:600;line-height:1;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}
    .prompt-placeholder-chip:hover{background:#ece8ff;border-color:#c9c2fb;transform:translateY(-1px)}
    .prompt-template-composer .prompt-template-editor{display:block;width:100%;min-height:300px;border:0!important;border-radius:0!important;box-shadow:none!important;padding:14px 15px;background:#fff;resize:vertical}
    .prompt-template-composer .prompt-template-editor:focus{box-shadow:inset 0 0 0 2px rgba(117,103,244,.12)!important}
    .prompt-placeholder-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;border-top:1px solid #eef0f5;background:#fcfcfe;color:#7b8496;font-size:11.5px;line-height:1.4}
    .prompt-placeholder-hint{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .prompt-placeholder-usage{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#f1f3f7;color:#697184;font-size:10.5px;font-weight:600}
    .prompt-placeholder-usage.warn{background:#fff4df;color:#9a6500}
    @media(max-width:760px){.prompt-placeholder-toolbar{display:block}.prompt-placeholder-picker{grid-template-columns:1fr auto;margin-top:10px}.prompt-placeholder-footer{align-items:flex-start;flex-direction:column}.prompt-placeholder-hint{white-space:normal}}
    .prompt-view-title{font-size:22px;font-weight:900;color:var(--ink);letter-spacing:-.02em;line-height:1.25}
    .prompt-view-sub{font-size:13px;color:var(--muted);margin-top:6px}
    .prompt-view-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
    .prompt-view-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:13px}
    .prompt-view-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:900;margin-bottom:7px}
    .prompt-view-value{font-weight:800;color:var(--ink);line-height:1.4}
    .prompt-full-box{border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}
    .prompt-full-head{padding:12px 14px;border-bottom:1px solid var(--line);background:#f1efff;color:#4f46a8;font-weight:900}
    .prompt-full-body{white-space:pre-wrap;font-size:13px;line-height:1.58;color:#33384a;padding:16px;max-height:520px;overflow:auto}
    @media(max-width:1100px){.prompt-kpi-grid,.prompt-view-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

    .rule-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
    .rule-kpi-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:0 10px 24px rgba(30,32,45,.04)}
    .rule-kpi-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
    .rule-kpi-value{font-size:24px;font-weight:800;margin-top:6px;color:var(--ink)}
    .rule-control-panel{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
    .rule-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
    .rule-toolbar-left,.rule-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
    .rule-search{min-width:360px;max-width:620px;padding:11px 12px;border-radius:12px;background:#fff;border:1px solid var(--line)}
    .rule-tabs{display:flex;gap:8px;flex-wrap:wrap}
    .rule-filter-tab{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;color:#5f6675;cursor:pointer;font-size:13px;font-weight:700}
    .rule-filter-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}
    .rule-table-shell{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(30,32,45,.04)}
    .rule-table{min-width:1180px}
    .rule-table th{background:#f1efff!important;color:#4f46a8!important;border-bottom:1px solid #dedafe}
    .rule-table th,.rule-table td{padding:14px 16px}
    .rule-table tbody tr:nth-child(even) td{background:#fcfcfe}
    .rule-row{cursor:pointer}
    .rule-row:hover td{background:#f8f7ff!important}
    .rule-title{font-size:15px;font-weight:800;color:var(--ink);line-height:1.3}
    .rule-meta{font-size:12px;color:var(--muted);margin-top:4px}
    .rule-formula-preview{max-width:460px;color:#33384a;font-size:12.5px;line-height:1.45;background:#f8f8fc;border:1px solid var(--line);border-radius:12px;padding:9px 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .rule-table-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px 16px;border-top:1px solid var(--line);background:#fcfcfe}
    .rule-formula-editor{min-height:150px;font-family:'Inter',Arial,Helvetica,sans-serif!important;line-height:1.55}
    .rule-message-editor{min-height:90px}
    .rule-view-title{font-size:22px;font-weight:900;color:var(--ink);letter-spacing:-.02em;line-height:1.25}
    .rule-view-sub{font-size:13px;color:var(--muted);margin-top:6px}
    .rule-view-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
    .rule-view-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:13px}
    .rule-view-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:900;margin-bottom:7px}
    .rule-view-value{font-weight:800;color:var(--ink);line-height:1.4}
    .rule-full-box{border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden;margin-top:12px}
    .rule-full-head{padding:12px 14px;border-bottom:1px solid var(--line);background:#f1efff;color:#4f46a8;font-weight:900}
    .rule-full-body{white-space:pre-wrap;font-size:13px;line-height:1.58;color:#33384a;padding:16px;max-height:360px;overflow:auto}
    @media(max-width:1100px){.rule-kpi-grid,.rule-view-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

    .settings-hero{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;margin-bottom:16px}
    .settings-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 10px 28px rgba(30,32,45,.045)}
    .settings-title{font-size:20px;font-weight:900;color:var(--ink);letter-spacing:-.02em;margin:0 0 6px}
    .settings-sub{font-size:13px;color:var(--muted);line-height:1.5;margin:0}
    .settings-status{display:flex;align-items:center;gap:10px}
    .settings-status-dot{width:12px;height:12px;border-radius:999px;background:var(--ok);box-shadow:0 0 0 5px rgba(22,165,106,.10)}
    .settings-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
    .settings-kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:0 10px 24px rgba(30,32,45,.04)}
    .settings-kpi-label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:900}
    .settings-kpi-value{font-size:16px;font-weight:900;color:var(--ink);margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .settings-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:16px;align-items:start}
    .settings-section{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 10px 28px rgba(30,32,45,.045);margin-bottom:16px}
    .settings-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
    .settings-section-title{font-size:16px;font-weight:900;color:var(--ink);margin:0}
    .settings-section-desc{font-size:12px;color:var(--muted);line-height:1.45;margin-top:4px}
    .settings-field{margin-bottom:12px}
    .settings-field label{font-size:12px;color:#5f6675;font-weight:900;margin-bottom:6px;display:block}
    .settings-help{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.4}
    .settings-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:10px}
    .settings-mask{background:#f7f8fb;border:1px dashed var(--line);border-radius:12px;padding:10px 12px;color:#5f6675;font-weight:800;min-height:42px;display:flex;align-items:center}
    .settings-note{border-left:4px solid var(--accent);background:#f5f4ff;border-radius:14px;padding:13px 14px;color:#4f5666;font-size:13px;line-height:1.5}
    .settings-danger-note{border-left-color:var(--warn);background:#fff8e6}
    @media(max-width:1100px){.settings-hero,.settings-grid{grid-template-columns:1fr}.settings-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

    .bulk-keyword-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
    .bulk-keyword-list{display:flex;flex-direction:column;gap:12px}
    .bulk-keyword-row{border:1px solid var(--line);background:#fff;border-radius:16px;padding:14px;box-shadow:0 8px 20px rgba(30,32,45,.035)}
    .bulk-keyword-row-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
    .bulk-row-title{font-weight:900;color:var(--ink)}
    .bulk-row-grid{display:grid;grid-template-columns:1.2fr .9fr .7fr .7fr .7fr .7fr;gap:10px}
    .bulk-row-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
    .image-count-badge{display:inline-flex;align-items:center;border-radius:999px;background:#f5f4ff;color:#5546e8;padding:6px 10px;font-size:12px;font-weight:900}
    .image-prompt-note{border:1px solid var(--line);background:#f8f7ff;border-radius:14px;padding:12px;color:#4f5666;font-size:13px;line-height:1.5;margin-top:10px}
    @media(max-width:1100px){.bulk-row-grid,.bulk-row-grid-2{grid-template-columns:1fr}}

    .prompt-filter-select{min-width:160px;border:1px solid var(--line);background:#fff;color:#3f4452;border-radius:999px;padding:9px 36px 9px 13px;font-size:13px;font-weight:800;box-shadow:0 8px 20px rgba(30,32,45,.035)}
    .prompt-filter-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(117,103,244,.14)}
    .prompt-filter-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

    .prompt-filter-dd{position:relative}
    .prompt-filter-btn{border:1px solid var(--line);background:#fff;color:#3f4452;border-radius:999px;padding:9px 34px 9px 13px;font-size:13px;font-weight:800;cursor:pointer;min-width:150px;text-align:left;box-shadow:0 8px 20px rgba(30,32,45,.035);position:relative}
    .prompt-filter-btn:after{content:'\25BE';position:absolute;right:13px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:12px}
    .prompt-filter-btn.open{border-color:var(--accent);box-shadow:0 0 0 3px rgba(117,103,244,.14)}
    .prompt-filter-menu{position:fixed;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 48px rgba(0,0,0,.20);padding:10px;z-index:520;overflow:hidden;width:320px}
    .prompt-filter-menu .ms-option{font-weight:700}

    .prompt-kpi-card{position:relative;overflow:hidden}
    .prompt-kpi-card:before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:#7567f4}
    .prompt-kpi-card.kpi-total:before{background:#7567f4}
    .prompt-kpi-card.kpi-generate:before{background:#16a56a}
    .prompt-kpi-card.kpi-fix:before{background:#d59a1a}
    .prompt-kpi-card.kpi-active:before{background:#0b9f6a}
    .prompt-kpi-card.kpi-pending:before{background:#ef476f}
    .prompt-kpi-card.kpi-pending-generate:before{background:#f59f00}
    .prompt-kpi-card.kpi-pending-fix:before{background:#c056ff}
    .prompt-kpi-card.kpi-generate{background:linear-gradient(135deg,#ffffff 0%,#f0fff7 100%)}
    .prompt-kpi-card.kpi-fix{background:linear-gradient(135deg,#ffffff 0%,#fff8e7 100%)}
    .prompt-kpi-card.kpi-active{background:linear-gradient(135deg,#ffffff 0%,#ecfff6 100%)}
    .prompt-kpi-card.kpi-pending,.prompt-kpi-card.kpi-pending-generate,.prompt-kpi-card.kpi-pending-fix{background:linear-gradient(135deg,#ffffff 0%,#fff3f6 100%)}
    .prompt-filter-menu.simple{padding:12px}
    .prompt-filter-menu.simple .ms-menu-head{margin-bottom:10px}
    .prompt-filter-menu.simple .ms-options{border-top:1px solid var(--line);padding-top:10px;max-height:260px}

    /* Prompt KPI cards — refined industry UI */
    .prompt-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
    .prompt-kpi-card{
      --kpi:#7567f4;
      --kpi-soft:rgba(117,103,244,.10);
      position:relative;
      overflow:hidden;
      background:#fff!important;
      border:1px solid #e6e8f2;
      border-radius:18px;
      padding:17px 18px 16px;
      box-shadow:0 10px 26px rgba(30,32,45,.055);
      transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
    }
    .prompt-kpi-card:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(30,32,45,.08);border-color:#d8dbee}
    .prompt-kpi-card:before{
      content:'';
      position:absolute;
      left:18px;
      right:18px;
      bottom:0;
      top:auto;
      width:auto;
      height:4px;
      border-radius:999px 999px 0 0;
      background:var(--kpi);
      opacity:.9;
    }
    .prompt-kpi-card:after{
      content:'';
      position:absolute;
      right:18px;
      top:18px;
      width:34px;
      height:34px;
      border-radius:13px;
      background:var(--kpi-soft);
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.75);
    }
    .prompt-kpi-card.kpi-total{--kpi:#7567f4;--kpi-soft:rgba(117,103,244,.11)}
    .prompt-kpi-card.kpi-generate{--kpi:#10a66a;--kpi-soft:rgba(16,166,106,.11)}
    .prompt-kpi-card.kpi-fix{--kpi:#d99314;--kpi-soft:rgba(217,147,20,.13)}
    .prompt-kpi-card.kpi-active{--kpi:#079669;--kpi-soft:rgba(7,150,105,.11)}
    .prompt-kpi-card.kpi-pending{--kpi:#ef476f;--kpi-soft:rgba(239,71,111,.10)}
    .prompt-kpi-card.kpi-pending-generate{--kpi:#f59f00;--kpi-soft:rgba(245,159,0,.12)}
    .prompt-kpi-card.kpi-pending-fix{--kpi:#8b5cf6;--kpi-soft:rgba(139,92,246,.11)}
    .prompt-kpi-label{font-size:11px;color:#717a90;text-transform:uppercase;letter-spacing:.07em;font-weight:900;padding-right:44px}
    .prompt-kpi-value{font-size:28px;font-weight:900;letter-spacing:-.035em;margin-top:7px;color:#171923;line-height:1}

    .prompt-for-badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;line-height:1;border:1px solid transparent;white-space:nowrap}
    .prompt-for-badge:before{content:'';width:7px;height:7px;border-radius:999px;background:currentColor;opacity:.85}
    .prompt-for-title{background:#eef0ff;color:#5546e8;border-color:#dcdefd}
    .prompt-for-desc{background:#eefaf6;color:#057a55;border-color:#cff3e5}
    .prompt-for-alt{background:#fff7e8;color:#b66b00;border-color:#ffe2af}
    .prompt-for-file{background:#eef8ff;color:#0969a8;border-color:#cfeeff}
    .prompt-for-other{background:#f3f4f8;color:#5f6675;border-color:#e2e5ef}

    /* Prompt KPI cards — color only on numbers */
    .prompt-kpi-card{
      background:#fff!important;
      border:1px solid #e6e8f2!important;
      box-shadow:0 10px 26px rgba(30,32,45,.055)!important;
    }
    .prompt-kpi-card:before,
    .prompt-kpi-card:after{
      display:none!important;
      content:none!important;
    }
    .prompt-kpi-label{
      color:#717a90!important;
      padding-right:0!important;
    }
    .prompt-kpi-value{
      color:#171923!important;
    }
    .prompt-kpi-card.kpi-total .prompt-kpi-value{color:#7567f4!important}
    .prompt-kpi-card.kpi-generate .prompt-kpi-value{color:#10a66a!important}
    .prompt-kpi-card.kpi-fix .prompt-kpi-value{color:#d99314!important}
    .prompt-kpi-card.kpi-active .prompt-kpi-value{color:#079669!important}
    .prompt-kpi-card.kpi-pending .prompt-kpi-value{color:#ef476f!important}
    .prompt-kpi-card.kpi-pending-generate .prompt-kpi-value{color:#f59f00!important}
    .prompt-kpi-card.kpi-pending-fix .prompt-kpi-value{color:#8b5cf6!important}

    .listing-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:16px}
    .listing-kpi-card{background:#fff;border:1px solid #e6e8f2;border-radius:18px;padding:16px 18px;box-shadow:0 10px 26px rgba(30,32,45,.055)}
    .listing-kpi-label{font-size:11px;color:#717a90;text-transform:uppercase;letter-spacing:.07em;font-weight:900}
    .listing-kpi-value{font-size:28px;font-weight:900;letter-spacing:-.035em;margin-top:7px;color:#171923;line-height:1}
    .listing-kpi-card.total .listing-kpi-value{color:#7567f4}
    .listing-kpi-card.optimized .listing-kpi-value{color:#079669}
    .listing-kpi-card.working .listing-kpi-value{color:#d99314}
    .listing-kpi-card.fix .listing-kpi-value{color:#ef476f}
    .listing-control-panel{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
    .listing-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
    .listing-toolbar-left,.listing-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
    .listing-search{min-width:360px;max-width:640px;padding:11px 12px;border-radius:12px;background:#fff;border:1px solid var(--line)}
    .listing-tabs{display:flex;gap:8px;flex-wrap:wrap}
    .listing-filter-tab{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;color:#5f6675;cursor:pointer;font-size:13px;font-weight:800}
    .listing-filter-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}
    .listing-table-shell{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(30,32,45,.04)}
    .listing-table{min-width:1180px}
    .listing-table th{background:#f1efff!important;color:#4f46a8!important;border-bottom:1px solid #dedafe}
    .listing-table th,.listing-table td{padding:14px 16px;vertical-align:middle}
    .listing-table tbody tr:nth-child(even) td{background:#fcfcfe}
    .listing-row{cursor:pointer}
    .listing-row:hover td{background:#f8f7ff!important}
    .listing-main{display:flex;flex-direction:column;gap:5px;max-width:360px}
    .listing-title{font-size:15px;font-weight:900;color:var(--ink);line-height:1.32;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .listing-url{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:340px}
    .listing-chip-wrap{display:flex;flex-wrap:wrap;gap:6px;max-width:300px}
    .listing-chip{display:inline-flex;align-items:center;border-radius:999px;background:#f3f4f8;color:#5f6675;padding:5px 8px;font-size:12px;font-weight:800}
    .listing-keyword{display:inline-flex;align-items:center;border-radius:999px;background:#eef0ff;color:#5546e8;padding:6px 10px;font-size:12px;font-weight:900}
    .listing-table-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px 16px;border-top:1px solid var(--line);background:#fcfcfe}
    .listing-status{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}
    .listing-status:before{content:'';width:7px;height:7px;border-radius:999px;background:currentColor}
    .listing-status.draft{background:#f3f4f8;color:#5f6675}
    .listing-status.working{background:#fff6df;color:#a16207}
    .listing-status.optimized{background:#eafbf2;color:#057a55}
    .listing-status.published{background:#eef0ff;color:#5546e8}
    .listing-status.other{background:#f7eefc;color:#7e22ce}

    /* Listing Editor — industry UI */
    .listing-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px;align-items:start}
    .listing-editor-main{display:flex;flex-direction:column;gap:16px}
    .editor-card{background:#fff;border:1px solid #e6e8f2;border-radius:20px;padding:18px;box-shadow:0 10px 26px rgba(30,32,45,.045)}
    .editor-card.compact{padding:16px}
    .editor-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
    .editor-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#717a90;font-weight:900;margin-bottom:6px}
    .editor-title{font-size:24px;font-weight:900;color:#171923;letter-spacing:-.035em;line-height:1.2}
    .editor-sub{font-size:13px;color:#717a90;margin-top:6px;max-width:720px;line-height:1.45}
    .editor-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
    .editor-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
    .editor-section-title{font-size:17px;font-weight:900;color:#171923;letter-spacing:-.015em}
    .editor-section-sub{font-size:12px;color:#717a90;margin-top:4px;line-height:1.4}
    .editor-field label{font-size:12px;color:#3f4452;font-weight:900;margin-bottom:6px;display:block}
    .editor-field input,.editor-field select,.editor-field textarea{border-radius:13px;border:1px solid #dfe3ee;background:#fff}
    .editor-field textarea{min-height:92px;line-height:1.55}
    .editor-category-select{min-height:118px;padding:10px;border-radius:14px;border:1px solid #dfe3ee;background:#fbfcff;width:100%}
    .editor-help{font-size:12px;color:#717a90;margin-top:7px;line-height:1.4}
    .editor-chip-note{display:flex;align-items:center;gap:8px;border:1px solid #e6e8f2;background:#fbfcff;border-radius:14px;padding:10px 12px;color:#5f6675;font-size:12px;font-weight:700;margin-top:10px}
    .editor-ai-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
    .editor-description-card{border:1px solid #edf0f6;background:#fcfcfe;border-radius:17px;padding:14px;margin:12px 0;box-shadow:none}
    .editor-description-card label{display:flex;align-items:center;gap:8px;font-size:12px;color:#3f4452;font-weight:900;margin-bottom:8px}
    .editor-description-card label:before{content:'';width:8px;height:8px;border-radius:999px;background:#7567f4}
    .editor-image-row{display:grid;grid-template-columns:54px minmax(0,1fr) minmax(260px,.75fr) 230px;gap:10px;align-items:start;border:1px solid #edf0f6;background:#fcfcfe;border-radius:16px;padding:12px;margin-bottom:10px}
    .editor-image-num{width:34px;height:34px;border-radius:12px;background:#f1efff;color:#5546e8;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:13px}
    .editor-image-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
    .editor-save-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;bottom:14px;z-index:20}
    .editor-save-note{font-size:12px;color:#717a90}
    .seo-feedback{position:sticky;top:18px}
    .seo-panel{background:#fff;border:1px solid #e6e8f2;border-radius:20px;padding:18px;box-shadow:0 18px 42px rgba(30,32,45,.08)}
    .seo-score-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}
    .seo-ring{--score:0;width:86px;height:86px;border-radius:999px;background:conic-gradient(var(--score-color,#7567f4) calc(var(--score)*1%),#edf0f6 0);display:grid;place-items:center;position:relative;flex:0 0 auto}
    .seo-ring:before{content:'';position:absolute;inset:8px;border-radius:999px;background:#fff}
    .seo-ring span{position:relative;font-size:22px;font-weight:900;color:#171923;letter-spacing:-.035em}
    .seo-score-title{font-size:18px;font-weight:900;color:#171923;letter-spacing:-.02em}
    .seo-score-sub{font-size:12px;color:#717a90;margin-top:4px}
    .seo-progress{height:8px;border-radius:999px;background:#edf0f6;overflow:hidden;margin:12px 0 14px}
    .seo-progress-bar{height:100%;width:0;background:var(--score-color,#7567f4);border-radius:999px}
    .seo-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
    .seo-mini-card{border:1px solid #edf0f6;background:#fbfcff;border-radius:15px;padding:11px}
    .seo-mini-label{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#717a90;font-weight:900}
    .seo-mini-value{font-size:18px;font-weight:900;color:#171923;margin-top:5px}
    .seo-block-title{font-size:14px;font-weight:900;color:#171923;margin:14px 0 9px}
    .seo-issue-card{border-left:4px solid #ef476f;background:#fff3f6;border-radius:13px;padding:11px 12px;margin:8px 0;color:#3f4452}
    .seo-issue-card b{display:block;color:#171923;margin-bottom:3px}
    .seo-pass-card{border-left:4px solid #10a66a;background:#f0fff7;border-radius:13px;padding:10px 12px;margin:7px 0;color:#3f4452;font-size:13px}
    .seo-empty{border:1px dashed #dfe3ee;background:#fbfcff;border-radius:14px;padding:14px;color:#717a90;font-size:13px}
    .seo-details summary{cursor:pointer;font-weight:900;color:#3f4452;margin-top:10px}
    @media(max-width:1180px){.listing-editor-layout{grid-template-columns:1fr}.seo-feedback{position:relative;top:auto}.editor-image-row{grid-template-columns:1fr}.editor-image-actions{grid-template-columns:repeat(4,1fr)}}
    @media(max-width:700px){.editor-hero,.editor-save-bar{display:block}.editor-actions{justify-content:flex-start;margin-top:12px}.editor-image-actions{grid-template-columns:1fr 1fr}}

    /* Dashboard — industry UI */
    .dash-hero{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;margin-bottom:18px}
    .dash-hero-card{background:linear-gradient(135deg,#ffffff 0%,#f7f5ff 100%);border:1px solid #e6e8f2;border-radius:22px;padding:22px;box-shadow:0 14px 34px rgba(30,32,45,.06);overflow:hidden;position:relative}
    .dash-hero-card:after{content:'';position:absolute;right:-50px;top:-60px;width:180px;height:180px;border-radius:999px;background:rgba(117,103,244,.10)}
    .dash-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#717a90;font-weight:900;margin-bottom:8px}
    .dash-title{font-size:30px;font-weight:900;letter-spacing:-.04em;color:#171923;line-height:1.12}
    .dash-sub{font-size:14px;color:#5f6675;line-height:1.5;margin-top:8px;max-width:760px}
    .dash-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
    .dash-status-card{background:#fff;border:1px solid #e6e8f2;border-radius:22px;padding:20px;box-shadow:0 14px 34px rgba(30,32,45,.055)}
    .dash-status-row{display:flex;align-items:center;gap:12px;margin-bottom:14px}
    .dash-status-dot{width:12px;height:12px;border-radius:999px;background:#10a66a;box-shadow:0 0 0 6px rgba(16,166,106,.10)}
    .dash-status-title{font-size:16px;font-weight:900;color:#171923}
    .dash-status-sub{font-size:12px;color:#717a90;margin-top:2px}
    .dash-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-bottom:18px}
    .dash-kpi-card{background:#fff;border:1px solid #e6e8f2;border-radius:18px;padding:16px 18px;box-shadow:0 10px 26px rgba(30,32,45,.052);transition:transform .18s ease,box-shadow .18s ease}
    .dash-kpi-card:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(30,32,45,.075)}
    .dash-kpi-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
    .dash-kpi-label{font-size:11px;color:#717a90;text-transform:uppercase;letter-spacing:.07em;font-weight:900}
    .dash-kpi-icon{width:34px;height:34px;border-radius:13px;background:#f5f4ff;color:#7567f4;display:flex;align-items:center;justify-content:center;font-weight:900}
    .dash-kpi-value{font-size:30px;font-weight:900;letter-spacing:-.04em;margin-top:8px;color:#171923;line-height:1}
    .dash-kpi-note{font-size:12px;color:#717a90;margin-top:8px}
    .dash-kpi-card.green .dash-kpi-value{color:#10a66a}.dash-kpi-card.amber .dash-kpi-value{color:#d99314}.dash-kpi-card.red .dash-kpi-value{color:#ef476f}.dash-kpi-card.purple .dash-kpi-value{color:#7567f4}.dash-kpi-card.blue .dash-kpi-value{color:#0969a8}
    .dash-content-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:16px;align-items:start}
    .dash-panel{background:#fff;border:1px solid #e6e8f2;border-radius:20px;padding:18px;box-shadow:0 10px 26px rgba(30,32,45,.045);margin-bottom:16px}
    .dash-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
    .dash-panel-title{font-size:17px;font-weight:900;color:#171923;letter-spacing:-.015em}
    .dash-panel-sub{font-size:12px;color:#717a90;margin-top:4px;line-height:1.4}
    .dash-workflow{display:grid;gap:10px}
    .dash-step{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #edf0f6;background:#fbfcff;border-radius:16px;padding:12px}
    .dash-step-num{width:34px;height:34px;border-radius:12px;background:#f1efff;color:#5546e8;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:12px}
    .dash-step-title{font-size:14px;font-weight:900;color:#171923}
    .dash-step-sub{font-size:12px;color:#717a90;margin-top:3px}
    .dash-step-arrow{color:#a2a8b7;font-weight:900}
    .dash-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .dash-health-card{border:1px solid #edf0f6;background:#fbfcff;border-radius:15px;padding:12px}
    .dash-health-label{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#717a90;font-weight:900}
    .dash-health-value{font-size:20px;font-weight:900;color:#171923;margin-top:5px}
    .dash-recent-list{display:grid;gap:9px}
    .dash-recent-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #edf0f6;background:#fbfcff;border-radius:15px;padding:12px;cursor:pointer}
    .dash-recent-item:hover{background:#f8f7ff}
    .dash-recent-title{font-size:13px;font-weight:900;color:#171923;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .dash-recent-meta{font-size:12px;color:#717a90;margin-top:3px}
    .dash-quick-actions{display:grid;gap:9px}
    .dash-action{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #edf0f6;background:#fff;border-radius:15px;padding:12px;cursor:pointer}
    .dash-action:hover{background:#f8f7ff;border-color:#dedafe}
    .dash-action-title{font-weight:900;color:#171923;font-size:13px}
    .dash-action-sub{font-size:12px;color:#717a90;margin-top:3px}
    .dash-action-icon{width:30px;height:30px;border-radius:11px;background:#f1efff;color:#5546e8;display:flex;align-items:center;justify-content:center;font-weight:900}
    @media(max-width:1100px){.dash-hero,.dash-content-grid{grid-template-columns:1fr}}
    @media(max-width:700px){.dash-health-grid{grid-template-columns:1fr}.dash-title{font-size:24px}.dash-step{grid-template-columns:38px minmax(0,1fr)}.dash-step-arrow{display:none}}

    /* Dashboard refinement v47 */
    .dash-hero{display:block;margin-bottom:18px}
    .dash-hero-card{padding:28px 30px;background:linear-gradient(135deg,#ffffff 0%,#fbfaff 55%,#f3f0ff 100%);border-radius:24px}
    .dash-hero-card:after{right:-70px;top:-80px;width:240px;height:240px;background:rgba(117,103,244,.08)}
    .dash-hero-card:before{content:'';position:absolute;right:92px;bottom:22px;width:90px;height:90px;border-radius:28px;background:rgba(117,103,244,.08);transform:rotate(10deg)}
    .dash-title{max-width:820px}
    .dash-sub{max-width:880px}
    .dash-content-grid{grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:18px}
    .dash-panel{border-radius:22px;padding:20px}
    .dash-panel-head{margin-bottom:16px}
    .dash-workflow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
    .dash-step{display:block;min-height:150px;border-radius:18px;padding:15px;position:relative;overflow:hidden}
    .dash-step:hover{border-color:#dedafe;box-shadow:0 10px 24px rgba(30,32,45,.06)}
    .dash-step-num{margin-bottom:12px}
    .dash-step-arrow{position:absolute;right:14px;top:14px}
    .dash-step-title{font-size:14px;line-height:1.25}
    .dash-step-sub{line-height:1.4}
    .dash-recent-table{border:1px solid #edf0f6;border-radius:18px;overflow:hidden;background:#fff}
    .dash-recent-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 120px;gap:12px;align-items:center;padding:13px 14px;border-bottom:1px solid #edf0f6;cursor:pointer}
    .dash-recent-row:last-child{border-bottom:0}
    .dash-recent-row:hover{background:#f8f7ff}
    .dash-recent-status{justify-self:start}
    .dash-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .dash-action{display:block;min-height:118px;border-radius:18px;position:relative;overflow:hidden}
    .dash-action-icon{position:absolute;right:13px;top:13px}
    .dash-action-title{padding-right:38px}
    .dash-system-card{border:1px solid #edf0f6;background:#fbfcff;border-radius:18px;padding:14px;margin-top:10px}
    .dash-system-title{font-size:13px;font-weight:900;color:#171923;margin-bottom:4px}
    .dash-system-text{font-size:12px;color:#717a90;line-height:1.45}
    .dash-progress-wrap{display:grid;gap:12px}
    .dash-progress-item{border:1px solid #edf0f6;background:#fbfcff;border-radius:16px;padding:13px}
    .dash-progress-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}
    .dash-progress-label{font-size:13px;font-weight:900;color:#171923}
    .dash-progress-value{font-size:12px;font-weight:900;color:#717a90}
    .dash-progress-track{height:8px;border-radius:999px;background:#edf0f6;overflow:hidden}
    .dash-progress-bar{height:100%;border-radius:999px;background:#7567f4}
    @media(max-width:1250px){.dash-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-content-grid{grid-template-columns:1fr}}
    @media(max-width:700px){.dash-action-grid,.dash-workflow{grid-template-columns:1fr}.dash-recent-row{grid-template-columns:1fr}.dash-hero-card{padding:22px}.dash-hero-card:before,.dash-hero-card:after{display:none}}

    /* Login page — industry UI */
    body:has(#loginView:not(.hidden)){background:radial-gradient(circle at top left,rgba(117,103,244,.16),transparent 34%),linear-gradient(135deg,#f7f8fc 0%,#ffffff 52%,#f4f2ff 100%)}
    .login{max-width:none;margin:0;background:transparent;border:0;box-shadow:none;padding:0}
    .login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.75fr);gap:22px;align-items:center;padding:42px;max-width:1240px;margin:0 auto}
    .login-brand-panel{min-height:620px;border:1px solid #e6e8f2;border-radius:28px;background:linear-gradient(135deg,#242333 0%,#15151f 100%);color:#fff;padding:34px;box-shadow:0 24px 70px rgba(30,32,45,.18);position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
    .login-brand-panel:before{content:'';position:absolute;right:-120px;top:-120px;width:360px;height:360px;border-radius:999px;background:rgba(117,103,244,.34)}
    .login-brand-panel:after{content:'';position:absolute;left:-90px;bottom:-120px;width:300px;height:300px;border-radius:999px;background:rgba(255,255,255,.08)}
    .login-logo-row{position:relative;z-index:1;display:flex;align-items:center;gap:14px}
    .login-logo-mark{width:52px;height:52px;border-radius:17px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;letter-spacing:.06em;box-shadow:0 18px 36px rgba(117,103,244,.32)}
    .login-logo-title{font-size:18px;font-weight:900;letter-spacing:-.02em}
    .login-logo-sub{font-size:12px;color:#bfc1d6;margin-top:3px}
    .login-hero-copy{position:relative;z-index:1;max-width:640px}
    .login-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.10em;color:#bfc1d6;font-weight:900;margin-bottom:12px}
    .login-hero-title{font-size:44px;line-height:1.03;font-weight:900;letter-spacing:-.055em;margin:0}
    .login-hero-text{font-size:15px;line-height:1.65;color:#d7d9ee;margin-top:16px;max-width:570px}
    .login-feature-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:28px}
    .login-feature{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.055);border-radius:18px;padding:14px}
    .login-feature b{display:block;font-size:13px;color:#fff;margin-bottom:5px}
    .login-feature span{font-size:12px;color:#bfc1d6;line-height:1.45}
    .login-card-panel{border:1px solid #e6e8f2;background:#fff;border-radius:28px;padding:30px;box-shadow:0 24px 70px rgba(30,32,45,.12)}
    .login-card-head{margin-bottom:22px}
    .login-card-title{font-size:28px;font-weight:900;color:#171923;letter-spacing:-.04em}
    .login-card-sub{font-size:13px;color:#717a90;line-height:1.5;margin-top:7px}
    .login-form-field{margin-bottom:14px}
    .login-form-field label{display:block;font-size:12px;color:#3f4452;font-weight:900;margin-bottom:7px}
    .login-input-wrap{position:relative}
    .login-input-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#8d95a8;font-size:14px}
    .login-input-wrap input{padding-left:40px;height:46px;border-radius:14px;border:1px solid #dfe3ee;background:#fbfcff}
    .login-input-wrap input:focus{background:#fff;border-color:var(--accent);box-shadow:0 0 0 3px rgba(117,103,244,.14)}
    .login-primary-btn{width:100%;height:46px;border-radius:14px;margin-top:4px}
    .login-setup-btn{width:100%;height:44px;border-radius:14px;margin-top:9px;background:#fff!important}
    .login-demo-card{border:1px solid #edf0f6;background:#fbfcff;border-radius:18px;padding:14px;margin:18px 0}
    .login-demo-title{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:#717a90;margin-bottom:10px}
    .login-demo-row{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:7px 0;color:#3f4452}
    .login-demo-row code{font-family:inherit;background:#f1efff;color:#5546e8;border-radius:999px;padding:3px 8px;font-weight:900}
    .login-note{font-size:12px;color:#717a90;line-height:1.5;margin-top:14px;text-align:center}
    .login-footer-note{position:relative;z-index:1;font-size:12px;color:#9ea3bd}
    @media(max-width:980px){.login-shell{grid-template-columns:1fr;padding:20px}.login-brand-panel{min-height:auto}.login-hero-title{font-size:34px}.login-feature-grid{grid-template-columns:1fr}.login-card-panel{padding:22px}}

    /* Login page — minimal in-house UI */
    body:has(#loginView:not(.hidden)){
      background:#f7f8fb!important;
    }
    .login{max-width:none!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
    .login-minimal-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
    .login-minimal-card{width:min(420px,100%);background:#fff;border:1px solid #e6e8f2;border-radius:22px;padding:26px;box-shadow:0 18px 50px rgba(30,32,45,.08)}
    .login-minimal-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}
    .login-minimal-mark{width:42px;height:42px;border-radius:14px;background:#7567f4;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:900;letter-spacing:.06em}
    .login-minimal-title{font-size:18px;font-weight:900;color:#171923;letter-spacing:-.02em;line-height:1.15}
    .login-minimal-sub{font-size:12px;color:#717a90;margin-top:3px}
    .login-minimal-form{display:block}
    .login-minimal-card .login-form-field{margin-bottom:14px}
    .login-minimal-card .login-form-field label{display:block;font-size:12px;color:#3f4452;font-weight:900;margin-bottom:7px}
    .login-minimal-card input{height:44px;border-radius:13px;border:1px solid #dfe3ee;background:#fff;padding:0 13px;font-size:14px}
    .login-minimal-card input:focus{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .login-minimal-login{width:100%;height:44px;border-radius:13px;margin-top:4px}
    .login-minimal-link{width:100%;border:0;background:transparent;color:#717a90;font-size:12px;font-weight:800;margin-top:12px;cursor:pointer;padding:8px}
    .login-minimal-link:hover{color:#5546e8}
    .login-minimal-note{border-top:1px solid #edf0f6;margin-top:18px;padding-top:14px;text-align:center;color:#8a91a3;font-size:12px}
    @media(max-width:520px){.login-minimal-shell{padding:16px}.login-minimal-card{padding:22px;border-radius:18px}}

    .icon-action.export{background:#eef0ff;color:#5546e8;border-color:#dcdefd}
    .icon-action.export:hover{background:#e2e5ff}

    /* Start New SEO wizard */
    .seo-wizard-layout{max-width:1180px;margin:0 auto}
    .seo-wizard-card{background:#fff;border:1px solid #e6e8f2;border-radius:22px;box-shadow:0 14px 34px rgba(30,32,45,.06);overflow:hidden}
    .seo-wizard-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:22px;border-bottom:1px solid #edf0f6;background:linear-gradient(135deg,#fff 0%,#fbfaff 100%)}
    .seo-wizard-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#717a90;font-weight:900;margin-bottom:6px}
    .seo-wizard-title{font-size:24px;font-weight:900;color:#171923;letter-spacing:-.035em}
    .seo-wizard-sub{font-size:13px;color:#717a90;line-height:1.5;margin-top:6px}
    .seo-wizard-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:18px 22px;border-bottom:1px solid #edf0f6}
    .seo-wizard-step{border:1px solid #edf0f6;background:#fbfcff;border-radius:16px;padding:13px;display:flex;gap:11px;align-items:center}
    .seo-wizard-step.active{background:#f3f0ff;border-color:#dedafe}
    .seo-wizard-step.done{background:#f0fff7;border-color:#ccefe0}
    .seo-wizard-step-num{width:32px;height:32px;border-radius:12px;background:#f1efff;color:#5546e8;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:12px;flex:0 0 auto}
    .seo-wizard-step-num svg{width:15px;height:15px;display:block}
    .seo-wizard-step.done .seo-wizard-step-num{background:#e7f8ef;color:#057a55}
    .seo-wizard-step-title{font-size:13px;font-weight:900;color:#171923}
    .seo-wizard-step-sub{font-size:11px;color:#717a90;margin-top:2px}
    .seo-wizard-body{padding:22px}
    .seo-wizard-section-title{font-size:18px;font-weight:900;color:#171923;margin-bottom:4px}
    .seo-wizard-section-sub{font-size:13px;color:#717a90;margin-bottom:16px}
    .seo-wizard-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;border-top:1px solid #edf0f6;background:#fbfcff}
    .seo-wizard-left-actions,.seo-wizard-right-actions{display:flex;gap:8px;flex-wrap:wrap}
    .seo-wizard-id-row{display:grid;grid-template-columns:minmax(220px,.6fr) minmax(0,1fr) 180px;gap:12px}
    .seo-wizard-note{font-size:12px;color:#717a90;line-height:1.45;margin-top:8px}

    /* Start New SEO Step 1 refinement */
    .seo-wizard-info-grid{display:grid;grid-template-columns:260px minmax(0,1fr) 190px;gap:12px;align-items:start}
    .seo-wizard-url-field{min-width:0}
    .wizard-category-wrap{margin-top:16px}
    .wizard-cat-box{position:relative}
    .wizard-cat-btn{width:100%;height:46px;border:1px solid #dfe3ee;border-radius:14px;background:#fff;color:#3f4452;text-align:left;padding:0 42px 0 13px;font-size:14px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}
    .wizard-cat-btn:after{content:'\25BE';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#717a90;font-size:12px}
    .wizard-cat-btn.open{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .wizard-cat-menu{position:fixed;background:#fff;border:1px solid #e1e4ef;border-radius:18px;box-shadow:0 18px 48px rgba(0,0,0,.18);padding:12px;z-index:540;overflow:hidden;width:360px}
    .wizard-cat-menu .ms-options{max-height:260px}
    .wizard-cat-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;min-height:26px}
    .wizard-cat-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#f1efff;color:#5546e8;padding:6px 9px;font-size:12px;font-weight:900}
    .wizard-cat-chip button{border:0;background:transparent;color:#5546e8;font-weight:900;cursor:pointer;padding:0}
    .seo-wizard-required{color:#ef476f;font-weight:900}
    @media(max-width:980px){.seo-wizard-info-grid{grid-template-columns:1fr}}

    /* Start New SEO Step 1 final fixes */
    .seo-wizard-info-grid{
      display:grid!important;
      grid-template-columns:320px minmax(0,1fr)!important;
      gap:14px!important;
      align-items:start!important;
    }
    .seo-wizard-left-stack{display:grid;gap:12px}
    .wizard-status-select{
      height:46px;
      border-radius:14px!important;
      border:1px solid #dfe3ee!important;
      background:#fff!important;
      color:#171923;
      font-weight:700;
      padding:0 13px;
    }
    .wizard-status-select:focus{border-color:#7567f4!important;box-shadow:0 0 0 3px rgba(117,103,244,.12)!important}
    .seo-wizard-url-field input::placeholder{color:#9aa2b5}
    @media(max-width:980px){.seo-wizard-info-grid{grid-template-columns:1fr!important}}

    /* Start New SEO status dropdown + URL cleanup */
    .wizard-status-box{position:relative}
    .wizard-status-btn{width:100%;height:46px;border:1px solid #dfe3ee;border-radius:14px;background:#fff;color:#171923;text-align:left;padding:0 42px 0 13px;font-size:14px;font-weight:800;cursor:pointer;position:relative}
    .wizard-status-btn:after{content:'\25BE';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#717a90;font-size:12px}
    .wizard-status-btn.open{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .wizard-status-menu{position:fixed;background:#fff;border:1px solid #e1e4ef;border-radius:16px;box-shadow:0 18px 48px rgba(0,0,0,.18);padding:8px;z-index:545;width:260px}
    .wizard-status-option{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;border-radius:12px;padding:10px 11px;text-align:left;cursor:pointer;font-size:13px;font-weight:900;color:#3f4452}
    .wizard-status-option:hover{background:#f8f7ff}
    .wizard-status-option.active{background:#f1efff;color:#5546e8}
    .wizard-status-dot{width:8px;height:8px;border-radius:999px;background:#9aa2b5}
    .wizard-status-option[data-status="Draft"] .wizard-status-dot{background:#8a91a3}
    .wizard-status-option[data-status="Working"] .wizard-status-dot{background:#d99314}
    .wizard-status-option[data-status="Optimized"] .wizard-status-dot{background:#10a66a}
    .wizard-status-option[data-status="Published"] .wizard-status-dot{background:#7567f4}
    .wizard-url-cleaned{border-color:#ef476f!important;box-shadow:0 0 0 3px rgba(239,71,111,.10)!important}

    /* Settings Product Defaults — multi value industry UI */
    .settings-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:6px}
    .settings-product-card{border:1px solid #e6e8f2;background:#fff;border-radius:18px;padding:15px;box-shadow:0 8px 22px rgba(30,32,45,.035)}
    .settings-product-card.full{grid-column:1/-1}
    .settings-option-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:10px}
    .settings-option-title{font-size:13px;font-weight:900;color:#171923}
    .settings-option-sub{font-size:12px;color:#717a90;line-height:1.4;margin-top:3px}
    .settings-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:10px}
    .settings-add-row input{height:42px;border-radius:13px;border:1px solid #dfe3ee;background:#fbfcff;padding:0 12px}
    .settings-add-row input:focus{background:#fff;border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .settings-chip-list{display:flex;flex-wrap:wrap;gap:8px;min-height:34px;margin-bottom:10px}
    .settings-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #dedafe;background:#f3f0ff;color:#5546e8;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}
    .settings-chip button{border:0;background:transparent;color:#5546e8;cursor:pointer;font-weight:900;padding:0}
    .settings-suggestions{display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid #edf0f6;padding-top:10px}
    .settings-suggestion{border:1px solid #edf0f6;background:#fbfcff;color:#5f6675;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:800;cursor:pointer}
    .settings-suggestion:hover{background:#f1efff;color:#5546e8;border-color:#dedafe}
    .settings-simple-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}

    /* Settings unsaved guard + simplified product options */
    .settings-unsaved-modal .modal{max-width:520px}
    .settings-unsaved-icon{width:44px;height:44px;border-radius:16px;background:#fff6df;color:#a16207;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;margin-bottom:12px}
    .settings-unsaved-title{font-size:20px;font-weight:900;color:#171923;letter-spacing:-.025em}
    .settings-unsaved-text{font-size:13px;color:#717a90;line-height:1.55;margin-top:8px}
    .settings-save-indicator{display:none;align-items:center;gap:8px;font-size:12px;font-weight:900;color:#a16207;background:#fff6df;border:1px solid #ffe2a8;border-radius:999px;padding:7px 10px}
    .settings-save-indicator.active{display:inline-flex}
    .settings-save-dot{width:7px;height:7px;border-radius:999px;background:#d99314}
    .settings-product-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
    .settings-product-card{background:#fff}
    .settings-suggestions{display:none!important}

    /* Listing product setting dropdowns */
    .listing-picker{position:relative}
    .listing-picker-btn{width:100%;height:46px;border:1px solid #dfe3ee;border-radius:14px;background:#fff;color:#171923;text-align:left;padding:0 42px 0 13px;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}
    .listing-picker-btn:after{content:'\25BE';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#717a90;font-size:12px}
    .listing-picker-btn.open{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .listing-picker-menu{position:fixed;background:#fff;border:1px solid #e1e4ef;border-radius:18px;box-shadow:0 18px 48px rgba(0,0,0,.18);padding:12px;z-index:550;overflow:hidden;width:360px}
    .listing-picker-menu .ms-options{max-height:240px}
    .listing-picker-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:10px 0}
    .listing-picker-add input{height:38px;border-radius:12px;border:1px solid #dfe3ee;background:#fbfcff;padding:0 11px;font-size:13px}
    .listing-picker-add input:focus{background:#fff;border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.10)}
    .listing-picker-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;min-height:24px}
    .listing-picker-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#f1efff;color:#5546e8;padding:6px 9px;font-size:12px;font-weight:900}
    .listing-picker-chip button{border:0;background:transparent;color:#5546e8;font-weight:900;cursor:pointer;padding:0}
    .listing-picker-empty{font-size:12px;color:#717a90;padding:10px;border:1px dashed #dfe3ee;border-radius:12px;background:#fbfcff}

    /* Listing picker selected chips inside the field */
    .listing-picker-btn{
      min-height:46px;
      height:auto!important;
      display:flex!important;
      align-items:center;
      flex-wrap:wrap;
      gap:7px;
      padding:8px 42px 8px 10px!important;
      white-space:normal!important;
      overflow:visible!important;
      line-height:1.2;
    }
    .listing-picker-btn .listing-picker-placeholder{color:#717a90;font-weight:700}
    .listing-picker-btn .listing-picker-chip{margin:0}
    .listing-picker-chips{display:none!important}

    /* Listing product picker final polish */
    .listing-picker-btn{
      background:#fff!important;
      border:1px solid #dfe3ee!important;
      border-radius:16px!important;
      box-shadow:0 1px 0 rgba(30,32,45,.02);
      align-content:center;
    }
    .listing-picker-btn:hover{border-color:#cfd5e6!important;background:#fcfcff!important}
    .listing-picker-btn.open{border-color:#7567f4!important;box-shadow:0 0 0 3px rgba(117,103,244,.12)!important}
    .listing-picker-btn:after{z-index:1}
    .listing-picker-btn .listing-picker-chip{
      position:relative;
      z-index:2;
      background:#f1efff;
      color:#5546e8;
      border:1px solid #dedafe;
      padding:6px 8px 6px 10px;
      border-radius:999px;
      font-size:12px;
      font-weight:900;
      display:inline-flex;
      align-items:center;
      gap:7px;
      max-width:100%;
    }
    .listing-picker-chip-remove{
      width:16px;
      height:16px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:#e4dfff;
      color:#5546e8;
      font-size:12px;
      font-weight:900;
      line-height:1;
      cursor:pointer;
      flex:0 0 auto;
    }
    .listing-picker-chip-remove:hover{background:#7567f4;color:#fff}
    .listing-picker-menu{border-radius:18px!important}
    .listing-picker-add input{background:#fff}
    .listing-picker .ms-option{border-radius:12px}
    .listing-picker .ms-option:hover{background:#f8f7ff}
    .seo-wizard-body .row3{align-items:start}

    /* Start New SEO required fields */
    .field-required{color:#ef476f;font-weight:900;margin-left:3px}
    .field-error{border-color:#ef476f!important;box-shadow:0 0 0 3px rgba(239,71,111,.10)!important}

    /* Listing picker dropdown refined positioning/UI */
    .listing-picker-menu{
      border-radius:18px!important;
      border:1px solid #e1e4ef!important;
      box-shadow:0 16px 42px rgba(30,32,45,.16)!important;
      padding:10px!important;
      background:#fff!important;
    }
    .listing-picker-menu .ms-menu-head{padding:2px 2px 8px}
    .listing-picker-menu .ms-menu-title{font-size:14px;font-weight:900;color:#171923}
    .listing-picker-menu input[id$="Search"]{height:40px;border-radius:13px}
    .listing-picker-add{margin:8px 0 10px!important}
    .listing-picker-add input{height:38px!important}
    .listing-picker-menu .ms-options{max-height:170px!important;overflow:auto;padding-top:4px}
    .listing-picker-menu .ms-option{padding:9px 10px!important}
    .listing-picker-empty{padding:12px!important}

    /* Start New SEO Step 3 keyword picker */
    .wizard-keyword-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
    .wizard-keyword-field{border:1px solid #e6e8f2;background:#fff;border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(30,32,45,.035)}
    .wizard-keyword-field.disabled{opacity:.58}
    .wizard-keyword-label{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#3f4452;font-weight:900;margin-bottom:8px}
    .wizard-keyword-btn{width:100%;min-height:46px;border:1px solid #dfe3ee;border-radius:14px;background:#fbfcff;color:#171923;text-align:left;padding:10px 40px 10px 12px;font-size:14px;font-weight:800;cursor:pointer;position:relative}
    .wizard-keyword-btn:after{content:'\203A';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#717a90;font-size:18px}
    .wizard-keyword-btn:hover{background:#fff;border-color:#cfd5e6}
    .wizard-keyword-btn:disabled{cursor:not-allowed;background:#f6f7fb;color:#9aa2b5}
    .wizard-keyword-selected{display:flex;flex-wrap:wrap;gap:7px}
    .wizard-keyword-chip{display:inline-flex;align-items:center;gap:7px;background:#f1efff;color:#5546e8;border:1px solid #dedafe;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}
    .wizard-keyword-chip button{border:0;background:#e4dfff;color:#5546e8;border-radius:999px;width:16px;height:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-weight:900;padding:0}
    .wizard-keyword-chip button:hover{background:#7567f4;color:#fff}
    .wizard-keyword-help{font-size:12px;color:#717a90;line-height:1.45;margin-top:8px}
    .wizard-keyword-modal .modal{max-width:1180px;width:min(1180px,calc(100vw - 40px));padding:0;overflow:hidden}
    .wizard-keyword-modal-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:20px 22px;border-bottom:1px solid #edf0f6;background:linear-gradient(135deg,#fff 0%,#fbfaff 100%)}
    .wizard-keyword-modal-title{font-size:20px;font-weight:900;color:#171923;letter-spacing:-.025em}
    .wizard-keyword-modal-sub{font-size:13px;color:#717a90;line-height:1.45;margin-top:5px}
    .wizard-keyword-controls{display:grid;grid-template-columns:minmax(280px,1fr) 180px 160px 170px;gap:10px;padding:14px 22px;border-bottom:1px solid #edf0f6;background:#fff}
    .wizard-keyword-controls input,.wizard-keyword-controls select{height:42px;border:1px solid #dfe3ee;border-radius:13px;background:#fff;padding:0 12px;font-size:13px}
    .wizard-keyword-controls input:focus,.wizard-keyword-controls select:focus{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .wizard-keyword-table-wrap{max-height:430px;overflow:auto}
    .wizard-keyword-table{width:100%;border-collapse:collapse;min-width:980px}
    .wizard-keyword-table th{position:sticky;top:0;background:#f1efff;color:#4f46a8;font-size:11px;text-transform:uppercase;letter-spacing:.06em;text-align:left;padding:12px 14px;z-index:1}
    .wizard-keyword-table td{padding:13px 14px;border-bottom:1px solid #edf0f6;vertical-align:middle;background:#fff}
    .wizard-keyword-table tr:hover td{background:#f8f7ff}
    .wizard-keyword-name{font-size:14px;font-weight:900;color:#171923}
    .wizard-keyword-cats{font-size:12px;color:#717a90;margin-top:4px;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .wizard-keyword-meta{font-size:12px;color:#5f6675;font-weight:800}
    .wizard-keyword-empty{padding:30px;text-align:center;color:#717a90;font-size:13px}
    .wizard-keyword-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 22px;border-top:1px solid #edf0f6;background:#fbfcff}
    .wizard-keyword-count{font-size:12px;color:#717a90;font-weight:800}
    .wizard-keyword-select-btn{border:1px solid #dedafe;background:#f1efff;color:#5546e8;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer}
    .wizard-keyword-select-btn:hover{background:#7567f4;color:#fff;border-color:#7567f4}
    .wizard-keyword-select-btn.selected{background:#e9fbf2;color:#057a55;border-color:#ccefe0}
    @media(max-width:980px){.wizard-keyword-grid{grid-template-columns:1fr}.wizard-keyword-controls{grid-template-columns:1fr}.wizard-keyword-modal .modal{width:calc(100vw - 24px)}}

    /* Keyword picker filters — industry dropdown UI */
    .wizard-keyword-controls{grid-template-columns:minmax(280px,1fr) 210px 180px 190px!important;align-items:start}
    .wizard-filter-dd{position:relative}
    .wizard-filter-btn{width:100%;height:42px;border:1px solid #dfe3ee;border-radius:13px;background:#fff;color:#3f4452;text-align:left;padding:0 38px 0 12px;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}
    .wizard-filter-btn:after{content:'\25BE';position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#717a90;font-size:12px}
    .wizard-filter-btn.open{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .wizard-filter-menu{position:fixed;background:#fff;border:1px solid #e1e4ef;border-radius:16px;box-shadow:0 18px 48px rgba(0,0,0,.18);padding:10px;z-index:570;overflow:hidden;width:320px}
    .wizard-filter-menu .ms-menu-title{font-size:13px;font-weight:900;color:#171923}
    .wizard-filter-menu input{height:38px!important;border-radius:12px!important;margin-bottom:8px}
    .wizard-filter-menu .ms-options{max-height:220px;overflow:auto;border-top:1px solid #edf0f6;padding-top:8px}
    .wizard-filter-menu.simple .ms-options{border-top:0;padding-top:0}
    .wizard-filter-option{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;border-radius:12px;padding:10px 11px;text-align:left;cursor:pointer;font-size:13px;font-weight:900;color:#3f4452}
    .wizard-filter-option:hover{background:#f8f7ff}
    .wizard-filter-option.active{background:#f1efff;color:#5546e8}
    .wizard-keyword-field.error{border-color:#ef476f!important;box-shadow:0 0 0 3px rgba(239,71,111,.10)}
    .wizard-keyword-field.error .wizard-keyword-btn{border-color:#ef476f!important}
    @media(max-width:980px){.wizard-keyword-controls{grid-template-columns:1fr!important}}

    /* Step 3 keyword + tag picker refinement */
    .wizard-keyword-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
    .wizard-keyword-summary{border:1px solid #e6e8f2;background:linear-gradient(135deg,#fff 0%,#fbfaff 100%);border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(30,32,45,.035)}
    .wizard-volume-label{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#717a90;font-weight:900}
    .wizard-volume-value{font-size:26px;font-weight:900;letter-spacing:-.04em;color:#7567f4;margin-top:8px}
    .wizard-volume-sub{font-size:12px;color:#717a90;margin-top:5px;line-height:1.35}
    .wizard-tag-section{margin-top:16px;border:1px solid #e6e8f2;background:#fff;border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(30,32,45,.035)}
    .wizard-tag-section.error{border-color:#ef476f!important;box-shadow:0 0 0 3px rgba(239,71,111,.10)}
    .wizard-tag-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
    .wizard-tag-title{font-size:13px;font-weight:900;color:#171923}
    .wizard-tag-count{font-size:12px;font-weight:900;color:#717a90;background:#f6f7fb;border-radius:999px;padding:6px 9px}
    .wizard-tag-btn{width:100%;min-height:48px;border:1px solid #dfe3ee;border-radius:14px;background:#fbfcff;color:#171923;text-align:left;padding:10px 40px 10px 12px;font-size:14px;font-weight:800;cursor:pointer;position:relative}
    .wizard-tag-btn:after{content:'\203A';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#717a90;font-size:18px}
    .wizard-tag-btn:hover{background:#fff;border-color:#cfd5e6}
    .wizard-tag-selected{display:flex;flex-wrap:wrap;gap:7px}
    .wizard-manual-tag-row{display:none;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 22px 12px;border-bottom:1px solid #edf0f6;background:#fff}
    .wizard-manual-tag-row.active{display:grid}
    .wizard-manual-tag-row input{height:40px;border:1px solid #dfe3ee;border-radius:13px;padding:0 12px;font-size:13px}
    .wizard-manual-tag-row input:focus{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .wizard-filter-btn{height:42px;background:#fff!important;border:1px solid #dfe3ee!important;border-radius:14px!important;font-weight:900;color:#3f4452}
    .wizard-filter-btn.open{border-color:#7567f4!important;box-shadow:0 0 0 3px rgba(117,103,244,.12)!important}
    .wizard-filter-menu{border-radius:18px!important;box-shadow:0 16px 44px rgba(30,32,45,.16)!important;border:1px solid #e2e6f0!important;padding:10px!important}
    .wizard-filter-menu .ms-menu-head{padding:2px 2px 8px}
    .wizard-filter-menu .ms-menu-title{font-size:13px;font-weight:900;color:#171923}
    .wizard-filter-menu .ms-options{max-height:240px}
    .wizard-filter-menu.simple{padding:8px!important}
    .wizard-filter-menu.simple .ms-options{display:grid;gap:4px;max-height:none}
    .wizard-filter-option{border-radius:12px!important;padding:10px 12px!important}
    .wizard-filter-option.active{background:#f1efff!important;color:#5546e8!important}
    .wizard-keyword-controls{grid-template-columns:minmax(320px,1fr) 220px 180px 180px!important}
    .wizard-keyword-field.error,.wizard-tag-section.error{border-color:#ef476f!important}
    @media(max-width:1180px){.wizard-keyword-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
    @media(max-width:760px){.wizard-keyword-grid,.wizard-keyword-controls{grid-template-columns:1fr!important}.wizard-manual-tag-row{grid-template-columns:1fr}}

    /* Full Listing Editor — aligned with Start New SEO */
    .editor-info-grid{display:grid;grid-template-columns:260px minmax(0,1fr) 190px;gap:12px;align-items:start}
    .editor-id-pill{min-height:46px;border:1px solid #e6e8f2;border-radius:14px;background:#fbfcff;color:#171923;padding:12px 13px;font-size:13px;font-weight:900;word-break:break-word}
    .editor-status-box,.editor-cat-box{position:relative}
    .editor-status-btn,.editor-cat-btn{width:100%;min-height:46px;border:1px solid #dfe3ee;border-radius:14px;background:#fff;color:#171923;text-align:left;padding:11px 42px 11px 13px;font-size:14px;font-weight:800;cursor:pointer;position:relative}
    .editor-status-btn:after,.editor-cat-btn:after{content:'\25BE';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#717a90;font-size:12px}
    .editor-status-btn.open,.editor-cat-btn.open{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .editor-status-menu,.editor-cat-menu{position:fixed;background:#fff;border:1px solid #e1e4ef;border-radius:18px;box-shadow:0 18px 48px rgba(0,0,0,.18);padding:10px;z-index:560;overflow:hidden}
    .editor-status-option{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;border-radius:12px;padding:10px 11px;text-align:left;cursor:pointer;font-size:13px;font-weight:900;color:#3f4452}
    .editor-status-option:hover{background:#f8f7ff}.editor-status-option.active{background:#f1efff;color:#5546e8}
    .editor-status-dot{width:8px;height:8px;border-radius:999px;background:#9aa2b5}.editor-status-option[data-status="Draft"] .editor-status-dot{background:#8a91a3}.editor-status-option[data-status="Working"] .editor-status-dot{background:#d99314}.editor-status-option[data-status="Optimized"] .editor-status-dot{background:#10a66a}.editor-status-option[data-status="Published"] .editor-status-dot{background:#7567f4}
    .editor-cat-menu{width:380px}.editor-cat-menu .ms-options{max-height:260px}
    .editor-cat-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;min-height:26px}
    .editor-cat-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#f1efff;color:#5546e8;padding:6px 9px;font-size:12px;font-weight:900}
    .editor-cat-chip button{border:0;background:transparent;color:#5546e8;font-weight:900;cursor:pointer;padding:0}
    .editor-keyword-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:stretch}
    .editor-keyword-card{border:1px solid #e6e8f2;background:#fff;border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(30,32,45,.035)}
    .editor-keyword-card.disabled{opacity:.58}
    .editor-keyword-label{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#3f4452;font-weight:900;margin-bottom:8px}
    .editor-keyword-btn{width:100%;min-height:46px;border:1px solid #dfe3ee;border-radius:14px;background:#fbfcff;color:#171923;text-align:left;padding:10px 40px 10px 12px;font-size:14px;font-weight:800;cursor:pointer;position:relative}
    .editor-keyword-btn:after{content:'\203A';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#717a90;font-size:18px}
    .editor-keyword-btn:hover{background:#fff;border-color:#cfd5e6}.editor-keyword-btn:disabled{cursor:not-allowed;background:#f6f7fb;color:#9aa2b5}
    .editor-keyword-selected,.editor-tag-selected{display:flex;flex-wrap:wrap;gap:7px}
    .editor-keyword-chip{display:inline-flex;align-items:center;gap:7px;background:#f1efff;color:#5546e8;border:1px solid #dedafe;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}
    .editor-keyword-chip button{border:0;background:#e4dfff;color:#5546e8;border-radius:999px;width:16px;height:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-weight:900;padding:0}
    .editor-keyword-chip button:hover{background:#7567f4;color:#fff}
    .editor-keyword-help{font-size:12px;color:#717a90;line-height:1.45;margin-top:8px}
    .editor-keyword-summary{border:1px solid #e6e8f2;background:linear-gradient(135deg,#fff 0%,#fbfaff 100%);border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(30,32,45,.035)}
    .editor-summary-label{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#717a90;font-weight:900}
    .editor-summary-value{font-size:24px;font-weight:900;letter-spacing:-.04em;color:#7567f4;margin-top:8px}
    .editor-summary-sub{font-size:12px;color:#717a90;margin-top:5px;line-height:1.35}
    .editor-source-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
    .editor-source-pill{display:inline-flex;background:#eef8ff;color:#0969a8;border:1px solid #cfeeff;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900}
    .editor-tag-section{margin-top:16px;border:1px solid #e6e8f2;background:#fff;border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(30,32,45,.035)}
    .editor-tag-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
    .editor-tag-title{font-size:13px;font-weight:900;color:#171923}
    .editor-tag-count{font-size:12px;font-weight:900;color:#717a90;background:#f6f7fb;border-radius:999px;padding:6px 9px}
    .editor-tag-btn{width:100%;min-height:48px;border:1px solid #dfe3ee;border-radius:14px;background:#fbfcff;color:#171923;text-align:left;padding:10px 40px 10px 12px;font-size:14px;font-weight:800;cursor:pointer;position:relative}
    .editor-tag-btn:after{content:'\203A';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#717a90;font-size:18px}
    .editor-keyword-modal .modal{max-width:1180px;width:min(1180px,calc(100vw - 40px));padding:0;overflow:hidden}
    .editor-keyword-modal-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:20px 22px;border-bottom:1px solid #edf0f6;background:linear-gradient(135deg,#fff 0%,#fbfaff 100%)}
    .editor-keyword-modal-title{font-size:20px;font-weight:900;color:#171923;letter-spacing:-.025em}.editor-keyword-modal-sub{font-size:13px;color:#717a90;line-height:1.45;margin-top:5px}
    .editor-keyword-controls{display:grid;grid-template-columns:minmax(320px,1fr) 220px 180px 180px;gap:10px;padding:14px 22px;border-bottom:1px solid #edf0f6;background:#fff}
    .editor-keyword-controls input{height:42px;border:1px solid #dfe3ee;border-radius:14px;background:#fff;padding:0 12px;font-size:13px}
    .editor-keyword-table-wrap{max-height:430px;overflow:auto}.editor-keyword-table{width:100%;border-collapse:collapse;min-width:980px}
    .editor-keyword-table th{position:sticky;top:0;background:#f1efff;color:#4f46a8;font-size:11px;text-transform:uppercase;letter-spacing:.06em;text-align:left;padding:12px 14px;z-index:1}
    .editor-keyword-table td{padding:13px 14px;border-bottom:1px solid #edf0f6;vertical-align:middle;background:#fff}.editor-keyword-table tr:hover td{background:#f8f7ff}
    .editor-keyword-name{font-size:14px;font-weight:900;color:#171923}.editor-keyword-cats{font-size:12px;color:#717a90;margin-top:4px;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .editor-keyword-meta{font-size:12px;color:#5f6675;font-weight:800}.editor-keyword-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 22px;border-top:1px solid #edf0f6;background:#fbfcff}
    .editor-keyword-select-btn{border:1px solid #dedafe;background:#f1efff;color:#5546e8;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer}.editor-keyword-select-btn:hover{background:#7567f4;color:#fff;border-color:#7567f4}.editor-keyword-select-btn.selected{background:#e9fbf2;color:#057a55;border-color:#ccefe0}
    .editor-manual-tag-row{display:none;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 22px 12px;border-bottom:1px solid #edf0f6;background:#fff}.editor-manual-tag-row.active{display:grid}
    .editor-manual-tag-row input{height:40px;border:1px solid #dfe3ee;border-radius:13px;padding:0 12px;font-size:13px}
    @media(max-width:1250px){.editor-keyword-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-info-grid{grid-template-columns:1fr}.editor-keyword-controls{grid-template-columns:1fr}}
    @media(max-width:760px){.editor-keyword-grid{grid-template-columns:1fr}.editor-keyword-modal .modal{width:calc(100vw - 24px)}}
    @media(max-width:900px){.settings-product-grid{grid-template-columns:1fr}}
    @media(max-width:900px){.settings-product-grid,.settings-simple-grid{grid-template-columns:1fr}.settings-product-card.full{grid-column:auto}}
    @media(max-width:900px){.seo-wizard-id-row,.seo-wizard-steps{grid-template-columns:1fr}.seo-wizard-head,.seo-wizard-actions{display:block}.seo-wizard-right-actions{margin-top:12px}.seo-wizard-left-actions{margin-top:12px}}
    @media(max-width:900px){.listing-search{min-width:100%}.listing-kpi-grid{grid-template-columns:1fr}.listing-toolbar-left,.listing-toolbar-right{width:100%}}
    @media(max-width:900px){.settings-kpi-grid{grid-template-columns:1fr}.rule-search{min-width:100%}.rule-kpi-grid,.rule-view-grid{grid-template-columns:1fr}.prompt-search{min-width:100%}.prompt-kpi-grid,.prompt-view-grid{grid-template-columns:1fr}.desc-search{min-width:100%}.desc-kpi-grid{grid-template-columns:1fr}.category-search{min-width:100%}.category-toolbar-left,.category-toolbar-right{width:100%}.category-kpi-grid{grid-template-columns:1fr}.category-grid{grid-template-columns:1fr}.keyword-search-row{grid-template-columns:1fr}.reset-btn{width:100%}.keyword-filter-row{align-items:flex-start}.keyword-table th:first-child,.keyword-table th:last-child{border-radius:0}.side{position:relative;width:100%;bottom:auto}.app{display:block}.main{margin-left:0}.split,.row,.row3,.row4{grid-template-columns:1fr}.image-row{grid-template-columns:1fr}.top{display:block}}
  
    /* Listing Editor SEO Score right sidebar restore */
    @media(min-width:960px){
      .listing-editor-layout{
        display:grid!important;
        grid-template-columns:minmax(0,1fr) 360px!important;
        gap:18px!important;
        align-items:start!important;
      }
      .listing-editor-main{min-width:0!important}
      .seo-feedback{
        display:block!important;
        position:sticky!important;
        top:18px!important;
        align-self:start!important;
        width:360px!important;
      }
      .seo-panel{
        width:100%!important;
        border-radius:20px!important;
      }
      .editor-keyword-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
      }
      .editor-info-grid{
        grid-template-columns:220px minmax(0,1fr) 170px!important;
      }
    }
    @media(max-width:959px){
      .listing-editor-layout{
        grid-template-columns:1fr!important;
      }
      .seo-feedback{
        position:relative!important;
        top:auto!important;
        width:auto!important;
      }
    }

  
    /* Replace right SEO Score panel with Tags panel */
    .editor-tags-sidebar{
      position:sticky!important;
      top:18px!important;
      align-self:start!important;
    }
    .editor-tags-sidebar .editor-tag-section{
      margin-top:0!important;
      padding:18px!important;
      border-radius:20px!important;
      box-shadow:0 18px 42px rgba(30,32,45,.08)!important;
    }
    .editor-tags-sidebar .editor-tag-head{
      margin-bottom:12px!important;
    }
    .editor-tags-sidebar .editor-tag-title{
      font-size:17px!important;
      letter-spacing:-.015em!important;
    }
    .editor-tags-sidebar .editor-tag-btn{
      min-height:260px!important;
      align-items:flex-start!important;
      background:#fff!important;
      padding:14px 40px 14px 14px!important;
    }
    .editor-tags-sidebar .editor-tag-selected{
      align-content:flex-start!important;
      align-items:flex-start!important;
    }
    .editor-tags-sidebar .editor-keyword-help{
      margin-top:12px!important;
    }
    @media(max-width:959px){
      .editor-tags-sidebar{
        position:relative!important;
        top:auto!important;
      }
      .editor-tags-sidebar .editor-tag-btn{
        min-height:120px!important;
      }
    }

  
    /* Keywords + Tags section refinement */
    .editor-keyword-grid{
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      align-items:start!important;
    }
    .editor-keyword-card.role-other{
      grid-column:1 / -1!important;
    }
    .editor-keyword-summary{
      min-height:130px!important;
    }
    .editor-tag-section{
      margin-top:16px!important;
      border-radius:18px!important;
      padding:14px!important;
      box-shadow:0 8px 22px rgba(30,32,45,.035)!important;
    }
    .editor-tag-btn{
      min-height:96px!important;
      align-items:flex-start!important;
      background:#fbfcff!important;
      padding:12px 40px 12px 12px!important;
    }
    .editor-tag-selected,.editor-keyword-selected{
      align-content:flex-start!important;
      align-items:flex-start!important;
      display:flex!important;
      flex-wrap:wrap!important;
      gap:7px!important;
    }
    .editor-keyword-chip-remove{
      width:16px;
      height:16px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:#e4dfff;
      color:#5546e8;
      font-size:12px;
      font-weight:900;
      line-height:1;
      cursor:pointer;
      flex:0 0 auto;
    }
    .editor-keyword-chip-remove:hover{
      background:#7567f4;
      color:#fff;
    }
    @media(max-width:760px){
      .editor-keyword-grid{
        grid-template-columns:1fr!important;
      }
    }

  
    /* Sidebar summary cards above SEO Score */
    .editor-sidebar-stack{
      display:flex;
      flex-direction:column;
      gap:14px;
    }
    .seo-feedback .editor-keyword-summary{
      min-height:auto!important;
      padding:16px!important;
      border-radius:20px!important;
      box-shadow:0 12px 30px rgba(30,32,45,.055)!important;
    }
    .seo-feedback .editor-summary-value{
      font-size:26px!important;
      line-height:1!important;
    }
    .seo-feedback .editor-source-list{
      margin-top:12px!important;
    }
    .seo-feedback .seo-panel{
      margin-top:0!important;
    }

  
    /* Listing Editor setup sections are read-only */
    .editor-setup-card{
      background:#fff;
      border:1px solid #e7eaf3;
      border-radius:18px;
      padding:16px;
      box-shadow:0 8px 22px rgba(30,32,45,.04);
    }
    .editor-setup-card.compact{
      padding:14px;
      border-radius:16px;
      box-shadow:0 8px 24px rgba(30,32,45,.035);
    }
    .editor-setup-head{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:14px;
      margin-bottom:10px;
    }
    .editor-setup-head-main{
      min-width:0;
      flex:1;
    }
    .editor-setup-title-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      flex-wrap:wrap;
    }
    .editor-setup-title{
      font-size:16px;
      font-weight:900;
      color:#171923;
      letter-spacing:-.015em;
      line-height:1.2;
    }
    .editor-setup-sub{
      font-size:12px;
      color:#717a90;
      margin-top:4px;
      line-height:1.42;
    }
    .editor-setup-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:10px;
    }
    .editor-setup-grid.four{
      grid-template-columns:repeat(4,minmax(0,1fr));
    }
    .editor-setup-grid.two{
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .editor-setup-grid.full{
      grid-template-columns:1fr;
    }
    .editor-setup-grid.compact{
      gap:8px;
    }
    .editor-summary-cell{
      border:1px solid #edf0f6;
      background:#fbfcff;
      border-radius:14px;
      padding:12px;
      min-height:64px;
    }
    .editor-summary-cell.compact{
      min-height:62px;
      padding:10px 11px;
      border-radius:12px;
      display:flex;
      flex-direction:column;
      justify-content:center;
      min-width:0;
      transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
    }
    .editor-summary-cell.compact:hover{
      border-color:#dedafe;
      background:#fdfcff;
      box-shadow:0 6px 16px rgba(85,70,232,.05);
    }
    .editor-summary-label{
      font-size:10px;
      text-transform:uppercase;
      letter-spacing:.07em;
      color:#717a90;
      font-weight:900;
      margin-bottom:5px;
    }
    .editor-summary-data{
      font-size:13px;
      color:#171923;
      font-weight:850;
      line-height:1.35;
      word-break:break-word;
      min-width:0;
    }
    .editor-summary-data.truncate{
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
      word-break:normal;
    }
    .editor-summary-data.status{
      display:flex;
      align-items:center;
    }
    .editor-summary-muted{
      color:#9aa2b5;
      font-weight:750;
    }
    .editor-summary-chips{
      display:flex;
      flex-wrap:wrap;
      gap:6px;
    }
    .editor-summary-chip{
      display:inline-flex;
      align-items:center;
      border:1px solid #dedafe;
      background:#f1efff;
      color:#5546e8;
      border-radius:999px;
      padding:5px 9px;
      font-size:12px;
      font-weight:900;
      line-height:1.2;
    }
    .editor-summary-chip.blue{
      border-color:#cfeeff;
      background:#eef8ff;
      color:#0969a8;
    }
    .editor-summary-chip.green{
      border-color:#ccefe0;
      background:#f0fff7;
      color:#057a55;
    }
    .editor-summary-chip.gray{
      border-color:#e5e8f1;
      background:#f5f7fb;
      color:#5f6779;
    }
    .editor-status-pill{
      display:inline-flex;
      align-items:center;
      gap:7px;
      border-radius:999px;
      padding:6px 10px;
      font-size:12px;
      font-weight:900;
      line-height:1;
      border:1px solid #e5e8f1;
      background:#f5f7fb;
      color:#5f6779;
    }
    .editor-status-pill:before{
      content:'';
      width:7px;
      height:7px;
      border-radius:999px;
      background:currentColor;
      opacity:.8;
    }
    .editor-status-pill.draft{
      background:#f5f4ff;
      border-color:#dedafe;
      color:#5c4ce1;
    }
    .editor-status-pill.active{
      background:#eefbf4;
      border-color:#d3efe0;
      color:#08734f;
    }
    .editor-status-pill.archived{
      background:#f7f8fb;
      border-color:#e5e8f1;
      color:#7b8496;
    }
    .editor-status-pill.pending{
      background:#fff7e8;
      border-color:#f7dfae;
      color:#9b6500;
    }
    .editor-setup-locked{
      display:flex;
      align-items:center;
      gap:8px;
      border:1px solid #edf0f6;
      background:#fcfcfe;
      color:#717a90;
      border-radius:13px;
      padding:9px 11px;
      font-size:12px;
      font-weight:800;
      margin-top:10px;
      line-height:1.4;
    }
    .editor-setup-actions{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      justify-content:flex-end;
    }
    .editor-edit-step-btn{
      min-height:34px;
      padding:8px 13px;
      border-radius:11px;
      font-size:12px;
      font-weight:850;
      margin:0;
      border:1px solid var(--accent)!important;
      background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%)!important;
      color:#fff!important;
      box-shadow:0 8px 18px rgba(117,103,244,.20)!important;
      transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
    }
    .editor-edit-step-btn:hover{
      transform:translateY(-1px);
      filter:brightness(1.02);
      box-shadow:0 10px 22px rgba(117,103,244,.28)!important;
    }
    .editor-edit-step-btn:active{
      transform:translateY(0);
    }
    .editor-setup-card.compact .editor-setup-sub{
      max-width:760px;
    }
    @media(max-width:1100px){
      .editor-setup-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
    }
    @media(max-width:900px){
      .editor-setup-head{display:block}
      .editor-setup-actions{justify-content:flex-start;margin-top:12px}
      .editor-setup-title-row{align-items:flex-start}
      .editor-setup-grid,.editor-setup-grid.two,.editor-setup-grid.four{grid-template-columns:1fr}
    }

  
    /* Edit SEO Setup Step 3 — refined layout */
    .seo-wizard-body .wizard-keyword-grid{
      display:grid!important;
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      gap:14px!important;
      align-items:start!important;
    }
    .seo-wizard-body .wizard-keyword-field{
      min-height:146px!important;
      padding:14px!important;
      border-radius:18px!important;
      box-shadow:0 8px 22px rgba(30,32,45,.035)!important;
    }
    .seo-wizard-body .wizard-keyword-field.role-other{
      grid-column:1 / -1!important;
      min-height:126px!important;
    }
    .seo-wizard-body .wizard-keyword-summary{
      min-height:126px!important;
      border-radius:18px!important;
      padding:16px!important;
      box-shadow:0 8px 22px rgba(30,32,45,.035)!important;
    }
    .seo-wizard-body .wizard-keyword-btn,
    .seo-wizard-body .wizard-tag-btn{
      display:flex!important;
      align-items:flex-start!important;
      flex-wrap:wrap!important;
      gap:7px!important;
      padding:12px 40px 12px 12px!important;
      min-height:54px!important;
      border-radius:14px!important;
      background:#fbfcff!important;
    }
    .seo-wizard-body .wizard-keyword-selected,
    .seo-wizard-body .wizard-tag-selected{
      display:flex!important;
      align-items:flex-start!important;
      align-content:flex-start!important;
      flex-wrap:wrap!important;
      gap:7px!important;
      width:100%!important;
    }
    .seo-wizard-body .wizard-tag-section{
      margin-top:16px!important;
      border-radius:18px!important;
      padding:14px!important;
      box-shadow:0 8px 22px rgba(30,32,45,.035)!important;
    }
    .seo-wizard-body .wizard-tag-btn{
      min-height:92px!important;
    }
    .wizard-keyword-chip-remove{
      width:16px;
      height:16px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:#e4dfff;
      color:#5546e8;
      font-size:12px;
      font-weight:900;
      line-height:1;
      cursor:pointer;
      flex:0 0 auto;
    }
    .wizard-keyword-chip-remove:hover{
      background:#7567f4;
      color:#fff;
    }
    .wizard-source-list{
      display:flex;
      flex-wrap:wrap;
      gap:6px;
      margin-top:12px;
    }
    .wizard-source-pill{
      display:inline-flex;
      background:#eef8ff;
      color:#0969a8;
      border:1px solid #cfeeff;
      border-radius:999px;
      padding:5px 8px;
      font-size:11px;
      font-weight:900;
    }
    @media(max-width:760px){
      .seo-wizard-body .wizard-keyword-grid{
        grid-template-columns:1fr!important;
      }
      .seo-wizard-body .wizard-keyword-field.role-other{
        grid-column:auto!important;
      }
    }

  
    /* Step 3: Total Search Volume at top; no Keyword Sources card */
    .wizard-top-volume{
      margin:14px 0 16px!important;
    }
    .wizard-top-volume .wizard-keyword-summary{
      min-height:auto!important;
      border-radius:18px!important;
      padding:16px 18px!important;
      background:linear-gradient(135deg,#fff 0%,#fbfaff 100%)!important;
      box-shadow:0 8px 22px rgba(30,32,45,.035)!important;
    }
    .wizard-top-volume .wizard-volume-value{
      font-size:28px!important;
      line-height:1!important;
      margin-top:8px!important;
    }
    .seo-wizard-body .wizard-keyword-grid{
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .seo-wizard-body .wizard-keyword-field.role-other{
      grid-column:1 / -1!important;
    }
    @media(max-width:760px){
      .seo-wizard-body .wizard-keyword-grid{
        grid-template-columns:1fr!important;
      }
    }

  
    /* Step 1 Category field — chips inside field like File Type */
    .wizard-category-wrap .wizard-cat-btn{
      min-height:46px!important;
      height:auto!important;
      display:flex!important;
      align-items:center!important;
      flex-wrap:wrap!important;
      gap:7px!important;
      padding:8px 42px 8px 10px!important;
      white-space:normal!important;
      overflow:visible!important;
      text-overflow:clip!important;
      line-height:1.2!important;
      font-weight:700!important;
      background:#fff!important;
    }
    .wizard-category-wrap .wizard-cat-btn .wizard-cat-placeholder{
      color:#717a90;
      font-weight:700;
    }
    .wizard-category-wrap .wizard-cat-btn .wizard-cat-chip{
      position:relative;
      z-index:2;
      margin:0!important;
      background:#f1efff;
      color:#5546e8;
      border:1px solid #dedafe;
      padding:6px 8px 6px 10px;
      border-radius:999px;
      font-size:12px;
      font-weight:900;
      display:inline-flex;
      align-items:center;
      gap:7px;
      max-width:100%;
    }
    .wizard-category-wrap .wizard-cat-chip-remove{
      width:16px;
      height:16px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:#e4dfff;
      color:#5546e8;
      font-size:12px;
      font-weight:900;
      line-height:1;
      cursor:pointer;
      flex:0 0 auto;
    }
    .wizard-category-wrap .wizard-cat-chip-remove:hover{
      background:#7567f4;
      color:#fff;
    }
    .wizard-category-wrap .wizard-cat-chips{
      display:none!important;
    }

  
    /* Step 3 Keywords + Tags — compact industry UI */
    .seo-wizard-body .wizard-top-volume{
      margin:10px 0 12px!important;
    }
    .seo-wizard-body .wizard-top-volume .wizard-keyword-summary{
      min-height:0!important;
      display:grid!important;
      grid-template-columns:auto 1fr!important;
      column-gap:14px!important;
      row-gap:4px!important;
      align-items:center!important;
      padding:12px 14px!important;
      border-radius:16px!important;
      border:1px solid #e6e8f2!important;
      background:#fff!important;
      box-shadow:0 6px 16px rgba(30,32,45,.035)!important;
    }
    .seo-wizard-body .wizard-top-volume .wizard-volume-label{
      grid-column:1 / -1!important;
      font-size:10px!important;
      letter-spacing:.08em!important;
      color:#717a90!important;
      margin:0!important;
    }
    .seo-wizard-body .wizard-top-volume .wizard-volume-value{
      font-size:24px!important;
      line-height:1!important;
      margin:0!important;
      color:#7567f4!important;
    }
    .seo-wizard-body .wizard-top-volume .wizard-volume-sub{
      margin:0!important;
      font-size:12px!important;
      color:#717a90!important;
      line-height:1.35!important;
    }

    .seo-wizard-body .wizard-keyword-grid{
      display:grid!important;
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      gap:12px!important;
      align-items:start!important;
    }
    .seo-wizard-body .wizard-keyword-field{
      min-height:0!important;
      padding:12px!important;
      border-radius:16px!important;
      border:1px solid #e6e8f2!important;
      background:#fff!important;
      box-shadow:0 6px 16px rgba(30,32,45,.03)!important;
    }
    .seo-wizard-body .wizard-keyword-field.role-other{
      grid-column:1 / -1!important;
    }
    .seo-wizard-body .wizard-keyword-label{
      margin-bottom:7px!important;
      font-size:12px!important;
      line-height:1.2!important;
    }
    .seo-wizard-body .wizard-keyword-label span:last-child{
      font-size:11px!important;
      color:#717a90!important;
      font-weight:800!important;
    }
    .seo-wizard-body .wizard-keyword-btn{
      min-height:42px!important;
      border-radius:13px!important;
      padding:8px 34px 8px 10px!important;
      background:#fbfcff!important;
      font-size:13px!important;
      line-height:1.25!important;
    }
    .seo-wizard-body .wizard-keyword-btn:after{
      right:12px!important;
      font-size:16px!important;
    }
    .seo-wizard-body .wizard-keyword-help{
      margin-top:6px!important;
      font-size:11px!important;
      line-height:1.35!important;
      color:#717a90!important;
    }
    .seo-wizard-body .wizard-keyword-chip{
      padding:5px 7px 5px 9px!important;
      font-size:12px!important;
      gap:6px!important;
      border-radius:999px!important;
      max-width:100%!important;
    }
    .seo-wizard-body .wizard-keyword-chip-remove{
      width:15px!important;
      height:15px!important;
      font-size:11px!important;
    }

    .seo-wizard-body .wizard-tag-section{
      margin-top:12px!important;
      padding:12px!important;
      border-radius:16px!important;
      border:1px solid #e6e8f2!important;
      background:#fff!important;
      box-shadow:0 6px 16px rgba(30,32,45,.03)!important;
    }
    .seo-wizard-body .wizard-tag-head{
      margin-bottom:8px!important;
    }
    .seo-wizard-body .wizard-tag-title{
      font-size:13px!important;
      font-weight:900!important;
    }
    .seo-wizard-body .wizard-tag-count{
      padding:5px 8px!important;
      font-size:11px!important;
    }
    .seo-wizard-body .wizard-tag-btn{
      min-height:58px!important;
      border-radius:13px!important;
      padding:9px 34px 9px 10px!important;
      background:#fbfcff!important;
      font-size:13px!important;
      line-height:1.25!important;
    }
    .seo-wizard-body .wizard-tag-btn:after{
      right:12px!important;
      font-size:16px!important;
    }

    .seo-wizard-body .wizard-keyword-selected,
    .seo-wizard-body .wizard-tag-selected{
      gap:6px!important;
    }

    .wizard-keyword-modal .modal{
      border-radius:20px!important;
    }
    .wizard-keyword-modal-head{
      padding:16px 18px!important;
    }
    .wizard-keyword-modal-title{
      font-size:18px!important;
    }
    .wizard-keyword-controls{
      padding:12px 18px!important;
      gap:8px!important;
      grid-template-columns:minmax(260px,1fr) 210px 170px 170px!important;
    }
    .wizard-keyword-table th{
      padding:10px 12px!important;
      font-size:10px!important;
    }
    .wizard-keyword-table td{
      padding:10px 12px!important;
    }
    .wizard-keyword-footer{
      padding:12px 18px!important;
    }

    @media(max-width:860px){
      .seo-wizard-body .wizard-keyword-grid,
      .seo-wizard-body .wizard-top-volume .wizard-keyword-summary,
      .wizard-keyword-controls{
        grid-template-columns:1fr!important;
      }
      .seo-wizard-body .wizard-keyword-field.role-other{
        grid-column:auto!important;
      }
    }

  
    /* Step 3 final compact row layout + manual keyword add */
    .seo-wizard-body .wizard-top-volume{
      margin:8px 0 12px!important;
    }
    .seo-wizard-body .wizard-top-volume .wizard-keyword-summary{
      min-height:0!important;
      padding:12px 14px!important;
      border-radius:16px!important;
      background:#fff!important;
      box-shadow:0 6px 16px rgba(30,32,45,.035)!important;
    }
    .seo-wizard-body .wizard-keyword-grid{
      display:grid!important;
      grid-template-columns:repeat(3,minmax(0,1fr))!important;
      gap:12px!important;
      align-items:stretch!important;
    }
    .seo-wizard-body .wizard-keyword-field,
    .seo-wizard-body .wizard-keyword-field.role-other{
      grid-column:auto!important;
      min-height:0!important;
      padding:12px!important;
      border-radius:16px!important;
      border:1px solid #e6e8f2!important;
      background:#fff!important;
      box-shadow:0 6px 16px rgba(30,32,45,.03)!important;
    }
    .seo-wizard-body .wizard-keyword-btn{
      min-height:44px!important;
      max-height:84px!important;
      overflow:auto!important;
      border-radius:13px!important;
      padding:8px 34px 8px 10px!important;
      background:#fbfcff!important;
      font-size:13px!important;
    }
    .seo-wizard-body .wizard-keyword-help{
      min-height:30px!important;
      margin-top:6px!important;
      font-size:11px!important;
      line-height:1.35!important;
    }
    .seo-wizard-body .wizard-tag-section{
      margin-top:12px!important;
      padding:12px!important;
      border-radius:16px!important;
      box-shadow:0 6px 16px rgba(30,32,45,.03)!important;
    }
    .wizard-manual-tag-row{
      grid-template-columns:minmax(0,1fr) auto!important;
      gap:8px!important;
      padding:0 18px 12px!important;
    }
    .wizard-manual-tag-row input{
      height:40px!important;
      border-radius:13px!important;
    }
    @media(max-width:1080px){
      .seo-wizard-body .wizard-keyword-grid{
        grid-template-columns:1fr!important;
      }
    }

  
    /* Step 3 final: Primary, Secondary, Other, Total Search Volume in one row */
    .seo-wizard-body .wizard-keyword-grid{
      display:grid!important;
      grid-template-columns:repeat(4,minmax(0,1fr))!important;
      gap:12px!important;
      align-items:stretch!important;
      margin-top:12px!important;
    }
    .seo-wizard-body .wizard-keyword-field,
    .seo-wizard-body .wizard-keyword-field.role-other,
    .seo-wizard-body .wizard-volume-inline-card{
      grid-column:auto!important;
      min-height:0!important;
      border-radius:16px!important;
      border:1px solid #e6e8f2!important;
      background:#fff!important;
      box-shadow:0 6px 16px rgba(30,32,45,.03)!important;
    }
    .seo-wizard-body .wizard-keyword-field{
      padding:12px!important;
    }
    .seo-wizard-body .wizard-volume-inline-card{
      padding:12px!important;
      display:flex!important;
      flex-direction:column!important;
      justify-content:center!important;
    }
    .seo-wizard-body .wizard-volume-inline-card .wizard-volume-label{
      font-size:10px!important;
      letter-spacing:.08em!important;
      margin-bottom:8px!important;
      color:#717a90!important;
    }
    .seo-wizard-body .wizard-volume-inline-card .wizard-volume-value{
      font-size:24px!important;
      line-height:1!important;
      margin:0!important;
      color:#7567f4!important;
    }
    .seo-wizard-body .wizard-volume-inline-card .wizard-volume-sub{
      margin-top:7px!important;
      font-size:11px!important;
      line-height:1.35!important;
      color:#717a90!important;
    }
    .seo-wizard-body .wizard-keyword-btn{
      min-height:44px!important;
      max-height:86px!important;
      overflow:auto!important;
    }
    .wizard-manual-tag-row.active{
      display:grid!important;
    }
    .wizard-manual-tag-row{
      grid-template-columns:minmax(0,1fr) auto!important;
      gap:8px!important;
      padding:0 18px 12px!important;
    }
    .wizard-manual-tag-row input{
      height:40px!important;
      border-radius:13px!important;
      border:1px solid #dfe3ee!important;
      padding:0 12px!important;
      font-size:13px!important;
    }
    @media(max-width:1280px){
      .seo-wizard-body .wizard-keyword-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
      }
    }
    @media(max-width:760px){
      .seo-wizard-body .wizard-keyword-grid{
        grid-template-columns:1fr!important;
      }
    }

  
    /* Total Search Volume card matched with keyword cards */
    .seo-wizard-body .wizard-volume-inline-card{
      grid-column:auto!important;
      min-height:0!important;
      padding:12px!important;
      border-radius:16px!important;
      border:1px solid #e6e8f2!important;
      background:#fff!important;
      box-shadow:0 6px 16px rgba(30,32,45,.03)!important;
      display:block!important;
    }
    .seo-wizard-body .wizard-volume-inline-card .wizard-keyword-label{
      margin-bottom:7px!important;
      font-size:12px!important;
      line-height:1.2!important;
      color:#3f4452!important;
      font-weight:900!important;
      display:flex!important;
      justify-content:space-between!important;
      gap:10px!important;
    }
    .seo-wizard-body .wizard-volume-inline-card .wizard-keyword-label span:last-child{
      font-size:11px!important;
      color:#717a90!important;
      font-weight:800!important;
    }
    .seo-wizard-body .wizard-volume-card-body{
      min-height:44px!important;
      border:1px solid #dfe3ee!important;
      border-radius:13px!important;
      background:#fbfcff!important;
      padding:8px 10px!important;
      display:flex!important;
      flex-direction:column!important;
      justify-content:center!important;
    }
    .seo-wizard-body .wizard-volume-inline-card .wizard-volume-value{
      font-size:22px!important;
      line-height:1!important;
      margin:0!important;
      color:#7567f4!important;
      font-weight:900!important;
      letter-spacing:-.03em!important;
    }
    .seo-wizard-body .wizard-volume-inline-card .wizard-volume-sub{
      margin-top:6px!important;
      font-size:11px!important;
      line-height:1.35!important;
      color:#717a90!important;
    }

  
    /* Total Search Volume helper text below the field */
    .seo-wizard-body .wizard-volume-inline-card .wizard-volume-card-body{
      min-height:44px!important;
      border:1px solid #dfe3ee!important;
      border-radius:13px!important;
      background:#fbfcff!important;
      padding:8px 10px!important;
      display:flex!important;
      align-items:center!important;
    }
    .seo-wizard-body .wizard-volume-inline-card .wizard-volume-value{
      font-size:22px!important;
      line-height:1!important;
      margin:0!important;
      color:#7567f4!important;
      font-weight:900!important;
      letter-spacing:-.03em!important;
    }
    .seo-wizard-body .wizard-volume-inline-card .wizard-volume-sub{
      margin-top:6px!important;
      font-size:11px!important;
      line-height:1.35!important;
      color:#717a90!important;
      border:0!important;
      background:transparent!important;
      padding:0!important;
    }

  
    /* Edit setup completed steps: current completed step stays green */
    .seo-wizard-step.done,
    .seo-wizard-step.done.active{
      background:#f0fff7!important;
      border-color:#ccefe0!important;
    }
    .seo-wizard-step.done .seo-wizard-step-num,
    .seo-wizard-step.done.active .seo-wizard-step-num{
      background:#e7f8ef!important;
      color:#057a55!important;
    }

  
    /* Edit setup ListingSEOID is editable */
    .seo-wizard-body #wListingSEOID{
      background:#fff!important;
      cursor:text!important;
    }

  
    /* Product Details field manager */
    .product-field-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
    .product-field-list{display:grid;gap:12px;margin-top:14px}
    .product-field-card{border:1px solid var(--line);background:#fff;border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(30,32,45,.035)}
    .product-field-card.disabled{opacity:.72;background:#fbfcff}
    .product-field-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
    .product-field-title{font-size:15px;font-weight:900;color:var(--ink);letter-spacing:-.01em}
    .product-field-meta{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.35}
    .product-field-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
    .product-field-form-grid{display:grid;grid-template-columns:1.2fr 1fr .8fr .8fr;gap:10px;align-items:end}
    .product-field-form-grid .settings-field label{font-size:12px}
    .product-field-options{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}
    .product-field-option-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
    .product-field-type-pill{display:inline-flex;align-items:center;background:#f1efff;color:#5546e8;border:1px solid #dedafe;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900}
    .product-field-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900}
    .product-field-status-pill.active{background:#e9fbf2;color:#057a55;border:1px solid #ccefe0}
    .product-field-status-pill.disabled{background:#fff7e8;color:#a86100;border:1px solid #f3dfb8}
    .settings-chip-list.compact{margin-top:8px;gap:6px}
    .product-details-grid-dynamic{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
    .product-details-grid-dynamic .editor-field{min-width:0}
    @media(max-width:1100px){
      .product-field-form-grid,.product-details-grid-dynamic{grid-template-columns:1fr}
      .product-field-card-head,.product-field-toolbar{display:block}
      .product-field-actions{justify-content:flex-start;margin-top:10px}
    }

  
    /* Product Details screen — popup edit UI */
    .pd-hero{
      display:grid;
      grid-template-columns:minmax(0,1fr) 160px 160px 160px;
      gap:14px;
      margin-bottom:16px;
    }
    .pd-hero-main{
      background:#fff;
      border:1px solid var(--line);
      border-radius:22px;
      padding:20px;
      box-shadow:0 10px 28px rgba(30,32,45,.045);
    }
    .pd-eyebrow{
      font-size:11px;
      text-transform:uppercase;
      letter-spacing:.08em;
      color:#717a90;
      font-weight:900;
      margin-bottom:8px;
    }
    .pd-title{
      font-size:28px;
      font-weight:900;
      color:#171923;
      letter-spacing:-.04em;
      margin:0;
    }
    .pd-sub{
      font-size:13px;
      color:#657084;
      line-height:1.5;
      margin-top:8px;
      max-width:760px;
    }
    .pd-kpi{
      background:#fff;
      border:1px solid var(--line);
      border-radius:20px;
      padding:16px;
      box-shadow:0 10px 28px rgba(30,32,45,.035);
      display:flex;
      flex-direction:column;
      justify-content:center;
      min-height:112px;
    }
    .pd-kpi-label{
      font-size:11px;
      text-transform:uppercase;
      letter-spacing:.07em;
      color:#717a90;
      font-weight:900;
    }
    .pd-kpi-value{
      font-size:28px;
      font-weight:900;
      letter-spacing:-.04em;
      margin-top:8px;
      color:#171923;
    }
    .pd-shell{
      background:#fff;
      border:1px solid var(--line);
      border-radius:22px;
      padding:16px;
      box-shadow:0 14px 34px rgba(30,32,45,.05);
    }
    .pd-toolbar{
      display:flex;
      justify-content:space-between;
      gap:14px;
      align-items:flex-start;
      padding:4px 4px 14px;
      border-bottom:1px solid #edf0f6;
      margin-bottom:12px;
    }
    .pd-toolbar-title{
      font-size:18px;
      font-weight:900;
      color:#171923;
      letter-spacing:-.02em;
    }
    .pd-toolbar-sub{
      font-size:13px;
      color:#657084;
      line-height:1.45;
      margin-top:5px;
    }
    .pd-toolbar-actions{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      justify-content:flex-end;
    }
    .pd-table-wrap{
      overflow:auto;
      border:1px solid #edf0f6;
      border-radius:18px;
      background:#fff;
    }
    .pd-table{
      width:100%;
      border-collapse:separate;
      border-spacing:0;
      min-width:940px;
    }
    .pd-table th{
      background:#f8f7ff;
      color:#4f46a8;
      font-size:11px;
      font-weight:900;
      text-align:left;
      text-transform:uppercase;
      letter-spacing:.06em;
      padding:13px 14px;
      border-bottom:1px solid #e4e0ff;
    }
    .pd-table td{
      padding:14px;
      border-bottom:1px solid #edf0f6;
      vertical-align:middle;
      background:#fff;
    }
    .pd-table tr:last-child td{
      border-bottom:0;
    }
    .pd-table tr:hover td{
      background:#fbfaff;
    }
    .pd-field-name{
      font-size:14px;
      font-weight:900;
      color:#171923;
      line-height:1.25;
    }
    .pd-field-key{
      font-size:12px;
      color:#717a90;
      margin-top:4px;
    }
    .pd-pill{
      display:inline-flex;
      align-items:center;
      border-radius:999px;
      padding:6px 9px;
      font-size:11px;
      font-weight:900;
      line-height:1;
      white-space:nowrap;
      border:1px solid transparent;
    }
    .pd-pill.type{background:#f1efff;color:#5546e8;border-color:#dedafe}
    .pd-pill.active{background:#e9fbf2;color:#057a55;border-color:#ccefe0}
    .pd-pill.disabled{background:#fff7e8;color:#a86100;border-color:#f3dfb8}
    .pd-pill.required{background:#eef8ff;color:#0969a8;border-color:#cfeeff}
    .pd-pill.system{background:#f6f7fb;color:#596174;border-color:#e3e6ef}
    .pd-options-preview{
      display:flex;
      flex-wrap:wrap;
      gap:6px;
      max-width:300px;
    }
    .pd-option-chip{
      display:inline-flex;
      align-items:center;
      border-radius:999px;
      background:#f6f7fb;
      color:#485064;
      border:1px solid #e1e5ef;
      padding:5px 8px;
      font-size:11px;
      font-weight:800;
    }
    .pd-row-actions{
      display:flex;
      gap:7px;
      justify-content:flex-end;
      white-space:nowrap;
    }
    .pd-icon-btn{
      width:34px;
      height:34px;
      border:1px solid #e1e5ef;
      background:#fff;
      color:#485064;
      border-radius:11px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
      font-weight:900;
      transition:.18s ease;
    }
    .pd-icon-btn:hover{background:#f6f7fb;border-color:#cfd5e6}
    .pd-icon-btn.primary{background:#f1efff;color:#5546e8;border-color:#dedafe}
    .pd-icon-btn.danger{background:#fff0f1;color:#d9343f;border-color:#ffd7da}
    .pd-icon-btn:disabled{opacity:.45;cursor:not-allowed}
    .pd-empty{
      padding:26px;
      text-align:center;
      color:#717a90;
      font-weight:800;
    }
    .pd-savebar{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      margin-top:14px;
      padding:14px 4px 0;
    }
    .pd-modal .modal{
      max-width:780px;
      width:min(780px,calc(100vw - 34px));
      padding:0;
      overflow:hidden;
      border-radius:22px;
    }
    .pd-modal-head{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:14px;
      padding:20px 22px;
      border-bottom:1px solid #edf0f6;
      background:linear-gradient(135deg,#fff 0%,#fbfaff 100%);
    }
    .pd-modal-title{
      font-size:20px;
      font-weight:900;
      color:#171923;
      letter-spacing:-.025em;
    }
    .pd-modal-sub{
      font-size:13px;
      color:#657084;
      margin-top:5px;
      line-height:1.4;
    }
    .pd-modal-body{
      padding:20px 22px;
      display:grid;
      gap:14px;
    }
    .pd-modal-grid{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px;
    }
    .pd-modal-field label{
      display:block;
      font-size:12px;
      font-weight:900;
      color:#3f4452;
      margin-bottom:7px;
    }
    .pd-modal-field input,
    .pd-modal-field select{
      width:100%;
      height:44px;
      border:1px solid #dfe3ee;
      border-radius:14px;
      padding:0 12px;
      font-size:14px;
      background:#fff;
      outline:none;
    }
    .pd-modal-field input:focus,
    .pd-modal-field select:focus{
      border-color:#7567f4;
      box-shadow:0 0 0 3px rgba(117,103,244,.12);
    }
    .pd-modal-note{
      border:1px solid #edf0f6;
      background:#fbfcff;
      border-radius:14px;
      padding:10px 12px;
      font-size:12px;
      color:#657084;
      line-height:1.45;
    }
    .pd-option-manager{
      border:1px solid #edf0f6;
      background:#fbfcff;
      border-radius:16px;
      padding:12px;
    }
    .pd-option-add{
      display:grid;
      grid-template-columns:minmax(0,1fr) auto;
      gap:8px;
      margin-bottom:10px;
    }
    .pd-option-add input{
      height:40px;
      border:1px solid #dfe3ee;
      border-radius:13px;
      padding:0 12px;
      background:#fff;
    }
    .pd-option-list{
      display:flex;
      flex-wrap:wrap;
      gap:7px;
    }
    .pd-option-list .settings-chip{
      margin:0;
    }
    .pd-modal-foot{
      display:flex;
      justify-content:flex-end;
      gap:10px;
      padding:16px 22px;
      border-top:1px solid #edf0f6;
      background:#fbfcff;
    }
    @media(max-width:1100px){
      .pd-hero{grid-template-columns:1fr 1fr}
      .pd-hero-main{grid-column:1/-1}
    }
    @media(max-width:760px){
      .pd-hero,.pd-modal-grid{grid-template-columns:1fr}
      .pd-toolbar,.pd-savebar{display:block}
      .pd-toolbar-actions,.pd-savebar .settings-actions{justify-content:flex-start;margin-top:12px}
    }

  
    /* SEO Sections screen */
    .seo-section-preview{
      display:flex;
      flex-direction:column;
      gap:4px;
      max-width:320px;
    }
    .seo-section-preview .field{
      font-size:12px;
      color:#171923;
      font-weight:850;
    }
    .seo-section-preview .prompt{
      font-size:11px;
      color:#717a90;
    }

  
    /* Description Sections data-safe delete/disabled behavior */
    .desc-usage-lock{
      display:inline-flex;
      align-items:center;
      gap:5px;
      border:1px solid #e3e6ef;
      background:#f6f7fb;
      color:#596174;
      border-radius:999px;
      padding:5px 8px;
      font-size:11px;
      font-weight:900;
      white-space:nowrap;
    }
    .icon-action.locked{
      opacity:.45;
      cursor:not-allowed;
      background:#f6f7fb;
      color:#717a90;
    }
    .desc-safety-note{
      border-left:4px solid #7567f4;
      background:#f3f1ff;
      border-radius:14px;
      padding:12px 14px;
      font-size:13px;
      color:#485064;
      line-height:1.45;
      margin:0 0 14px;
    }

  
    /* SEO Sections screen aligned with Description Sections UI */
    .seo-section-kpi-grid{
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      gap:12px;
      margin-bottom:14px;
    }
    .seo-section-table-shell{
      border:1px solid #e5e7f2;
      border-radius:18px;
      overflow:hidden;
      background:#fff;
    }
    .seo-section-row-actions{
      display:flex;
      align-items:center;
      gap:8px;
    }
    .seo-section-drag-btn{
      width:34px;
      height:34px;
      border:1px solid #e5e7f2;
      border-radius:12px;
      background:#fff;
      color:#6d63ef;
      display:inline-flex;
      align-items:center;
      justify-content:center;
    }
    .seo-section-modal .modal.wide{
      max-width:820px;
    }
    @media(max-width:900px){
      .seo-section-kpi-grid{grid-template-columns:1fr 1fr}
    }

  
    /* Product Details drag handle fix */
    #productFieldRows .drag-handle{
      cursor:grab;
    }
    #productFieldRows .drag-handle:active{
      cursor:grabbing;
    }

  
    /* Listing Editor prompt availability controls */
    .editor-prompt-actions{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      align-items:center;
      margin-top:12px;
    }
    .prompt-missing-chip{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:8px 10px;
      border:1px solid #ffd5d9;
      background:#fff2f3;
      color:#c92d39;
      border-radius:999px;
      font-size:12px;
      font-weight:900;
      line-height:1;
    }
    .prompt-missing-chip button{
      border:0;
      background:transparent;
      color:#7c3aed;
      font-weight:900;
      cursor:pointer;
      padding:0;
      text-decoration:underline;
    }
    .prompt-copy-btn{
      border:1px solid #dedafe;
      background:#f4f2ff;
      color:#4f46e5;
      border-radius:10px;
      padding:8px 10px;
      font-size:12px;
      font-weight:900;
      cursor:pointer;
    }
    .prompt-copy-btn:hover{
      background:#ede9ff;
    }

    /* V225 — Listing Editor prompt viewer */
    .prompt-view-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:6px;
      min-height:28px;
      padding:6px 9px;
      border:1px solid #dfe3ec;
      background:#fff;
      color:#596174;
      border-radius:9px;
      font-size:11px;
      font-weight:600;
      line-height:1.2;
      cursor:pointer;
      box-shadow:none;
      transition:background .15s ease,border-color .15s ease,color .15s ease;
    }
    .prompt-view-btn:hover{
      background:#f7f6ff;
      border-color:#d3cdfc;
      color:#5b4ded;
    }
    .prompt-view-btn:focus-visible{
      outline:0;
      box-shadow:0 0 0 3px rgba(117,103,244,.14);
    }
    .prompt-view-btn svg{
      width:14px;
      height:14px;
      display:block;
      flex:0 0 auto;
    }
    .listing-prompt-view-modal{
      width:min(980px,calc(100vw - 32px));
      max-width:980px;
      max-height:min(820px,calc(100vh - 40px));
      overflow:hidden;
      display:flex;
      flex-direction:column;
    }
    .listing-prompt-view-modal .modal-head{
      flex:0 0 auto;
      padding:20px 22px;
      border-bottom:1px solid #eceef4;
      background:linear-gradient(180deg,#fff 0%,#fbfbfe 100%);
    }
    .listing-prompt-view-heading{
      display:flex;
      align-items:center;
      gap:12px;
      min-width:0;
    }
    .listing-prompt-view-icon{
      width:40px;
      height:40px;
      border-radius:13px;
      display:grid;
      place-items:center;
      background:#f0edff;
      color:#6557eb;
      border:1px solid #ddd8ff;
      flex:0 0 auto;
    }
    .listing-prompt-view-icon svg{width:20px;height:20px;display:block}
    .listing-prompt-view-title{
      font-size:18px;
      font-weight:700;
      color:#202431;
      line-height:1.25;
      letter-spacing:-.015em;
    }
    .listing-prompt-view-sub{
      margin-top:3px;
      color:#7b8495;
      font-size:12px;
      line-height:1.4;
    }
    .listing-prompt-view-content{
      flex:1 1 auto;
      overflow:auto;
      padding:20px 22px!important;
      background:#f7f8fb;
    }
    .listing-prompt-context{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom:14px;
      padding:13px 14px;
      border:1px solid #e3e6ef;
      border-radius:14px;
      background:#fff;
    }
    .listing-prompt-context-label{
      font-size:11px;
      font-weight:700;
      color:#81899a;
      text-transform:uppercase;
      letter-spacing:.055em;
    }
    .listing-prompt-context-value{
      margin-top:4px;
      font-size:14px;
      font-weight:650;
      color:#252a36;
      line-height:1.35;
    }
    .listing-prompt-context-target{
      flex:0 0 auto;
      max-width:46%;
      padding:6px 9px;
      border-radius:999px;
      background:#f2f0ff;
      color:#5d50dc;
      font-size:11px;
      font-weight:650;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .listing-prompt-view-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:14px;
    }
    .listing-prompt-view-card{
      min-width:0;
      border:1px solid #e2e5ed;
      border-radius:16px;
      background:#fff;
      overflow:hidden;
      box-shadow:0 10px 26px rgba(31,35,48,.045);
    }
    .listing-prompt-view-card.generate{border-top:3px solid #7567f4}
    .listing-prompt-view-card.fix{border-top:3px solid #d99314}
    .listing-prompt-view-card-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:10px;
      padding:14px 15px 12px;
      border-bottom:1px solid #eceef4;
      background:#fcfcfe;
    }
    .listing-prompt-action-badge{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:5px 8px;
      border-radius:999px;
      font-size:10.5px;
      font-weight:700;
      line-height:1;
    }
    .listing-prompt-action-badge.generate{background:#eeecff;color:#5b4ded}
    .listing-prompt-action-badge.fix{background:#fff4dc;color:#a46800}
    .listing-prompt-action-badge:before{
      content:'';
      width:6px;
      height:6px;
      border-radius:999px;
      background:currentColor;
    }
    .listing-prompt-card-name{
      margin-top:8px;
      font-size:14px;
      font-weight:700;
      color:#272c38;
      line-height:1.35;
      overflow-wrap:anywhere;
    }
    .listing-prompt-card-status{
      flex:0 0 auto;
      padding:5px 8px;
      border-radius:999px;
      background:#ecfaf4;
      color:#087653;
      font-size:10px;
      font-weight:700;
      line-height:1;
    }
    .listing-prompt-card-body{padding:14px 15px 15px}
    .listing-prompt-template-label{
      font-size:10.5px;
      color:#858d9d;
      font-weight:700;
      text-transform:uppercase;
      letter-spacing:.05em;
      margin-bottom:8px;
    }
    .listing-prompt-template-text{
      min-height:210px;
      max-height:330px;
      overflow:auto;
      white-space:pre-wrap;
      overflow-wrap:anywhere;
      padding:12px;
      border:1px solid #e6e8ef;
      border-radius:12px;
      background:#fafbfe;
      color:#394050;
      font-size:12px;
      line-height:1.55;
    }
    .listing-prompt-card-actions{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap:8px;
      margin-top:11px;
    }
    .listing-prompt-copy-template{
      display:inline-flex;
      align-items:center;
      gap:6px;
      min-height:32px;
      padding:7px 10px;
      border:1px solid #dedafe;
      border-radius:9px;
      background:#f7f6ff;
      color:#5b4ded;
      font-size:11px;
      font-weight:650;
      cursor:pointer;
    }
    .listing-prompt-copy-template:hover{background:#efecff}
    .listing-prompt-copy-template svg{width:13px;height:13px;display:block}
    .listing-prompt-final-loading{
      min-height:210px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:10px;
      padding:20px;
      border:1px solid #e6e8ef;
      border-radius:12px;
      background:#fafbfe;
      color:#747d8e;
      text-align:center;
    }
    .listing-prompt-final-spinner{
      width:24px;
      height:24px;
      border:2px solid #dedafc;
      border-top-color:#6b5ce7;
      border-radius:999px;
      animation:listingPromptSpin .8s linear infinite;
    }
    @keyframes listingPromptSpin{to{transform:rotate(360deg)}}
    .listing-prompt-final-loading-title{font-size:12px;font-weight:700;color:#4d5566}
    .listing-prompt-final-loading-copy{font-size:11px;line-height:1.45;max-width:250px}
    .listing-prompt-final-error{
      min-height:210px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      padding:20px;
      border:1px solid #f1d7da;
      border-radius:12px;
      background:#fff8f9;
      color:#9d4750;
      text-align:center;
    }
    .listing-prompt-final-error strong{font-size:12px}
    .listing-prompt-final-error span{margin-top:6px;font-size:11px;line-height:1.45;max-width:280px}
    .listing-prompt-empty{
      min-height:282px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      text-align:center;
      padding:24px;
      color:#7d8596;
    }
    .listing-prompt-empty-icon{
      width:42px;
      height:42px;
      border-radius:13px;
      display:grid;
      place-items:center;
      background:#f2f3f7;
      color:#a1a8b6;
      margin-bottom:10px;
    }
    .listing-prompt-empty-icon svg{width:19px;height:19px;display:block}
    .listing-prompt-empty-title{font-size:13px;font-weight:700;color:#525968}
    .listing-prompt-empty-copy{margin-top:5px;font-size:11.5px;line-height:1.45;max-width:260px}
    .listing-prompt-view-modal .modal-foot{
      flex:0 0 auto;
      padding:14px 22px;
      border-top:1px solid #e8eaf1;
      background:#fff;
    }
    @media(max-width:760px){
      .listing-prompt-view-modal{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}
      .listing-prompt-view-modal .modal-head{padding:16px}
      .listing-prompt-view-content{padding:14px!important}
      .listing-prompt-context{align-items:flex-start;flex-direction:column}
      .listing-prompt-context-target{max-width:100%;white-space:normal}
      .listing-prompt-view-grid{grid-template-columns:1fr}
      .listing-prompt-template-text{min-height:170px;max-height:280px}
      .listing-prompt-view-modal .modal-foot{padding:12px 16px}
    }

  
    /* Listing Editor Description/Image prompt availability controls */
    .image-prompt-group{
      display:flex;
      flex-direction:column;
      gap:7px;
      padding:8px;
      border:1px solid #edf0f6;
      border-radius:12px;
      background:#fbfcff;
      margin-bottom:8px;
    }
    .image-prompt-group-title{
      font-size:11px;
      font-weight:900;
      text-transform:uppercase;
      letter-spacing:.05em;
      color:#657084;
    }

  
    /* Listing Editor — fixed description section note */
    .fixed-section-note{
      display:inline-flex;
      align-items:center;
      gap:6px;
      margin-top:10px;
      padding:8px 10px;
      border:1px solid #fde7b7;
      background:#fff8e8;
      color:#8a5a00;
      border-radius:12px;
      font-size:12px;
      font-weight:850;
      line-height:1.35;
    }
    .fixed-section-note:before{
      content:'i';
      width:16px;
      height:16px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:#ffd76a;
      color:#5f3b00;
      font-size:11px;
      font-weight:900;
      flex:0 0 auto;
    }

    /* Listing Editor — Image Alt Text + File Names compact UI */
    .image-seo-section{
      padding:0;
      overflow:hidden;
    }
    .image-seo-section .editor-section-head{
      align-items:center;
      margin:0;
      padding:18px 18px 14px;
      border-bottom:1px solid #edf0f6;
      background:linear-gradient(180deg,#ffffff 0%,#fdfdff 100%);
    }
    .image-seo-section .image-count-badge{
      display:inline-flex;
      align-items:center;
      gap:7px;
      padding:7px 11px;
      background:#f2f0ff;
      border:1px solid #e3dfff;
      color:#5546e8;
      white-space:nowrap;
    }
    .image-seo-section .image-count-badge:before{
      content:'';
      width:7px;
      height:7px;
      border-radius:999px;
      background:#7567f4;
      box-shadow:0 0 0 4px rgba(117,103,244,.11);
    }
    .image-seo-section .image-prompt-note{
      display:flex;
      align-items:flex-start;
      gap:10px;
      margin:14px 18px 0;
      padding:11px 13px;
      border:1px solid #e6e3fb;
      border-radius:13px;
      background:#f8f7ff;
      color:#596174;
      font-size:12px;
      line-height:1.45;
    }
    .image-seo-section .image-prompt-note:before{
      content:'i';
      display:inline-flex;
      align-items:center;
      justify-content:center;
      flex:0 0 auto;
      width:18px;
      height:18px;
      margin-top:1px;
      border-radius:999px;
      background:#7567f4;
      color:#fff;
      font-size:11px;
      font-weight:800;
    }
    .image-seo-section .image-prompt-note strong{
      color:#2f3340;
      font-weight:800;
    }
    .image-seo-list{
      display:grid;
      gap:12px;
      padding:14px 18px 18px;
    }
    .editor-image-row.image-seo-row{
      display:block!important;
      margin:0;
      padding:0;
      overflow:hidden;
      border:1px solid #e4e7f0;
      border-radius:17px;
      background:#fff;
      box-shadow:0 4px 14px rgba(30,32,45,.025);
    }
    .image-seo-row-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:11px 13px;
      border-bottom:1px solid #edf0f6;
      background:#fbfbfe;
    }
    .image-seo-row-title{
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
    }
    .image-seo-row .editor-image-num{
      width:32px;
      height:32px;
      border-radius:10px;
      flex:0 0 auto;
      font-size:12px;
    }
    .image-slot-title{
      color:#20232d;
      font-size:13px;
      font-weight:900;
      letter-spacing:-.01em;
    }
    .image-slot-subtitle{
      margin-top:2px;
      color:#7a8396;
      font-size:11px;
      line-height:1.35;
    }
    .image-slot-badge{
      display:inline-flex;
      align-items:center;
      padding:5px 8px;
      border:1px solid #e5e7f0;
      border-radius:999px;
      background:#fff;
      color:#70798b;
      font-size:10px;
      font-weight:800;
      letter-spacing:.05em;
      text-transform:uppercase;
      white-space:nowrap;
    }
    .image-seo-field-grid{
      display:grid;
      grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr);
      gap:12px;
      padding:13px;
      align-items:stretch;
    }
    .image-seo-field-card{
      display:flex;
      flex-direction:column;
      min-width:0;
      padding:13px;
      border:1px solid #e7eaf2;
      border-radius:14px;
      background:#fff;
    }
    .image-field-title-row{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:10px;
      margin-bottom:9px;
    }
    .image-field-title-row label{
      display:block;
      margin:0!important;
      color:#303542;
      font-size:12px;
      font-weight:900;
    }
    .image-field-target{
      margin-top:3px;
      color:#7b8496;
      font-size:10.5px;
      font-weight:600;
      line-height:1.35;
    }
    .image-field-kind{
      display:inline-flex;
      align-items:center;
      padding:4px 7px;
      border:1px solid #e7e4ff;
      border-radius:999px;
      background:#f7f6ff;
      color:#6256d9;
      font-size:9.5px;
      font-weight:800;
      white-space:nowrap;
    }
    .image-seo-field-card textarea{
      min-height:94px;
      resize:vertical;
    }
    .image-seo-field-card input{
      min-height:42px;
    }
    .image-file-helper{
      margin-top:7px;
      color:#858da0;
      font-size:10.5px;
      line-height:1.4;
    }
    .image-prompt-inline{
      display:flex;
      align-items:center;
      gap:9px;
      flex-wrap:wrap;
      margin-top:auto;
      padding-top:11px;
      border-top:1px solid #eef0f5;
    }
    .image-seo-field-card textarea + .image-prompt-inline,
    .image-file-helper + .image-prompt-inline{
      margin-top:11px;
    }
    .image-prompt-inline-label{
      flex:0 0 auto;
      color:#747d90;
      font-size:10px;
      font-weight:900;
      letter-spacing:.05em;
      text-transform:uppercase;
    }
    .image-prompt-inline .editor-prompt-actions{
      flex:1 1 220px;
      margin:0!important;
      gap:6px!important;
    }
    .image-prompt-inline .prompt-missing-chip{
      width:auto!important;
      justify-content:flex-start!important;
      border-color:#f3dfb7!important;
      background:#fffaf0!important;
      color:#8a620f!important;
    }
    .image-prompt-inline .prompt-missing-chip button{
      color:#5b4ded!important;
    }
    .image-prompt-inline .btn.small,
    .image-prompt-inline .prompt-copy-btn,
    .image-prompt-inline .prompt-missing-chip{
      min-height:27px!important;
      padding:6px 8px!important;
      font-size:10.5px!important;
    }
    @media(max-width:1180px){
      .image-seo-field-grid{
        grid-template-columns:1fr;
      }
    }
    @media(max-width:700px){
      .image-seo-section .editor-section-head,
      .image-seo-row-head,
      .image-field-title-row{
        align-items:flex-start;
      }
      .image-seo-section .editor-section-head{
        display:flex;
      }
      .image-seo-section .image-prompt-note{
        margin:12px 12px 0;
      }
      .image-seo-list{
        padding:12px;
      }
      .image-seo-field-grid{
        padding:10px;
      }
      .image-slot-badge,
      .image-field-kind{
        display:none;
      }
      .image-prompt-inline{
        align-items:flex-start;
        flex-direction:column;
      }
      .image-prompt-inline .editor-prompt-actions{
        flex-basis:auto;
        width:100%;
      }
    }

  
    /* Listing Editor prompt chips — softer, smaller, consistent */
    .editor-prompt-actions{
      gap:6px!important;
      align-items:center!important;
    }
    .editor-prompt-actions .btn.small,
    .editor-prompt-actions .prompt-copy-btn,
    .editor-prompt-actions .prompt-missing-chip,
    .fixed-section-note{
      font-size:11px!important;
      font-weight:500!important;
      line-height:1.25!important;
      letter-spacing:0!important;
      border-radius:9px!important;
      min-height:28px!important;
      padding:6px 9px!important;
    }
    .editor-prompt-actions .btn.small{
      box-shadow:none!important;
    }
    .editor-prompt-actions .prompt-copy-btn{
      background:#f7f6ff!important;
      color:#5b4ded!important;
      border:1px solid #dedafe!important;
      box-shadow:none!important;
    }
    .editor-prompt-actions .prompt-missing-chip{
      background:#fff7f7!important;
      color:#c23a42!important;
      border:1px solid #ffd9dd!important;
      gap:5px!important;
    }
    .editor-prompt-actions .prompt-missing-chip button{
      font-size:11px!important;
      font-weight:500!important;
      color:#5b4ded!important;
      text-decoration:none!important;
      border-bottom:1px solid currentColor!important;
      line-height:1.1!important;
    }
    .fixed-section-note{
      display:inline-flex!important;
      background:#fff9ec!important;
      color:#8a6500!important;
      border:1px solid #ffe2a8!important;
      gap:6px!important;
    }
    .fixed-section-note:before{
      width:14px!important;
      height:14px!important;
      font-size:9px!important;
      font-weight:500!important;
      background:#ffd86a!important;
      color:#6a4a00!important;
    }
    .image-prompt-card .prompt-copy-btn,
    .image-prompt-card .btn.small,
    .image-prompt-card .prompt-missing-chip{
      font-size:10.5px!important;
      font-weight:500!important;
      padding:6px 8px!important;
      min-height:26px!important;
    }
    .image-prompt-card .prompt-missing-chip{
      justify-content:flex-start!important;
      width:auto!important;
      display:inline-flex!important;
    }

  
    /* Hide Fix prompt controls until the field has a value */
    .fix-prompt-control{
      display:inline-flex;
      flex-wrap:wrap;
      gap:6px;
      align-items:center;
    }
    .fix-prompt-control.hidden{
      display:none!important;
    }

  
    /* Listing editor unsaved changes popup */
    .listing-unsaved-modal{
      width:min(530px,100%);
      border:1px solid #e5e7f0;
      border-radius:22px;
      background:#fff;
      box-shadow:0 30px 90px rgba(24,27,40,.24);
      overflow:hidden;
    }
    .listing-unsaved-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:16px;
      padding:20px 20px 16px;
      border-bottom:1px solid #edf0f6;
      background:linear-gradient(180deg,#fff 0%,#fbfaff 100%);
    }
    .listing-unsaved-heading{
      display:flex;
      align-items:flex-start;
      gap:13px;
      min-width:0;
    }
    .listing-unsaved-icon{
      width:42px;
      height:42px;
      border-radius:14px;
      background:#f1efff;
      border:1px solid #dedafe;
      color:#5b4ded;
      display:flex;
      align-items:center;
      justify-content:center;
      flex:0 0 auto;
      box-shadow:0 8px 18px rgba(117,103,244,.12);
    }
    .listing-unsaved-icon svg{
      width:20px;
      height:20px;
    }
    .listing-unsaved-eyebrow{
      color:#7567f4;
      font-size:10px;
      font-weight:900;
      letter-spacing:.08em;
      text-transform:uppercase;
      margin-bottom:4px;
    }
    .listing-unsaved-title{
      margin:0;
      color:#171923;
      font-size:19px;
      line-height:1.25;
      font-weight:900;
      letter-spacing:-.025em;
    }
    .listing-unsaved-close{
      width:34px;
      height:34px;
      border:1px solid #e5e8f0;
      background:#f6f7fa;
      color:#697286;
      border-radius:11px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
      font-size:19px;
      line-height:1;
      flex:0 0 auto;
    }
    .listing-unsaved-close:hover{
      background:#eceef5;
      color:#343a49;
    }
    .listing-unsaved-body{
      padding:18px 20px;
    }
    .listing-unsaved-copy{
      margin:0;
      color:#4f586c;
      font-size:13px;
      line-height:1.6;
    }
    .listing-unsaved-summary{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:9px;
      margin-top:15px;
    }
    .listing-unsaved-summary-item{
      border:1px solid #eaedf4;
      background:#fbfcff;
      border-radius:13px;
      padding:11px 12px;
    }
    .listing-unsaved-summary-label{
      color:#8a92a4;
      font-size:9px;
      font-weight:900;
      letter-spacing:.07em;
      text-transform:uppercase;
      margin-bottom:4px;
    }
    .listing-unsaved-summary-value{
      color:#252a37;
      font-size:12px;
      font-weight:850;
      line-height:1.35;
    }
    .listing-unsaved-foot{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:14px 20px 18px;
      border-top:1px solid #edf0f6;
      background:#fcfcfe;
    }
    .listing-unsaved-secondary-actions,
    .listing-unsaved-primary-actions{
      display:flex;
      align-items:center;
      gap:8px;
      flex-wrap:wrap;
    }
    .listing-unsaved-btn{
      min-height:38px;
      border-radius:12px!important;
      padding:9px 13px!important;
      margin:0!important;
      font-size:12px!important;
      font-weight:850!important;
      box-shadow:none!important;
    }
    .listing-unsaved-btn.stay{
      background:#f2f4f8!important;
      color:#4d5567!important;
      border:1px solid #e5e8f0!important;
    }
    .listing-unsaved-btn.discard{
      background:#fff!important;
      color:#c63b48!important;
      border:1px solid #f2cfd4!important;
    }
    .listing-unsaved-btn.discard:hover{
      background:#fff2f4!important;
    }
    .listing-unsaved-btn.save{
      background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%)!important;
      color:#fff!important;
      border:1px solid transparent!important;
      box-shadow:0 9px 20px rgba(117,103,244,.20)!important;
    }
    @media(max-width:620px){
      .listing-unsaved-summary{grid-template-columns:1fr}
      .listing-unsaved-foot{align-items:stretch;flex-direction:column-reverse}
      .listing-unsaved-secondary-actions,.listing-unsaved-primary-actions{width:100%}
      .listing-unsaved-btn{flex:1}
    }

  
    /* Multi-account selector */
    .account-select-wrap{
      max-width:1120px;
      margin:0 auto;
      display:grid;
      gap:18px;
    }
    .account-hero-card{
      background:linear-gradient(135deg,#ffffff 0%,#f7f5ff 100%);
      border:1px solid #e6e8f2;
      border-radius:24px;
      padding:24px;
      box-shadow:0 18px 42px rgba(30,32,45,.07);
      display:flex;
      justify-content:space-between;
      gap:18px;
      align-items:flex-start;
    }
    .account-eyebrow{
      font-size:11px;
      text-transform:uppercase;
      letter-spacing:.08em;
      color:#717a90;
      font-weight:900;
      margin-bottom:8px;
    }
    .account-title{
      font-size:30px;
      font-weight:900;
      letter-spacing:-.04em;
      color:#171923;
    }
    .account-sub{
      margin-top:8px;
      color:#657084;
      font-size:14px;
      line-height:1.5;
      max-width:720px;
    }
    .account-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:14px;
    }
    .account-card{
      background:#fff;
      border:1px solid #e6e8f2;
      border-radius:22px;
      padding:18px;
      box-shadow:0 12px 32px rgba(30,32,45,.045);
      cursor:pointer;
      transition:.18s ease;
    }
    .account-card:hover{
      border-color:#7567f4;
      transform:translateY(-1px);
      box-shadow:0 18px 38px rgba(30,32,45,.08);
    }
    .account-card.active{
      border-color:#7567f4;
      background:#fbfaff;
    }
    .account-card-top{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:12px;
    }
    .account-mark{
      width:42px;
      height:42px;
      border-radius:15px;
      background:#7567f4;
      color:#fff;
      display:flex;
      align-items:center;
      justify-content:center;
      font-weight:900;
      font-size:13px;
      flex:0 0 auto;
    }
    .account-card-title{
      font-size:16px;
      font-weight:900;
      color:#171923;
      letter-spacing:-.02em;
      margin-top:14px;
    }
    .account-card-meta{
      font-size:12px;
      color:#657084;
      margin-top:6px;
      line-height:1.45;
    }
    .account-linked-pill{
      display:inline-flex;
      align-items:center;
      border:1px solid #dedafe;
      background:#f4f2ff;
      color:#5b4ded;
      border-radius:999px;
      padding:5px 8px;
      font-size:11px;
      font-weight:800;
      margin-top:12px;
    }
    .account-create-card{
      border:1px dashed #c9c5ff;
      background:#fbfaff;
      display:flex;
      flex-direction:column;
      justify-content:center;
      align-items:center;
      text-align:center;
      min-height:180px;
    }
    .account-plus{
      width:44px;
      height:44px;
      border-radius:15px;
      background:#f1efff;
      color:#5b4ded;
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:22px;
      font-weight:900;
      margin-bottom:10px;
    }
    .account-modal-grid{
      display:grid;
      gap:14px;
    }
    .account-modal-field label{
      display:block;
      font-size:12px;
      font-weight:900;
      color:#3f4452;
      margin-bottom:7px;
    }
    .account-modal-field input,
    .account-modal-field select{
      width:100%;
      height:44px;
      border:1px solid #dfe3ee;
      border-radius:14px;
      padding:0 12px;
      font-size:14px;
      background:#fff;
      outline:none;
    }
    .account-modal-note{
      border:1px solid #edf0f6;
      background:#fbfcff;
      border-radius:14px;
      padding:11px 12px;
      font-size:12px;
      color:#657084;
      line-height:1.45;
    }
    .account-switch-mini{
      display:inline-flex;
      align-items:center;
      gap:6px;
      border:1px solid #dedafe;
      background:#f4f2ff;
      color:#5b4ded;
      padding:5px 8px;
      border-radius:999px;
      font-size:11px;
      font-weight:800;
      margin-left:8px;
      cursor:pointer;
    }
    @media(max-width:1000px){
      .account-grid{grid-template-columns:1fr 1fr}
      .account-hero-card{display:block}
      .account-hero-card .btn{margin-top:14px}
    }
    @media(max-width:680px){
      .account-grid{grid-template-columns:1fr}
    }

  
    .account-link-disabled-note{
      font-size:11px;
      color:#a15c00;
      background:#fff8e8;
      border:1px solid #ffe2a8;
      border-radius:10px;
      padding:8px 10px;
      line-height:1.4;
      margin-top:8px;
    }

  
    /* Speed update: background SEO validation does not block the editor */
    .seo-panel[data-validating="1"]{
      opacity:.82;
    }

  
    /* V115 — refined sidebar and top bar */
    .side{
      width:270px!important;
      background:linear-gradient(180deg,#1d1b2c 0%,#171622 100%)!important;
      border-right:1px solid rgba(255,255,255,.08)!important;
      box-shadow:18px 0 46px rgba(20,18,34,.14)!important;
    }
    .side-inner{
      padding:18px 16px!important;
    }
    .brand-card{
      min-height:auto!important;
      padding:14px!important;
      border-radius:18px!important;
      background:rgba(255,255,255,.055)!important;
      border:1px solid rgba(255,255,255,.10)!important;
      box-shadow:0 14px 28px rgba(0,0,0,.16)!important;
    }
    .brand-mark{
      width:44px!important;
      height:44px!important;
      border-radius:14px!important;
      box-shadow:0 14px 24px rgba(117,103,244,.24)!important;
    }
    .brand{
      font-size:17px!important;
      letter-spacing:-.03em!important;
    }
    .version{
      font-size:12px!important;
      opacity:.78!important;
      margin-top:2px!important;
    }
    .workspace-card{
      padding:11px 13px!important;
      border-radius:16px!important;
      background:rgba(117,103,244,.12)!important;
      border:1px solid rgba(255,255,255,.09)!important;
      margin-top:14px!important;
    }
    .workspace-label{
      font-size:10px!important;
      letter-spacing:.08em!important;
      color:#a9a5c7!important;
    }
    .workspace-name{
      font-size:12px!important;
      margin-top:4px!important;
      color:#f4f2ff!important;
    }
    .nav-section-label{
      margin:22px 6px 10px!important;
      font-size:10px!important;
      letter-spacing:.1em!important;
      color:#908ba8!important;
    }
    .nav{
      gap:5px!important;
    }
    .nav button{
      min-height:44px!important;
      padding:10px 12px!important;
      border-radius:14px!important;
      color:#c9c6da!important;
      border:1px solid transparent!important;
      background:transparent!important;
      font-size:13px!important;
      font-weight:750!important;
      transition:.16s ease!important;
    }
    .nav button:hover{
      background:rgba(255,255,255,.055)!important;
      color:#fff!important;
      transform:translateX(2px)!important;
    }
    .nav button.active{
      background:linear-gradient(135deg,rgba(117,103,244,.28),rgba(117,103,244,.16))!important;
      border-color:rgba(117,103,244,.75)!important;
      color:#fff!important;
      box-shadow:0 12px 28px rgba(117,103,244,.18)!important;
    }
    .nav-ico{
      width:28px!important;
      height:28px!important;
      border-radius:10px!important;
      background:rgba(255,255,255,.075)!important;
      color:#d8d5ff!important;
      font-size:12px!important;
    }
    .nav button.active .nav-ico{
      background:#7567f4!important;
      color:#fff!important;
      box-shadow:0 10px 18px rgba(117,103,244,.28)!important;
    }
    .sidebar-footer-note{
      display:flex;
      align-items:flex-start;
      gap:10px;
      border-top:1px solid rgba(255,255,255,.08);
      padding:14px 4px 0;
      margin-top:16px;
      color:#a9a5c7;
    }
    .sidebar-footer-dot{
      width:9px;
      height:9px;
      border-radius:999px;
      background:#7567f4;
      box-shadow:0 0 0 5px rgba(117,103,244,.14);
      margin-top:5px;
      flex:0 0 auto;
    }
    .sidebar-footer-title{
      color:#f4f2ff;
      font-size:12px;
      font-weight:800;
    }
    .sidebar-footer-sub{
      color:#908ba8;
      font-size:11px;
      line-height:1.35;
      margin-top:2px;
    }
    .main{
      margin-left:270px!important;
      padding:0 24px 24px!important;
    }
    .top{
      position:sticky!important;
      top:0!important;
      z-index:40!important;
      margin:0 -24px 24px!important;
      padding:14px 24px!important;
      min-height:78px!important;
      background:rgba(250,250,252,.93)!important;
      backdrop-filter:blur(20px) saturate(150%)!important;
      -webkit-backdrop-filter:blur(20px) saturate(150%)!important;
      border-bottom:1px solid rgba(220,223,233,.9)!important;
      display:flex!important;
      align-items:center!important;
      justify-content:space-between!important;
      gap:18px!important;
      box-shadow:0 12px 30px rgba(30,32,45,.045)!important;
    }
    .top-title-block{
      min-width:180px;
      flex:1 1 auto;
    }
    .top-breadcrumb{
      display:flex;
      align-items:center;
      gap:7px;
      min-width:0;
      margin-bottom:4px;
      color:#8b93a5;
      font-size:10px;
      font-weight:800;
      letter-spacing:.075em;
      text-transform:uppercase;
      white-space:nowrap;
      overflow:hidden;
    }
    .top-breadcrumb span{
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .top-breadcrumb-dot{
      width:4px;
      height:4px;
      border-radius:999px;
      background:#b9bfd0;
      flex:0 0 auto;
    }
    .top h1{
      margin:0!important;
      font-size:25px!important;
      line-height:1.08!important;
      letter-spacing:-.045em!important;
      color:#171a24!important;
      font-weight:850!important;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .top-right{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap:9px;
      min-width:0;
      flex:0 1 auto;
    }
    .top-account-switch{
      min-width:190px;
      max-width:250px;
      height:46px;
      border:1px solid #dedbea;
      background:linear-gradient(180deg,#fff 0%,#fbfaff 100%);
      color:#262b38;
      border-radius:15px;
      padding:5px 10px 5px 6px;
      display:flex;
      align-items:center;
      gap:9px;
      cursor:pointer;
      box-shadow:0 9px 22px rgba(30,32,45,.05);
      transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
      text-align:left;
    }
    .top-account-switch:hover{
      border-color:#a79ff8;
      box-shadow:0 12px 28px rgba(117,103,244,.13);
      transform:translateY(-1px);
    }
    .top-account-switch:focus-visible,
    .top-action-btn:focus-visible,
    .top-logout-btn:focus-visible{
      outline:0;
      box-shadow:0 0 0 3px rgba(117,103,244,.18),0 10px 24px rgba(30,32,45,.07);
    }
    .top-account-avatar{
      width:34px;
      height:34px;
      border-radius:11px;
      background:linear-gradient(135deg,#8175f7 0%,#594be8 100%);
      color:#fff;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      flex:0 0 auto;
      font-size:11px;
      font-weight:900;
      letter-spacing:.02em;
      box-shadow:0 8px 18px rgba(117,103,244,.23);
    }
    .top-account-copy{
      min-width:0;
      flex:1 1 auto;
      display:flex;
      flex-direction:column;
      gap:2px;
    }
    .top-account-copy small{
      color:#8a92a4;
      font-size:9px;
      font-weight:800;
      line-height:1;
      letter-spacing:.065em;
      text-transform:uppercase;
    }
    .top-account-copy strong{
      color:#252a37;
      font-size:12px;
      font-weight:850;
      line-height:1.15;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .top-account-chevron{
      width:15px;
      height:15px;
      color:#8b93a5;
      flex:0 0 auto;
    }
    .top-actions{
      display:flex;
      align-items:center;
      gap:5px;
      padding:4px;
      border:1px solid #e1e4ed;
      background:rgba(255,255,255,.76);
      border-radius:14px;
      box-shadow:0 8px 20px rgba(30,32,45,.035);
    }
    .top-action-btn{
      height:36px;
      border:0;
      background:transparent;
      color:#515a6d;
      border-radius:10px;
      padding:0 9px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:7px;
      cursor:pointer;
      font-size:11.5px;
      font-weight:800;
      transition:background .15s ease,color .15s ease,transform .15s ease;
      white-space:nowrap;
    }
    .top-action-btn svg{
      width:16px;
      height:16px;
      display:block;
      flex:0 0 auto;
    }
    .top-action-btn:hover{
      background:#f1efff;
      color:#5b4ded;
      transform:translateY(-1px);
    }
    .top-action-btn.warning-action{
      color:#936113;
    }
    .top-action-btn.warning-action:hover{
      background:#fff5e3;
      color:#a76000;
    }
    .loading .top-action-btn.refresh-action svg{
      animation:topbar-spin .8s linear infinite;
    }
    @keyframes topbar-spin{to{transform:rotate(360deg)}}
    .top-profile{
      height:46px;
      min-width:150px;
      max-width:220px;
      display:flex;
      align-items:center;
      gap:9px;
      padding:5px 10px 5px 6px;
      border:1px solid #e1e4ed;
      border-radius:15px;
      background:#fff;
      box-shadow:0 9px 22px rgba(30,32,45,.045);
      overflow:hidden;
    }
    .top-profile-avatar{
      width:34px;
      height:34px;
      border-radius:11px;
      background:#f0eefc;
      color:#5b4ded;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      flex:0 0 auto;
      font-size:11px;
      font-weight:900;
      letter-spacing:.02em;
    }
    .top-profile-copy{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap:3px;
    }
    .top-profile-copy strong{
      color:#293043;
      font-size:11.5px;
      font-weight:850;
      line-height:1;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .top-profile-copy small{
      color:#848da0;
      font-size:10px;
      font-weight:650;
      line-height:1;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .top-logout-btn{
      width:40px;
      height:40px;
      border:1px solid #f0d9dc;
      background:#fff7f8;
      color:#c43a45;
      border-radius:13px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
      flex:0 0 auto;
      transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease;
    }
    .top-logout-btn svg{
      width:17px;
      height:17px;
    }
    .top-logout-btn:hover{
      background:#ffedef;
      border-color:#efbdc2;
      transform:translateY(-1px);
      box-shadow:0 10px 22px rgba(196,58,69,.11);
    }
    @media(max-width:1320px){
      .top-action-btn b{
        display:none;
      }
      .top-action-btn{
        width:36px;
        padding:0;
      }
      .top-actions{
        gap:3px;
      }
    }
    @media(max-width:1120px){
      .top-account-switch{
        min-width:150px;
        max-width:185px;
      }
      .top-profile{
        min-width:46px;
        width:46px;
        padding:5px;
      }
      .top-profile-copy{
        display:none;
      }
    }
    @media(max-width:900px){
      .top{
        align-items:flex-start!important;
      }
      .top-right{
        flex-wrap:wrap;
      }
      .top-account-switch{
        min-width:46px;
        width:46px;
        padding:5px;
      }
      .top-account-copy,
      .top-account-chevron{
        display:none;
      }
    }
    @media(max-width:760px){
      .side{
        width:230px!important;
      }
      .main{
        margin-left:230px!important;
      }
      .top{
        display:grid!important;
        grid-template-columns:1fr!important;
        padding:13px 18px!important;
        margin:0 -24px 18px!important;
      }
      .top-right{
        width:100%;
        justify-content:flex-start;
      }
      .top-title-block{
        min-width:0;
      }
      .top-actions{
        margin-left:auto;
      }
    }

    /* V126 — modern collapsible sidebar */
    #appView{position:relative}
    #appView .side{
      width:286px!important;
      overflow:hidden!important;
      background:linear-gradient(180deg,#17162a 0%,#11121f 100%)!important;
      border-right:1px solid rgba(255,255,255,.08)!important;
      box-shadow:20px 0 48px rgba(17,18,31,.18)!important;
    }
    #appView .side:before{
      content:'';
      position:absolute;
      inset:0 0 auto 0;
      height:170px;
      background:radial-gradient(circle at 18% 12%,rgba(117,103,244,.24),transparent 42%), radial-gradient(circle at 90% 10%,rgba(145,130,255,.12),transparent 34%);
      pointer-events:none;
    }
    #appView .side-inner{
      position:relative;
      z-index:1;
      padding:18px 14px 16px!important;
      gap:14px;
    }
    #appView .brand-card{
      display:flex;
      align-items:center;
      gap:12px;
      min-height:74px!important;
      padding:14px!important;
      border-radius:22px!important;
      background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.035))!important;
      border:1px solid rgba(255,255,255,.08)!important;
      box-shadow:0 18px 34px rgba(0,0,0,.18)!important;
    }
    #appView .brand-copy{min-width:0}
    #appView .brand-mark{
      width:48px!important;
      height:48px!important;
      border-radius:16px!important;
      background:linear-gradient(135deg,#8a7cff 0%,#6758ee 100%)!important;
      box-shadow:0 16px 28px rgba(117,103,244,.28)!important;
    }
    #appView .brand{font-size:18px!important;color:#fff!important}
    #appView .version{font-size:11px!important;color:#b8b3d5!important;letter-spacing:.08em!important;text-transform:uppercase}
    #appView .workspace-card{
      border-radius:18px!important;
      background:rgba(255,255,255,.04)!important;
      border:1px solid rgba(255,255,255,.07)!important;
      box-shadow:none!important;
      margin-top:0!important;
    }
    #appView .workspace-label{color:#918ba9!important}
    #appView .workspace-name{font-size:12px!important;color:#f5f3ff!important}
    #appView .nav-section-label{margin:6px 6px 4px!important;color:#837d9f!important}
    #appView .nav{display:flex;flex-direction:column;gap:7px}
    #appView .nav button{
      position:relative;
      overflow:hidden;
      display:flex;
      align-items:center;
      gap:12px;
      min-height:48px!important;
      padding:10px 12px!important;
      border-radius:16px!important;
      color:#cfcce0!important;
      background:transparent!important;
      font-weight:800!important;
      transform:none!important;
    }
    #appView .nav button:before{
      content:'';
      position:absolute;
      inset:0;
      background:linear-gradient(90deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
      opacity:0;
      transition:opacity .18s ease;
      pointer-events:none;
    }
    #appView .nav button:hover:before{opacity:1}
    #appView .nav button:hover{background:transparent!important;color:#fff!important;transform:none!important}
    #appView .nav button.active{
      background:linear-gradient(90deg,rgba(117,103,244,.34),rgba(117,103,244,.14))!important;
      border-color:rgba(129,116,247,.42)!important;
      box-shadow:0 14px 26px rgba(117,103,244,.14)!important;
    }
    #appView .nav button.active:after{
      content:'';
      position:absolute;
      left:0;
      top:10px;
      bottom:10px;
      width:3px;
      border-radius:999px;
      background:#8e81ff;
      box-shadow:0 0 0 4px rgba(142,129,255,.12);
    }
    #appView .nav-ico{
      width:30px!important;
      height:30px!important;
      border-radius:11px!important;
      background:rgba(255,255,255,.055)!important;
      color:#d9d6ee!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      flex:0 0 auto;
      transition:background .18s ease,color .18s ease,box-shadow .18s ease;
    }
    #appView .nav-ico svg{width:16px;height:16px;display:block}
    #appView .nav button.active .nav-ico{
      background:linear-gradient(135deg,#8b7cff 0%,#6b5cf0 100%)!important;
      color:#fff!important;
      box-shadow:0 10px 20px rgba(117,103,244,.26)!important;
    }
    #appView .nav-label{min-width:0;flex:1 1 auto;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    #appView .sidebar-tail{
      display:flex;
      flex-direction:column;
      gap:12px;
      padding-top:12px;
      margin-top:14px;
      border-top:1px solid rgba(255,255,255,.07);
    }
    #appView .sidebar-toggle-btn{
      width:100%;
      min-height:46px;
      border:1px solid rgba(255,255,255,.09);
      background:rgba(255,255,255,.04);
      color:#efecff;
      border-radius:16px;
      padding:10px 12px;
      display:flex;
      align-items:center;
      gap:12px;
      cursor:pointer;
      font-size:13px;
      font-weight:800;
      text-align:left;
      transition:background .18s ease,border-color .18s ease,transform .18s ease;
    }
    #appView .sidebar-toggle-btn:hover{background:rgba(117,103,244,.14);border-color:rgba(129,116,247,.34);transform:translateY(-1px)}
    #appView .sidebar-toggle-ico{
      width:30px;
      height:30px;
      border-radius:11px;
      background:rgba(255,255,255,.055);
      display:inline-flex;
      align-items:center;
      justify-content:center;
      flex:0 0 auto;
    }
    #appView .sidebar-toggle-ico svg{width:16px;height:16px;display:block;transition:transform .18s ease}
    #appView .sidebar-toggle-btn.is-collapsed .sidebar-toggle-ico svg{transform:rotate(180deg)}
    #appView .sidebar-footer-note{
      margin-top:0!important;
      padding:0 2px!important;
      border-top:0!important;
      gap:10px;
      color:#9f9ab8;
    }
    #appView .sidebar-footer-copy{min-width:0}
    #appView .sidebar-footer-dot{background:#8a7cff;box-shadow:0 0 0 5px rgba(138,124,255,.14)}
    #appView .main{margin-left:286px!important;transition:margin-left .18s ease}
    #appView.sidebar-collapsed .side{width:94px!important}
    #appView.sidebar-collapsed .main{margin-left:94px!important}
    #appView.sidebar-collapsed .brand-copy,
    #appView.sidebar-collapsed .workspace-card,
    #appView.sidebar-collapsed .nav-section-label,
    #appView.sidebar-collapsed .nav-label,
    #appView.sidebar-collapsed #sidebarToggleLabel,
    #appView.sidebar-collapsed .sidebar-footer-copy{display:none!important}
    #appView.sidebar-collapsed .brand-card{justify-content:center;padding:12px!important;min-height:72px!important}
    #appView.sidebar-collapsed .nav button,
    #appView.sidebar-collapsed .sidebar-toggle-btn{justify-content:center;padding-left:10px!important;padding-right:10px!important}
    #appView.sidebar-collapsed .sidebar-footer-note{justify-content:center}
    #appView.sidebar-collapsed .side-inner{padding-left:12px!important;padding-right:12px!important}
    @media(max-width:900px){
      #appView.sidebar-collapsed .side{width:100%!important}
      #appView.sidebar-collapsed .main{margin-left:0!important}
      #appView.sidebar-collapsed .brand-copy,
      #appView.sidebar-collapsed .workspace-card,
      #appView.sidebar-collapsed .nav-section-label,
      #appView.sidebar-collapsed .nav-label,
      #appView.sidebar-collapsed #sidebarToggleLabel,
      #appView.sidebar-collapsed .sidebar-footer-copy{display:block!important}
      #appView.sidebar-collapsed .brand-card,
      #appView.sidebar-collapsed .nav button,
      #appView.sidebar-collapsed .sidebar-toggle-btn{justify-content:flex-start}
      #appView.sidebar-collapsed .side-inner{padding-left:16px!important;padding-right:16px!important}
      #appView.sidebar-collapsed .sidebar-footer-note{justify-content:flex-start}
    }

  

    /* Product Details + Keywords/Tags — compact industry-level summaries */
    .editor-setup-grid.product-details-row{
      grid-template-columns:repeat(6,minmax(0,1fr));
      gap:8px;
      align-items:stretch;
    }
    .editor-setup-grid.keywords-row{
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:8px;
      align-items:stretch;
    }
    .editor-setup-grid.keywords-row .editor-keyword-card-summary.tags{
      grid-column:1 / -1;
    }
    .editor-summary-cell.compact.setup-data-card{
      position:relative;
      min-width:0;
      min-height:82px;
      padding:12px;
      overflow:visible;
      border:1px solid #e8ebf3;
      border-radius:13px;
      background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
      box-shadow:0 4px 12px rgba(30,32,45,.025);
      display:flex;
      flex-direction:column;
      justify-content:flex-start;
      align-items:stretch;
      transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
    }
    .editor-summary-cell.compact.setup-data-card:hover{
      transform:translateY(-1px);
      border-color:#dedafe;
      box-shadow:0 8px 18px rgba(30,32,45,.055);
    }
    .editor-summary-cell.compact.setup-data-card:before{
      content:'';
      position:absolute;
      top:0;
      left:12px;
      right:12px;
      height:2px;
      border-radius:0 0 999px 999px;
      background:linear-gradient(90deg,var(--accent),var(--accent-dark));
      opacity:.72;
    }
    .editor-summary-label-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:8px;
      min-width:0;
      margin-bottom:6px;
    }
    .editor-summary-label-row .editor-summary-label{
      margin:0;
      min-width:0;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .editor-summary-count{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:22px;
      height:22px;
      padding:0 7px;
      border:1px solid #dedafe;
      border-radius:999px;
      background:#f1efff;
      color:#5546e8;
      font-size:10px;
      font-weight:900;
      line-height:1;
      flex:0 0 auto;
    }
    .editor-summary-data.compact-value{
      min-width:0;
      font-size:12.5px;
      line-height:1.38;
    }
    .editor-summary-data.compact-value.single-line{
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .editor-summary-data.compact-value.chip-scroll{
      max-height:none;
      overflow:visible;
      padding-right:0;
    }
    .editor-summary-data.compact-value .editor-summary-chips{
      gap:5px;
    }
    .editor-summary-data.compact-value .editor-summary-chip{
      max-width:100%;
      padding:5px 8px;
      font-size:11px;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .editor-product-card .editor-summary-data.compact-value .editor-summary-chip{
      background:#f5f4ff;
      border-color:#e2defb;
      color:#5546e8;
    }
    .editor-keyword-card-summary:before{
      background:linear-gradient(90deg,var(--accent),var(--accent-dark));
    }
    .editor-setup-card.compact.setup-section-card .editor-setup-head{
      margin-bottom:10px;
    }
    .editor-setup-card.compact.setup-section-card .editor-setup-locked{
      margin-top:9px;
      padding:8px 10px;
      border-style:dashed;
      background:#fafaff;
      font-size:11.5px;
    }
    @media(max-width:1180px){
      .editor-setup-grid.product-details-row{grid-template-columns:repeat(3,minmax(0,1fr))}
      .editor-setup-grid.keywords-row{grid-template-columns:repeat(2,minmax(0,1fr))}
      .editor-setup-grid.keywords-row .editor-keyword-card-summary.tags{grid-column:1 / -1}
    }
    @media(max-width:720px){
      .editor-setup-grid.product-details-row,
      .editor-setup-grid.keywords-row{grid-template-columns:1fr}
      .editor-summary-cell.compact.setup-data-card{min-height:auto}
      .editor-summary-data.compact-value.chip-scroll{max-height:none}
    }


    /* Unified Listing Editor summary cards — v121 */
    .editor-setup-grid.four,
    .editor-setup-grid.product-details-row,
    .editor-setup-grid.keywords-row{
      align-items:stretch;
    }
    .editor-setup-card .editor-summary-cell.compact.setup-data-card{
      justify-content:flex-start!important;
      align-items:stretch!important;
      overflow:visible!important;
    }
    .editor-setup-card .editor-summary-cell.compact.setup-data-card:before{
      background:linear-gradient(90deg,var(--accent),var(--accent-dark))!important;
    }
    .editor-setup-card .editor-summary-data.compact-value.chip-scroll{
      max-height:none!important;
      overflow:visible!important;
      padding-right:0!important;
    }
    .editor-setup-card .editor-summary-label,
    .editor-setup-card .editor-summary-label-row{
      flex:0 0 auto;
    }
    .editor-setup-card .editor-summary-data{
      align-self:stretch;
    }
    .editor-setup-card .editor-summary-chips{
      align-content:flex-start;
      align-items:flex-start;
    }
    .editor-setup-grid.keywords-row .editor-keyword-card-summary.tags{
      grid-column:1 / -1;
      min-height:auto;
    }
    @media(max-width:720px){
      .editor-setup-grid.keywords-row .editor-keyword-card-summary.tags{
        grid-column:auto;
      }
    }



    /* Listing Editor — unified compact section system v122 */
    .editor-setup-card,
    .editor-card.workflow-section,
    .seo-feedback .editor-keyword-summary,
    .seo-feedback .seo-panel{
      border:1px solid #e7eaf2!important;
      border-radius:18px!important;
      background:#fff!important;
      box-shadow:0 8px 22px rgba(30,32,45,.04)!important;
    }

    /* Remove decorative purple top borders from summary cards */
    .editor-setup-card .editor-summary-cell.compact.setup-data-card:before,
    .editor-summary-cell.compact.setup-data-card:before,
    .editor-keyword-card-summary:before{
      display:none!important;
      content:none!important;
    }
    .editor-setup-card .editor-summary-cell.compact.setup-data-card{
      border-color:#e8ebf2!important;
      background:#fff!important;
      box-shadow:none!important;
      transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
    }
    .editor-setup-card .editor-summary-cell.compact.setup-data-card:hover{
      transform:none!important;
      border-color:#d8dce8!important;
      background:#fcfcfe!important;
      box-shadow:0 5px 14px rgba(30,32,45,.035)!important;
    }

    /* Shared section shell: SEO, Description and Images */
    .editor-card.workflow-section{
      padding:0!important;
      overflow:hidden!important;
    }
    .workflow-section .editor-section-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:14px;
      margin:0!important;
      padding:14px 16px!important;
      border-bottom:1px solid #edf0f5;
      background:#fff!important;
    }
    .workflow-section .editor-section-title{
      font-size:16px!important;
      line-height:1.25;
      letter-spacing:-.015em!important;
    }
    .workflow-section .editor-section-sub{
      margin-top:3px!important;
      color:#757e90!important;
      line-height:1.4!important;
    }
    .editor-section-count{
      display:inline-flex;
      align-items:center;
      gap:7px;
      min-height:30px;
      padding:6px 10px;
      border:1px solid #e2defb;
      border-radius:999px;
      background:#f6f4ff;
      color:#5b4ded;
      font-size:11px;
      font-weight:850;
      white-space:nowrap;
    }
    .editor-section-count:before{
      content:'';
      width:6px;
      height:6px;
      border-radius:999px;
      background:#7567f4;
    }
    .workflow-section-body{
      padding:12px 14px 14px;
    }
    .workflow-fields-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
      align-items:start;
    }
    .workflow-section .editor-description-card{
      min-width:0;
      margin:0!important;
      padding:12px!important;
      border:1px solid #e8ebf2!important;
      border-radius:14px!important;
      background:#fff!important;
      box-shadow:none!important;
    }
    .workflow-section .editor-description-card:hover{
      border-color:#daddea!important;
    }
    .workflow-field-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin-bottom:8px;
    }
    .workflow-field-head label,
    .workflow-section .editor-description-card > label{
      margin:0!important;
      color:#303542!important;
      font-size:12px!important;
      font-weight:850!important;
      line-height:1.3;
    }
    .workflow-section .editor-description-card label:before{
      display:none!important;
      content:none!important;
    }
    .workflow-field-badge{
      display:inline-flex;
      align-items:center;
      padding:4px 7px;
      border:1px solid #e6e8ef;
      border-radius:999px;
      background:#f8f9fb;
      color:#70798b;
      font-size:9.5px;
      font-weight:800;
      letter-spacing:.045em;
      text-transform:uppercase;
      white-space:nowrap;
    }
    .workflow-field-badge.dynamic{
      border-color:#e2defb;
      background:#f7f5ff;
      color:#5b4ded;
    }
    .workflow-section .editor-field input,
    .workflow-section .editor-field textarea,
    .workflow-section .editor-description-card > textarea{
      width:100%;
      border:1px solid #dfe3eb!important;
      border-radius:11px!important;
      background:#fff!important;
      box-shadow:none!important;
    }
    .workflow-section .editor-field input{
      min-height:40px;
      padding:9px 11px;
    }
    .workflow-section .editor-field textarea,
    .workflow-section .editor-description-card > textarea{
      min-height:82px!important;
      padding:10px 11px!important;
      line-height:1.5!important;
      resize:vertical;
    }
    .workflow-section .editor-field input:focus,
    .workflow-section .editor-field textarea:focus,
    .workflow-section .editor-description-card > textarea:focus{
      border-color:#9388f7!important;
      box-shadow:0 0 0 3px rgba(117,103,244,.10)!important;
    }
    .workflow-section .editor-prompt-actions{
      margin-top:9px!important;
      padding-top:9px;
      border-top:1px solid #eef0f4;
    }
    .workflow-section .fixed-section-note{
      margin-top:9px!important;
    }

    /* Bring the already-improved image section into the same shell */
    .image-seo-section.workflow-section .editor-section-head{
      padding:14px 16px!important;
      background:#fff!important;
    }
    .image-seo-section.workflow-section .image-count-badge{
      min-height:30px!important;
      padding:6px 10px!important;
      border:1px solid #e2defb!important;
      background:#f6f4ff!important;
      color:#5b4ded!important;
      font-size:11px!important;
    }
    .image-seo-section.workflow-section .image-count-badge:before{
      width:6px!important;
      height:6px!important;
      box-shadow:none!important;
    }
    .image-seo-section .image-prompt-note{
      margin:12px 14px 0!important;
      border-color:#e8e7f3!important;
      background:#faf9ff!important;
      border-radius:12px!important;
      padding:10px 12px!important;
    }
    .image-seo-list{
      gap:10px!important;
      padding:12px 14px 14px!important;
    }
    .editor-image-row.image-seo-row{
      border-radius:14px!important;
      border-color:#e8ebf2!important;
      box-shadow:none!important;
    }
    .image-seo-row-head{
      padding:10px 12px!important;
      background:#fcfcfe!important;
    }
    .image-seo-field-grid{
      gap:10px!important;
      padding:11px!important;
    }
    .image-seo-field-card{
      padding:12px!important;
      border-radius:13px!important;
      border-color:#e8ebf2!important;
    }

    /* Compact Total Search Volume metric */
    .seo-feedback .editor-keyword-summary.editor-metric-card{
      min-height:0!important;
      padding:14px!important;
      overflow:hidden;
      position:sticky;
      top:0;
      z-index:3;
      background:#fff;
    }
    .editor-metric-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:10px;
    }
    .editor-metric-icon{
      width:30px;
      height:30px;
      border:1px solid #e2defb;
      border-radius:10px;
      background:#f6f4ff;
      color:#5b4ded;
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:15px;
      font-weight:900;
      flex:0 0 auto;
      transition:all .18s ease;
    }
    .editor-metric-card.tone-low .editor-metric-icon{background:#fff1f3;border-color:#ffd4db;color:#dc3d53}
    .editor-metric-card.tone-medium .editor-metric-icon{background:#fff8e7;border-color:#f8e0a6;color:#c58a00}
    .editor-metric-card.tone-high .editor-metric-icon{background:#eefcf5;border-color:#caeddc;color:#0d9963}
    .editor-metric-value-row{
      display:flex;
      align-items:flex-end;
      gap:7px;
      margin-top:10px;
    }
    .seo-feedback .editor-metric-card .editor-summary-value{
      margin:0!important;
      color:#252833!important;
      font-size:30px!important;
      line-height:.95!important;
      letter-spacing:-.045em!important;
      transition:color .18s ease;
    }
    .seo-feedback .editor-metric-card .editor-summary-value.tone-low{color:#dc3d53!important}
    .seo-feedback .editor-metric-card .editor-summary-value.tone-medium{color:#c58a00!important}
    .seo-feedback .editor-metric-card .editor-summary-value.tone-high{color:#0d9963!important}
    .editor-metric-unit{
      padding-bottom:2px;
      color:#8a92a2;
      font-size:11px;
      font-weight:750;
    }
    .editor-metric-footer{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin-top:11px;
      padding-top:10px;
      border-top:1px solid #eef0f4;
    }
    .editor-metric-footer .editor-summary-sub{
      margin:0!important;
      font-size:11px!important;
    }
    .editor-metric-status{
      display:inline-flex;
      align-items:center;
      padding:4px 7px;
      border-radius:999px;
      background:#f2f4f8;
      color:#6f7787;
      font-size:10px;
      font-weight:850;
      white-space:nowrap;
    }
    .editor-metric-card.tone-low .editor-metric-status{background:#fff1f3;color:#dc3d53}
    .editor-metric-card.tone-medium .editor-metric-status{background:#fff8e7;color:#c58a00}
    .editor-metric-card.tone-high .editor-metric-status{background:#eefcf5;color:#0d9963}

    /* Compact SEO Score panel */
    .seo-feedback{
      top:94px!important;
      height:calc(100vh - 110px);
      min-height:0;
    }
    .editor-sidebar-stack{
      gap:12px!important;
      height:100%;
      min-height:0;
    }
    .seo-feedback .editor-keyword-summary.editor-metric-card{
      flex:0 0 auto;
    }
    .seo-feedback .seo-panel{
      padding:14px!important;
      flex:1 1 auto;
      min-height:0;
      max-height:none;
      overflow:hidden;
      display:flex;
      flex-direction:column;
      overscroll-behavior:contain;
    }
    .seo-score-static{
      flex:0 0 auto;
    }
    .seo-score-scroll{
      flex:1 1 auto;
      min-height:0;
      overflow:auto;
      overscroll-behavior:contain;
      padding-right:4px;
      margin-right:-4px;
      scrollbar-gutter:stable;
    }
    .seo-score-scroll::-webkit-scrollbar{width:8px}
    .seo-score-scroll::-webkit-scrollbar-thumb{background:#d7dbe6;border-radius:999px}
    .seo-score-scroll::-webkit-scrollbar-track{background:transparent}
    .seo-score-top{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }
    .seo-score-copy{
      min-width:0;
    }
    .seo-score-kicker{
      color:#717a90;
      font-size:10px;
      font-weight:900;
      letter-spacing:.07em;
      text-transform:uppercase;
    }
    .seo-score-title{
      margin-top:3px;
      font-size:17px!important;
    }
    .seo-score-sub{
      margin-top:3px!important;
    }
    .seo-feedback .seo-ring{
      width:68px!important;
      height:68px!important;
    }
    .seo-feedback .seo-ring:before{
      inset:7px!important;
    }
    .seo-feedback .seo-ring span{
      position:relative;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:1px;
      line-height:1;
    }
    .seo-feedback .seo-ring span strong{
      font-size:19px!important;
      font-weight:900;
      letter-spacing:-.035em;
    }
    .seo-feedback .seo-ring span small{
      color:#8a92a2;
      font-size:8px;
      font-weight:850;
      letter-spacing:.01em;
    }
    .seo-grade-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:8px;
      margin-top:10px;
    }
    .seo-progress{
      height:6px!important;
      margin:10px 0 12px!important;
    }
    .seo-mini-grid{
      gap:8px!important;
      margin-bottom:12px!important;
    }
    .seo-mini-card{
      padding:9px 10px!important;
      border-radius:12px!important;
      background:#fcfcfe!important;
    }
    .seo-mini-value{
      margin-top:3px!important;
      font-size:17px!important;
    }
    .seo-block-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin:12px 0 7px;
    }
    .seo-block-title{
      margin:0!important;
      font-size:13px!important;
    }
    .seo-block-count{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:23px;
      height:23px;
      padding:0 7px;
      border-radius:999px;
      background:#fff0f2;
      color:#c53a48;
      font-size:10px;
      font-weight:900;
    }
    .seo-issue-card,
    .seo-pass-card{
      border-left-width:3px!important;
      border-radius:11px!important;
      padding:9px 10px!important;
      margin:6px 0!important;
      font-size:12px!important;
      line-height:1.4!important;
    }
    .seo-rule-result-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:10px;
      margin-bottom:5px;
    }
    .seo-rule-result-copy{
      min-width:0;
    }
    .seo-rule-result-name{
      color:#171923;
      font-size:12px;
      font-weight:900;
      line-height:1.3;
    }
    .seo-rule-result-group{
      margin-top:2px;
      color:#7b8496;
      font-size:10px;
      font-weight:800;
      letter-spacing:.045em;
      text-transform:uppercase;
    }
    .seo-rule-points{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:48px;
      min-height:24px;
      padding:4px 8px;
      border-radius:999px;
      font-size:10px;
      font-weight:900;
      line-height:1;
      white-space:nowrap;
      flex:0 0 auto;
    }
    .seo-rule-points.failed{
      border:1px solid #ffd4dc;
      background:#fff;
      color:#d63b52;
    }
    .seo-rule-points.passed{
      border:1px solid #cdebdc;
      background:#fff;
      color:#078157;
    }
    .seo-rule-result-message{
      color:#4f5666;
      line-height:1.45;
    }
    .seo-points-summary{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin:-2px 0 12px;
      padding:8px 10px;
      border:1px solid #e8eaf1;
      border-radius:11px;
      background:#fafbfe;
      color:#717a90;
      font-size:11px;
      font-weight:750;
    }
    .seo-points-summary strong{
      color:#303542;
      font-size:12px;
      font-weight:900;
      white-space:nowrap;
    }
    .seo-mini-points{
      margin-top:2px;
      color:#8a92a2;
      font-size:10px;
      font-weight:800;
    }
    .seo-details summary{
      margin-top:9px!important;
      font-size:12px;
    }

    @media(max-width:1180px){
      .seo-feedback{
        top:auto!important;
        height:auto;
        min-height:0;
      }
      .editor-sidebar-stack{
        height:auto;
      }
      .seo-feedback .seo-panel{
        min-height:0;
        max-height:none;
        overflow:visible;
        display:block;
      }
      .seo-score-scroll{
        max-height:none;
        overflow:visible;
        padding-right:0;
        margin-right:0;
      }
      .seo-feedback .editor-keyword-summary.editor-metric-card{
        position:relative;
        top:auto;
      }
    }
    @media(max-width:900px){
      .workflow-fields-grid{
        grid-template-columns:1fr;
      }
    }
    @media(max-width:700px){
      .workflow-section .editor-section-head{
        align-items:flex-start;
      }
      .editor-section-count{
        min-height:27px;
        padding:5px 8px;
      }
      .workflow-section-body{
        padding:10px 11px 12px;
      }
      .image-seo-section .image-prompt-note{
        margin:10px 11px 0!important;
      }
      .image-seo-list{
        padding:10px 11px 12px!important;
      }
    }



    /* V127 — compact fixed-header / scroll-body / fixed-footer sidebar */
    #appView .side{
      width:248px!important;
      padding:0!important;
      overflow:hidden!important;
    }
    #appView .side-inner{
      height:100vh!important;
      min-height:0!important;
      padding:0!important;
      display:grid!important;
      grid-template-rows:auto minmax(0,1fr) auto!important;
      gap:0!important;
      overflow:hidden!important;
    }
    #appView .sidebar-brand-sticky{
      position:relative;
      z-index:4;
      padding:12px 12px 8px;
      background:linear-gradient(180deg,rgba(23,22,42,.99),rgba(23,22,42,.95));
      border-bottom:1px solid rgba(255,255,255,.055);
    }
    #appView .brand-card{
      min-height:58px!important;
      margin:0!important;
      padding:8px 10px!important;
      gap:10px!important;
      border-radius:16px!important;
      background:rgba(255,255,255,.045)!important;
      border-color:rgba(255,255,255,.07)!important;
      box-shadow:none!important;
    }
    #appView .brand-mark{
      width:38px!important;
      height:38px!important;
      border-radius:12px!important;
      font-size:11px!important;
      box-shadow:0 9px 20px rgba(117,103,244,.22)!important;
    }
    #appView .brand{
      font-size:15px!important;
      line-height:1.15!important;
      letter-spacing:-.025em!important;
    }
    #appView .version{
      margin-top:3px!important;
      font-size:9px!important;
      line-height:1!important;
      letter-spacing:.11em!important;
    }
    #appView .sidebar-account-name{
      max-width:150px;
      color:#aaa6c4!important;
      text-transform:none!important;
      letter-spacing:.02em!important;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    #appView .sidebar-scroll{
      min-height:0;
      overflow-y:auto;
      overflow-x:hidden;
      padding:8px 10px 12px;
      overscroll-behavior:contain;
      scrollbar-gutter:stable;
    }
    #appView .sidebar-scroll::-webkit-scrollbar{width:5px}
    #appView .sidebar-scroll::-webkit-scrollbar-track{background:transparent}
    #appView .sidebar-scroll::-webkit-scrollbar-thumb{
      background:rgba(155,145,215,.32);
      border-radius:999px;
    }
    #appView .sidebar-scroll{scrollbar-width:thin;scrollbar-color:rgba(155,145,215,.32) transparent}
    #appView .nav{
      gap:4px!important;
      padding:0!important;
    }
    #appView .nav button{
      min-height:40px!important;
      margin:0!important;
      padding:6px 8px!important;
      gap:9px!important;
      border-radius:12px!important;
      font-size:12px!important;
      line-height:1.2!important;
    }
    #appView .nav button.active:after{
      top:8px!important;
      bottom:8px!important;
      width:2px!important;
    }
    #appView .nav-ico{
      width:28px!important;
      height:28px!important;
      border-radius:9px!important;
    }
    #appView .nav-ico svg{width:15px!important;height:15px!important}
    #appView .sidebar-tail{
      position:relative;
      z-index:4;
      margin:0!important;
      padding:8px 10px 12px!important;
      border-top:1px solid rgba(255,255,255,.06)!important;
      background:linear-gradient(0deg,rgba(17,18,31,.995),rgba(17,18,31,.96));
    }
    #appView .sidebar-toggle-btn{
      min-height:40px!important;
      padding:6px 8px!important;
      gap:9px!important;
      border-radius:12px!important;
      font-size:12px!important;
    }
    #appView .sidebar-toggle-ico{
      width:28px!important;
      height:28px!important;
      border-radius:9px!important;
    }
    #appView .sidebar-toggle-ico svg{width:15px!important;height:15px!important}
    #appView .main{
      margin-left:248px!important;
    }
    #appView.sidebar-collapsed .side{
      width:74px!important;
    }
    #appView.sidebar-collapsed .main{
      margin-left:74px!important;
    }
    #appView.sidebar-collapsed .sidebar-brand-sticky{
      padding-left:8px!important;
      padding-right:8px!important;
    }
    #appView.sidebar-collapsed .brand-card{
      min-height:54px!important;
      padding:8px!important;
      border-radius:14px!important;
    }
    #appView.sidebar-collapsed .brand-mark{
      width:36px!important;
      height:36px!important;
    }
    #appView.sidebar-collapsed .sidebar-scroll{
      padding-left:8px!important;
      padding-right:8px!important;
      scrollbar-gutter:auto;
    }
    #appView.sidebar-collapsed .nav button,
    #appView.sidebar-collapsed .sidebar-toggle-btn{
      min-height:40px!important;
      padding:6px!important;
      border-radius:11px!important;
    }
    #appView.sidebar-collapsed .sidebar-tail{
      padding-left:8px!important;
      padding-right:8px!important;
    }
    #appView.sidebar-collapsed .brand-copy,
    #appView.sidebar-collapsed .nav-label,
    #appView.sidebar-collapsed #sidebarToggleLabel{
      display:none!important;
    }

    /* V129 — exact centering for collapsed sidebar */
    #appView.sidebar-collapsed .sidebar-brand-sticky,
    #appView.sidebar-collapsed .sidebar-scroll,
    #appView.sidebar-collapsed .sidebar-tail{
      padding-left:0!important;
      padding-right:0!important;
    }
    #appView.sidebar-collapsed .brand-card{
      width:52px!important;
      min-width:52px!important;
      max-width:52px!important;
      min-height:52px!important;
      margin:0 auto!important;
      padding:0!important;
      display:grid!important;
      place-items:center!important;
      gap:0!important;
    }
    #appView.sidebar-collapsed .brand-mark{
      width:36px!important;
      height:36px!important;
      margin:0!important;
    }
    #appView.sidebar-collapsed .nav{
      width:100%!important;
      display:flex!important;
      flex-direction:column!important;
      align-items:center!important;
      gap:6px!important;
    }
    #appView.sidebar-collapsed .nav button{
      width:46px!important;
      min-width:46px!important;
      max-width:46px!important;
      height:42px!important;
      min-height:42px!important;
      margin:0 auto!important;
      padding:0!important;
      display:grid!important;
      place-items:center!important;
      gap:0!important;
      text-align:center!important;
    }
    #appView.sidebar-collapsed .nav button.active:after{
      display:none!important;
    }
    #appView.sidebar-collapsed .nav-ico{
      width:28px!important;
      height:28px!important;
      margin:0!important;
      display:grid!important;
      place-items:center!important;
      flex:none!important;
    }
    #appView.sidebar-collapsed .sidebar-tail{
      display:flex!important;
      justify-content:center!important;
      align-items:center!important;
    }
    #appView.sidebar-collapsed .sidebar-toggle-btn{
      width:46px!important;
      min-width:46px!important;
      max-width:46px!important;
      height:42px!important;
      min-height:42px!important;
      margin:0 auto!important;
      padding:0!important;
      display:grid!important;
      place-items:center!important;
      gap:0!important;
    }
    #appView.sidebar-collapsed .sidebar-toggle-ico{
      width:28px!important;
      height:28px!important;
      margin:0!important;
      display:grid!important;
      place-items:center!important;
      flex:none!important;
    }
    @media(max-width:900px){
      #appView .side,
      #appView.sidebar-collapsed .side{
        width:100%!important;
        position:relative!important;
        inset:auto!important;
      }
      #appView .side-inner,
      #appView.sidebar-collapsed .side-inner{
        height:auto!important;
        min-height:0!important;
        display:block!important;
        overflow:visible!important;
      }
      #appView .sidebar-brand-sticky{
        position:sticky;
        top:0;
      }
      #appView .sidebar-scroll,
      #appView.sidebar-collapsed .sidebar-scroll{
        max-height:none!important;
        overflow:visible!important;
        padding:8px 12px!important;
      }
      #appView .sidebar-tail,
      #appView.sidebar-collapsed .sidebar-tail{
        position:static!important;
        padding:8px 12px 12px!important;
      }
      #appView .main,
      #appView.sidebar-collapsed .main{
        margin-left:0!important;
      }
      #appView.sidebar-collapsed .brand-copy,
      #appView.sidebar-collapsed .nav-label,
      #appView.sidebar-collapsed #sidebarToggleLabel{
        display:block!important;
      }
      #appView.sidebar-collapsed .brand-card,
      #appView.sidebar-collapsed .nav button,
      #appView.sidebar-collapsed .sidebar-toggle-btn{
        justify-content:flex-start!important;
      }
    }


    /* V130 — balanced sidebar spacing and regular-weight navigation */
    #appView .side{
      width:260px!important;
    }
    #appView .main{
      margin-left:260px!important;
    }
    #appView .sidebar-brand-sticky{
      padding:14px 14px 10px!important;
    }
    #appView .brand-card{
      min-height:62px!important;
      padding:10px 11px!important;
      gap:11px!important;
      border-radius:17px!important;
    }
    #appView .brand-mark{
      width:40px!important;
      height:40px!important;
      border-radius:12px!important;
      font-weight:700!important;
    }
    #appView .brand{
      font-size:15px!important;
      font-weight:650!important;
      letter-spacing:-.015em!important;
    }
    #appView .version,
    #appView .sidebar-account-name{
      font-weight:500!important;
    }
    #appView .sidebar-scroll{
      padding:12px 12px 16px!important;
    }
    #appView .nav{
      gap:7px!important;
    }
    #appView .nav button{
      min-height:46px!important;
      padding:8px 10px!important;
      gap:11px!important;
      border-radius:13px!important;
      font-size:13px!important;
      font-weight:500!important;
      letter-spacing:0!important;
    }
    #appView .nav-label{
      font-weight:500!important;
      line-height:1.3!important;
    }
    #appView .nav-ico{
      width:30px!important;
      height:30px!important;
      border-radius:10px!important;
    }
    #appView .nav-ico svg{
      width:16px!important;
      height:16px!important;
    }
    #appView .nav button.active{
      font-weight:500!important;
    }
    #appView .sidebar-tail{
      padding:10px 12px 14px!important;
    }
    #appView .sidebar-toggle-btn{
      min-height:44px!important;
      padding:7px 10px!important;
      gap:11px!important;
      border-radius:13px!important;
      font-size:13px!important;
      font-weight:500!important;
    }
    #appView .sidebar-toggle-ico{
      width:30px!important;
      height:30px!important;
      border-radius:10px!important;
    }
    #appView .sidebar-toggle-ico svg{
      width:16px!important;
      height:16px!important;
    }
    #appView.sidebar-collapsed .side{
      width:74px!important;
    }
    #appView.sidebar-collapsed .main{
      margin-left:74px!important;
    }
    #appView.sidebar-collapsed .sidebar-scroll{
      padding-top:10px!important;
      padding-bottom:12px!important;
    }
    #appView.sidebar-collapsed .nav{
      gap:7px!important;
    }
    #appView.sidebar-collapsed .nav button{
      width:46px!important;
      min-width:46px!important;
      max-width:46px!important;
      height:44px!important;
      min-height:44px!important;
    }
    #appView.sidebar-collapsed .sidebar-toggle-btn{
      width:46px!important;
      min-width:46px!important;
      max-width:46px!important;
      height:44px!important;
      min-height:44px!important;
    }
    @media(max-width:900px){
      #appView .side,
      #appView.sidebar-collapsed .side{
        width:100%!important;
      }
      #appView .main,
      #appView.sidebar-collapsed .main{
        margin-left:0!important;
      }
    }



    /* V131 — page title moved below top bar */
    .top.top-actions-only{
      justify-content:flex-end!important;
      min-height:68px!important;
      padding-top:11px!important;
      padding-bottom:11px!important;
      margin-bottom:0!important;
    }
    .top.top-actions-only .top-right{
      margin-left:auto;
    }
    .page-header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:18px;
      min-height:64px;
      margin:0 0 16px;
      padding:14px 2px 12px;
      border-bottom:1px solid #e7e9f0;
    }
    .page-header-title{
      min-width:0;
      margin:0;
      color:#242733;
      font-size:30px;
      line-height:1.1;
      font-weight:800;
      letter-spacing:-.025em;
      text-transform:uppercase;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .page-header-actions{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap:9px;
      flex:0 0 auto;
    }
    .page-header-actions:empty{display:none}
    .page-header-actions .btn{
      min-height:40px;
      margin:0!important;
      padding:9px 14px!important;
      border-radius:12px!important;
      font-size:12px!important;
      white-space:nowrap;
    }
    @media(max-width:760px){
      .top.top-actions-only{
        display:flex!important;
        padding:11px 18px!important;
      }
      .top.top-actions-only .top-right{
        width:auto;
        margin-left:auto;
      }
      .page-header{
        align-items:flex-start;
        flex-direction:column;
        min-height:48px;
        margin-bottom:13px;
        padding-top:12px;
      }
      .page-header-title{
        width:100%;
        font-size:22px;
        letter-spacing:-.02em;
      }
      .page-header-actions{
        width:100%;
        justify-content:flex-start;
      }
      .page-header-actions .btn{flex:1}
    }



    /* V133 — light dashboard and account chooser */
    #appView.account-selection-mode .side,
    #appView.account-selection-mode .top,
    #appView.account-selection-mode .page-header{display:none!important}
    #appView.account-selection-mode .main{
      margin-left:0!important;
      padding:0!important;
      min-height:100vh;
      background:linear-gradient(180deg,#f7f7fc 0%,#fbfbfe 100%);
    }
    #appView.account-selection-mode #content{min-height:100vh}
    .account-select-shell{max-width:1180px;margin:0 auto;padding:24px 28px 48px}
    .account-select-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 28px}
    .account-select-brand{display:flex;align-items:center;gap:11px}
    .account-select-logo{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#8a7cff,#6758ee);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;box-shadow:0 10px 24px rgba(117,103,244,.22)}
    .account-select-brand-title{font-size:15px;font-weight:700;color:#222532;letter-spacing:-.01em}
    .account-select-brand-sub{font-size:12px;color:#7d8494;margin-top:2px}
    .account-select-user{display:flex;align-items:center;gap:10px;color:#596174;font-size:13px}
    .account-select-logout{width:38px;height:38px;border:1px solid #e3e5ee;background:#fff;color:#6c7485;border-radius:12px;display:flex;align-items:center;justify-content:center;cursor:pointer}
    .account-select-logout:hover{color:#5b4ded;border-color:#cfcafa;background:#f8f7ff}
    .account-select-logout svg{width:16px;height:16px}
    .account-select-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
    .account-select-head h1{margin:0;font-size:32px;line-height:1.1;letter-spacing:-.035em;color:#232631;font-weight:750}
    .account-select-head p{margin:6px 0 0;color:#737b8d;font-size:14px}
    .account-create-primary{margin:0!important;min-height:42px;padding:10px 15px!important;border-radius:13px!important}
    .account-grid-light{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
    .account-card-light{appearance:none;text-align:left;min-height:176px;padding:17px;border-radius:20px;background:#fff;border:1px solid #e6e8f0;color:inherit;box-shadow:0 8px 24px rgba(37,40,58,.04);display:flex;flex-direction:column;cursor:pointer;transition:.18s ease}
    .account-card-light:hover{transform:translateY(-2px);border-color:#b9b1fb;box-shadow:0 16px 34px rgba(76,65,180,.09)}
    .account-card-light.active{background:#f8f7ff;border-color:#8d80f6;box-shadow:0 12px 30px rgba(117,103,244,.11)}
    .account-card-light-top{display:flex;align-items:center;justify-content:space-between}
    .account-card-light .account-mark{width:40px;height:40px;border-radius:13px;font-size:12px;font-weight:750;background:linear-gradient(135deg,#8a7cff,#6758ee)}
    .account-status-dot{width:9px;height:9px;border-radius:999px;background:#c9ced8;box-shadow:0 0 0 4px rgba(201,206,216,.18)}
    .account-status-dot.active{background:#22a86a;box-shadow:0 0 0 4px rgba(34,168,106,.12)}
    .account-card-light .account-card-title{margin-top:15px;font-size:16px;font-weight:700;color:#252833}
    .account-card-link{margin-top:6px;font-size:12px;line-height:1.45;color:#778093;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .account-card-open{margin-top:auto;padding-top:14px;display:flex;align-items:center;justify-content:space-between;color:#6254e8;font-size:12px;font-weight:600}
    .account-create-card-light{align-items:center;justify-content:center;text-align:center;background:#fbfaff;border-style:dashed;border-color:#cfcafa}
    .account-create-card-light .account-card-title{margin-top:9px}
    .account-create-card-light .account-plus{margin:0;width:40px;height:40px;border-radius:13px;font-size:20px;font-weight:500}

    .dashboard-light-shell{display:grid;gap:16px}
    .dash-quick-panel{background:#fff;border:1px solid #e6e8f0;border-radius:20px;padding:17px;box-shadow:0 8px 24px rgba(34,38,58,.035)}
    .dash-quick-panel .dash-light-card-head{margin-bottom:12px}
    .dash-quick-panel .dash-quick-light-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
    .dash-welcome-light{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border:1px solid #e5e6ef;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f7f5ff 100%);box-shadow:0 8px 24px rgba(34,38,58,.045)}
    .dash-welcome-light h2{margin:0;font-size:23px;line-height:1.2;color:#252833;font-weight:750;letter-spacing:-.025em}
    .dash-welcome-light p{margin:5px 0 0;color:#737b8d;font-size:13px;line-height:1.45}
    .dash-welcome-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
    .dash-welcome-actions .btn{margin:0!important;min-height:40px;border-radius:12px!important;padding:9px 13px!important;font-size:12px!important}
    .dash-metrics-light{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
    .dash-metric-light{display:flex;align-items:center;gap:11px;min-height:92px;padding:14px;border:1px solid #e6e8f0;border-radius:18px;background:#fff;box-shadow:0 7px 20px rgba(34,38,58,.035)}
    .dash-metric-light-icon{width:38px;height:38px;border-radius:13px;background:#f1efff;color:#6657ec;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
    .dash-metric-light-icon svg{width:17px;height:17px}
    .dash-metric-light.green .dash-metric-light-icon{background:#edf9f3;color:#168b5c}
    .dash-metric-light.blue .dash-metric-light-icon{background:#eef7ff;color:#2675aa}
    .dash-metric-light.amber .dash-metric-light-icon{background:#fff7e6;color:#b67b0d}
    .dash-metric-light.red .dash-metric-light-icon{background:#fff0f2;color:#ce3d4b}
    .dash-metric-light-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
    .dash-metric-light-copy span{font-size:12px;color:#737b8d;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .dash-metric-light-copy strong{font-size:22px;line-height:1;color:#252833;font-weight:750;letter-spacing:-.03em}
    .dash-main-light-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:16px;align-items:start}
    .dash-light-side{display:grid;gap:16px}
    .dash-light-card{background:#fff;border:1px solid #e6e8f0;border-radius:20px;padding:17px;box-shadow:0 8px 24px rgba(34,38,58,.035)}
    .dash-light-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
    .dash-light-card-head h3{margin:0;color:#252833;font-size:16px;font-weight:700;letter-spacing:-.015em}
    .dash-light-card-head p{margin:4px 0 0;color:#81899a;font-size:12px}
    .dash-text-btn{border:0;background:transparent;color:#6657ec;font-size:12px;font-weight:600;cursor:pointer;padding:4px 0}
    .dash-quick-light-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
    .dash-quick-light{border:1px solid #e8e9f1;background:#fbfbfd;border-radius:14px;padding:11px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;text-align:left;color:#353947;cursor:pointer}
    .dash-quick-light:hover{background:#f8f7ff;border-color:#d2cdfb}
    .dash-quick-light>span{width:30px;height:30px;border-radius:10px;background:#f1efff;color:#6657ec;display:flex;align-items:center;justify-content:center}
    .dash-quick-light svg{width:14px;height:14px}
    .dash-quick-light b{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .dash-quick-light i{font-style:normal;color:#9aa1b0;display:grid;place-items:center}
    .dash-quick-light i svg{width:15px;height:15px;display:block}
    .dashboard-light-shell .dash-progress-item{padding:11px 12px;border-radius:14px;background:#fbfbfd;border-color:#eaebf2}
    .dashboard-light-shell .dash-progress-label{font-size:12px;font-weight:600}
    .dashboard-light-shell .dash-progress-value{font-weight:600}
    .dashboard-light-shell .dash-recent-table{border-radius:15px;border-color:#e8e9f1}
    .dashboard-light-shell .dash-recent-row{grid-template-columns:minmax(0,1fr) 100px 105px;padding:12px 13px}
    .dashboard-light-shell .dash-recent-title{font-weight:650}

    @media(max-width:1250px){.dash-metrics-light{grid-template-columns:repeat(3,minmax(0,1fr))}}
    @media(max-width:1000px){.dash-main-light-grid{grid-template-columns:1fr}.account-grid-light{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-quick-panel .dash-quick-light-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:700px){
      .account-select-shell{padding:18px 16px 36px}
      .account-select-user span{display:none}
      .account-select-head{align-items:flex-start;flex-direction:column}
      .account-select-head h1{font-size:28px}
      .account-create-primary{width:100%}
      .account-grid-light{grid-template-columns:1fr}
      .dash-welcome-light{align-items:flex-start;flex-direction:column}
      .dash-welcome-actions{width:100%}
      .dash-welcome-actions .btn{flex:1}
      .dash-metrics-light{grid-template-columns:repeat(2,minmax(0,1fr))}
      .dash-main-light-grid{grid-template-columns:1fr}
      .dash-quick-light-grid{grid-template-columns:1fr}
      .dash-quick-panel .dash-quick-light-grid{grid-template-columns:1fr}
      .dashboard-light-shell .dash-recent-row{grid-template-columns:1fr}
    }



    /* V135 — unified light management screens */
    #appView.management-page #content{
      display:grid;
      gap:16px;
      min-width:0;
    }
    #appView.management-page .page-header{
      margin-bottom:16px;
    }
    #appView.management-page .page-header-actions{
      flex-wrap:wrap;
    }
    #appView.management-page .page-header-actions .unsaved-order-pill,
    #appView.management-page .page-header-actions .settings-save-indicator{
      min-height:36px;
      margin:0;
      padding:8px 10px;
      border-radius:11px;
      font-size:11px;
      font-weight:600;
    }

    #appView.management-page .category-kpi-grid,
    #appView.management-page .kpi-grid,
    #appView.management-page .listing-kpi-grid,
    #appView.management-page .rule-kpi-grid,
    #appView.management-page .desc-kpi-grid,
    #appView.management-page .prompt-kpi-grid,
    #appView.management-page .settings-kpi-grid{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(165px,1fr));
      gap:11px;
      margin:0;
    }
    #appView.management-page .category-kpi-card,
    #appView.management-page .kpi-card,
    #appView.management-page .listing-kpi-card,
    #appView.management-page .rule-kpi-card,
    #appView.management-page .desc-kpi-card,
    #appView.management-page .prompt-kpi-card,
    #appView.management-page .settings-kpi{
      min-height:88px;
      margin:0;
      padding:14px 16px;
      border:1px solid #e6e8f0;
      border-radius:18px;
      background:#fff!important;
      box-shadow:0 7px 20px rgba(34,38,58,.035);
      display:flex;
      flex-direction:column;
      justify-content:center;
      gap:6px;
      overflow:hidden;
    }
    #appView.management-page .category-kpi-label,
    #appView.management-page .kpi-label,
    #appView.management-page .listing-kpi-label,
    #appView.management-page .rule-kpi-label,
    #appView.management-page .desc-kpi-label,
    #appView.management-page .prompt-kpi-label,
    #appView.management-page .settings-kpi-label{
      margin:0;
      color:#737b8d;
      font-size:12px;
      line-height:1.25;
      font-weight:500;
      letter-spacing:0;
      text-transform:none;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    #appView.management-page .category-kpi-value,
    #appView.management-page .kpi-value,
    #appView.management-page .listing-kpi-value,
    #appView.management-page .rule-kpi-value,
    #appView.management-page .desc-kpi-value,
    #appView.management-page .prompt-kpi-value,
    #appView.management-page .settings-kpi-value{
      margin:0;
      color:#252833;
      font-size:22px;
      line-height:1;
      font-weight:750;
      letter-spacing:-.03em;
    }
    #appView.management-page .listing-kpi-card.optimized .listing-kpi-value{color:#168b5c}
    #appView.management-page .listing-kpi-card.working .listing-kpi-value{color:#b67b0d}
    #appView.management-page .listing-kpi-card.fix .listing-kpi-value{color:#ce3d4b}

    #appView.management-page #content>.card,
    #appView.management-page .settings-section{
      margin:0;
      padding:16px;
      border:1px solid #e6e8f0;
      border-radius:20px;
      background:#fff;
      box-shadow:0 8px 24px rgba(34,38,58,.035);
    }
    #appView.management-page .settings-grid{
      display:grid;
      grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);
      gap:16px;
      align-items:start;
    }
    #appView.management-page .settings-grid>div{
      display:grid;
      gap:16px;
    }
    #appView.management-page .settings-section{
      margin-bottom:0;
    }
    #appView.management-page .settings-section-head{
      margin-bottom:14px;
    }
    #appView.management-page .settings-section-title{
      color:#252833;
      font-size:16px;
      font-weight:700;
      letter-spacing:-.015em;
    }
    #appView.management-page .settings-section-desc,
    #appView.management-page .settings-help,
    #appView.management-page .settings-option-sub{
      color:#7b8395;
      font-size:12px;
      font-weight:400;
      line-height:1.5;
    }
    #appView.management-page .settings-field label,
    #appView.management-page label{
      color:#4d5566;
      font-size:12px;
      font-weight:600;
    }
    #appView.management-page .settings-actions.compact-actions{
      margin-top:14px;
      justify-content:flex-end;
    }

    #appView.management-page .category-control-panel,
    #appView.management-page .keyword-control-panel,
    #appView.management-page .listing-control-panel,
    #appView.management-page .rule-control-panel,
    #appView.management-page .desc-control-panel,
    #appView.management-page .prompt-control-panel{
      gap:10px;
      margin:0 0 14px;
      padding:0;
    }
    #appView.management-page .category-toolbar,
    #appView.management-page .keyword-filter-row,
    #appView.management-page .listing-toolbar,
    #appView.management-page .rule-toolbar,
    #appView.management-page .desc-toolbar,
    #appView.management-page .prompt-toolbar{
      gap:10px;
    }
    #appView.management-page .category-toolbar-left,
    #appView.management-page .listing-toolbar-left,
    #appView.management-page .rule-toolbar-left,
    #appView.management-page .desc-toolbar-left,
    #appView.management-page .prompt-toolbar-left,
    #appView.management-page .keyword-search-row{
      min-width:0;
    }
    #appView.management-page .category-search,
    #appView.management-page .search-input,
    #appView.management-page .listing-search,
    #appView.management-page .rule-search,
    #appView.management-page .desc-search,
    #appView.management-page .prompt-search{
      width:100%;
      max-width:none;
      min-width:0;
      height:42px;
      padding:10px 12px;
      border:1px solid #e0e3ec;
      border-radius:12px;
      background:#fbfbfd;
      color:#2d3140;
      font-size:13px;
      box-shadow:none;
    }
    #appView.management-page .category-search:focus,
    #appView.management-page .search-input:focus,
    #appView.management-page .listing-search:focus,
    #appView.management-page .rule-search:focus,
    #appView.management-page .desc-search:focus,
    #appView.management-page .prompt-search:focus{
      background:#fff;
      border-color:#a9a0f6;
      box-shadow:0 0 0 3px rgba(117,103,244,.12);
    }
    #appView.management-page .reset-btn{
      min-width:auto;
      height:42px;
      margin:0;
      padding:0 13px;
      border:1px solid #e1e4ec;
      border-radius:12px;
      background:#fff!important;
      color:#606879!important;
      font-size:12px;
      font-weight:600;
    }
    #appView.management-page .reset-btn:hover{
      background:#f7f7fb!important;
      border-color:#d5d9e4;
    }
    #appView.management-page .table-meta,
    #appView.management-page .mini-note,
    #appView.management-page .desc-reorder-note{
      color:#81899a;
      font-size:11px;
      font-weight:400;
    }

    #appView.management-page .filter-tabs,
    #appView.management-page .category-tabs,
    #appView.management-page .listing-tabs,
    #appView.management-page .rule-tabs,
    #appView.management-page .desc-tabs,
    #appView.management-page .prompt-tabs{
      gap:7px;
    }
    #appView.management-page .filter-tab,
    #appView.management-page .category-filter-tab,
    #appView.management-page .listing-filter-tab,
    #appView.management-page .rule-filter-tab,
    #appView.management-page .desc-filter-tab,
    #appView.management-page .prompt-filter-tab,
    #appView.management-page .filter-cat-btn,
    #appView.management-page .prompt-filter-btn{
      min-height:36px;
      padding:8px 11px;
      border:1px solid #e1e4ec;
      border-radius:999px;
      background:#fff;
      color:#646c7d;
      font-size:12px;
      font-weight:600;
      box-shadow:none;
    }
    #appView.management-page .filter-tab:hover,
    #appView.management-page .category-filter-tab:hover,
    #appView.management-page .listing-filter-tab:hover,
    #appView.management-page .rule-filter-tab:hover,
    #appView.management-page .desc-filter-tab:hover,
    #appView.management-page .prompt-filter-tab:hover,
    #appView.management-page .filter-cat-btn:hover,
    #appView.management-page .prompt-filter-btn:hover{
      border-color:#cbc6f6;
      background:#faf9ff;
      color:#5e50df;
    }
    #appView.management-page .filter-tab.active,
    #appView.management-page .category-filter-tab.active,
    #appView.management-page .listing-filter-tab.active,
    #appView.management-page .rule-filter-tab.active,
    #appView.management-page .desc-filter-tab.active,
    #appView.management-page .prompt-filter-tab.active,
    #appView.management-page .filter-cat-btn.active,
    #appView.management-page .prompt-filter-btn.active{
      border-color:#7567f4;
      background:#7567f4;
      color:#fff;
    }
    #appView.management-page .advanced-filter-panel{
      grid-template-columns:repeat(4,minmax(150px,1fr));
      gap:9px;
      margin-top:0;
      padding:11px;
      border:1px solid #e8eaf1;
      border-radius:15px;
      background:#fbfbfd;
    }
    #appView.management-page .filter-field{
      min-height:62px;
      padding:9px;
      border-color:#e7e9f0;
      border-radius:12px;
      background:#fff;
    }
    #appView.management-page .filter-label{
      color:#747c8e;
      font-size:10px;
      font-weight:600;
      letter-spacing:.03em;
    }

    #appView.management-page .category-table-shell,
    #appView.management-page .table-shell,
    #appView.management-page .listing-table-shell,
    #appView.management-page .rule-table-shell,
    #appView.management-page .desc-table-shell,
    #appView.management-page .prompt-table-shell{
      border:1px solid #e6e8f0;
      border-radius:16px;
      background:#fff;
      box-shadow:none;
      overflow:hidden;
    }
    #appView.management-page table th{
      padding:12px 14px;
      border-bottom:1px solid #e7e9f0;
      background:#f7f7fa!important;
      color:#687083!important;
      font-size:11px;
      line-height:1.25;
      font-weight:600;
      letter-spacing:.02em;
      text-transform:none;
    }
    #appView.management-page table td{
      padding:13px 14px;
      border-bottom:1px solid #eceef3;
      color:#3a4050;
      font-size:12.5px;
    }
    #appView.management-page table tbody tr:hover td{
      background:#faf9ff!important;
    }
    #appView.management-page .keyword-title,
    #appView.management-page .listing-title,
    #appView.management-page .rule-title,
    #appView.management-page .desc-title,
    #appView.management-page .prompt-title,
    #appView.management-page .category-card-title{
      color:#272b37;
      font-weight:650;
    }
    #appView.management-page .keyword-meta,
    #appView.management-page .listing-url,
    #appView.management-page .rule-meta,
    #appView.management-page .desc-meta,
    #appView.management-page .prompt-meta,
    #appView.management-page .category-card-meta{
      color:#81899a;
      font-weight:400;
    }
    #appView.management-page .category-table-footer,
    #appView.management-page .table-footer,
    #appView.management-page .listing-table-footer,
    #appView.management-page .rule-table-footer,
    #appView.management-page .desc-table-footer,
    #appView.management-page .prompt-table-footer{
      min-height:48px;
      padding:12px 14px;
      border-top:1px solid #e8eaf0;
      background:#fbfbfd;
    }

    #appView.management-page .category-grid{
      grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
      gap:10px;
    }
    #appView.management-page .category-card{
      min-height:92px;
      padding:14px;
      border:1px solid #e8eaf2;
      border-radius:16px;
      background:#fff;
      box-shadow:0 5px 16px rgba(34,38,58,.035);
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      gap:12px;
      transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
    }
    #appView.management-page .category-card:before{display:none!important}
    #appView.management-page .category-card:hover{
      transform:translateY(-1px);
      border-color:#d4d0f8;
      box-shadow:0 10px 24px rgba(76,65,180,.07);
    }
    #appView.management-page .category-card-top{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
    }
    #appView.management-page .category-card-main{
      min-width:0;
      flex:1 1 auto;
    }
    #appView.management-page .category-card-title{
      margin:0;
      font-size:15px;
      line-height:1.3;
      font-weight:650;
      color:#252936;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    #appView.management-page .category-card-id{
      margin-top:4px;
      font-size:12px;
      line-height:1.3;
      color:#8a91a3;
      font-weight:400;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    #appView.management-page .category-card-status{
      flex:0 0 auto;
      margin-right:auto;
    }
    #appView.management-page .category-card-status .pill{
      padding:4px 8px;
      font-size:10.5px;
      font-weight:600;
      line-height:1;
      margin:0;
    }
    #appView.management-page .category-card-footer{
      margin-top:0;
      padding-top:10px;
      border-top:1px solid #eef0f5;
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:8px;
    }
    #appView.management-page .category-card-actions{
      display:flex;
      align-items:center;
      gap:8px;
    }
    #appView.management-page .category-card .icon-action{
      width:34px;
      height:34px;
      border-radius:10px;
    }
    #appView.management-page .desc-safety-note,
    #appView.management-page .settings-note{
      margin:0 0 14px;
      padding:11px 12px;
      border:1px solid #e8eaf1;
      border-left:3px solid #7567f4;
      border-radius:12px;
      background:#faf9ff;
      color:#626a7c;
      font-size:12px;
      font-weight:400;
      line-height:1.5;
    }
    #appView.management-page .settings-danger-note{
      border-left-color:#d09a2a;
      background:#fffaf0;
    }
    #appView.management-page .settings-mask,
    #appView.management-page .settings-product-card{
      border-color:#e6e8f0;
      background:#fbfbfd;
      border-radius:12px;
      box-shadow:none;
    }

    #appView.management-page .pill,
    #appView.management-page .pd-pill,
    #appView.management-page .listing-status,
    #appView.management-page .listing-chip,
    #appView.management-page .listing-keyword,
    #appView.management-page .source-badge,
    #appView.management-page .cat-chip,
    #appView.management-page .count-badge,
    #appView.management-page .use-badge,
    #appView.management-page .priority-pill{
      font-weight:600;
    }
    #appView.management-page .icon-action{
      width:34px;
      height:34px;
      border-radius:10px;
      box-shadow:none;
    }
    #appView.management-page .drag-handle{
      box-shadow:none;
      background:#fbfbfd;
    }

    #appView.management-page .modal{
      border:1px solid #e2e5ed;
      border-radius:20px;
      box-shadow:0 28px 80px rgba(30,32,45,.18);
    }
    #appView.management-page .modal-head{
      padding:15px 18px;
      background:#fff;
    }
    #appView.management-page .modal-head .section-title{
      color:#272b37;
      font-size:17px;
      font-weight:700;
    }
    #appView.management-page .modal-body{padding:18px}
    #appView.management-page .modal-foot{
      padding:13px 18px;
      background:#fafafd;
    }

    @media(max-width:1180px){
      #appView.management-page .advanced-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
      #appView.management-page .settings-grid{grid-template-columns:1fr}
    }
    @media(max-width:760px){
      #appView.management-page .page-header-actions{width:100%;justify-content:flex-start}
      #appView.management-page .page-header-actions .btn{flex:1 1 auto}
      #appView.management-page .category-kpi-grid,
      #appView.management-page .kpi-grid,
      #appView.management-page .listing-kpi-grid,
      #appView.management-page .rule-kpi-grid,
      #appView.management-page .desc-kpi-grid,
      #appView.management-page .prompt-kpi-grid,
      #appView.management-page .settings-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      #appView.management-page .advanced-filter-panel{grid-template-columns:1fr}
      #appView.management-page .category-grid{grid-template-columns:1fr}
      #appView.management-page .category-toolbar,
      #appView.management-page .listing-toolbar,
      #appView.management-page .rule-toolbar,
      #appView.management-page .desc-toolbar,
      #appView.management-page .prompt-toolbar,
      #appView.management-page .keyword-filter-row{align-items:stretch}
      #appView.management-page .filter-tabs,
      #appView.management-page .category-tabs,
      #appView.management-page .listing-tabs,
      #appView.management-page .rule-tabs,
      #appView.management-page .desc-tabs,
      #appView.management-page .prompt-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:3px}
    }



    /* V136 — unified filter + search bars */
    #appView.management-page .category-control-panel,
    #appView.management-page .listing-control-panel,
    #appView.management-page .rule-control-panel,
    #appView.management-page .desc-control-panel,
    #appView.management-page .prompt-control-panel{
      gap:0!important;
      margin:0 0 16px!important;
      padding:12px!important;
      border:1px solid #e6e8ef;
      border-radius:16px;
      background:#fafafd;
      box-shadow:0 1px 2px rgba(30,32,45,.025);
    }

    #appView.management-page .category-control-panel > .category-toolbar:first-child,
    #appView.management-page .listing-control-panel > .listing-toolbar:first-child,
    #appView.management-page .rule-control-panel > .rule-toolbar:first-child,
    #appView.management-page .desc-control-panel > .desc-toolbar:first-child,
    #appView.management-page .prompt-control-panel > .prompt-toolbar:first-child{
      display:grid!important;
      grid-template-columns:minmax(0,1fr) auto!important;
      align-items:center!important;
      gap:12px!important;
      margin:0!important;
      padding:0!important;
    }

    #appView.management-page .category-control-panel > .category-toolbar:nth-child(2),
    #appView.management-page .listing-control-panel > .listing-toolbar:nth-child(2),
    #appView.management-page .rule-control-panel > .rule-toolbar:nth-child(2),
    #appView.management-page .desc-control-panel > .desc-toolbar:nth-child(2),
    #appView.management-page .prompt-control-panel > .prompt-toolbar:nth-child(2){
      display:flex!important;
      align-items:center!important;
      justify-content:space-between!important;
      gap:10px!important;
      margin:11px 0 0!important;
      padding:11px 0 0!important;
      border-top:1px solid #e8eaf1;
      min-width:0;
    }

    #appView.management-page .category-toolbar-left,
    #appView.management-page .listing-toolbar-left,
    #appView.management-page .rule-toolbar-left,
    #appView.management-page .desc-toolbar-left,
    #appView.management-page .prompt-toolbar-left{
      position:relative;
      display:grid!important;
      grid-template-columns:minmax(0,1fr) auto!important;
      align-items:center!important;
      gap:8px!important;
      width:100%!important;
      max-width:none!important;
      min-width:0!important;
    }

    #appView.management-page .category-toolbar-left:before,
    #appView.management-page .listing-toolbar-left:before,
    #appView.management-page .rule-toolbar-left:before,
    #appView.management-page .desc-toolbar-left:before,
    #appView.management-page .prompt-toolbar-left:before{
      content:'';
      position:absolute;
      left:13px;
      top:50%;
      width:16px;
      height:16px;
      transform:translateY(-50%);
      background:#8a92a4;
      -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
      mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
      pointer-events:none;
      z-index:2;
    }

    #appView.management-page .category-search,
    #appView.management-page .listing-search,
    #appView.management-page .rule-search,
    #appView.management-page .desc-search,
    #appView.management-page .prompt-search{
      width:100%!important;
      min-width:0!important;
      max-width:none!important;
      height:44px!important;
      padding:10px 13px 10px 39px!important;
      border:1px solid #dde1e9!important;
      border-radius:12px!important;
      background:#fff!important;
      color:#2f3441!important;
      font-size:13px!important;
      font-weight:400!important;
      line-height:1.2!important;
      box-shadow:0 1px 2px rgba(30,32,45,.025)!important;
    }
    #appView.management-page .category-search::placeholder,
    #appView.management-page .listing-search::placeholder,
    #appView.management-page .rule-search::placeholder,
    #appView.management-page .desc-search::placeholder,
    #appView.management-page .prompt-search::placeholder{
      color:#9aa1b0;
      opacity:1;
    }
    #appView.management-page .category-search:focus,
    #appView.management-page .listing-search:focus,
    #appView.management-page .rule-search:focus,
    #appView.management-page .desc-search:focus,
    #appView.management-page .prompt-search:focus{
      border-color:#8f84f7!important;
      background:#fff!important;
      box-shadow:0 0 0 3px rgba(117,103,244,.11)!important;
    }

    #appView.management-page .management-clear-btn{
      height:44px!important;
      min-width:68px!important;
      margin:0!important;
      padding:0 14px!important;
      border:1px solid #dde1e9!important;
      border-radius:12px!important;
      background:#fff!important;
      color:#646c7c!important;
      font-size:12px!important;
      font-weight:500!important;
      box-shadow:none!important;
    }
    #appView.management-page .management-clear-btn:hover{
      border-color:#cfc9f7!important;
      background:#f7f5ff!important;
      color:#5d50df!important;
    }

    #appView.management-page .category-toolbar-right,
    #appView.management-page .listing-toolbar-right,
    #appView.management-page .rule-toolbar-right,
    #appView.management-page .desc-toolbar-right,
    #appView.management-page .prompt-toolbar-right{
      display:flex!important;
      align-items:center!important;
      justify-content:flex-end!important;
      min-width:max-content!important;
    }
    #appView.management-page .category-toolbar-right .table-meta,
    #appView.management-page .listing-toolbar-right .table-meta,
    #appView.management-page .rule-toolbar-right .table-meta,
    #appView.management-page .desc-toolbar-right .table-meta,
    #appView.management-page .prompt-toolbar-right .table-meta{
      display:inline-flex;
      align-items:center;
      min-height:32px;
      margin:0!important;
      padding:6px 10px;
      border:1px solid #e2e5ec;
      border-radius:999px;
      background:#fff;
      color:#747c8d;
      font-size:11px!important;
      font-weight:400!important;
      white-space:nowrap;
    }

    #appView.management-page .category-tabs,
    #appView.management-page .listing-tabs,
    #appView.management-page .rule-tabs,
    #appView.management-page .desc-tabs,
    #appView.management-page .prompt-tabs,
    #appView.management-page .prompt-filter-group{
      display:flex!important;
      align-items:center!important;
      gap:7px!important;
      min-width:0;
      flex-wrap:wrap!important;
    }

    #appView.management-page .category-filter-tab,
    #appView.management-page .listing-filter-tab,
    #appView.management-page .rule-filter-tab,
    #appView.management-page .desc-filter-tab,
    #appView.management-page .prompt-filter-tab,
    #appView.management-page .prompt-filter-btn{
      min-height:36px!important;
      margin:0!important;
      padding:8px 11px!important;
      border:1px solid #dde1e9!important;
      border-radius:10px!important;
      background:#fff!important;
      color:#626a7a!important;
      font-size:12px!important;
      font-weight:500!important;
      line-height:1!important;
      box-shadow:none!important;
      white-space:nowrap;
    }
    #appView.management-page .category-filter-tab:hover,
    #appView.management-page .listing-filter-tab:hover,
    #appView.management-page .rule-filter-tab:hover,
    #appView.management-page .desc-filter-tab:hover,
    #appView.management-page .prompt-filter-tab:hover,
    #appView.management-page .prompt-filter-btn:hover{
      border-color:#c9c3f7!important;
      background:#f8f7ff!important;
      color:#5d50df!important;
    }
    #appView.management-page .category-filter-tab.active,
    #appView.management-page .listing-filter-tab.active,
    #appView.management-page .rule-filter-tab.active,
    #appView.management-page .desc-filter-tab.active,
    #appView.management-page .prompt-filter-tab.active,
    #appView.management-page .prompt-filter-btn.active{
      border-color:#c9c3f7!important;
      background:#efedff!important;
      color:#5648d9!important;
      font-weight:600!important;
      box-shadow:inset 0 0 0 1px rgba(117,103,244,.04)!important;
    }

    @media(max-width:900px){
      #appView.management-page .category-control-panel > .category-toolbar:first-child,
      #appView.management-page .listing-control-panel > .listing-toolbar:first-child,
      #appView.management-page .rule-control-panel > .rule-toolbar:first-child,
      #appView.management-page .desc-control-panel > .desc-toolbar:first-child,
      #appView.management-page .prompt-control-panel > .prompt-toolbar:first-child{
        grid-template-columns:1fr!important;
      }
      #appView.management-page .category-toolbar-right,
      #appView.management-page .listing-toolbar-right,
      #appView.management-page .rule-toolbar-right,
      #appView.management-page .desc-toolbar-right,
      #appView.management-page .prompt-toolbar-right{
        justify-content:flex-start!important;
      }
      #appView.management-page .category-control-panel > .category-toolbar:nth-child(2),
      #appView.management-page .listing-control-panel > .listing-toolbar:nth-child(2),
      #appView.management-page .rule-control-panel > .rule-toolbar:nth-child(2),
      #appView.management-page .desc-control-panel > .desc-toolbar:nth-child(2),
      #appView.management-page .prompt-control-panel > .prompt-toolbar:nth-child(2){
        align-items:flex-start!important;
        flex-direction:column!important;
      }
    }
    @media(max-width:560px){
      #appView.management-page .category-control-panel,
      #appView.management-page .listing-control-panel,
      #appView.management-page .rule-control-panel,
      #appView.management-page .desc-control-panel,
      #appView.management-page .prompt-control-panel{
        padding:10px!important;
        border-radius:14px;
      }
      #appView.management-page .category-toolbar-left,
      #appView.management-page .listing-toolbar-left,
      #appView.management-page .rule-toolbar-left,
      #appView.management-page .desc-toolbar-left,
      #appView.management-page .prompt-toolbar-left{
        grid-template-columns:1fr!important;
      }
      #appView.management-page .management-clear-btn{
        width:100%!important;
      }
      #appView.management-page .category-toolbar-left:before,
      #appView.management-page .listing-toolbar-left:before,
      #appView.management-page .rule-toolbar-left:before,
      #appView.management-page .desc-toolbar-left:before,
      #appView.management-page .prompt-toolbar-left:before{
        top:22px;
      }
    }



    /* V140 — unified management tables and dialogs */
    #appView.management-page .card{
      border:1px solid #e7e9f1;
      border-radius:20px;
      box-shadow:0 10px 28px rgba(34,38,58,.04);
      background:#fff;
    }
    #appView.management-page .table-shell,
    #appView.management-page .desc-table-shell,
    #appView.management-page .rule-table-shell,
    #appView.management-page .prompt-table-shell{
      border:1px solid #e7e9f1!important;
      border-radius:18px!important;
      box-shadow:none!important;
      background:#fff!important;
    }
    #appView.management-page table th{
      height:46px;
      padding:12px 14px!important;
      background:#f8f8fc!important;
      color:#697184!important;
      font-size:11px!important;
      font-weight:650!important;
      letter-spacing:.045em!important;
      text-transform:uppercase!important;
      border-bottom:1px solid #e7e9f1!important;
    }
    #appView.management-page table td{
      padding:13px 14px!important;
      color:#303542;
      font-size:13px;
      border-bottom:1px solid #eef0f5!important;
      vertical-align:middle;
    }
    #appView.management-page table tbody tr:last-child td{border-bottom:0!important}
    #appView.management-page table tbody tr:hover td{background:#faf9ff!important}
    #appView.management-page .td-actions{white-space:nowrap;text-align:right}
    #appView.management-page .icon-action{
      width:34px;height:34px;border-radius:10px;box-shadow:none!important;
    }
    #appView.management-page .icon-action.locked{
      color:#8a6b17;background:#fff8e7;border-color:#f0dfb0;
    }
    #appView.management-page .icon-action.locked:hover{background:#fff1cc;color:#775600}
    #appView.management-page .icon-action.locked svg{width:15px;height:15px}

    .management-form-modal .modal,
    .management-view-modal .modal{
      border:1px solid #e6e8f0!important;
      border-radius:22px!important;
      box-shadow:0 28px 80px rgba(28,31,45,.20)!important;
      overflow:hidden;
    }
    .management-form-modal .modal-head,
    .management-view-modal .modal-head{
      padding:18px 20px!important;
      background:#fff!important;
      border-bottom:1px solid #eceef4!important;
    }
    .management-form-modal .section-title,
    .management-view-modal .section-title{
      font-size:19px!important;
      font-weight:750!important;
      color:#242936!important;
      letter-spacing:-.02em;
    }
    .management-form-modal .modal-body,
    .management-view-modal .modal-body{padding:20px!important;background:#fbfbfd}
    .management-form-modal .modal-foot,
    .management-view-modal .modal-foot{
      padding:14px 20px!important;
      background:#fff!important;
      border-top:1px solid #eceef4!important;
    }
    .management-form-modal label{
      display:block;margin-bottom:7px;color:#555e70;font-size:12px;font-weight:600;
    }
    .management-form-modal input,
    .management-form-modal select,
    .management-form-modal textarea{
      min-height:42px;border-radius:12px;border:1px solid #dfe3ed;background:#fff;
    }
    .management-form-modal textarea{min-height:110px}
    .management-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
    .management-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
    .management-field.full{grid-column:1/-1}
    .management-modal-note{margin-top:7px;color:#80889a;font-size:12px;line-height:1.45}
    .management-detail-hero{
      display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
      padding:16px;border:1px solid #e7e9f1;border-radius:16px;background:#fff;margin-bottom:14px;
    }
    .management-detail-title{font-size:21px;font-weight:750;color:#262b37;letter-spacing:-.025em}
    .management-detail-sub{margin-top:5px;color:#7b8496;font-size:12px}
    .management-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
    .management-detail-card{padding:13px;border:1px solid #e7e9f1;border-radius:14px;background:#fff}
    .management-detail-label{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#8790a2;font-weight:650}
    .management-detail-value{margin-top:6px;font-size:13px;color:#2d3340;font-weight:600;line-height:1.45;word-break:break-word}

    .management-confirm-modal{width:min(500px,100%);background:#fff;border:1px solid #e6e8f0;border-radius:22px;box-shadow:0 28px 80px rgba(28,31,45,.22);overflow:hidden}
    .management-confirm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px;border-bottom:1px solid #eceef4}
    .management-confirm-heading{display:flex;align-items:flex-start;gap:13px}
    .management-confirm-icon{width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:#fff1f3;color:#d23f50;border:1px solid #ffd6dc}
    .management-confirm-icon.lock{background:#fff8e7;color:#9b6b00;border-color:#f3dfaa}
    .management-confirm-icon svg{width:20px;height:20px}
    .management-confirm-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8b93a4;font-weight:650}
    .management-confirm-title{margin:4px 0 0;font-size:20px;line-height:1.25;color:#252a36;letter-spacing:-.025em}
    .management-confirm-body{padding:18px 20px;color:#60697a;font-size:13px;line-height:1.6}
    .management-confirm-foot{display:flex;justify-content:flex-end;gap:9px;padding:14px 20px;border-top:1px solid #eceef4;background:#fbfbfd}
    .management-confirm-btn-danger{background:#d93e4f!important;color:#fff!important;box-shadow:none!important}
    .management-confirm-btn-warning{background:#9b6b00!important;color:#fff!important;box-shadow:none!important}


    /* V217 — industry-level account action confirmation dialogs */
    .account-confirm-modal{width:min(500px,calc(100vw - 32px));background:#fff;border:1px solid #e7e9f1;border-radius:24px;box-shadow:0 30px 90px rgba(24,28,42,.24);overflow:hidden;transform:translateZ(0)}
    .account-confirm-top{position:relative;padding:24px 24px 20px;border-bottom:1px solid #eceef4;background:linear-gradient(180deg,#fbfbfd 0%,#fff 100%)}
    .account-confirm-modal.is-disable .account-confirm-top{background:linear-gradient(180deg,#fffaf0 0%,#fff 100%)}
    .account-confirm-modal.is-enable .account-confirm-top{background:linear-gradient(180deg,#f2fbf6 0%,#fff 100%)}
    .account-confirm-modal.is-delete .account-confirm-top{background:linear-gradient(180deg,#fff5f6 0%,#fff 100%)}
    .account-confirm-close{position:absolute;top:16px;right:16px;width:34px;height:34px;border:1px solid transparent;background:transparent;color:#8b93a3;border-radius:11px;display:grid;place-items:center;cursor:pointer;font-size:22px;line-height:1;transition:background .16s ease,color .16s ease,border-color .16s ease}
    .account-confirm-close:hover{background:#fff;border-color:#e6e8ef;color:#303644}
    .account-confirm-heading{display:flex;align-items:flex-start;gap:14px;padding-right:38px}
    .account-confirm-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto;border:1px solid;box-shadow:0 8px 20px rgba(35,39,55,.06)}
    .account-confirm-icon svg{width:21px;height:21px}
    .account-confirm-modal.is-disable .account-confirm-icon{background:#fff4d8;border-color:#f1d895;color:#916000}
    .account-confirm-modal.is-enable .account-confirm-icon{background:#e7f8ee;border-color:#bfe8cf;color:#13864a}
    .account-confirm-modal.is-delete .account-confirm-icon{background:#ffecef;border-color:#f8c5cc;color:#d43d4d}
    .account-confirm-eyebrow{margin-top:1px;font-size:10px;line-height:1.3;text-transform:uppercase;letter-spacing:.09em;color:#8c94a5;font-weight:650}
    .account-confirm-title{margin:5px 0 0;font-size:22px;line-height:1.25;color:#222735;font-weight:680;letter-spacing:-.03em}
    .account-confirm-intro{margin:8px 0 0;color:#6f788a;font-size:13px;line-height:1.55}
    .account-confirm-body{padding:20px 24px 22px}
    .account-confirm-account{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e8eaf1;background:#fafbfc;border-radius:15px}
    .account-confirm-avatar{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#9185ff 0%,#6f60ed 100%);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:650;letter-spacing:.03em;overflow:hidden;flex:0 0 auto;box-shadow:0 8px 18px rgba(103,88,238,.16)}
    .account-confirm-avatar img{width:100%;height:100%;object-fit:cover;display:block}
    .account-confirm-account-copy{min-width:0;flex:1}
    .account-confirm-account-name{font-size:13.5px;line-height:1.35;color:#2b3140;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .account-confirm-account-meta{margin-top:3px;font-size:11.5px;line-height:1.4;color:#8a92a2}
    .account-confirm-state{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;font-size:10.5px;font-weight:600;line-height:1}
    .account-confirm-state:before{content:'';width:6px;height:6px;border-radius:999px;background:currentColor}
    .account-confirm-state.active{background:#e9f8ef;color:#1b9b58}
    .account-confirm-state.disabled{background:#f1f2f5;color:#858d9d}
    .account-confirm-impact{display:flex;align-items:flex-start;gap:11px;margin-top:14px;padding:13px 14px;border-radius:14px;border:1px solid #e8eaf1;background:#fff}
    .account-confirm-impact-icon{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto}
    .account-confirm-impact-icon svg{width:15px;height:15px}
    .account-confirm-modal.is-disable .account-confirm-impact{border-color:#f0dfb4;background:#fffcf5}
    .account-confirm-modal.is-disable .account-confirm-impact-icon{background:#fff0c7;color:#8c6100}
    .account-confirm-modal.is-enable .account-confirm-impact{border-color:#ccebd8;background:#f8fdf9}
    .account-confirm-modal.is-enable .account-confirm-impact-icon{background:#ddf5e6;color:#148247}
    .account-confirm-modal.is-delete .account-confirm-impact{border-color:#f4cfd4;background:#fff9fa}
    .account-confirm-modal.is-delete .account-confirm-impact-icon{background:#ffe5e8;color:#cc3949}
    .account-confirm-impact-copy{min-width:0}
    .account-confirm-impact-title{font-size:12.5px;line-height:1.4;color:#333947;font-weight:650}
    .account-confirm-impact-text{margin-top:3px;font-size:11.8px;line-height:1.55;color:#737c8d}
    .account-confirm-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:15px 24px 18px;border-top:1px solid #eceef4;background:#fbfbfd}
    .account-confirm-cancel,.account-confirm-submit{min-height:42px;border-radius:12px!important;padding:0 16px!important;font-size:12.5px!important;font-weight:600!important;box-shadow:none!important}
    .account-confirm-cancel{background:#fff!important;color:#596273!important;border:1px solid #dfe3eb!important}
    .account-confirm-cancel:hover{background:#f7f8fb!important;border-color:#d4d8e2!important}
    .account-confirm-submit{border:1px solid transparent!important}
    .account-confirm-submit.is-disable{background:#a56d00!important;color:#fff!important}
    .account-confirm-submit.is-disable:hover{background:#8f5f00!important}
    .account-confirm-submit.is-enable{background:#178f50!important;color:#fff!important}
    .account-confirm-submit.is-enable:hover{background:#117b44!important}
    .account-confirm-submit.is-delete{background:#d73f50!important;color:#fff!important}
    .account-confirm-submit.is-delete:hover{background:#c83343!important}
    .account-confirm-submit:disabled{opacity:.62!important;cursor:not-allowed!important}

    @media(max-width:560px){
      .account-confirm-modal{width:min(100%,calc(100vw - 20px));border-radius:20px}
      .account-confirm-top{padding:20px 18px 17px}
      .account-confirm-heading{gap:12px;padding-right:34px}
      .account-confirm-icon{width:44px;height:44px;border-radius:14px}
      .account-confirm-title{font-size:19px}
      .account-confirm-intro{font-size:12.5px}
      .account-confirm-body{padding:16px 18px 18px}
      .account-confirm-account{padding:12px}
      .account-confirm-account-name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
      .account-confirm-state{display:none}
      .account-confirm-foot{padding:13px 18px 16px}
      .account-confirm-cancel,.account-confirm-submit{flex:1;padding:0 12px!important}
    }
    @media(max-width:380px){
      .account-confirm-heading{display:block}
      .account-confirm-icon{margin-bottom:12px}
      .account-confirm-account{align-items:flex-start}
      .account-confirm-foot{gap:8px}
      .account-confirm-cancel,.account-confirm-submit{font-size:12px!important}
    }

    .management-unsaved-modal .listing-unsaved-modal{width:min(560px,100%)}
    .management-unsaved-modal .listing-unsaved-copy{margin-bottom:0}

    @media(max-width:800px){
      .management-form-grid,.management-form-grid.three,.management-detail-grid{grid-template-columns:1fr}
      .management-detail-hero{display:block}
      .management-detail-hero .pill{margin-top:10px}
    }



    /* V214 — mobile-responsive horizontal workspace cards */
    .account-management-shell{max-width:100%;padding:22px 28px 20px}
    .account-choice-shell{min-height:calc(100vh - 24px);display:flex;flex-direction:column;gap:22px}
    .account-select-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0}
    .account-select-brand{display:flex;align-items:center;gap:12px}
    .account-select-logo{width:44px;height:44px;border-radius:15px;background:linear-gradient(145deg,#8f83ff 0%,#6758ee 100%);color:#fff;display:grid;place-items:center;box-shadow:0 12px 26px rgba(103,88,238,.20);position:relative;overflow:hidden}
    .account-select-logo:after{content:'';position:absolute;inset:1px;border-radius:14px;border:1px solid rgba(255,255,255,.20);pointer-events:none}
    .account-select-logo svg{width:22px;height:22px;position:relative;z-index:1}
    .account-select-brand-copy{display:flex;flex-direction:column;gap:2px}
    .account-select-brand-title{font-size:15px;font-weight:650;color:#242936;letter-spacing:-.018em;line-height:1.2}
    .account-select-brand-sub{font-size:11.5px;color:#8a92a3;letter-spacing:.015em;line-height:1.35}
    .account-select-user{display:flex;align-items:center;gap:10px;color:#626b7c;font-size:13px}
    .account-select-user span{max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .account-select-logout{width:38px;height:38px;border:1px solid #e3e6ee;background:#fff;color:#697284;border-radius:12px;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px rgba(37,40,58,.035)}
    .account-select-logout:hover{color:#5b4ded;border-color:#d5d0fc;background:#faf9ff}
    .account-select-logout svg{width:16px;height:16px}

    .account-choice-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 0 12px}
    .account-select-head{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0;border:0;text-align:center;margin:0 0 38px}
    .account-select-head-copy{min-width:0}
    .account-select-head h1{margin:0;font-size:38px;line-height:1.04;letter-spacing:-.035em;color:#1b2030;font-weight:650;text-transform:uppercase}
    .account-select-head p{margin:9px 0 0;color:#7f8797;font-size:14px;line-height:1.5;white-space:nowrap}
    .account-create-primary{display:none!important}

    .account-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,430px));gap:18px;align-items:stretch;justify-content:center;width:min(900px,100%)}
    .account-choice-card{position:relative;min-width:0}
    .account-choice-card.menu-open{z-index:50}
    .account-tile{position:relative;min-height:150px;border:1px solid #e7e9f1;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(37,40,58,.055);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
    .account-tile:hover{transform:translateY(-2px);border-color:#d8d3fd;box-shadow:0 18px 38px rgba(74,62,175,.09)}
    .account-choice-card.active .account-tile{border-color:#cfc7ff;background:linear-gradient(180deg,#fff 0%,#fbfaff 100%);box-shadow:0 16px 34px rgba(117,103,244,.10)}
    .account-choice-card.is-disabled .account-tile{background:#fbfbfd;border-color:#eceef4;box-shadow:0 8px 20px rgba(37,40,58,.03);cursor:default}
    .account-tile-avatar-wrap{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
    .account-tile-avatar{width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#9489ff 0%,#7567f4 100%);color:#fff;display:grid;place-items:center;font-size:16px;font-weight:600;letter-spacing:.04em;box-shadow:0 12px 24px rgba(117,103,244,.18)}
    .account-tile-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
    .account-choice-card.is-disabled .account-tile-avatar{background:#e8ebf2;color:#858d9e;box-shadow:none}
    .account-tile-status-dot{position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;border-radius:999px;border:3px solid #fff;background:#22b86a;box-shadow:0 2px 7px rgba(37,40,58,.12)}
    .account-choice-card.is-disabled .account-tile-status-dot{background:#b8bfcc}
    .account-tile-copy{min-width:0}
    .account-tile-title-row{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
    .account-tile-name{margin:0;min-width:0;font-size:17px;line-height:1.3;color:#252a35;font-weight:600;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .account-tile-current{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:#f1efff;border:1px solid #dfdaff;color:#5f51e6;font-size:10.5px;font-weight:600}
    .account-tile-sub{margin-top:6px;color:#7d8698;font-size:12.5px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .account-tile-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px}
    .account-tile-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 9px;border-radius:999px;background:#f5f6f9;border:1px solid #eceef3;color:#737c8d;font-size:10.5px;font-weight:500}
    .account-tile-chip:before{content:'';width:6px;height:6px;border-radius:999px;background:#9ca3b2}
    .account-tile-chip.active{background:#edf9f3;border-color:#daf1e4;color:#18865b}
    .account-tile-chip.active:before{background:#22b86a}
    .account-tile-chip.disabled{background:#f4f5f8;border-color:#eaecf1;color:#8a92a2}
    .account-tile-records{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;background:#f8f8fb;border:1px solid #eff0f4;color:#7d8596;font-size:10.5px;font-weight:500}
    .account-tile-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
    .account-tile-open{width:42px;height:42px;border-radius:14px;border:1px solid #dcd7ff;background:#f3f1ff;color:#5f51e6;display:grid;place-items:center;cursor:pointer;transition:.16s ease}
    .account-tile-open:hover:not(:disabled){background:#eae7ff;border-color:#c4bcfb;color:#5144db}
    .account-tile-open:disabled{background:#f3f4f7;border-color:#e8eaf0;color:#a1a8b5;cursor:not-allowed}
    .account-tile-open svg{width:17px;height:17px}
    .account-choice-actions{position:relative;display:flex;align-items:center;justify-content:center}
    .account-choice-dots{width:42px;height:42px;margin:0;padding:0;border:1px solid #e5e7ee;background:#fff;color:#7a8395;display:grid;place-items:center;border-radius:14px;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease;line-height:0}
    .account-choice-dots:hover{background:#f7f6ff;color:#6254e8;border-color:#d8d3fd}
    .account-choice-dots:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(117,103,244,.16)}
    .account-choice-dots svg{width:19px;height:19px;display:block}
    .account-choice-menu{position:absolute;top:calc(100% + 8px);right:0;width:176px;background:#fff;border:1px solid #edf0f5;border-radius:14px;box-shadow:0 18px 38px rgba(37,40,58,.16);padding:8px;z-index:70}
    .account-choice-menu:before{content:'';position:absolute;top:-5px;right:17px;width:10px;height:10px;background:#fff;border-left:1px solid #edf0f5;border-top:1px solid #edf0f5;transform:rotate(45deg)}
    .account-choice-menu.hidden{display:none!important}
    .account-choice-menu button{position:relative;z-index:1;width:100%;border:0;background:#fff;color:#465062;padding:10px 11px;border-radius:10px;display:flex;align-items:center;gap:9px;cursor:pointer;font-size:12px;font-weight:500;text-align:left}
    .account-choice-menu button:hover{background:#f6f7fb}
    .account-choice-menu button svg{width:15px;height:15px;flex:0 0 auto}
    .account-choice-menu button.primary{color:#5f51e6}
    .account-choice-menu button.edit{color:#4f5869}
    .account-choice-menu button.edit:hover{background:#f3f4f8;color:#2f3542}
    .account-choice-menu button.delete{color:#d84f5b}
    .account-choice-menu button.delete:hover{background:#fff1f3}
    .account-choice-menu button.locked{color:#c3a2a8}
    .account-choice-menu button.locked:hover{background:#fcf4f5}

    .account-choice-create-card{min-height:150px;border:1px dashed #d5d0fb;background:rgba(250,249,255,.55);border-radius:22px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px;cursor:pointer;text-align:left;color:#2d3240;transition:.18s ease}
    .account-choice-create-card:hover{background:#f7f5ff;border-color:#bdb5fb;transform:translateY(-2px)}
    .account-choice-create-circle{width:58px;height:58px;border-radius:18px;background:#fff;border:1px solid #e2defc;color:#7567f4;display:grid;place-items:center;font-size:30px;font-weight:300;box-shadow:0 10px 22px rgba(103,88,238,.08)}
    .account-choice-create-copy-wrap{min-width:0}
    .account-choice-create-title{display:block;font-size:16px;line-height:1.3;color:#2a2f3b;font-weight:600;letter-spacing:-.015em}
    .account-choice-create-copy{display:block;margin-top:5px;color:#7e8799;font-size:12px;line-height:1.5}
    .account-choice-create-arrow{width:42px;height:42px;border-radius:14px;background:#fff;border:1px solid #e6e8ef;color:#8d95a5;display:grid;place-items:center}
    .account-choice-create-arrow svg{width:17px;height:17px}
    .account-choice-create-icon{display:none}

    .account-choice-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 0 0;color:#8b92a3;text-align:center}
    .account-choice-footer-copy{font-size:12px}
    .account-choice-footer-links{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;font-size:12px}
    .account-choice-footer-links a{color:#8b92a3;text-decoration:none}
    .account-choice-footer-links a:hover{color:#5f51e6}
    .account-choice-footer-sep{opacity:.7}

    @media(max-width:900px){
      .account-management-grid{grid-template-columns:minmax(0,620px);width:100%}
    }
    @media(max-width:680px){
      .account-management-shell{padding:14px 14px max(16px,env(safe-area-inset-bottom))}
      .account-choice-shell{min-height:calc(100dvh - 14px);gap:18px}
      .account-select-topbar{gap:12px;align-items:center}
      .account-select-logo{width:40px;height:40px;border-radius:13px}
      .account-select-logo:after{border-radius:12px}
      .account-select-logo svg{width:20px;height:20px}
      .account-select-brand{gap:10px;min-width:0}
      .account-select-brand-copy{min-width:0}
      .account-select-brand-title{font-size:14px}
      .account-select-brand-sub{font-size:11px}
      .account-select-user{gap:8px;min-width:0}
      .account-select-user span{max-width:128px;font-size:12px}
      .account-select-logout{width:40px;height:40px;flex:0 0 auto}
      .account-choice-main{justify-content:flex-start;padding:24px 0 8px}
      .account-select-head{margin-bottom:24px}
      .account-select-head h1{font-size:30px;line-height:1.08}
      .account-select-head p{margin-top:7px;font-size:13px;white-space:normal}
      .account-management-grid{grid-template-columns:minmax(0,520px);gap:14px}

      .account-tile{grid-template-columns:52px minmax(0,1fr);grid-template-areas:'avatar copy' 'actions actions';align-items:start;gap:12px;padding:15px;min-height:0;border-radius:19px}
      .account-tile-avatar-wrap{grid-area:avatar;margin-top:1px}
      .account-tile-avatar{width:52px;height:52px;border-radius:16px;font-size:15px}
      .account-tile-status-dot{width:17px;height:17px;border-width:3px}
      .account-tile-copy{grid-area:copy;align-self:center;width:100%;min-width:0}
      .account-tile-title-row{gap:6px;align-items:center}
      .account-tile-name{font-size:15px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
      .account-tile-current{min-height:22px;padding:0 7px;font-size:10px}
      .account-tile-sub{margin-top:4px;font-size:12px;white-space:normal;overflow:visible;text-overflow:clip}
      .account-tile-meta{margin-top:10px;gap:6px}
      .account-tile-chip,.account-tile-records{min-height:26px;padding:0 8px;font-size:10px}
      .account-tile-actions{grid-area:actions;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;width:100%;padding-top:2px}
      .account-tile-open{width:100%;height:44px;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:600}
      .account-tile-open:after{content:'Open account'}
      .account-tile-open:disabled:after{content:'Unavailable'}
      .account-choice-actions{width:44px}
      .account-choice-dots{width:44px;height:44px;border-radius:13px}
      .account-choice-menu{top:calc(100% + 7px);right:0;width:min(190px,calc(100vw - 42px))}
      .account-choice-menu:before{right:17px}

      .account-choice-create-card{grid-template-columns:52px minmax(0,1fr);gap:12px;padding:15px;min-height:104px;border-radius:19px}
      .account-choice-create-circle{width:52px;height:52px;border-radius:16px;font-size:27px}
      .account-choice-create-title{font-size:15px}
      .account-choice-create-copy{margin-top:3px;font-size:11.5px;line-height:1.45}
      .account-choice-create-arrow{display:none}
      .account-choice-footer{padding:12px 0 4px}
    }
    @media(max-width:480px){
      .account-management-shell{padding-left:12px;padding-right:12px}
      .account-select-topbar{gap:10px}
      .account-select-brand-sub{display:none}
      .account-select-user span{display:none}
      .account-select-head{margin-bottom:20px}
      .account-select-head h1{font-size:27px;letter-spacing:-.025em}
      .account-select-head p{font-size:12.5px}
      .account-management-grid{grid-template-columns:minmax(0,1fr);gap:12px}
      .account-tile{padding:14px;gap:11px;border-radius:18px}
      .account-tile-avatar{width:50px;height:50px}
      .account-tile-name{font-size:14px}
      .account-tile-sub{font-size:11.5px;line-height:1.42}
      .account-tile-meta{margin-top:8px}
      .account-tile-actions{margin-top:1px}
      .account-choice-create-card{padding:14px;min-height:98px;border-radius:18px}
      .account-choice-footer{padding-bottom:max(6px,env(safe-area-inset-bottom))}
      .account-choice-footer-links{gap:6px;font-size:11px}
      .account-choice-footer-copy{font-size:11px}
    }
    @media(hover:none){
      .account-tile:hover,.account-choice-create-card:hover{transform:none}
    }

    /* V215 — industry-level Create New Account modal */
    .create-account-backdrop{padding:22px;background:rgba(22,24,35,.54);backdrop-filter:blur(8px)}
    .create-account-modal{width:min(880px,100%);max-height:min(92vh,820px);display:flex;flex-direction:column;background:#fff;border:1px solid rgba(224,227,237,.95);border-radius:24px;box-shadow:0 32px 90px rgba(20,22,34,.24);overflow:hidden}
    .create-account-head{display:flex;align-items:flex-start;gap:14px;padding:22px 24px 19px;border-bottom:1px solid #eceef4;background:linear-gradient(180deg,#fff 0%,#fbfbfe 100%)}
    .create-account-head-icon{width:44px;height:44px;border-radius:15px;background:#f1efff;color:#6556e8;display:grid;place-items:center;flex:0 0 auto}
    .create-account-head-icon svg{width:20px;height:20px}
    .create-account-head-copy{min-width:0;flex:1}
    .create-account-eyebrow{font-size:10.5px;line-height:1;text-transform:uppercase;letter-spacing:.09em;color:#8b93a5;font-weight:600}
    .create-account-title{margin:7px 0 0;font-size:22px;line-height:1.2;color:#242936;font-weight:650;letter-spacing:-.025em}
    .create-account-subtitle{margin:6px 0 0;color:#747d8f;font-size:12.5px;line-height:1.55}
    .create-account-close{width:36px;height:36px;border:1px solid #e5e7ef;background:#fff;color:#7a8293;border-radius:12px;display:grid;place-items:center;cursor:pointer;font-size:19px;line-height:1;flex:0 0 auto}
    .create-account-close:hover{background:#f6f5ff;border-color:#d7d2fd;color:#5e50e4}
    .create-account-body{padding:22px 24px 24px;overflow:auto}
    .create-account-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start}
    .create-account-profile-card{border:1px solid #e8eaf2;background:linear-gradient(180deg,#fbfaff 0%,#fff 100%);border-radius:20px;padding:18px;display:flex;flex-direction:column;align-items:center;text-align:center}
    .create-account-profile-preview-wrap{position:relative;width:116px;height:116px;margin:2px auto 16px}
    .create-account-profile-preview{width:116px;height:116px;border-radius:999px;background:linear-gradient(145deg,#9489ff 0%,#6758ee 100%);color:#fff;display:grid;place-items:center;font-size:27px;font-weight:600;letter-spacing:.03em;box-shadow:0 16px 36px rgba(103,88,238,.20);overflow:hidden;border:5px solid #fff;outline:1px solid #e2defd}
    .create-account-profile-preview img{width:100%;height:100%;display:block;object-fit:cover}
    .create-account-profile-badge{position:absolute;right:2px;bottom:4px;width:30px;height:30px;border-radius:999px;background:#fff;border:1px solid #e4e7ef;color:#6254e8;display:grid;place-items:center;box-shadow:0 8px 18px rgba(37,40,58,.12)}
    .create-account-profile-badge svg{width:14px;height:14px}
    .create-account-profile-card h3{margin:0;color:#2c313e;font-size:14px;font-weight:600}
    .create-account-profile-card p{margin:7px 0 0;color:#7d8698;font-size:12px;line-height:1.55}
    .create-account-profile-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:15px}
    .create-account-upload-btn,.create-account-remove-btn{min-height:36px;border-radius:11px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11.5px;font-weight:600;cursor:pointer}
    .create-account-upload-btn{background:#f1efff;border:1px solid #dfdafd;color:#5f51e6}
    .create-account-upload-btn:hover{background:#e9e6ff;border-color:#c9c2fa}
    .create-account-remove-btn{background:#fff;border:1px solid #e7e9f0;color:#7a8293}
    .create-account-remove-btn:hover{background:#fff4f5;border-color:#ffd9dd;color:#cf3f4d}
    .create-account-profile-help{margin-top:13px;color:#9299a8;font-size:10.5px;line-height:1.5}
    .create-account-form{display:grid;gap:16px}
    .create-account-field label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;color:#454c5b;font-size:12px;font-weight:600}
    .create-account-field label small{color:#9aa1b0;font-size:10.5px;font-weight:500}
    .create-account-field input,.create-account-field select{width:100%;height:46px;border:1px solid #dfe3ec;border-radius:13px;padding:0 13px;background:#fff;color:#2f3441;font-size:13px;box-shadow:0 1px 0 rgba(37,40,58,.02)}
    .create-account-field input:focus,.create-account-field select:focus{outline:0;border-color:#8d80f6;box-shadow:0 0 0 4px rgba(117,103,244,.12)}
    .create-account-field-help{margin:7px 0 0;color:#858d9e;font-size:11px;line-height:1.5}
    .create-account-link-note{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border:1px solid #e9ebf2;background:#fafbfe;border-radius:13px;color:#737c8d;font-size:11.5px;line-height:1.55}
    .create-account-link-note svg{width:16px;height:16px;color:#7567f4;flex:0 0 auto;margin-top:1px}
    .create-account-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 24px;border-top:1px solid #eceef4;background:#fbfbfd}
    .create-account-foot-note{color:#9299a8;font-size:11px;line-height:1.45}
    .create-account-foot-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}
    .create-account-foot .btn{margin:0!important;min-height:40px;border-radius:12px!important;padding:0 15px!important;font-size:12px!important;font-weight:600!important}
    .create-account-submit{min-width:132px}

    .account-profile-crop-backdrop{z-index:180;background:rgba(18,20,31,.66);backdrop-filter:blur(10px);padding:18px}
    .account-profile-crop-modal{width:min(590px,100%);max-height:94vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e5e8f0;border-radius:22px;box-shadow:0 34px 90px rgba(16,18,28,.32);overflow:hidden}
    .account-profile-crop-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid #eceef4}
    .account-profile-crop-head h3{margin:0;color:#272c38;font-size:19px;font-weight:650;letter-spacing:-.02em}
    .account-profile-crop-head p{margin:5px 0 0;color:#7b8495;font-size:12px;line-height:1.5}
    .account-profile-crop-body{padding:20px 22px;overflow:auto}
    .account-profile-crop-stage{position:relative;width:min(360px,100%);aspect-ratio:1/1;margin:0 auto;border-radius:20px;overflow:hidden;background:#eef0f5;box-shadow:inset 0 0 0 1px #dfe3ec;touch-action:none;cursor:grab}
    .account-profile-crop-stage.is-dragging{cursor:grabbing}
    .account-profile-crop-stage canvas{width:100%;height:100%;display:block}
    .account-profile-crop-mask{position:absolute;inset:0;pointer-events:none;box-shadow:0 0 0 999px rgba(18,20,30,.42);border-radius:999px;transform:scale(.82)}
    .account-profile-crop-ring{position:absolute;inset:9%;border:2px solid rgba(255,255,255,.9);border-radius:999px;pointer-events:none;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
    .account-profile-crop-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;margin-top:18px}
    .account-profile-crop-controls span{font-size:11px;color:#81899a}
    .account-profile-crop-controls input[type=range]{width:100%;accent-color:#7567f4;padding:0;border:0;box-shadow:none}
    .account-profile-crop-tip{margin:12px 0 0;text-align:center;color:#8c94a4;font-size:11px;line-height:1.5}
    .account-profile-crop-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;border-top:1px solid #eceef4;background:#fbfbfd}
    .account-profile-crop-reset{border:0;background:transparent;color:#6b7486;font-size:12px;font-weight:600;cursor:pointer;padding:8px 2px}
    .account-profile-crop-reset:hover{color:#5f51e6}
    .account-profile-crop-actions{display:flex;align-items:center;gap:8px}
    .account-profile-crop-actions .btn{margin:0!important;min-height:39px;border-radius:12px!important;padding:0 14px!important;font-size:12px!important;font-weight:600!important}

    @media(max-width:760px){
      .create-account-backdrop{padding:12px;align-items:flex-end}
      .create-account-modal{max-height:94vh;border-radius:22px 22px 0 0}
      .create-account-head{padding:18px 18px 15px}
      .create-account-body{padding:18px}
      .create-account-layout{grid-template-columns:1fr;gap:16px}
      .create-account-profile-card{display:grid;grid-template-columns:94px minmax(0,1fr);gap:15px;align-items:center;text-align:left;padding:15px}
      .create-account-profile-preview-wrap{width:90px;height:90px;margin:0}
      .create-account-profile-preview{width:90px;height:90px;font-size:22px;border-width:4px}
      .create-account-profile-badge{width:27px;height:27px}
      .create-account-profile-actions{justify-content:flex-start;margin-top:11px}
      .create-account-profile-help{grid-column:1/-1;margin-top:0}
      .create-account-foot{padding:13px 18px;align-items:stretch;flex-direction:column}
      .create-account-foot-note{display:none}
      .create-account-foot-actions{width:100%}
      .create-account-foot-actions .btn{flex:1}
      .account-profile-crop-body{padding:17px}
    }
    @media(max-width:480px){
      .create-account-profile-card{grid-template-columns:76px minmax(0,1fr);gap:12px}
      .create-account-profile-preview-wrap,.create-account-profile-preview{width:74px;height:74px}
      .create-account-profile-preview{font-size:18px}
      .create-account-profile-actions{gap:6px}
      .create-account-upload-btn,.create-account-remove-btn{padding:0 10px}
      .account-profile-crop-backdrop{padding:0;align-items:flex-end}
      .account-profile-crop-modal{border-radius:22px 22px 0 0;max-height:96vh}
      .account-profile-crop-head{padding:17px 18px 14px}
      .account-profile-crop-body{padding:16px}
      .account-profile-crop-foot{padding:13px 16px}
    }

    /* V218 — account-screen user settings */
    .account-select-user{gap:8px}
    .account-select-user-chip{min-width:0;display:flex;align-items:center;gap:9px;border:0;background:transparent;padding:3px 5px 3px 3px;border-radius:13px;color:#50596a;cursor:pointer;transition:background .16s ease}
    .account-select-user-chip:hover{background:#f4f3ff}
    .account-select-user-avatar{width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#9185ff 0%,#6c5eea 100%);color:#fff;display:grid;place-items:center;overflow:hidden;flex:0 0 auto;font-size:11px;font-weight:650;letter-spacing:.03em;box-shadow:0 7px 16px rgba(103,88,238,.16)}
    .account-select-user-avatar img{width:100%;height:100%;display:block;object-fit:cover}
    .account-select-user-name{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px;font-weight:550;color:#515a6b}
    /* V221 — polished dashboard top bar with personal settings */
    .top.top-actions-only.dashboard-topbar{
      min-height:72px!important;
      padding:12px 24px!important;
      justify-content:flex-end!important;
      background:rgba(255,255,255,.92)!important;
      border-bottom:1px solid rgba(225,228,237,.95)!important;
      box-shadow:0 10px 28px rgba(30,32,45,.04)!important;
    }
    .dashboard-topbar-brand{
      min-width:0;
      display:flex;
      align-items:center;
      gap:11px;
      flex:0 1 auto;
    }
    .dashboard-topbar-mark{
      width:38px;
      height:38px;
      border-radius:13px;
      display:grid;
      place-items:center;
      color:#fff;
      background:linear-gradient(145deg,#8e82ff 0%,#6556ec 100%);
      box-shadow:0 10px 22px rgba(103,88,238,.18);
      flex:0 0 auto;
    }
    .dashboard-topbar-mark svg{width:19px;height:19px;display:block}
    .dashboard-topbar-brand-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
    .dashboard-topbar-brand-copy strong{
      color:#262b38;
      font-size:14px;
      font-weight:650;
      line-height:1.2;
      letter-spacing:-.015em;
    }
    .dashboard-topbar-brand-copy small{
      color:#8a92a3;
      font-size:11px;
      font-weight:500;
      line-height:1.25;
      white-space:nowrap;
    }
    .dashboard-topbar .top-right{gap:8px!important}
    .dashboard-topbar .top-account-switch{
      height:44px;
      min-width:178px;
      max-width:238px;
      border-color:#e2e4ec;
      border-radius:14px;
      background:#fff;
      box-shadow:0 5px 16px rgba(30,32,45,.035);
    }
    .dashboard-topbar .top-account-switch:hover{
      border-color:#cfc9fb;
      background:#fbfaff;
      box-shadow:0 9px 22px rgba(103,88,238,.10);
      transform:none;
    }
    .dashboard-topbar .top-account-avatar{
      width:32px;
      height:32px;
      border-radius:10px;
      font-weight:700;
      box-shadow:0 7px 16px rgba(117,103,244,.18);
      overflow:hidden;
    }
    .dashboard-topbar .top-account-avatar img,
    .dashboard-topbar .top-profile-avatar img{
      width:100%;
      height:100%;
      display:block;
      object-fit:cover;
    }
    .dashboard-topbar .top-account-copy small{font-size:8.5px;font-weight:650;letter-spacing:.055em}
    .dashboard-topbar .top-account-copy strong{font-size:12px;font-weight:650}
    .dashboard-topbar .top-actions{
      height:44px;
      gap:3px;
      padding:4px;
      border-color:#e2e4ec;
      background:#fff;
      border-radius:14px;
      box-shadow:0 5px 16px rgba(30,32,45,.03);
    }
    .dashboard-topbar .top-action-btn{
      height:34px;
      min-width:34px;
      border-radius:10px;
      padding:0 9px;
      color:#596274;
      font-size:11.5px;
      font-weight:600;
    }
    .dashboard-topbar .top-action-btn:hover{
      color:#5c4ee1;
      background:#f2f0ff;
      transform:none;
    }
    .dashboard-topbar .top-action-btn.settings-action{
      color:#6357de;
      background:#f6f4ff;
    }
    .dashboard-topbar .top-action-btn.settings-action:hover{
      color:#4f42cc;
      background:#ece9ff;
    }
    .dashboard-topbar .top-profile{
      height:44px;
      min-width:142px;
      max-width:205px;
      padding:5px 10px 5px 6px;
      border:1px solid #e2e4ec;
      border-radius:14px;
      background:#fff;
      box-shadow:0 5px 16px rgba(30,32,45,.03);
      cursor:pointer;
      appearance:none;
      font:inherit;
      text-align:left;
      transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
    }
    .dashboard-topbar .top-profile:hover{
      border-color:#d2cdf8;
      background:#fbfaff;
      box-shadow:0 9px 20px rgba(103,88,238,.08);
    }
    .dashboard-topbar .top-profile-avatar{
      width:32px;
      height:32px;
      border-radius:10px;
      overflow:hidden;
      font-weight:700;
    }
    .dashboard-topbar .top-profile-copy strong{font-size:11.5px;font-weight:650}
    .dashboard-topbar .top-profile-copy small{font-size:9.5px;font-weight:500}
    .dashboard-topbar .top-logout-btn{
      width:40px;
      height:40px;
      border-radius:12px;
      background:#fff;
      border-color:#eadfe1;
      color:#b84b55;
      box-shadow:0 4px 12px rgba(30,32,45,.025);
    }
    .dashboard-topbar .top-logout-btn:hover{
      background:#fff3f4;
      border-color:#efc9cd;
      transform:none;
      box-shadow:0 7px 17px rgba(196,58,69,.08);
    }
    .dashboard-topbar .top-account-switch:focus-visible,
    .dashboard-topbar .top-profile:focus-visible,
    .dashboard-topbar .top-action-btn:focus-visible,
    .dashboard-topbar .top-logout-btn:focus-visible{
      outline:0;
      box-shadow:0 0 0 3px rgba(117,103,244,.16);
    }
    @media(max-width:1260px){
      .dashboard-topbar-brand-copy small{display:none}
      .dashboard-topbar .top-profile{min-width:44px;width:44px;padding:5px}
      .dashboard-topbar .top-profile-copy{display:none}
      .dashboard-topbar .top-action-btn b{display:none}
      .dashboard-topbar .top-action-btn{width:34px;padding:0}
    }
    @media(max-width:980px){
      .dashboard-topbar-brand-copy{display:none}
      .dashboard-topbar .top-account-switch{min-width:150px;max-width:190px}
    }
    @media(max-width:760px){
      .top.top-actions-only.dashboard-topbar{
        padding:10px 14px!important;
        min-height:62px!important;
        gap:8px!important;
      }
      .dashboard-topbar-brand{display:none}
      .dashboard-topbar .top-right{
        width:100%!important;
        margin:0!important;
        justify-content:flex-end!important;
        flex-wrap:nowrap!important;
        gap:6px!important;
      }
      .dashboard-topbar .top-account-switch{
        min-width:0;
        width:auto;
        max-width:none;
        flex:1 1 auto;
      }
      .dashboard-topbar .top-account-copy{display:flex}
      .dashboard-topbar .top-account-chevron{display:block}
      .dashboard-topbar .top-profile{display:none}
      .dashboard-topbar .top-actions{flex:0 0 auto}
    }
    @media(max-width:480px){
      .dashboard-topbar .top-account-switch{height:42px;padding-right:7px}
      .dashboard-topbar .top-account-copy small{display:none}
      .dashboard-topbar .top-account-copy strong{font-size:11.5px}
      .dashboard-topbar .top-actions{height:42px}
      .dashboard-topbar .top-action-btn{height:32px;width:32px;min-width:32px}
      .dashboard-topbar .top-logout-btn{width:38px;height:38px}
    }

    /* V222 — clean dashboard header and responsive collapsed sidebar */
    #appView .brand-card{
      background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035))!important;
      border-color:rgba(255,255,255,.09)!important;
    }
    #appView .brand-mark{
      display:grid!important;
      place-items:center!important;
      color:#fff!important;
      background:linear-gradient(145deg,#9489ff 0%,#6758ee 100%)!important;
      box-shadow:0 10px 24px rgba(103,88,238,.24)!important;
    }
    #appView .brand-mark svg{width:19px;height:19px;display:block}
    #appView .brand{font-size:15px!important;font-weight:650!important;letter-spacing:-.018em!important;text-transform:none!important}
    #appView .sidebar-account-name{font-size:10px!important;line-height:1.25!important;letter-spacing:.01em!important;color:#aaaec3!important}
    .dashboard-topbar>.top-right{margin-left:auto!important}

    @media(max-width:900px){
      #appView,
      #appView.sidebar-collapsed{display:block!important;min-height:100dvh!important}
      #appView .side,
      #appView.sidebar-collapsed .side{
        position:fixed!important;
        top:0!important;
        bottom:0!important;
        left:0!important;
        right:auto!important;
        width:72px!important;
        height:100dvh!important;
        overflow:hidden!important;
        z-index:90!important;
      }
      #appView .side-inner,
      #appView.sidebar-collapsed .side-inner{
        height:100dvh!important;
        min-height:0!important;
        display:grid!important;
        grid-template-rows:auto minmax(0,1fr)!important;
        overflow:hidden!important;
      }
      #appView .sidebar-brand-sticky,
      #appView.sidebar-collapsed .sidebar-brand-sticky{
        position:relative!important;
        top:auto!important;
        padding:10px 0 8px!important;
      }
      #appView .brand-card,
      #appView.sidebar-collapsed .brand-card{
        width:50px!important;
        min-width:50px!important;
        max-width:50px!important;
        min-height:50px!important;
        margin:0 auto!important;
        padding:0!important;
        display:grid!important;
        place-items:center!important;
        border-radius:15px!important;
      }
      #appView .brand-mark,
      #appView.sidebar-collapsed .brand-mark{
        width:36px!important;
        height:36px!important;
        margin:0!important;
        border-radius:11px!important;
      }
      #appView .brand-copy,
      #appView.sidebar-collapsed .brand-copy,
      #appView .nav-label,
      #appView.sidebar-collapsed .nav-label,
      #appView #sidebarToggleLabel,
      #appView.sidebar-collapsed #sidebarToggleLabel{display:none!important}
      #appView .sidebar-scroll,
      #appView.sidebar-collapsed .sidebar-scroll{
        min-height:0!important;
        max-height:none!important;
        overflow-y:auto!important;
        overflow-x:hidden!important;
        padding:8px 0 12px!important;
        scrollbar-width:none!important;
      }
      #appView .sidebar-scroll::-webkit-scrollbar,
      #appView.sidebar-collapsed .sidebar-scroll::-webkit-scrollbar{display:none!important}
      #appView .nav,
      #appView.sidebar-collapsed .nav{
        width:100%!important;
        display:flex!important;
        flex-direction:column!important;
        align-items:center!important;
        gap:7px!important;
      }
      #appView .nav button,
      #appView.sidebar-collapsed .nav button{
        width:46px!important;
        min-width:46px!important;
        max-width:46px!important;
        height:44px!important;
        min-height:44px!important;
        margin:0 auto!important;
        padding:0!important;
        display:grid!important;
        place-items:center!important;
        justify-content:center!important;
        gap:0!important;
        border-radius:12px!important;
      }
      #appView .nav-ico,
      #appView.sidebar-collapsed .nav-ico{
        width:30px!important;
        height:30px!important;
        margin:0!important;
        display:grid!important;
        place-items:center!important;
        flex:none!important;
      }
      #appView .nav button.active:after,
      #appView.sidebar-collapsed .nav button.active:after{display:none!important}
      #appView .sidebar-tail,
      #appView.sidebar-collapsed .sidebar-tail{display:none!important}
      #appView .main,
      #appView.sidebar-collapsed .main{
        width:auto!important;
        min-width:0!important;
        margin-left:72px!important;
        padding:16px!important;
      }
      .top.top-actions-only.dashboard-topbar{
        min-height:62px!important;
        padding:9px 12px!important;
        border-radius:0!important;
      }
      .dashboard-topbar .top-right{
        width:100%!important;
        min-width:0!important;
        justify-content:flex-end!important;
        gap:6px!important;
      }
      .dashboard-topbar .top-account-switch{
        min-width:0!important;
        max-width:210px!important;
        flex:1 1 auto!important;
      }
      .dashboard-topbar .top-profile{display:none!important}
      .dashboard-topbar .top-actions{flex:0 0 auto!important}
      .page-header{min-height:58px!important;padding-top:12px!important}
      .page-header-title{font-size:25px!important}
    }
    @media(max-width:600px){
      #appView .main,
      #appView.sidebar-collapsed .main{padding:12px!important}
      .top.top-actions-only.dashboard-topbar{padding:8px 9px!important;min-height:58px!important}
      .dashboard-topbar .top-account-switch{
        width:42px!important;
        min-width:42px!important;
        max-width:42px!important;
        flex:0 0 42px!important;
        height:42px!important;
        padding:4px!important;
        justify-content:center!important;
      }
      .dashboard-topbar .top-account-avatar{width:32px!important;height:32px!important;margin:0!important}
      .dashboard-topbar .top-account-copy,
      .dashboard-topbar .top-account-chevron{display:none!important}
      .dashboard-topbar .top-actions{height:42px!important;padding:4px!important}
      .dashboard-topbar .top-action-btn{width:32px!important;min-width:32px!important;height:32px!important;padding:0!important}
      .dashboard-topbar .top-action-btn b{display:none!important}
      .dashboard-topbar .top-logout-btn{width:38px!important;height:38px!important}
      .page-header{gap:10px!important;margin-bottom:12px!important}
      .page-header-title{font-size:22px!important}
    }
    @media(max-width:380px){
      #appView .side,
      #appView.sidebar-collapsed .side{width:64px!important}
      #appView .main,
      #appView.sidebar-collapsed .main{margin-left:64px!important;padding:10px!important}
      #appView .brand-card,
      #appView.sidebar-collapsed .brand-card{width:46px!important;min-width:46px!important;max-width:46px!important;min-height:46px!important}
      #appView .brand-mark,
      #appView.sidebar-collapsed .brand-mark{width:34px!important;height:34px!important}
      #appView .nav button,
      #appView.sidebar-collapsed .nav button{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important}
      .dashboard-topbar .top-right{gap:4px!important}
      .dashboard-topbar .top-actions{gap:1px!important}
      .page-header-title{font-size:20px!important}
    }

    /* V219 — direct account-screen boot + refined top-bar settings action */
    .account-select-settings,.account-select-logout{width:38px;height:38px;border:1px solid #e3e6ee;background:#fff;color:#697284;border-radius:12px;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px rgba(37,40,58,.035);transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}
    .account-select-settings{color:#6357de;border-color:#dedafd;background:#f7f6ff}
    .account-select-settings:hover{color:#5144cf;border-color:#cbc5fb;background:#efedff;box-shadow:0 7px 18px rgba(103,88,238,.12)}
    .account-select-logout:hover{color:#5b4ded;border-color:#d5d0fc;background:#faf9ff}
    .account-select-settings svg{width:18px;height:18px;display:block}
    .account-select-logout svg{width:16px;height:16px;display:block}
    .account-select-settings:focus-visible,.account-select-logout:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(117,103,244,.16)}

    .user-settings-backdrop{padding:24px;align-items:center;justify-content:center}
    .user-settings-modal{width:min(880px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 48px));background:#fff;border:1px solid #e7e9f1;border-radius:26px;box-shadow:0 34px 100px rgba(24,28,42,.24);overflow:hidden;display:flex;flex-direction:column}
    .user-settings-head{position:relative;display:flex;align-items:flex-start;gap:14px;padding:23px 26px 20px;border-bottom:1px solid #eceef4;background:linear-gradient(180deg,#fbfbfd 0%,#fff 100%)}
    .user-settings-head-icon{width:46px;height:46px;border-radius:15px;background:#f0eeff;border:1px solid #ded9ff;color:#6557e8;display:grid;place-items:center;flex:0 0 auto}
    .user-settings-head-icon svg{width:21px;height:21px}
    .user-settings-head-copy{padding-right:42px;min-width:0}
    .user-settings-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#8c94a5;font-weight:650}
    .user-settings-title{margin:5px 0 0;font-size:23px;line-height:1.25;color:#222735;font-weight:680;letter-spacing:-.03em}
    .user-settings-subtitle{margin:7px 0 0;color:#727b8d;font-size:12.8px;line-height:1.55}
    .user-settings-close{position:absolute;top:17px;right:18px;width:36px;height:36px;border:1px solid transparent;background:transparent;color:#8b93a3;border-radius:11px;display:grid;place-items:center;cursor:pointer;font-size:22px;line-height:1}
    .user-settings-close:hover{background:#fff;border-color:#e5e7ee;color:#303644}
    .user-settings-body{min-height:0;display:grid;grid-template-columns:190px minmax(0,1fr);flex:1;overflow:hidden}
    .user-settings-nav{padding:18px 14px;border-right:1px solid #eceef4;background:#fafbfc;display:flex;flex-direction:column;gap:7px}
    .user-settings-nav-btn{width:100%;border:1px solid transparent;background:transparent;color:#687183;border-radius:12px;padding:11px 12px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;font-size:12.5px;font-weight:550}
    .user-settings-nav-btn svg{width:17px;height:17px;flex:0 0 auto}
    .user-settings-nav-btn:hover{background:#f2f3f7;color:#343a48}
    .user-settings-nav-btn.active{background:#efedff;border-color:#ddd8ff;color:#5c4fe0}
    .user-settings-nav-foot{margin-top:auto;padding:14px 10px 4px;color:#9aa2b2;font-size:10.5px;line-height:1.5}
    .user-settings-content{min-width:0;overflow:auto;padding:24px 26px 28px}
    .user-settings-panel.hidden{display:none!important}
    .user-settings-section-head h3{margin:0;font-size:17px;color:#2a303d;font-weight:650;letter-spacing:-.018em}
    .user-settings-section-head p{margin:6px 0 0;color:#81899a;font-size:12px;line-height:1.5}
    .user-profile-card{margin-top:18px;padding:18px;border:1px solid #e8eaf1;background:#fafbfc;border-radius:18px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center}
    .user-profile-avatar-wrap{position:relative}
    .user-profile-avatar{width:92px;height:92px;border-radius:26px;background:linear-gradient(145deg,#9185ff 0%,#6c5eea 100%);color:#fff;display:grid;place-items:center;overflow:hidden;font-size:23px;font-weight:650;letter-spacing:.04em;box-shadow:0 14px 28px rgba(103,88,238,.18)}
    .user-profile-avatar img{width:100%;height:100%;display:block;object-fit:cover}
    .user-profile-camera{position:absolute;right:-3px;bottom:-3px;width:30px;height:30px;border-radius:10px;background:#fff;border:1px solid #e0e3eb;color:#6658e8;display:grid;place-items:center;box-shadow:0 7px 16px rgba(37,40,58,.10)}
    .user-profile-camera svg{width:14px;height:14px}
    .user-profile-actions h4{margin:0;color:#303644;font-size:13px;font-weight:620}
    .user-profile-actions p{margin:5px 0 12px;color:#858d9e;font-size:11.5px;line-height:1.5}
    .user-profile-action-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
    .user-profile-upload,.user-profile-remove{min-height:36px;border-radius:11px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:600;cursor:pointer}
    .user-profile-upload{background:#6557e8;border:1px solid #6557e8;color:#fff}
    .user-profile-upload:hover{background:#5649d8}
    .user-profile-remove{background:#fff;border:1px solid #e1e4ec;color:#7b8495}
    .user-profile-remove:hover{border-color:#f0c9ce;background:#fff6f7;color:#c94a57}
    .user-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:18px}
    .user-settings-field{display:flex;flex-direction:column;gap:7px}
    .user-settings-field.wide{grid-column:1/-1}
    .user-settings-field label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#596173;font-size:11.5px;font-weight:620}
    .user-settings-field label small{color:#9aa2b2;font-size:10px;font-weight:500}
    .user-settings-field input{width:100%;min-height:44px;border:1px solid #dde1ea;background:#fff;border-radius:12px;padding:0 13px;color:#2d3340;font-size:13px;outline:0;transition:border-color .16s ease,box-shadow .16s ease}
    .user-settings-field input:focus{border-color:#aaa1f5;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
    .user-settings-field input[readonly]{background:#f7f8fa;color:#7c8596;cursor:default}
    .user-settings-field-help{color:#929aaa;font-size:10.5px;line-height:1.45}
    .user-settings-verified{display:inline-flex;align-items:center;gap:5px;color:#18865b;font-size:10px;font-weight:600}
    .user-settings-verified svg{width:12px;height:12px}
    .user-settings-save-row{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:22px;padding-top:18px;border-top:1px solid #eceef4}
    .user-settings-save{min-height:42px!important;padding:0 16px!important;border-radius:12px!important}

    .user-security-card{margin-top:18px;padding:18px;border:1px solid #e8eaf1;background:#fff;border-radius:18px}
    .user-security-status{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e6e8ef;background:#fafbfc;border-radius:14px;margin-bottom:17px}
    .user-security-status-icon{width:38px;height:38px;border-radius:12px;background:#edf8f2;color:#18865b;display:grid;place-items:center;flex:0 0 auto}
    .user-security-status-icon svg{width:18px;height:18px}
    .user-security-status strong{display:block;color:#313744;font-size:12.5px;font-weight:620}
    .user-security-status span{display:block;margin-top:3px;color:#858d9e;font-size:10.8px;line-height:1.4}
    .user-password-grid{display:grid;grid-template-columns:1fr;gap:13px}
    .user-password-wrap{position:relative}
    .user-password-wrap input{padding-right:46px}
    .user-password-toggle{position:absolute;top:50%;right:6px;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:#8790a1;border-radius:9px;display:grid;place-items:center;cursor:pointer}
    .user-password-toggle:hover{background:#f0eefc;color:#5d4fe5}
    .user-password-toggle svg{width:16px;height:16px}
    .user-password-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin-top:4px;color:#8d95a5;font-size:10.5px}
    .user-password-rules span{display:flex;align-items:center;gap:6px}
    .user-password-rules span:before{content:'';width:5px;height:5px;border-radius:999px;background:#b9c0cc}
    .user-security-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:17px}
    .user-password-update{min-height:42px!important;padding:0 16px!important;border-radius:12px!important}
    .user-reset-card{margin-top:14px;padding:15px 16px;border:1px solid #e8eaf1;background:#fafbfc;border-radius:15px;display:flex;align-items:center;justify-content:space-between;gap:16px}
    .user-reset-card strong{display:block;color:#343a48;font-size:12px;font-weight:620}
    .user-reset-card p{margin:4px 0 0;color:#858d9e;font-size:10.8px;line-height:1.45}
    .user-reset-card button{flex:0 0 auto;min-height:38px;border:1px solid #dddfe8;background:#fff;color:#5c6577;border-radius:11px;padding:0 12px;font-size:11px;font-weight:600;cursor:pointer}
    .user-reset-card button:hover{border-color:#d3cdfb;color:#5b4ded;background:#faf9ff}

    .user-profile-crop-modal{width:min(500px,calc(100vw - 32px));background:#fff;border:1px solid #e7e9f1;border-radius:24px;box-shadow:0 30px 90px rgba(24,28,42,.24);overflow:hidden}
    .user-profile-crop-head{position:relative;padding:21px 23px 18px;border-bottom:1px solid #eceef4}
    .user-profile-crop-head h3{margin:0;color:#282e3a;font-size:18px;font-weight:660}
    .user-profile-crop-head p{margin:6px 38px 0 0;color:#81899a;font-size:11.5px;line-height:1.5}
    .user-profile-crop-body{padding:20px 23px}
    .user-profile-crop-stage{position:relative;width:min(320px,100%);aspect-ratio:1/1;margin:0 auto;border-radius:22px;overflow:hidden;background:#f2f3f7;touch-action:none;cursor:grab}
    .user-profile-crop-stage.is-dragging{cursor:grabbing}
    .user-profile-crop-stage canvas{width:100%;height:100%;display:block}
    .user-profile-crop-mask{position:absolute;inset:0;background:radial-gradient(circle at center,transparent 0 49%,rgba(20,23,31,.52) 50% 100%);pointer-events:none}
    .user-profile-crop-ring{position:absolute;inset:7%;border:2px solid rgba(255,255,255,.95);border-radius:999px;box-shadow:0 0 0 1px rgba(0,0,0,.08);pointer-events:none}
    .user-profile-crop-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:18px;color:#7b8495;font-size:10.5px}
    .user-profile-crop-controls input{width:100%}
    .user-profile-crop-tip{margin-top:10px;color:#959dac;font-size:10.5px;text-align:center}
    .user-profile-crop-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 23px 19px;border-top:1px solid #eceef4;background:#fafbfc}
    .user-profile-crop-reset{border:0;background:transparent;color:#6658e8;font-size:11px;font-weight:600;cursor:pointer}
    .user-profile-crop-actions{display:flex;gap:8px}

    @media(max-width:760px){
      .account-select-user-name{display:none}
      .account-select-user-chip{padding:3px}
      .user-settings-backdrop{padding:12px;align-items:flex-end}
      .user-settings-modal{width:100%;max-height:calc(100vh - 24px);border-radius:24px 24px 18px 18px}
      .user-settings-head{padding:19px 18px 17px}
      .user-settings-head-icon{width:42px;height:42px}
      .user-settings-title{font-size:20px}
      .user-settings-body{display:block;overflow:auto}
      .user-settings-nav{position:sticky;top:0;z-index:3;border-right:0;border-bottom:1px solid #eceef4;padding:10px 14px;background:rgba(250,251,252,.96);backdrop-filter:blur(10px);flex-direction:row}
      .user-settings-nav-btn{justify-content:center;flex:1;padding:10px}
      .user-settings-nav-foot{display:none}
      .user-settings-content{overflow:visible;padding:20px 18px 24px}
      .user-settings-form{grid-template-columns:1fr}
      .user-profile-card{grid-template-columns:1fr;text-align:center}
      .user-profile-avatar-wrap{justify-self:center}
      .user-profile-action-row{justify-content:center}
      .user-settings-save-row,.user-security-actions{justify-content:stretch}
      .user-settings-save,.user-password-update{width:100%}
      .user-reset-card{align-items:flex-start;flex-direction:column}
      .user-reset-card button{width:100%}
    }
    @media(max-width:480px){
      .account-select-user{gap:6px}
      .account-select-user .account-select-user-avatar{display:grid;width:38px;height:38px;border-radius:12px}
      .account-select-user .account-select-user-name{display:none}
      .account-select-settings,.account-select-logout{width:40px;height:40px}
      .user-settings-head-copy{padding-right:30px}
      .user-settings-subtitle{font-size:11.5px}
      .user-settings-content{padding-left:14px;padding-right:14px}
      .user-profile-card,.user-security-card{padding:15px}
      .user-password-rules{grid-template-columns:1fr}
      .user-profile-crop-foot{align-items:stretch;flex-direction:column}
      .user-profile-crop-actions{display:grid;grid-template-columns:1fr 1fr}
    }

    /* V142 — clean login screen */
    body:has(#loginView:not(.hidden)){
      min-height:100vh;
      background:
        radial-gradient(circle at 15% 10%,rgba(117,103,244,.13),transparent 30%),
        radial-gradient(circle at 85% 90%,rgba(117,103,244,.08),transparent 30%),
        #f7f8fc!important;
    }
    .login-minimal-shell{
      min-height:100vh!important;
      padding:28px!important;
      display:flex!important;
      align-items:center!important;
      justify-content:center!important;
    }
    .login-minimal-card{
      width:min(440px,100%)!important;
      padding:30px!important;
      border:1px solid #e5e7ef!important;
      border-radius:26px!important;
      background:rgba(255,255,255,.96)!important;
      box-shadow:0 24px 70px rgba(34,38,58,.11)!important;
      backdrop-filter:blur(18px);
      -webkit-backdrop-filter:blur(18px);
    }
    .login-minimal-brand{
      display:flex!important;
      align-items:center!important;
      gap:13px!important;
      margin-bottom:28px!important;
    }
    .login-minimal-mark{
      width:48px!important;
      height:48px!important;
      border-radius:16px!important;
      background:linear-gradient(135deg,#887afd 0%,#6758ee 100%)!important;
      color:#fff!important;
      font-size:11px!important;
      font-weight:800!important;
      letter-spacing:.05em!important;
      box-shadow:0 14px 28px rgba(117,103,244,.25)!important;
    }
    .login-minimal-title{
      font-size:20px!important;
      line-height:1.2!important;
      font-weight:750!important;
      color:#202431!important;
      letter-spacing:-.025em!important;
    }
    .login-minimal-sub{
      margin-top:4px!important;
      font-size:13px!important;
      color:#7e8798!important;
      font-weight:400!important;
    }
    .login-minimal-form{display:block!important}
    .login-minimal-card .login-form-field{margin-bottom:16px!important}
    .login-minimal-card .login-form-field label{
      display:block!important;
      margin-bottom:7px!important;
      color:#4f5667!important;
      font-size:13px!important;
      font-weight:600!important;
    }
    .login-field-wrap{
      position:relative;
      display:flex;
      align-items:center;
    }
    .login-field-icon{
      position:absolute;
      left:14px;
      width:18px;
      height:18px;
      color:#929aab;
      pointer-events:none;
      z-index:1;
    }
    .login-field-icon svg{width:18px;height:18px;display:block}
    .login-minimal-card .login-field-wrap input{
      width:100%!important;
      height:48px!important;
      padding:0 44px 0 43px!important;
      border:1px solid #dfe3ec!important;
      border-radius:14px!important;
      background:#fbfcff!important;
      color:#252a36!important;
      font-size:14px!important;
      font-weight:450!important;
      transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
    }
    .login-minimal-card .login-field-wrap.email input{padding-right:14px!important}
    .login-minimal-card .login-field-wrap input::placeholder{color:#a2a9b7}
    .login-minimal-card .login-field-wrap input:focus{
      outline:0!important;
      background:#fff!important;
      border-color:#8b7ff5!important;
      box-shadow:0 0 0 4px rgba(117,103,244,.12)!important;
    }
    .login-password-toggle{
      position:absolute;
      right:8px;
      width:34px;
      height:34px;
      border:0;
      border-radius:10px;
      background:transparent;
      color:#7f8799;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
      transition:background .15s ease,color .15s ease;
    }
    .login-password-toggle:hover{background:#f0eefc;color:#5d4fe5}
    .login-password-toggle:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(117,103,244,.16)}
    .login-password-toggle svg{width:18px;height:18px;display:block}
    .login-primary-row{margin-top:8px}
    .login-minimal-login{
      width:100%!important;
      height:48px!important;
      margin:0!important;
      border-radius:14px!important;
      font-size:14px!important;
      font-weight:650!important;
      box-shadow:0 12px 24px rgba(117,103,244,.22)!important;
    }
    .login-minimal-login:hover{transform:translateY(-1px)}
    .login-security-note{
      display:flex;
      align-items:center;
      justify-content:center;
      gap:7px;
      margin-top:18px;
      color:#8a92a2;
      font-size:12px;
      font-weight:400;
    }
    .login-security-note svg{width:14px;height:14px;color:#6f63e8}
    @media(max-width:520px){
      .login-minimal-shell{padding:16px!important}
      .login-minimal-card{padding:24px!important;border-radius:22px!important}
    }



    /* V143 — Visual + Advanced SEO Rule Builder */
    .rule-editor-modal{width:min(1080px,calc(100vw - 32px))!important;max-height:94vh!important}
    .rule-editor-modal .modal-body{padding:18px!important;background:#fbfbfd}
    .rule-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
    .rule-editor-main{display:flex;flex-direction:column;gap:14px;min-width:0}
    .rule-editor-side{position:sticky;top:0;display:flex;flex-direction:column;gap:12px}
    .rule-editor-section{background:#fff;border:1px solid #e7e9f0;border-radius:18px;padding:15px;box-shadow:0 7px 20px rgba(30,32,45,.035)}
    .rule-editor-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
    .rule-editor-section-title{font-size:15px;font-weight:700;color:#272b37;letter-spacing:-.01em}
    .rule-editor-section-sub{font-size:12px;color:#81899a;line-height:1.45;margin-top:3px}
    .rule-editor-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
    .rule-editor-fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rule-editor-field label{display:block;margin:0 0 6px;font-size:12px;font-weight:600;color:#596174}
    .rule-editor-field input,.rule-editor-field select,.rule-editor-field textarea{border-radius:12px;border-color:#e0e3eb;background:#fff}
    .rule-mode-tabs{display:inline-flex;align-items:center;padding:4px;border:1px solid #e2e5ed;border-radius:13px;background:#f5f6fa;gap:3px}
    .rule-mode-tab{height:34px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#697286;font-size:12px;font-weight:600;cursor:pointer}
    .rule-mode-tab.active{background:#fff;color:#5d4fe8;box-shadow:0 5px 14px rgba(60,63,89,.08)}
    .rule-builder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
    .rule-match-control{display:flex;align-items:center;gap:8px;color:#60697c;font-size:12px}
    .rule-match-control select{width:auto;min-width:126px;height:36px;padding:7px 32px 7px 10px;border-radius:11px}
    .rule-condition-list{display:flex;flex-direction:column;gap:10px}
    .rule-condition-row{display:grid;grid-template-columns:minmax(145px,1.15fr) minmax(150px,1.15fr) 110px minmax(145px,1fr) 36px;gap:8px;align-items:end;padding:11px;border:1px solid #e8eaf1;border-radius:15px;background:#fcfcfe}
    .rule-condition-row.boolean{grid-template-columns:minmax(170px,1fr) minmax(190px,1.2fr) 36px}
    .rule-condition-row.simple-value{grid-template-columns:minmax(160px,1fr) minmax(180px,1.1fr) minmax(190px,1.25fr) 36px}
    .rule-condition-label{font-size:10.5px;color:#8a92a3;margin-bottom:5px;font-weight:600}
    .rule-condition-row select,.rule-condition-row input{height:38px;border-radius:10px;padding:8px 10px;font-size:12px}
    .rule-condition-remove{width:36px;height:38px;border:1px solid #f0d8dc;background:#fff7f8;color:#c43a45;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px}
    .rule-condition-remove:disabled{opacity:.35;cursor:not-allowed}
    .rule-builder-empty{padding:18px;border:1px dashed #dfe3ec;border-radius:14px;color:#7f8798;text-align:center;background:#fafbfe;font-size:12px}
    .rule-generated-box{border:1px solid #e4e1fb;background:#f8f7ff;border-radius:14px;overflow:hidden;margin-top:12px}
    .rule-generated-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #e7e3ff;color:#5c50c9;font-size:11px;font-weight:700}
    .rule-generated-natural{padding:11px 12px;font-size:12.5px;color:#3d4352;line-height:1.5;border-bottom:1px solid #ece9ff}
    .rule-generated-formula{padding:11px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;line-height:1.55;color:#39345e;white-space:pre-wrap;word-break:break-word;max-height:150px;overflow:auto}
    .rule-advanced-tools{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px}
    .rule-insert-btn{border:1px solid #e1e4ec;background:#f7f8fb;color:#5e6678;border-radius:9px;padding:6px 9px;font-size:11px;cursor:pointer}
    .rule-insert-btn:hover{border-color:#cfcaf8;background:#f2f0ff;color:#5b4ded}
    .rule-test-card{background:#fff;border:1px solid #e7e9f0;border-radius:18px;padding:14px;box-shadow:0 7px 20px rgba(30,32,45,.035)}
    .rule-test-card select{height:40px;border-radius:11px;margin-top:9px}
    .rule-test-actions{display:flex;gap:8px;margin-top:9px}
    .rule-test-actions .btn{margin:0;flex:1}
    .rule-test-result{margin-top:10px;border-radius:12px;padding:10px 11px;font-size:12px;line-height:1.45;border:1px solid #e5e8ef;background:#f8f9fc;color:#6f7788}
    .rule-test-result.pass{border-color:#ccebdc;background:#f0fff7;color:#08734f}
    .rule-test-result.fail{border-color:#ffd4db;background:#fff3f5;color:#b83245}
    .rule-test-result.error{border-color:#f4dcaa;background:#fff8e8;color:#8d6100}
    .rule-weight-card{background:linear-gradient(135deg,#7567f4,#5d4fe8);border-radius:18px;padding:15px;color:#fff;box-shadow:0 14px 28px rgba(117,103,244,.18)}
    .rule-weight-label{font-size:11px;color:rgba(255,255,255,.74)}
    .rule-weight-value{font-size:28px;font-weight:700;line-height:1;margin-top:7px}
    .rule-weight-sub{font-size:11px;color:rgba(255,255,255,.74);margin-top:7px;line-height:1.45}
    .rule-condition-summary{font-size:12px;line-height:1.45;color:#4f5667;max-width:460px}
    .rule-type-pill{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#f1efff;color:#5b4ded;font-size:10.5px;font-weight:600;margin-top:5px}
    .rule-view-condition-list{display:flex;flex-direction:column;gap:8px}
    .rule-view-condition{padding:10px 11px;border:1px solid #e8eaf1;border-radius:12px;background:#fcfcfe;font-size:12.5px;color:#424858}
    .rule-field-token-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
    @media(max-width:900px){.rule-editor-grid{grid-template-columns:1fr}.rule-editor-side{position:relative}.rule-editor-fields,.rule-editor-fields.two{grid-template-columns:1fr 1fr}.rule-condition-row{grid-template-columns:1fr 1fr}.rule-condition-row .rule-condition-remove{grid-column:2;justify-self:end}.rule-condition-row.boolean{grid-template-columns:1fr 1fr}}
    @media(max-width:620px){.rule-editor-fields,.rule-editor-fields.two,.rule-condition-row,.rule-condition-row.boolean{grid-template-columns:1fr}.rule-condition-row .rule-condition-remove{grid-column:1;justify-self:end}}



    /* V144 — advanced visual rule builder + refined SEO Rules table */
    .rule-builder-presetbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:12px;border:1px solid #e7e9f1;border-radius:14px;background:#fafbfe}
    .rule-builder-preset-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
    .rule-builder-preset-left select{width:auto;min-width:220px;height:36px;border-radius:10px;font-size:12px}
    .rule-builder-count{display:inline-flex;align-items:center;gap:6px;color:#7b8496;font-size:11.5px}
    .rule-builder-count strong{color:#4f5668;font-weight:650}
    .rule-logic-group{border:1px solid #e3e6ef;border-radius:17px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(30,32,45,.028)}
    .rule-logic-group + .rule-logic-group{margin-top:12px}
    .rule-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-bottom:1px solid #eceef4;background:#fafbfe}
    .rule-group-head-left,.rule-group-head-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
    .rule-group-index{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:27px;padding:0 8px;border-radius:9px;background:#f0eeff;color:#5c4de8;font-size:11px;font-weight:700}
    .rule-group-match{display:flex;align-items:center;gap:7px;color:#70798c;font-size:11.5px}
    .rule-group-match select{width:auto;min-width:112px;height:32px;padding:5px 28px 5px 9px;border-radius:9px;font-size:11.5px}
    .rule-switch-label{display:inline-flex;align-items:center;gap:6px;color:#697286;font-size:11.5px;cursor:pointer;user-select:none}
    .rule-switch-label input{width:15px;height:15px;margin:0;accent-color:#7567f4}
    .rule-mini-icon-btn{width:31px;height:31px;border:1px solid #e2e5ed;background:#fff;color:#6f7788;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
    .rule-mini-icon-btn:hover{border-color:#cfcaf8;background:#f4f2ff;color:#5b4ded}
    .rule-mini-icon-btn.danger:hover{border-color:#f0cfd5;background:#fff3f5;color:#c33a4b}
    .rule-mini-icon-btn:disabled{opacity:.35;cursor:not-allowed}
    .rule-mini-icon-btn svg{width:14px;height:14px}
    .rule-group-body{padding:11px}
    .rule-group-actions{display:flex;align-items:center;justify-content:flex-end;padding-top:9px}
    .rule-condition-card{border:1px solid #e9ebf2;border-radius:14px;background:#fcfcfe;padding:11px}
    .rule-condition-card + .rule-condition-card{margin-top:9px}
    .rule-condition-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}
    .rule-condition-card-title{display:flex;align-items:center;gap:8px;min-width:0}
    .rule-condition-number{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;background:#eef0f5;color:#646d7e;font-size:10.5px;font-weight:700;flex:0 0 auto}
    .rule-condition-live-summary{font-size:11.5px;color:#646d7e;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:560px}
    .rule-condition-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}
    .rule-condition-grid{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(170px,1.2fr) minmax(105px,.72fr) minmax(150px,1fr);gap:8px;align-items:end}
    .rule-condition-grid.two{grid-template-columns:minmax(170px,1fr) minmax(190px,1.2fr)}
    .rule-condition-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
    .rule-condition-grid.five{grid-template-columns:minmax(135px,1fr) minmax(145px,1fr) minmax(110px,.72fr) minmax(130px,.9fr) minmax(100px,.72fr)}
    .rule-condition-grid.six{grid-template-columns:minmax(130px,1fr) minmax(145px,1fr) minmax(125px,.9fr) minmax(130px,.95fr) minmax(95px,.65fr) minmax(95px,.65fr)}
    .rule-condition-field label{display:block;margin:0 0 5px;color:#858d9f;font-size:10.5px;font-weight:550}
    .rule-condition-field select,.rule-condition-field input{height:37px;border-radius:10px;padding:7px 9px;font-size:11.5px;background:#fff}
    .rule-condition-options{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:9px;padding-top:9px;border-top:1px solid #eceef3}
    .rule-condition-options .rule-switch-label{font-size:10.8px}
    .rule-group-add-btn{height:34px!important;padding:0 11px!important;margin:0!important;border-radius:10px!important;font-size:11.5px!important;box-shadow:none!important}
    .rule-add-group-row{display:flex;align-items:center;justify-content:center;margin-top:12px}
    .rule-add-group-btn{border:1px dashed #cfcaf8;background:#faf9ff;color:#5b4ded;border-radius:12px;height:38px;padding:0 14px;font-size:12px;font-weight:600;cursor:pointer}
    .rule-add-group-btn:hover{background:#f3f1ff;border-style:solid}
    .rule-builder-validation{display:flex;align-items:flex-start;gap:8px;padding:9px 11px;border-top:1px solid #ece9ff;background:#fff;color:#6f7788;font-size:11.5px;line-height:1.4}
    .rule-builder-validation.ready{color:#08734f;background:#f5fff9}
    .rule-builder-validation.error{color:#b83245;background:#fff6f7}
    .rule-builder-validation-dot{width:7px;height:7px;border-radius:999px;background:currentColor;margin-top:4px;flex:0 0 auto}

    #appView.management-page .rule-table-shell{border-radius:18px!important;border:1px solid #e5e8ef!important;box-shadow:0 8px 24px rgba(34,38,58,.035)!important}
    #appView.management-page .rule-table{min-width:1100px!important}
    #appView.management-page .rule-table th{background:#f7f8fb!important;color:#737c8f!important;border-bottom:1px solid #e6e9f0!important;padding:12px 14px!important;font-size:10.5px!important;font-weight:650!important;letter-spacing:.045em!important}
    #appView.management-page .rule-table td{padding:13px 14px!important;vertical-align:middle!important;border-bottom:1px solid #eef0f4!important}
    #appView.management-page .rule-table tbody tr:last-child td{border-bottom:0!important}
    #appView.management-page .rule-table tbody tr:hover td{background:#fbfaff!important}
    .rule-table-name{font-size:13.5px;font-weight:650;color:#272b37;line-height:1.35}
    .rule-table-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px;color:#8890a0;font-size:10.8px}
    .rule-table-dot{width:3px;height:3px;border-radius:999px;background:#b8becb}
    .rule-logic-cell{max-width:390px}
    .rule-logic-summary{color:#4f5667;font-size:12px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .rule-logic-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px}
    .rule-mini-chip{display:inline-flex;align-items:center;min-height:23px;padding:4px 7px;border-radius:999px;background:#f1f3f7;color:#71798b;font-size:10px;font-weight:550;line-height:1}
    .rule-mini-chip.purple{background:#f0eeff;color:#5c4de8}
    .rule-scope-list{display:flex;align-items:center;gap:5px;flex-wrap:wrap;max-width:210px}
    .rule-scope-chip{display:inline-flex;align-items:center;min-height:25px;padding:5px 8px;border:1px solid #e2e5ed;background:#fff;border-radius:9px;color:#5f687a;font-size:10.5px;line-height:1.2}
    .rule-weight-cell{min-width:120px}
    .rule-weight-main{display:flex;align-items:baseline;gap:4px;color:#272b37}
    .rule-weight-main strong{font-size:16px;font-weight:700}
    .rule-weight-main span{font-size:10.5px;color:#8991a1}
    .rule-weight-track{height:5px;border-radius:999px;background:#eceef3;overflow:hidden;margin-top:7px}
    .rule-weight-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#8174f6,#6557e9)}
    .rule-weight-share{margin-top:5px;color:#8b93a3;font-size:10.2px}
    .rule-state-stack{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
    .rule-status-pill{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:4px 8px;border-radius:999px;font-size:10.5px;font-weight:600}
    .rule-status-pill:before{content:'';width:6px;height:6px;border-radius:999px;background:currentColor}
    .rule-status-pill.active{background:#ecfaf3;color:#0c8a59}
    .rule-status-pill.disabled{background:#f1f3f7;color:#7b8394}
    .rule-table-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
    .rule-table-action{width:32px;height:32px;border:1px solid #e1e4eb;background:#fff;color:#687184;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
    .rule-table-action:hover{border-color:#cfcaf8;background:#f3f1ff;color:#5c4de8}
    .rule-table-action.warning:hover{border-color:#f0d4aa;background:#fff8e8;color:#9b6500}
    .rule-table-action svg{width:14px;height:14px}
    .rule-view-group{border:1px solid #e6e9f0;border-radius:14px;overflow:hidden;background:#fff}
    .rule-view-group + .rule-view-group{margin-top:10px}
    .rule-view-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#f8f9fc;border-bottom:1px solid #eaecf2;font-size:11.5px;color:#60697b}
    .rule-view-group-body{padding:10px}
    @media(max-width:980px){.rule-condition-grid,.rule-condition-grid.five,.rule-condition-grid.six{grid-template-columns:1fr 1fr}.rule-condition-live-summary{max-width:320px}}
    @media(max-width:640px){.rule-builder-preset-left{width:100%}.rule-builder-preset-left select{width:100%}.rule-condition-grid,.rule-condition-grid.two,.rule-condition-grid.three,.rule-condition-grid.five,.rule-condition-grid.six{grid-template-columns:1fr}.rule-group-head{align-items:flex-start}.rule-condition-card-head{align-items:flex-start}.rule-condition-live-summary{white-space:normal;max-width:none}.rule-condition-actions{flex-wrap:wrap;justify-content:flex-end}}


    /* Dedicated screen separation */
    #content[data-screen="keyword-research"] .keyword-tag-settings-shell{display:none!important}
    #content[data-screen="keywords-tags"] .keyword-control-panel,
    #content[data-screen="keywords-tags"] .keyword-table-shell,
    #content[data-screen="keywords-tags"] .kpi-grid.keyword-kpi-grid{display:none!important}
    #keywordsTagsScreen{display:block!important}

    /* Keywords + Tags configuration */
    /* Keywords + Tags — compact management UI */
    .keyword-tag-settings-shell{display:flex;flex-direction:column;gap:14px}
    .keyword-tag-manager{
      background:#fff;
      border:1px solid #e6e8f0;
      border-radius:18px;
      overflow:hidden;
      box-shadow:0 8px 24px rgba(34,38,58,.04);
    }
    .keyword-tag-manager-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:14px 16px;
      border-bottom:1px solid #e9ebf1;
      background:#fbfbfd;
    }
    .keyword-tag-manager-title{font-size:15px;font-weight:700;color:#292e3b}
    .keyword-tag-manager-meta{font-size:12.5px;color:#858d9e}
    .keyword-tag-table-wrap{overflow:auto}
    .keyword-tag-table{width:100%;min-width:880px;border-collapse:collapse}
    .keyword-tag-table th{
      padding:11px 14px;
      background:#f7f7fa;
      border-bottom:1px solid #e7e9ef;
      color:#727a8c;
      font-size:11px;
      font-weight:650;
      text-transform:uppercase;
      letter-spacing:.045em;
    }
    .keyword-tag-table td{
      padding:13px 14px;
      border-bottom:1px solid #eef0f4;
      vertical-align:middle;
      color:#3d4351;
      font-size:13px;
    }
    .keyword-tag-table tbody tr:last-child td{border-bottom:0}
    .keyword-tag-table tbody tr:hover td{background:#faf9ff}
    .keyword-tag-field-main{display:flex;flex-direction:column;gap:3px}
    .keyword-tag-field-name{font-size:14px;font-weight:650;color:#272c39}
    .keyword-tag-field-sub{font-size:12px;color:#8790a1;line-height:1.35}
    .keyword-tag-count-value{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:38px;
      height:28px;
      padding:0 9px;
      border-radius:10px;
      background:#f1efff;
      color:#5b4ded;
      font-size:13px;
      font-weight:700;
    }
    .keyword-tag-status-pill,.keyword-tag-required-pill{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:24px;
      padding:4px 8px;
      border-radius:999px;
      font-size:10.5px;
      font-weight:600;
      line-height:1;
      border:1px solid transparent;
      white-space:nowrap;
    }
    .keyword-tag-status-pill.active{background:#eefaf4;border-color:#d6efe2;color:#08734f}
    .keyword-tag-status-pill.disabled{background:#f3f4f7;border-color:#e4e6ec;color:#7a8292}
    .keyword-tag-required-pill.required{background:#f2f0ff;border-color:#dfdafd;color:#5b4ded}
    .keyword-tag-required-pill.optional{background:#fff8e8;border-color:#f5e2b7;color:#976500}
    .keyword-tag-rule-text{color:#697284;font-size:12.5px;line-height:1.35}
    .keyword-tag-rule-text strong{color:#303543;font-weight:650}
    .keyword-tag-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
    .keyword-tag-table tr.is-disabled td{background:#fbfbfc;color:#8a92a2}
    .keyword-tag-table tr.is-disabled .keyword-tag-field-name{color:#747c8d}
    .keyword-tag-table tr.is-disabled:hover td{background:#f8f8fa}
    .keyword-tag-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
    .keyword-tag-edit-field{
      padding:13px;
      border:1px solid #e7e9f0;
      border-radius:14px;
      background:#fbfbfd;
    }
    .keyword-tag-edit-field label{
      display:block;
      margin-bottom:7px;
      color:#3e4452;
      font-size:12.5px;
      font-weight:600;
    }
    .keyword-tag-edit-field input,.keyword-tag-edit-field select{height:42px;background:#fff}
    .keyword-tag-edit-field .settings-help{margin-top:7px;font-size:11.5px;line-height:1.4}
    .keyword-tag-edit-summary{
      grid-column:1/-1;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:12px 13px;
      border:1px solid #e4e0ff;
      border-radius:14px;
      background:#f8f7ff;
      color:#5f6676;
      font-size:12.5px;
    }
    .keyword-tag-edit-summary strong{color:#5546e8;font-weight:700}
    @media(max-width:760px){
      .keyword-tag-edit-grid{grid-template-columns:1fr}
      .keyword-tag-edit-summary{grid-column:1}
      .keyword-tag-manager-head{align-items:flex-start;flex-direction:column}
    }



    /* V155 — simple advanced single-field rule builder */
    .rule-single-editor{width:min(1080px,96vw)!important}
    .rule-simple-target{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:12px;padding:13px;border:1px solid #e5e8f0;border-radius:15px;background:#fafbfe;margin-bottom:11px}
    .rule-simple-target .rule-editor-field label,.rule-simple-template>label{display:block;margin:0 0 6px;color:#50586a;font-size:12px;font-weight:600}
    .rule-simple-target select{height:42px;background:#fff}
    .rule-simple-target-hint{margin-top:6px;color:#7d8596;font-size:11.5px;line-height:1.4}
    .rule-simple-template>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
    .rule-simple-template select{min-width:0;width:100%}
    .rule-simple-template .btn{height:42px;margin:0!important;padding:0 12px!important;box-shadow:none!important}
    .rule-simple-logicbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #e8eaf1;border-radius:13px;background:#fff;margin-bottom:9px}
    .rule-simple-logicbar>div:first-child{display:flex;align-items:center;gap:9px;color:#626b7d;font-size:12px}
    .rule-simple-logicbar select{width:auto;min-width:190px;height:35px;padding:6px 30px 6px 9px;border-radius:9px;font-size:11.5px}
    .rule-simple-condition{border:1px solid #e7e9f0;border-radius:15px;background:#fff;padding:11px;margin-bottom:9px;box-shadow:0 5px 15px rgba(32,36,54,.025)}
    .rule-simple-condition-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}
    .rule-simple-condition-title{display:flex;align-items:flex-start;gap:9px;min-width:0}
    .rule-simple-condition-title>span{width:25px;height:25px;border-radius:8px;background:#f0eeff;color:#5b4ded;display:inline-flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:700;flex:0 0 auto}
    .rule-simple-condition-title strong{display:block;color:#2d3240;font-size:12.5px;font-weight:650;line-height:1.25}
    .rule-simple-condition-title small{display:block;margin-top:3px;color:#81899a;font-size:11px;font-weight:400;line-height:1.35}
    .rule-simple-condition-grid{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(120px,.65fr) minmax(180px,1fr);gap:8px;align-items:end}
    .rule-simple-condition-grid.range{grid-template-columns:minmax(180px,.9fr) minmax(120px,.55fr) minmax(120px,.55fr) minmax(120px,.55fr)}
    .rule-simple-condition-grid.reference{grid-template-columns:minmax(180px,.85fr) minmax(150px,.7fr) minmax(220px,1fr)}
    .rule-simple-condition-grid.keyword-count{grid-template-columns:repeat(5,minmax(115px,1fr))}
    .rule-simple-condition-grid.boolean{grid-template-columns:minmax(180px,320px)}
    .rule-condition-more{margin-top:9px;padding-top:8px;border-top:1px solid #eef0f4}
    .rule-condition-more summary{cursor:pointer;color:#737c8f;font-size:11px;font-weight:500;list-style:none}
    .rule-condition-more summary::-webkit-details-marker{display:none}
    .rule-condition-more summary:after{content:'\203A';display:inline-block;margin-left:6px;transition:transform .15s ease}
    .rule-condition-more[open] summary:after{transform:rotate(90deg)}
    .rule-condition-more .rule-condition-options{border-top:0;margin-top:7px;padding-top:0}
    .rule-add-condition-btn{width:100%;height:38px;border:1px dashed #cfcaf8;background:#faf9ff;color:#5b4ded;border-radius:12px;font-size:12px;font-weight:600;cursor:pointer;margin:2px 0 11px}
    .rule-add-condition-btn:hover{border-style:solid;background:#f4f2ff}
    .rule-formula-placeholder{padding:12px;border:1px solid #e6e8f0;border-radius:14px;background:#fafbfe;margin-top:10px}
    .rule-formula-placeholder label{display:block;margin-bottom:6px;color:#50586a;font-size:12px;font-weight:600}
    .rule-formula-placeholder-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
    .rule-formula-placeholder-row select{height:40px;background:#fff}
    .rule-formula-placeholder-row .btn{height:40px;margin:0!important;box-shadow:none!important}
    #appView.management-page .rule-single-field-table{min-width:1020px!important}
    #appView.management-page .rule-single-field-table th:nth-child(1){min-width:210px}
    #appView.management-page .rule-single-field-table th:nth-child(2){min-width:170px}
    #appView.management-page .rule-single-field-table th:nth-child(3){min-width:320px}
    #appView.management-page .rule-single-field-table th:nth-child(4){min-width:125px}
    #appView.management-page .rule-single-field-table th:nth-child(5){min-width:120px}
    #appView.management-page .rule-single-field-table th:nth-child(6){min-width:165px}
    .rule-single-field-chip{background:#f4f2ff!important;border-color:#dfdafd!important;color:#5b4ded!important;font-weight:550}
    @media(max-width:860px){.rule-simple-target{grid-template-columns:1fr}.rule-simple-condition-grid,.rule-simple-condition-grid.range,.rule-simple-condition-grid.reference,.rule-simple-condition-grid.keyword-count{grid-template-columns:1fr 1fr}.rule-simple-condition-grid.boolean{grid-template-columns:1fr}}
    @media(max-width:620px){.rule-simple-logicbar{align-items:flex-start;flex-direction:column}.rule-simple-logicbar>div:first-child{width:100%;align-items:flex-start;flex-direction:column}.rule-simple-logicbar select{width:100%}.rule-simple-condition-grid,.rule-simple-condition-grid.range,.rule-simple-condition-grid.reference,.rule-simple-condition-grid.keyword-count{grid-template-columns:1fr}.rule-simple-condition-head{align-items:flex-start}.rule-condition-actions{flex-wrap:wrap;justify-content:flex-end}}



    /* V156 — focused visual SEO rule builder */
    .rule-single-editor{width:min(1040px,96vw)!important}
    .rule-single-editor .modal-body{background:#f7f8fb!important}
    .rule-single-editor .rule-editor-section{
      border:1px solid #e7e9f0!important;
      border-radius:18px!important;
      background:#fff!important;
      box-shadow:0 8px 24px rgba(31,35,53,.035)!important;
    }
    .rule-single-editor .rule-editor-section-head{margin-bottom:13px!important}
    .rule-single-editor .rule-editor-section-title{font-size:15px!important;font-weight:700!important;color:#262b37!important}
    .rule-single-editor .rule-editor-section-sub{font-size:12px!important;color:#7c8495!important;line-height:1.45!important}
    .rule-simple-target{
      display:grid!important;
      grid-template-columns:minmax(0,1fr) auto!important;
      gap:16px!important;
      align-items:end!important;
      padding:15px!important;
      border:1px solid #e6e8f0!important;
      border-radius:16px!important;
      background:linear-gradient(180deg,#fff 0%,#fbfbfe 100%)!important;
      margin-bottom:11px!important;
    }
    .rule-simple-target .rule-editor-field label{font-size:12px!important;font-weight:500!important;color:#596173!important}
    .rule-simple-target select{height:44px!important;border-radius:12px!important}
    .rule-target-badge{
      min-height:44px;
      padding:0 12px;
      border:1px solid #dfdcfb;
      border-radius:12px;
      background:#f5f3ff;
      color:#6255dc;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:11.5px;
      font-weight:600;
      white-space:nowrap;
    }
    .rule-simple-target-hint{font-size:11.5px!important;color:#858d9d!important;line-height:1.45!important}
    .rule-simple-logicbar{
      padding:10px 12px!important;
      border-radius:14px!important;
      background:#fff!important;
      box-shadow:0 4px 14px rgba(31,35,53,.025)!important;
    }
    .rule-simple-logicbar>div:first-child{font-size:12px!important;color:#606879!important}
    .rule-simple-condition{
      padding:0!important;
      border-radius:17px!important;
      overflow:hidden!important;
      box-shadow:0 7px 20px rgba(31,35,53,.035)!important;
    }
    .rule-simple-condition-head{
      margin:0!important;
      padding:11px 12px!important;
      border-bottom:1px solid #eceef3!important;
      background:#fbfbfd!important;
      align-items:center!important;
    }
    .rule-simple-condition-title{align-items:center!important}
    .rule-simple-condition-title>span{width:27px!important;height:27px!important;border-radius:9px!important;font-weight:600!important}
    .rule-simple-condition-title strong{font-size:12.5px!important;font-weight:650!important}
    .rule-simple-condition-title small{
      display:inline-flex!important;
      margin-top:4px!important;
      padding:4px 7px!important;
      border-radius:8px!important;
      background:#f2f3f7!important;
      color:#6f7788!important;
      max-width:620px;
    }
    .rule-simple-condition-grid{
      padding:12px!important;
      grid-template-columns:minmax(185px,.85fr) minmax(130px,.65fr) minmax(210px,1fr)!important;
      gap:10px!important;
    }
    .rule-simple-condition-grid.range{grid-template-columns:minmax(185px,.85fr) repeat(3,minmax(120px,.55fr))!important}
    .rule-simple-condition-grid.reference{grid-template-columns:minmax(185px,.85fr) minmax(160px,.72fr) minmax(230px,1fr)!important}
    .rule-simple-condition-grid.keyword-count{grid-template-columns:minmax(170px,.85fr) minmax(210px,1fr) minmax(105px,.5fr) minmax(90px,.45fr)!important}
    .rule-simple-condition-grid.keyword-position{grid-template-columns:minmax(170px,.85fr) minmax(230px,1fr) minmax(140px,.55fr)!important}
    .rule-simple-condition-grid.boolean{grid-template-columns:minmax(200px,360px)!important}
    .rule-condition-field label{font-size:11.5px!important;font-weight:500!important;color:#6d7587!important}
    .rule-condition-field input,.rule-condition-field select{height:40px!important;border-radius:11px!important;background:#fff!important}
    .rule-condition-more{margin:0 12px 12px!important;padding-top:9px!important}
    .rule-condition-more summary{font-size:11.5px!important}
    .rule-add-condition-btn{height:40px!important;border-radius:13px!important;font-weight:600!important}
    .rule-generated-box{border-radius:16px!important;border-color:#e3e0fb!important;background:#fbfaff!important}
    .rule-generated-head span:first-child{font-weight:650!important}
    .rule-generated-natural{font-size:13px!important;line-height:1.5!important}
    #appView.management-page .rule-single-field-table tbody tr{transition:background .16s ease}
    #appView.management-page .rule-single-field-table tbody tr:hover td{background:#faf9ff!important}
    #appView.management-page .rule-logic-summary{font-size:12.5px!important;line-height:1.45!important;color:#3c4250!important}
    #appView.management-page .rule-weight-main strong{font-size:17px!important}
    @media(max-width:860px){
      .rule-simple-target{grid-template-columns:1fr!important;align-items:start!important}
      .rule-target-badge{justify-self:start}
      .rule-simple-condition-grid,.rule-simple-condition-grid.range,.rule-simple-condition-grid.reference,.rule-simple-condition-grid.keyword-count,.rule-simple-condition-grid.keyword-position{grid-template-columns:1fr 1fr!important}
    }
    @media(max-width:620px){
      .rule-simple-condition-grid,.rule-simple-condition-grid.range,.rule-simple-condition-grid.reference,.rule-simple-condition-grid.keyword-count,.rule-simple-condition-grid.keyword-position{grid-template-columns:1fr!important}
      .rule-target-badge{width:100%}
    }



    /* V157 — refined Add/Edit SEO Rule modal */
    .rule-single-editor{
      width:min(1120px,calc(100vw - 28px))!important;
      height:min(900px,calc(100vh - 24px))!important;
      max-height:calc(100vh - 24px)!important;
      display:flex!important;
      flex-direction:column!important;
      overflow:hidden!important;
      border-radius:22px!important;
    }
    .rule-single-editor>.modal-head{
      flex:0 0 auto;
      min-height:70px;
      padding:15px 18px!important;
      background:#fff;
      border-bottom:1px solid #e8eaf1;
    }
    .rule-single-editor>.modal-head .section-title{
      font-size:18px!important;
      font-weight:700!important;
      letter-spacing:-.02em!important;
    }
    .rule-single-editor>.modal-head .section-subtitle{
      margin-top:3px!important;
      font-size:12px!important;
      font-weight:400!important;
      color:#7f8798!important;
    }
    .rule-single-editor>.modal-body{
      flex:1 1 auto!important;
      min-height:0!important;
      overflow:hidden!important;
      padding:14px!important;
      background:#f7f8fb!important;
    }
    .rule-single-editor>.modal-foot{
      position:relative!important;
      flex:0 0 auto;
      min-height:66px;
      padding:12px 16px!important;
      background:#fff!important;
      border-top:1px solid #e4e7ef!important;
      box-shadow:0 -10px 26px rgba(28,32,48,.055);
      z-index:8;
    }
    .rule-single-editor>.modal-foot .btn{
      min-width:78px;
      min-height:40px;
      margin:0 0 0 8px!important;
      border-radius:12px!important;
      box-shadow:none!important;
    }
    .rule-single-editor>.modal-foot .btn:last-child{
      min-width:96px;
      box-shadow:0 10px 20px rgba(117,103,244,.18)!important;
    }
    .rule-single-editor .rule-editor-grid{
      height:100%!important;
      min-height:0!important;
      grid-template-columns:minmax(0,1fr) 284px!important;
      gap:14px!important;
      align-items:stretch!important;
    }
    .rule-single-editor .rule-editor-main{
      min-height:0!important;
      overflow-y:auto!important;
      overflow-x:hidden!important;
      padding:1px 7px 8px 1px;
      scrollbar-gutter:stable;
    }
    .rule-single-editor .rule-editor-main::-webkit-scrollbar,
    .rule-single-editor .rule-editor-side::-webkit-scrollbar,
    .rule-test-picker-options::-webkit-scrollbar{width:7px}
    .rule-single-editor .rule-editor-main::-webkit-scrollbar-thumb,
    .rule-single-editor .rule-editor-side::-webkit-scrollbar-thumb,
    .rule-test-picker-options::-webkit-scrollbar-thumb{background:#d7dbe6;border-radius:999px}
    .rule-single-editor .rule-editor-main::-webkit-scrollbar-track,
    .rule-single-editor .rule-editor-side::-webkit-scrollbar-track,
    .rule-test-picker-options::-webkit-scrollbar-track{background:transparent}
    .rule-single-editor .rule-editor-side{
      position:relative!important;
      top:auto!important;
      min-height:0!important;
      max-height:100%!important;
      overflow-y:auto!important;
      overflow-x:hidden!important;
      align-self:stretch!important;
      padding:1px 2px 8px 0;
      gap:10px!important;
    }
    .rule-single-editor .rule-editor-section{
      border-radius:16px!important;
      padding:13px!important;
      border-color:#e4e7ef!important;
      box-shadow:0 5px 16px rgba(30,34,52,.028)!important;
    }
    .rule-single-editor .rule-editor-main>.rule-editor-section+ .rule-editor-section{margin-top:0}
    .rule-single-editor .rule-editor-section-head{margin-bottom:10px!important}
    .rule-single-editor .rule-editor-section-title{
      font-size:14px!important;
      font-weight:650!important;
      color:#282d39!important;
    }
    .rule-single-editor .rule-editor-fields{gap:9px!important}
    .rule-single-editor .rule-editor-field label{
      margin-bottom:5px!important;
      font-size:11.5px!important;
      font-weight:500!important;
      color:#596173!important;
    }
    .rule-single-editor .rule-editor-field input,
    .rule-single-editor .rule-editor-field select,
    .rule-single-editor .rule-editor-field textarea{
      min-height:40px;
      border-radius:11px!important;
      border-color:#dfe3ec!important;
      font-size:12.5px!important;
    }
    .rule-single-editor .rule-mode-tabs{
      flex:0 0 auto;
      padding:3px!important;
      border-radius:12px!important;
    }
    .rule-single-editor .rule-mode-tab{
      min-width:92px;
      height:32px!important;
      line-height:1.1;
    }
    .rule-single-editor .rule-simple-target{
      grid-template-columns:minmax(0,1fr) auto!important;
      padding:11px!important;
      margin-bottom:9px!important;
      border-radius:14px!important;
      background:#fbfcff!important;
    }
    .rule-single-editor .rule-target-badge{
      align-self:end!important;
      min-height:40px!important;
      padding:0 12px!important;
      border-radius:11px!important;
      white-space:nowrap;
    }
    .rule-single-editor .rule-simple-logicbar{
      min-height:46px;
      padding:8px 10px!important;
      margin-bottom:8px!important;
      border-radius:12px!important;
      background:#fafbfe!important;
    }
    .rule-single-editor .rule-simple-condition{
      padding:10px!important;
      margin-bottom:8px!important;
      border-radius:14px!important;
      box-shadow:none!important;
    }
    .rule-single-editor .rule-simple-condition-head{margin-bottom:8px!important}
    .rule-single-editor .rule-simple-condition-title small{
      max-width:460px;
      white-space:normal!important;
    }
    .rule-single-editor .rule-condition-actions{gap:5px!important}
    .rule-single-editor .rule-mini-icon-btn{
      width:30px!important;
      height:30px!important;
      border-radius:9px!important;
    }
    .rule-single-editor .rule-add-condition-btn{
      min-height:38px!important;
      border-radius:11px!important;
      font-size:12px!important;
    }
    .rule-single-editor .rule-generated-box{
      margin-top:9px!important;
      border-radius:13px!important;
    }
    .rule-single-editor .rule-generated-head,
    .rule-single-editor .rule-generated-natural,
    .rule-single-editor .rule-generated-formula{padding:9px 11px!important}
    .rule-single-editor .rule-generated-formula{max-height:96px!important}

    .rule-single-editor .rule-weight-card{
      display:grid;
      grid-template-columns:minmax(0,1fr) auto;
      grid-template-areas:"label value" "sub value";
      column-gap:12px;
      row-gap:3px;
      padding:14px!important;
      border:1px solid #e2defb;
      border-radius:16px!important;
      background:linear-gradient(145deg,#ffffff 0%,#f5f3ff 100%)!important;
      color:#272c39!important;
      box-shadow:0 7px 20px rgba(68,58,164,.07)!important;
    }
    .rule-single-editor .rule-weight-label{
      grid-area:label;
      color:#7567f4!important;
      font-size:10px!important;
      font-weight:700!important;
      letter-spacing:.07em;
    }
    .rule-single-editor .rule-weight-value{
      grid-area:value;
      align-self:center;
      min-width:48px;
      height:48px;
      margin:0!important;
      border-radius:14px;
      display:flex;
      align-items:center;
      justify-content:center;
      background:linear-gradient(135deg,#8174f7,#6253eb);
      color:#fff!important;
      font-size:22px!important;
      box-shadow:0 10px 20px rgba(117,103,244,.2);
    }
    .rule-single-editor .rule-weight-sub{
      grid-area:sub;
      margin:0!important;
      max-width:180px;
      color:#747d8f!important;
      font-size:10.5px!important;
      line-height:1.4!important;
    }
    .rule-single-editor .rule-test-card{
      padding:13px!important;
      border-radius:16px!important;
      border-color:#e4e7ef!important;
      box-shadow:0 5px 16px rgba(30,34,52,.03)!important;
    }
    .rule-test-picker{position:relative;margin-top:10px}
    .rule-test-picker-btn{
      width:100%;
      min-height:52px;
      border:1px solid #dfe3ec;
      border-radius:12px;
      background:#fff;
      color:#303644;
      padding:8px 10px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:9px;
      cursor:pointer;
      text-align:left;
      transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
    }
    .rule-test-picker-btn:hover,
    .rule-test-picker-btn[aria-expanded="true"]{
      border-color:#a79ff8;
      background:#fdfcff;
      box-shadow:0 0 0 3px rgba(117,103,244,.11);
    }
    .rule-test-picker-btn>svg{width:16px;height:16px;color:#7d8597;flex:0 0 auto;transition:transform .16s ease}
    .rule-test-picker-btn[aria-expanded="true"]>svg{transform:rotate(180deg)}
    .rule-test-picker-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
    .rule-test-picker-copy strong{
      color:#303644;
      font-size:12px;
      font-weight:600;
      line-height:1.25;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .rule-test-picker-copy small{
      color:#858d9e;
      font-size:10.5px;
      font-weight:400;
      line-height:1.2;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .rule-test-picker-menu{
      margin-top:7px;
      border:1px solid #e0e3eb;
      border-radius:13px;
      background:#fff;
      box-shadow:0 14px 30px rgba(30,34,52,.12);
      overflow:hidden;
    }
    .rule-test-picker-search{
      position:relative;
      padding:8px;
      border-bottom:1px solid #eceef4;
      background:#fafbfe;
    }
    .rule-test-picker-search svg{
      position:absolute;
      left:19px;
      top:50%;
      transform:translateY(-50%);
      width:14px;
      height:14px;
      color:#929aac;
      pointer-events:none;
    }
    .rule-test-picker-search input{
      height:36px!important;
      padding:7px 9px 7px 31px!important;
      border-radius:10px!important;
      font-size:11.5px!important;
    }
    .rule-test-picker-options{max-height:220px;overflow-y:auto;padding:6px}
    .rule-test-picker-option{
      width:100%;
      border:0;
      background:transparent;
      color:#303644;
      border-radius:10px;
      padding:7px;
      display:grid;
      grid-template-columns:30px minmax(0,1fr);
      gap:8px;
      align-items:center;
      cursor:pointer;
      text-align:left;
    }
    .rule-test-picker-option:hover{background:#f6f5ff}
    .rule-test-picker-option.selected{background:#f0eeff}
    .rule-test-picker-option>span:last-child{min-width:0;display:flex;flex-direction:column;gap:2px}
    .rule-test-picker-option strong{
      color:#343947;
      font-size:11.5px;
      font-weight:600;
      line-height:1.25;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .rule-test-picker-option small{
      color:#8991a2;
      font-size:10px;
      font-weight:400;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .rule-test-option-icon{
      width:30px;
      height:30px;
      border-radius:9px;
      background:#f0eeff;
      color:#6254e8;
      display:flex!important;
      align-items:center;
      justify-content:center;
      font-size:10px;
      font-weight:700;
    }
    .rule-test-picker-empty{padding:16px 10px;text-align:center;color:#858d9d;font-size:11px}
    .rule-single-editor .rule-test-actions{margin-top:9px!important}
    .rule-single-editor .rule-test-actions .btn{min-height:38px!important;border-radius:11px!important}
    .rule-single-editor .rule-test-result{
      min-height:48px;
      padding:9px 10px!important;
      margin-top:9px!important;
      border-radius:11px!important;
      font-size:11px!important;
    }

    @media(max-width:900px){
      .rule-single-editor{height:calc(100vh - 18px)!important;max-height:calc(100vh - 18px)!important}
      .rule-single-editor>.modal-body{overflow-y:auto!important}
      .rule-single-editor .rule-editor-grid{height:auto!important;display:block!important}
      .rule-single-editor .rule-editor-main,
      .rule-single-editor .rule-editor-side{overflow:visible!important;max-height:none!important;padding-right:0!important}
      .rule-single-editor .rule-editor-side{margin-top:12px}
      .rule-single-editor .rule-editor-fields,
      .rule-single-editor .rule-editor-fields.two{grid-template-columns:1fr 1fr!important}
    }
    @media(max-width:620px){
      .rule-single-editor{width:calc(100vw - 12px)!important}
      .rule-single-editor>.modal-head{padding:13px 14px!important}
      .rule-single-editor>.modal-body{padding:10px!important}
      .rule-single-editor>.modal-foot{padding:10px!important}
      .rule-single-editor .rule-editor-fields,
      .rule-single-editor .rule-editor-fields.two{grid-template-columns:1fr!important}
      .rule-single-editor .rule-mode-tabs{width:100%}
      .rule-single-editor .rule-mode-tab{flex:1;min-width:0}
      .rule-single-editor .rule-simple-target{grid-template-columns:1fr!important}
      .rule-single-editor .rule-target-badge{justify-self:start!important;min-height:34px!important}
    }



    /* V158 — simplified target and aligned More options */
    .rule-single-editor .rule-simple-target{
      display:block!important;
      grid-template-columns:none!important;
      padding:12px!important;
    }
    .rule-single-editor .rule-simple-target .rule-editor-field{
      width:100%;
      max-width:none;
    }
    .rule-single-editor .rule-simple-target select{
      width:100%;
    }
    .rule-single-editor .rule-target-badge{
      display:none!important;
    }
    .rule-single-editor .rule-condition-more{
      margin:0 12px 12px!important;
      padding:0!important;
      border:1px solid #e7e9f0!important;
      border-radius:12px!important;
      background:#fafbfe!important;
      overflow:hidden;
    }
    .rule-single-editor .rule-condition-more summary{
      min-height:38px;
      padding:9px 11px!important;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      color:#656e80!important;
      font-size:11.5px!important;
      font-weight:500!important;
      cursor:pointer;
      user-select:none;
    }
    .rule-single-editor .rule-condition-more summary:after{
      content:'\2304'!important;
      margin:0!important;
      color:#8b93a3;
      font-size:13px;
      line-height:1;
      transform:none!important;
      transition:transform .16s ease!important;
    }
    .rule-single-editor .rule-condition-more[open] summary{
      border-bottom:1px solid #e9ebf2;
      background:#fff;
    }
    .rule-single-editor .rule-condition-more[open] summary:after{
      transform:rotate(180deg)!important;
    }
    .rule-single-editor .rule-condition-options{
      display:grid!important;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:8px!important;
      margin:0!important;
      padding:10px 11px 11px!important;
      border-top:0!important;
      background:#fafbfe;
    }
    .rule-single-editor .rule-option-toggle{
      min-width:0;
      min-height:38px;
      padding:8px 10px;
      display:flex;
      align-items:center;
      gap:9px;
      border:1px solid #e4e7ef;
      border-radius:10px;
      background:#fff;
      color:#535c6e;
      font-size:11.5px;
      font-weight:500;
      line-height:1.2;
      cursor:pointer;
      user-select:none;
      transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;
    }
    .rule-single-editor .rule-option-toggle:hover{
      border-color:#cec8fb;
      background:#faf9ff;
      color:#5548d8;
    }
    .rule-single-editor .rule-option-toggle:has(input:checked){
      border-color:#cfc9fb;
      background:#f5f3ff;
      color:#5548d8;
      box-shadow:0 0 0 2px rgba(117,103,244,.06);
    }
    .rule-single-editor .rule-option-toggle input{
      width:16px!important;
      height:16px!important;
      min-width:16px!important;
      flex:0 0 16px!important;
      margin:0!important;
      padding:0!important;
      accent-color:#7567f4;
      box-shadow:none!important;
    }
    .rule-single-editor .rule-option-toggle span{
      min-width:0;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    @media(max-width:720px){
      .rule-single-editor .rule-condition-options{
        grid-template-columns:1fr!important;
      }
      .rule-single-editor .rule-option-toggle span{
        white-space:normal;
      }
    }


    /* V160 — blank SEO rule field state */
    .rule-field-empty-state{
      min-height:112px;
      margin:10px 0;
      padding:18px;
      border:1px dashed #d9ddea;
      border-radius:15px;
      background:#fbfcff;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:12px;
      color:#747d90;
      text-align:left;
    }
    .rule-field-empty-icon{
      width:34px;
      height:34px;
      border-radius:11px;
      display:flex;
      align-items:center;
      justify-content:center;
      flex:0 0 auto;
      background:#f0edff;
      color:#695bea;
      font-size:20px;
      font-weight:500;
    }
    .rule-field-empty-state strong{
      display:block;
      margin-bottom:4px;
      color:#2b3040;
      font-size:13px;
      font-weight:650;
    }
    .rule-field-empty-state span{
      display:block;
      max-width:480px;
      font-size:12px;
      line-height:1.45;
    }
    .rule-add-condition-btn:disabled{
      opacity:.45;
      cursor:not-allowed;
      transform:none!important;
    }

    /* V161 — blank rule target + generated/manual feedback */
    .rule-empty-logic{min-height:92px;border:1px dashed #d9ddeb;background:#fafbfe;border-radius:15px;display:flex;align-items:center;justify-content:center;gap:12px;padding:18px;color:#737c90;text-align:left}
    .rule-empty-logic-icon{width:34px;height:34px;border-radius:11px;background:#f0edff;color:#6657ea;display:flex;align-items:center;justify-content:center;font-size:20px;flex:0 0 auto}
    .rule-empty-logic strong{display:block;color:#343947;font-size:13px;font-weight:650}
    .rule-empty-logic span{display:block;margin-top:3px;font-size:12px;line-height:1.4}
    .rule-feedback-section .rule-editor-section-head{align-items:center}
    .rule-feedback-mode-tabs{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid #e1e4ed;background:#f5f6fa;border-radius:13px;flex:0 0 auto}
    .rule-feedback-mode{height:32px;border:0;background:transparent;border-radius:9px;padding:0 11px;color:#697286;font-size:12px;font-weight:550;cursor:pointer}
    .rule-feedback-mode.active{background:#fff;color:#5d4fe8;box-shadow:0 4px 12px rgba(45,49,73,.08)}
    .rule-feedback-auto-note{display:flex;align-items:flex-start;gap:10px;border:1px solid #e3dfff;background:#f8f7ff;border-radius:13px;padding:10px 12px;margin-bottom:11px}
    .rule-feedback-auto-icon{width:25px;height:25px;border-radius:8px;background:#ece8ff;color:#6354e9;display:flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:12px}
    .rule-feedback-auto-note strong{display:block;color:#39354f;font-size:12px;font-weight:650}
    .rule-feedback-auto-note span:not(.rule-feedback-auto-icon){display:block;color:#7a7592;font-size:11.5px;line-height:1.4;margin-top:2px}
    .rule-feedback-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .rule-feedback-card{border:1px solid #e6e8ef;background:#fbfcfe;border-radius:14px;padding:10px}
    .rule-feedback-card.pass{border-color:#d8eee3;background:#fbfffd}
    .rule-feedback-card.fail{border-color:#f1dce1;background:#fffdfd}
    .rule-feedback-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;color:#4f5668;font-size:12px;font-weight:600}
    .rule-feedback-card-head span:last-child{font-size:10px;font-weight:550;color:#8a92a4;background:#f0f2f6;border-radius:999px;padding:3px 7px}
    .rule-feedback-card.pass .rule-feedback-card-head span:last-child{background:#eaf8f1;color:#18815a}
    .rule-feedback-card.fail .rule-feedback-card-head span:last-child{background:#fff0f3;color:#c33e53}
    .rule-feedback-card textarea{min-height:78px!important;border-radius:11px!important;background:#fff!important;font-size:12.5px!important;line-height:1.5!important}
    .rule-feedback-card textarea.generated{color:#50576a;background:#f8f9fc!important;cursor:default}
    .rule-feedback-placeholder-help{margin-top:9px;color:#7c8496;font-size:11.5px;line-height:1.5}
    .rule-feedback-placeholder-help code{display:inline-block;margin:2px 2px 0 0;padding:2px 5px;border-radius:6px;background:#f1efff;color:#5d4fe8;font-family:inherit;font-size:10.5px}
    @media(max-width:760px){.rule-feedback-section .rule-editor-section-head{align-items:flex-start}.rule-feedback-mode-tabs{width:100%}.rule-feedback-mode{flex:1}.rule-feedback-grid{grid-template-columns:1fr}}


    /* V162 — Listings table: compact, clean management UI */
    #appView.management-page .listing-table-shell{
      border:1px solid #e5e8f0;
      border-radius:18px;
      background:#fff;
      overflow:hidden;
      box-shadow:0 8px 24px rgba(35,39,58,.035);
    }
    #appView.management-page .listing-table{
      min-width:1120px;
      table-layout:fixed;
    }
    #appView.management-page .listing-table thead th{
      position:sticky;
      top:0;
      z-index:3;
      height:46px;
      padding:11px 14px;
      background:#f8f8fb!important;
      border-bottom:1px solid #e5e8f0;
      color:#70788a!important;
      font-size:11.5px;
      font-weight:600;
      letter-spacing:0;
      text-transform:none;
      white-space:nowrap;
    }
    #appView.management-page .listing-table tbody td{
      padding:13px 14px;
      border-bottom:1px solid #edf0f4;
      background:#fff;
      vertical-align:middle;
    }
    #appView.management-page .listing-table tbody tr:last-child td{
      border-bottom:0;
    }
    #appView.management-page .listing-table tbody tr:hover td{
      background:#faf9ff!important;
    }
    #appView.management-page .listing-row{
      cursor:pointer;
    }
    #appView.management-page .listing-main{
      max-width:none;
      gap:5px;
    }
    #appView.management-page .listing-title-line{
      display:flex;
      align-items:center;
      gap:8px;
      min-width:0;
    }
    #appView.management-page .listing-title{
      min-width:0;
      color:#252a36;
      font-size:14px;
      font-weight:650;
      line-height:1.35;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      display:block;
    }
    #appView.management-page .listing-id{
      display:inline-flex;
      align-items:center;
      flex:0 0 auto;
      min-height:22px;
      padding:4px 7px;
      border:1px solid #e1def9;
      border-radius:7px;
      background:#f6f4ff;
      color:#6758e9;
      font-size:10.5px;
      font-weight:600;
      line-height:1;
    }
    #appView.management-page .listing-url{
      max-width:100%;
      color:#8991a2;
      font-size:11.5px;
      font-weight:400;
      line-height:1.35;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    #appView.management-page .listing-chip-wrap{
      max-width:none;
      gap:5px;
      flex-wrap:nowrap;
      overflow:hidden;
    }
    #appView.management-page .listing-chip{
      flex:0 0 auto;
      min-height:24px;
      padding:5px 8px;
      border:1px solid #e6e8ef;
      border-radius:8px;
      background:#f7f8fb;
      color:#687183;
      font-size:11px;
      font-weight:500;
      line-height:1;
    }
    #appView.management-page .listing-keyword{
      display:inline-flex;
      align-items:center;
      max-width:100%;
      min-height:27px;
      padding:6px 9px;
      border:1px solid #dedafa;
      border-radius:9px;
      background:#f4f2ff;
      color:#5f52d9;
      font-size:11.5px;
      font-weight:550;
      line-height:1.2;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    #appView.management-page .listing-score-cell{
      display:flex;
      align-items:center;
      gap:9px;
      min-width:0;
    }
    #appView.management-page .listing-score-number{
      min-width:43px;
      color:#242936;
      font-size:13px;
      font-weight:700;
      white-space:nowrap;
    }
    #appView.management-page .listing-score-number small{
      color:#9aa1af;
      font-size:9.5px;
      font-weight:500;
    }
    #appView.management-page .listing-score-track{
      width:58px;
      height:5px;
      border-radius:999px;
      background:#eceef3;
      overflow:hidden;
      flex:0 0 auto;
    }
    #appView.management-page .listing-score-fill{
      height:100%;
      border-radius:999px;
    }
    #appView.management-page .listing-score-cell.good .listing-score-fill{background:#18a66d}
    #appView.management-page .listing-score-cell.review .listing-score-fill{background:#d99a19}
    #appView.management-page .listing-score-cell.fix .listing-score-fill{background:#e94c62}
    #appView.management-page .listing-status{
      min-height:26px;
      padding:5px 8px;
      gap:6px;
      border-radius:8px;
      font-size:11px;
      font-weight:550;
      white-space:nowrap;
    }
    #appView.management-page .listing-status:before{
      width:6px;
      height:6px;
    }
    #appView.management-page .listing-updated{
      color:#7f8798;
      font-size:11.5px;
      line-height:1.35;
      white-space:nowrap;
    }
    #appView.management-page .listing-actions{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap:6px;
      white-space:nowrap;
    }
    #appView.management-page .listing-actions .icon-action{
      width:32px;
      height:32px;
      border-radius:9px;
      margin:0;
    }
    #appView.management-page .listing-table-footer{
      min-height:46px;
      padding:11px 14px;
      background:#fbfbfd;
      border-top:1px solid #e8eaf0;
    }
    #appView.management-page .listing-empty-state{
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:7px;
      min-height:180px;
      color:#8991a2;
      text-align:center;
    }
    #appView.management-page .listing-empty-icon{
      width:38px;
      height:38px;
      border:1px solid #e3e0fa;
      border-radius:12px;
      background:#f7f5ff;
      color:#6b5cea;
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:18px;
    }
    @media(max-width:1180px){
      #appView.management-page .listing-table{min-width:1040px}
    }



    /* Users & Permissions */
    .permission-view-only #pageHeaderActions{display:none!important}
    .permission-view-only #content .icon-action.edit,.permission-view-only #content .icon-action.delete,.permission-view-only #content .management-primary-action{display:none!important}
    .users-page-shell{display:flex;flex-direction:column;gap:14px}
    .users-tabs{display:flex;gap:6px;padding:5px;border:1px solid #e4e6ee;border-radius:14px;background:#fff;width:max-content;box-shadow:0 6px 18px rgba(30,32,45,.035)}
    .users-tab{border:0;background:transparent;color:#747c8e;border-radius:10px;padding:9px 14px;font-size:13px;font-weight:600;cursor:pointer}
    .users-tab.active{background:#f0edff;color:#5b4ded}
    .users-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
    .users-kpi{background:#fff;border:1px solid #e5e7ef;border-radius:17px;padding:16px;box-shadow:0 8px 22px rgba(30,32,45,.035);display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
    .users-kpi span{color:#7b8394;font-size:13px}.users-kpi strong{font-size:26px;color:#252936;letter-spacing:-.035em}
    .users-panel,.permissions-panel{background:#fff;border:1px solid #e3e5ed;border-radius:19px;box-shadow:0 8px 24px rgba(30,32,45,.04);overflow:hidden}
    .users-toolbar,.permissions-head{padding:14px 16px;border-bottom:1px solid #e8eaf0;display:flex;align-items:center;justify-content:space-between;gap:12px}
    .users-search-wrap{position:relative;min-width:300px;max-width:500px;flex:1}.users-search-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;color:#9198a8}.users-search-wrap input{height:42px;padding-left:38px;border-radius:12px}
    .users-result-count{font-size:12px;color:#81899a;background:#f4f5f9;border-radius:999px;padding:6px 10px}
    .users-table-scroll,.permissions-table-scroll{overflow:auto}.users-table{min-width:940px}.users-table th,.permissions-table th{padding:12px 14px;background:#f7f7fa;color:#747c8d;font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.04em}.users-table td,.permissions-table td{padding:13px 14px}
    .user-identity{display:flex;align-items:center;gap:11px}.user-avatar{width:36px;height:36px;border-radius:12px;background:#f0edff;color:#5d50df;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex:0 0 auto}.user-identity span:last-child{display:flex;flex-direction:column;gap:4px}.user-identity strong{font-size:13px;color:#292d39}.user-identity small{font-size:12px;color:#81899a}
    .user-role-pill,.user-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:600;border:1px solid #e1e4ec;background:#f5f6f9;color:#636c7e}.user-role-pill.super{background:#f0edff;color:#5b4ded;border-color:#ded8ff}.user-status-pill.active{background:#edf9f3;color:#0b8257;border-color:#cfeadc}.user-status-pill.pending{background:#fff7e6;color:#9b6800;border-color:#f4dfad}.user-status-pill.disabled{background:#f4f5f8;color:#7d8493}
    .user-last-login{font-size:12px;color:#767e8f}.user-row-actions{display:flex;align-items:center;gap:7px}.user-protected{font-size:11px;color:#9299a8}
    .user-editor-modal{width:min(720px,100%)}.user-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.user-form-field{display:flex;flex-direction:column;gap:6px}.user-form-field label{font-size:12px;color:#596173;font-weight:600}.user-form-field small{font-size:11px;color:#858d9e;line-height:1.4}.user-form-wide{grid-column:1/-1}.user-password-field{display:grid;grid-template-columns:1fr 42px;gap:7px}.user-password-field button{border:1px solid #e1e4ed;background:#f7f8fb;border-radius:11px;color:#6c7486;display:flex;align-items:center;justify-content:center;cursor:pointer}.user-password-field svg{width:17px;height:17px}
    .permissions-head h3{margin:0;font-size:17px;color:#292d39}.permissions-head p{margin:4px 0 0;font-size:12px;color:#7d8596}.permissions-table{min-width:900px}.permissions-table td:first-child{min-width:210px}.permissions-table select{min-width:130px;height:38px;border-radius:10px;font-size:12px}.permissions-note{padding:12px 16px;border-top:1px solid #e8eaf0;background:#fbfbfd;color:#7e8697;font-size:12px}.user-empty-state{padding:38px;text-align:center;color:#858d9d}
    @media(max-width:800px){.users-kpi-grid{grid-template-columns:1fr}.users-toolbar,.permissions-head{align-items:flex-start;flex-direction:column}.users-search-wrap{min-width:100%;max-width:none}.user-form-grid{grid-template-columns:1fr}.user-form-wide{grid-column:auto}}


    .saas-auth-links{display:flex;justify-content:center;gap:9px;align-items:center;margin-top:12px;color:#9aa0af;font-size:12px}.saas-auth-links button{border:0;background:transparent;color:#6558e8;font:inherit;font-weight:700;cursor:pointer;padding:3px}.saas-auth-links button:hover{text-decoration:underline}
    .saas-overlay{position:fixed;inset:0;background:rgba(20,20,30,.58);z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px}.saas-dialog{width:min(560px,100%);background:#fff;border-radius:22px;border:1px solid #e5e6ee;box-shadow:0 28px 90px rgba(20,20,30,.28);overflow:hidden}.saas-dialog-head{padding:20px 22px 14px;border-bottom:1px solid #ececf2}.saas-dialog-head h2{margin:0;font-size:22px}.saas-dialog-head p{margin:7px 0 0;color:#737b8d;line-height:1.5}.saas-dialog-body{padding:20px 22px}.saas-dialog-foot{padding:15px 22px;border-top:1px solid #ececf2;background:#fafafe;display:flex;justify-content:flex-end;gap:9px}.saas-fields{display:grid;gap:13px}.saas-fields label{font-size:12px;font-weight:700;color:#555d6e;display:block;margin-bottom:6px}.saas-note{padding:12px 14px;border-radius:13px;background:#f3f1ff;color:#574ca2;font-size:12px;line-height:1.5;margin-top:12px}.saas-verify{text-align:center}.saas-verify-icon{width:64px;height:64px;border-radius:20px;background:#f0edff;color:#6558e8;display:flex;align-items:center;justify-content:center;font-size:28px;margin:0 auto 15px}.saas-copy-link{word-break:break-all;background:#f5f6fa;border:1px solid #e4e6ed;border-radius:12px;padding:10px;font-size:12px;margin-top:10px}.saas-loading-screen{position:fixed;inset:0;z-index:3000;background:#fafafa;display:flex;align-items:center;justify-content:center}.saas-loading-card{text-align:center;color:#656d7e}.saas-spinner{width:38px;height:38px;border:3px solid #dedbef;border-top-color:#6758ee;border-radius:50%;animation:saasSpin .8s linear infinite;margin:0 auto 14px}@keyframes saasSpin{to{transform:rotate(360deg)}}


    /* V223 — category management UI, confirmations, and responsive layout */
    #appView.management-page .category-add-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px}
    #appView.management-page .category-add-primary svg{width:17px;height:17px}
    #appView.management-page .category-screen-card{padding:16px!important;min-width:0;overflow:visible}
    #appView.management-page .category-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
    #appView.management-page .category-card{
      min-height:188px;padding:16px;border-radius:18px;border:1px solid #e6e8f0;background:#fff;
      box-shadow:0 7px 22px rgba(35,39,55,.045);gap:14px;cursor:pointer;overflow:visible;
    }
    #appView.management-page .category-card.is-disabled{background:#fafbfc;border-color:#e8eaf0}
    #appView.management-page .category-card.is-disabled:hover{border-color:#d8dbe4;box-shadow:0 8px 22px rgba(35,39,55,.045)}
    #appView.management-page .category-card-top{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:start;gap:12px}
    #appView.management-page .category-card-symbol{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;color:#6254e8;background:#f0eeff;border:1px solid #ddd8ff}
    #appView.management-page .category-card-symbol.disabled{color:#8d95a5;background:#f1f2f5;border-color:#e2e5eb}
    #appView.management-page .category-card-symbol svg{width:20px;height:20px}
    #appView.management-page .category-card-title{font-size:15px;line-height:1.35;font-weight:680;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    #appView.management-page .category-card-id{margin-top:5px;font-size:11px;letter-spacing:.01em}
    #appView.management-page .category-card-top>.pill{align-self:start;margin:0;padding:5px 8px;font-size:10px}
    #appView.management-page .category-card-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    #appView.management-page .category-card-stat{padding:10px 11px;border:1px solid #eceef3;border-radius:12px;background:#fafafd;min-width:0}
    #appView.management-page .category-card-stat span{display:block;color:#8a92a2;font-size:10px;line-height:1.2;text-transform:uppercase;letter-spacing:.055em;font-weight:650}
    #appView.management-page .category-card-stat strong{display:block;margin-top:5px;color:#303644;font-size:12.5px;line-height:1.25;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    #appView.management-page .category-card-stat strong.active{color:#168657}
    #appView.management-page .category-card-stat strong.disabled{color:#858d9d}
    #appView.management-page .category-card-footer{margin-top:auto;padding-top:12px}
    #appView.management-page .category-card-status{display:inline-flex;align-items:center;gap:7px;color:#71798a;font-size:11px;font-weight:600}
    #appView.management-page .category-status-dot{width:8px;height:8px;border-radius:999px;display:inline-block;box-shadow:0 0 0 3px rgba(29,174,105,.10)}
    #appView.management-page .category-status-dot.active{background:#1dae69}
    #appView.management-page .category-status-dot.disabled{background:#a9b0bd;box-shadow:0 0 0 3px rgba(169,176,189,.13)}
    #appView.management-page .category-card-actions{gap:7px}
    #appView.management-page .category-card .icon-action{width:36px;height:36px;border-radius:11px}
    #appView.management-page .category-enable-action{color:#168657!important;background:#eff9f3!important;border-color:#d0ecdc!important}
    #appView.management-page .category-enable-action:hover{background:#e4f6eb!important;border-color:#bce2cc!important}
    #appView.management-page .category-disable-action{color:#9a6b00!important;background:#fff9eb!important;border-color:#f2e1b4!important}
    #appView.management-page .category-disable-action:hover{background:#fff4d8!important;border-color:#ead291!important}
    #appView.management-page .category-empty{grid-column:1/-1;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 20px;border:1px dashed #dfe2ea;border-radius:18px;background:#fbfbfd;text-align:center}
    #appView.management-page .category-empty-icon{width:50px;height:50px;border-radius:16px;background:#f0eeff;color:#6c5eea;display:grid;place-items:center;margin-bottom:13px}
    #appView.management-page .category-empty-icon svg{width:24px;height:24px}
    #appView.management-page .category-empty-title{font-size:15px;color:#2f3542;font-weight:680}
    #appView.management-page .category-empty-copy{margin-top:6px;color:#858d9e;font-size:12px;line-height:1.5}
    #appView.management-page .category-screen-footer{margin-top:16px!important;border:1px solid #e8eaf0!important;border-radius:14px!important;display:flex;justify-content:space-between;align-items:center;gap:12px}

    .category-form-backdrop{padding:22px}
    .category-form-dialog{width:min(600px,calc(100vw - 32px))!important;max-width:600px!important;border:1px solid #e5e7ef!important;border-radius:24px!important;background:#fff;box-shadow:0 30px 90px rgba(27,31,46,.22)!important;overflow:hidden!important}
    .category-form-head{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 20px;border-bottom:1px solid #eceef4;background:linear-gradient(180deg,#faf9ff 0%,#fff 100%)}
    .category-form-heading{display:flex;align-items:flex-start;gap:14px;min-width:0;padding-right:36px}
    .category-form-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto;color:#6254e8;background:#ece9ff;border:1px solid #d9d3ff;box-shadow:0 8px 20px rgba(103,88,238,.10)}
    .category-form-icon svg{width:22px;height:22px}
    .category-form-eyebrow{font-size:10px;line-height:1.3;text-transform:uppercase;letter-spacing:.085em;color:#8b93a4;font-weight:650}
    .category-form-title{margin:4px 0 0;color:#232936;font-size:22px;line-height:1.25;font-weight:700;letter-spacing:-.03em}
    .category-form-subtitle{margin:7px 0 0;max-width:430px;color:#717a8c;font-size:12.5px;line-height:1.55}
    .category-form-close{position:absolute;top:16px;right:16px;width:36px;height:36px;border:1px solid transparent;background:transparent;color:#8b93a4;border-radius:11px;display:grid;place-items:center;font-size:23px;line-height:1;cursor:pointer}
    .category-form-close:hover{background:#fff;border-color:#e4e7ee;color:#343a48}
    .category-form-body{display:grid;gap:12px;padding:20px 24px 22px;background:#fbfbfd;max-height:min(60vh,520px);overflow:auto}
    .category-field-card{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:14px;border:1px solid #e6e8f0;border-radius:16px;background:#fff}
    .category-field-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#6254e8;background:#f1efff;border:1px solid #e1dcff}
    .category-field-icon.status{color:#168657;background:#eef9f3;border-color:#d2ecdc}
    .category-field-icon svg{width:18px;height:18px}
    .category-field-content{min-width:0}
    .category-field-content label{display:block!important;margin:0 0 7px!important;color:#4b5364!important;font-size:12px!important;font-weight:650!important}
    .category-required{color:#d84a59}
    .category-field-content input,.category-field-content select{width:100%;min-height:44px!important;border:1px solid #dfe3ec!important;border-radius:12px!important;background:#fff!important;color:#2e3441!important;font-size:13px!important;box-shadow:none!important}
    .category-field-content input:focus,.category-field-content select:focus{border-color:#9f95f4!important;box-shadow:0 0 0 3px rgba(117,103,244,.12)!important}
    .category-field-help{margin-top:7px;color:#858d9e;font-size:11.5px;line-height:1.5}
    .category-edit-notice{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border:1px solid #e4e1ff;border-radius:13px;background:#f8f7ff;color:#696f82;font-size:11.5px;line-height:1.5}
    .category-edit-notice.hidden{display:none!important}
    .category-edit-notice svg{width:17px;height:17px;color:#6759e7;flex:0 0 auto;margin-top:1px}
    .category-form-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 24px;border-top:1px solid #eceef4;background:#fff}
    .category-form-foot-note{display:flex;align-items:center;gap:7px;color:#8a92a3;font-size:11px}
    .category-required-dot{width:6px;height:6px;border-radius:999px;background:#d84a59}
    .category-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}
    .category-form-actions .btn{min-height:40px;padding:0 14px;border-radius:11px}
    .category-save-btn{min-width:128px}
    .category-save-btn:disabled{opacity:.65;cursor:wait}

    .category-unsaved-dialog{width:min(520px,calc(100vw - 32px))!important;border-radius:24px!important}
    .category-unsaved-state .listing-unsaved-head{background:linear-gradient(180deg,#fffaf0 0%,#fff 100%)}
    .category-unsaved-state .listing-unsaved-icon{background:#fff4d9;color:#966500;border-color:#f0d899}
    .category-unsaved-state .listing-unsaved-copy>p{margin:0;color:#626b7c;font-size:13px;line-height:1.6}
    .category-unsaved-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
    .category-unsaved-preview>div{padding:11px 12px;border:1px solid #e7e9f0;border-radius:12px;background:#fafafd;min-width:0}
    .category-unsaved-preview span{display:block;color:#8b93a4;font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:650}
    .category-unsaved-preview strong{display:block;margin-top:5px;color:#303644;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

    .management-confirm-modal.category-confirm-state{width:min(520px,calc(100vw - 32px));border-radius:24px}
    .management-confirm-modal.category-confirm-state.is-enable .management-confirm-head{background:linear-gradient(180deg,#f2fbf6 0%,#fff 100%)}
    .management-confirm-modal.category-confirm-state.is-disable .management-confirm-head{background:linear-gradient(180deg,#fffaf0 0%,#fff 100%)}
    .management-confirm-modal.category-confirm-state.is-delete .management-confirm-head{background:linear-gradient(180deg,#fff5f6 0%,#fff 100%)}
    .management-confirm-icon.enable{background:#e9f8ef;color:#168657;border-color:#c8e9d6}
    .category-action-message{margin:0;color:#60697a;font-size:13px;line-height:1.6}
    .category-action-preview{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;margin-top:15px;padding:12px 13px;border:1px solid #e7e9f0;border-radius:14px;background:#fafafd}
    .category-action-preview-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#6254e8;background:#eeebff;border:1px solid #ddd8ff}
    .category-action-preview-icon svg{width:19px;height:19px}
    .category-action-preview span,.category-action-impact span{display:block;color:#8b93a4;font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:650}
    .category-action-preview strong{display:block;margin-top:4px;color:#303644;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .category-action-preview-usage{text-align:right}
    .category-action-impact{margin-top:10px;padding:11px 12px;border-radius:12px;border:1px solid #eceef3;background:#fff}
    .category-action-impact strong{display:block;margin-top:5px;color:#4e5667;font-size:12px;line-height:1.45;font-weight:600}
    .management-confirm-btn-success{background:#168657!important;color:#fff!important;box-shadow:none!important}
    .management-confirm-btn-success:hover{background:#117348!important}
    .management-confirm-foot .btn:disabled{opacity:.65;cursor:wait}

    @media(max-width:760px){
      #appView.management-page .page-header-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
      #appView.management-page .page-header-actions .btn{width:100%;min-width:0}
      #appView.management-page .category-screen-card{padding:12px!important;border-radius:16px!important}
      #appView.management-page .category-control-panel{padding:10px!important}
      #appView.management-page .category-control-panel>.category-toolbar:first-child{grid-template-columns:1fr!important;gap:8px!important}
      #appView.management-page .category-toolbar-left{grid-template-columns:minmax(0,1fr) auto!important}
      #appView.management-page .category-toolbar-right{width:100%;justify-content:flex-start!important;padding:0 2px}
      #appView.management-page .category-control-panel>.category-toolbar:nth-child(2){margin-top:9px!important;padding-top:9px!important}
      #appView.management-page .category-tabs{width:100%;overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:none;padding-bottom:2px}
      #appView.management-page .category-tabs::-webkit-scrollbar{display:none}
      #appView.management-page .category-filter-tab{flex:0 0 auto;white-space:nowrap}
      #appView.management-page .category-grid{grid-template-columns:1fr;gap:11px}
      #appView.management-page .category-card{min-height:178px;padding:14px;border-radius:16px}
      #appView.management-page .category-card-top{grid-template-columns:40px minmax(0,1fr) auto;gap:10px}
      #appView.management-page .category-card-symbol{width:40px;height:40px}
      #appView.management-page .category-card .icon-action{width:40px;height:40px}
      #appView.management-page .category-screen-footer{align-items:flex-start;flex-direction:column;padding:12px!important}
      .category-form-backdrop{padding:10px;align-items:flex-end}
      .category-form-dialog{width:100%!important;max-width:none!important;max-height:calc(100vh - 20px);border-radius:22px 22px 16px 16px!important}
      .category-form-head{padding:18px 18px 16px}
      .category-form-heading{gap:11px;padding-right:32px}
      .category-form-icon{width:43px;height:43px;border-radius:13px}
      .category-form-title{font-size:20px}
      .category-form-subtitle{font-size:12px}
      .category-form-close{top:12px;right:12px}
      .category-form-body{padding:15px 16px 17px;max-height:calc(100vh - 270px)}
      .category-field-card{grid-template-columns:36px minmax(0,1fr);padding:12px;gap:10px}
      .category-field-icon{width:36px;height:36px}
      .category-form-foot{padding:12px 16px;align-items:stretch;flex-direction:column}
      .category-form-foot-note{display:none}
      .category-form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
      .category-form-actions .btn{width:100%}
      .category-form-actions .category-save-btn{grid-column:1/-1;grid-row:1}
      .category-unsaved-preview{grid-template-columns:1fr}
      .category-unsaved-state .listing-unsaved-foot{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
      .category-unsaved-state .listing-unsaved-foot .btn{width:100%;margin:0!important}
      .category-unsaved-state #managementUnsavedSaveBtn{grid-column:1/-1;grid-row:1}
      .management-confirm-modal.category-confirm-state .management-confirm-foot{display:grid;grid-template-columns:1fr 1fr;gap:8px}
      .management-confirm-modal.category-confirm-state .management-confirm-foot .btn{width:100%}
    }
    @media(max-width:420px){
      #appView.management-page .category-kpi-grid{grid-template-columns:1fr 1fr!important;gap:8px}
      #appView.management-page .category-kpi-card{min-height:78px!important;padding:12px!important}
      #appView.management-page .category-kpi-value{font-size:20px!important}
      #appView.management-page .category-toolbar-left{grid-template-columns:1fr!important}
      #appView.management-page .category-toolbar-left:before{top:21px!important}
      #appView.management-page .management-clear-btn{width:100%!important}
      #appView.management-page .category-card-stats{grid-template-columns:1fr 1fr}
      .category-form-heading{padding-right:28px}
      .category-form-icon{display:none}
      .category-field-card{grid-template-columns:1fr}
      .category-field-icon{display:none}
      .category-action-preview{grid-template-columns:38px minmax(0,1fr)}
      .category-action-preview-usage{grid-column:2;text-align:left}
      .management-confirm-modal.category-confirm-state .management-confirm-foot{grid-template-columns:1fr}
    }

/* RankDesk infrastructure setup CTA v005 */
.rankdesk-setup-cta{margin:16px 0 0;padding:12px 13px;border:1px solid #ddd8ff;border-radius:12px;background:#f7f5ff;color:#6557df;text-decoration:none;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px}.rankdesk-setup-cta span{color:#77728f}.rankdesk-setup-cta strong{font-size:11px;font-weight:600}.rankdesk-setup-cta:hover{background:#f1eeff;border-color:#cec7ff}

/* RankDesk dashboard mobile app UI — v008.2 */
.dash-mobile-hero,
.dash-mobile-section-head,
.dash-mobile-dock{display:none}
.dash-metric-light.is-action{
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.dash-metric-light.is-action:hover{
  border-color:#d7d2fb;
  background:#fbfaff;
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(44,39,90,.07);
}
.dash-metric-light.is-action:focus-visible,
.dash-quick-light:focus-visible,
.dash-mobile-hero button:focus-visible,
.dash-mobile-dock button:focus-visible{
  outline:3px solid rgba(117,103,244,.23);
  outline-offset:2px;
}

@media(max-width:760px){
  html,body{overscroll-behavior-y:none}
  #appView.dashboard-page{
    display:block!important;
    min-height:100dvh!important;
    background:#f4f5fa!important;
  }
  #appView.dashboard-page .side,
  #appView.dashboard-page.sidebar-collapsed .side{
    display:none!important;
  }
  #appView.dashboard-page .main,
  #appView.dashboard-page.sidebar-collapsed .main{
    margin-left:0!important;
    width:100%!important;
    min-height:100dvh!important;
    padding:0 12px calc(96px + env(safe-area-inset-bottom))!important;
    background:
      radial-gradient(circle at 100% 0,rgba(117,103,244,.08),transparent 34%),
      #f4f5fa!important;
  }
  #appView.dashboard-page .top.top-actions-only.dashboard-topbar{
    position:sticky!important;
    top:0!important;
    z-index:300!important;
    min-height:62px!important;
    margin:0 -12px 12px!important;
    padding:calc(8px + env(safe-area-inset-top)) 12px 8px!important;
    border-bottom:1px solid rgba(223,225,235,.88)!important;
    background:rgba(255,255,255,.92)!important;
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
    box-shadow:0 5px 18px rgba(34,38,58,.045)!important;
  }
  #appView.dashboard-page .dashboard-topbar .top-right{
    width:100%!important;
    justify-content:space-between!important;
    gap:7px!important;
  }
  #appView.dashboard-page .dashboard-topbar .top-account-switch{
    min-width:46px!important;
    width:46px!important;
    max-width:46px!important;
    height:42px!important;
    border-radius:14px!important;
    padding:4px!important;
    flex:0 0 46px!important;
  }
  #appView.dashboard-page .dashboard-topbar .top-account-avatar{
    width:34px!important;
    height:34px!important;
    border-radius:11px!important;
  }
  #appView.dashboard-page .dashboard-topbar .top-actions{
    margin-left:auto!important;
  }
  #appView.dashboard-page .page-header{display:none!important}
  #appView.dashboard-page #content{min-width:0}
  #appView.dashboard-page .dashboard-light-shell{
    display:grid;
    gap:14px;
    padding:0;
  }

  #appView.dashboard-page .dash-mobile-hero{
    display:block;
    position:relative;
    overflow:hidden;
    padding:18px;
    border-radius:24px;
    color:#fff;
    background:
      radial-gradient(circle at 100% 0,rgba(255,255,255,.20),transparent 34%),
      linear-gradient(145deg,#7668f6 0%,#5546df 100%);
    box-shadow:0 18px 38px rgba(86,70,223,.24);
  }
  #appView.dashboard-page .dash-mobile-hero:after{
    content:'';
    position:absolute;
    width:132px;
    height:132px;
    right:-58px;
    bottom:-76px;
    border-radius:999px;
    border:24px solid rgba(255,255,255,.08);
    pointer-events:none;
  }
  #appView.dashboard-page .dash-mobile-hero-top{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  #appView.dashboard-page .dash-mobile-workspace{
    min-width:0;
    display:flex;
    align-items:center;
    gap:11px;
  }
  #appView.dashboard-page .dash-mobile-workspace-avatar{
    width:44px;
    height:44px;
    flex:0 0 44px;
    display:grid;
    place-items:center;
    border-radius:15px;
    background:rgba(255,255,255,.17);
    border:1px solid rgba(255,255,255,.22);
    color:#fff;
    font-size:13px;
    font-weight:800;
    letter-spacing:.035em;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.17);
  }
  #appView.dashboard-page .dash-mobile-workspace-copy{min-width:0}
  #appView.dashboard-page .dash-mobile-workspace-copy small{
    display:block;
    color:rgba(255,255,255,.72);
    font-size:10px;
    font-weight:650;
    letter-spacing:.07em;
    text-transform:uppercase;
  }
  #appView.dashboard-page .dash-mobile-workspace-copy h2{
    margin:3px 0 0;
    color:#fff;
    font-size:20px;
    line-height:1.15;
    font-weight:750;
    letter-spacing:-.025em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #appView.dashboard-page .dash-mobile-refresh{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.21);
    border-radius:14px;
    background:rgba(255,255,255,.13);
    color:#fff;
    cursor:pointer;
  }
  #appView.dashboard-page .dash-mobile-refresh svg{width:18px;height:18px}
  #appView.dashboard-page .dash-mobile-hero>p{
    position:relative;
    z-index:1;
    margin:14px 0 0;
    max-width:320px;
    color:rgba(255,255,255,.80);
    font-size:12.5px;
    line-height:1.55;
  }
  #appView.dashboard-page .dash-mobile-hero-actions{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);
    gap:8px;
    margin-top:16px;
  }
  #appView.dashboard-page .dash-mobile-hero-actions button{
    min-width:0;
    min-height:45px;
    border-radius:14px;
    padding:9px 11px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font:inherit;
    cursor:pointer;
  }
  #appView.dashboard-page .dash-mobile-hero-actions button span{
    width:20px;
    height:20px;
    display:grid;
    place-items:center;
    flex:0 0 20px;
  }
  #appView.dashboard-page .dash-mobile-hero-actions button svg{width:16px;height:16px}
  #appView.dashboard-page .dash-mobile-hero-actions button b{
    min-width:0;
    font-size:11.5px;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #appView.dashboard-page .dash-mobile-primary{
    border:1px solid #fff;
    background:#fff;
    color:#5546df;
    box-shadow:0 8px 18px rgba(32,26,96,.16);
  }
  #appView.dashboard-page .dash-mobile-secondary{
    border:1px solid rgba(255,255,255,.25);
    background:rgba(255,255,255,.12);
    color:#fff;
  }

  #appView.dashboard-page .dash-mobile-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:1px 2px 0;
  }
  #appView.dashboard-page .dash-mobile-section-head span{
    display:block;
    color:#8b92a3;
    font-size:10px;
    font-weight:650;
    letter-spacing:.075em;
    text-transform:uppercase;
  }
  #appView.dashboard-page .dash-mobile-section-head strong{
    display:block;
    margin-top:3px;
    color:#2b3040;
    font-size:15px;
    font-weight:720;
    letter-spacing:-.015em;
  }

  #appView.dashboard-page .dash-metrics-light{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  #appView.dashboard-page .dash-metric-light{
    min-width:0;
    min-height:112px;
    padding:13px!important;
    border-radius:19px!important;
    display:flex!important;
    flex-direction:column;
    align-items:flex-start!important;
    justify-content:space-between;
    gap:10px!important;
    border:1px solid #e5e7ef!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(34,38,58,.045)!important;
    transform:none;
  }
  #appView.dashboard-page .dash-metric-light:active{transform:scale(.985)}
  #appView.dashboard-page .dash-metric-light-icon{
    width:36px!important;
    height:36px!important;
    border-radius:12px!important;
  }
  #appView.dashboard-page .dash-metric-light-icon svg{width:16px!important;height:16px!important}
  #appView.dashboard-page .dash-metric-light-copy{
    width:100%;
    min-width:0;
    display:flex!important;
    flex-direction:column-reverse!important;
    gap:5px!important;
  }
  #appView.dashboard-page .dash-metric-light-copy strong{
    font-size:25px!important;
    line-height:1!important;
    font-weight:760!important;
    letter-spacing:-.04em!important;
  }
  #appView.dashboard-page .dash-metric-light-copy span{
    font-size:11px!important;
    line-height:1.25!important;
    color:#7c8495!important;
    font-weight:550!important;
  }

  #appView.dashboard-page .dash-quick-panel{
    margin:0!important;
    padding:14px!important;
    border-radius:22px!important;
    border:1px solid #e4e6ee!important;
    background:#fff!important;
    box-shadow:0 9px 24px rgba(34,38,58,.045)!important;
  }
  #appView.dashboard-page .dash-quick-panel .dash-light-card-head{
    margin-bottom:12px!important;
  }
  #appView.dashboard-page .dash-light-card-head h3{
    font-size:15px!important;
    font-weight:720!important;
  }
  #appView.dashboard-page .dash-light-card-head p{
    display:block;
    margin-top:3px!important;
    font-size:11px!important;
  }
  #appView.dashboard-page .dash-quick-panel .dash-quick-light-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  #appView.dashboard-page .dash-quick-light{
    position:relative;
    min-width:0;
    min-height:118px;
    padding:13px!important;
    border-radius:17px!important;
    display:flex!important;
    flex-direction:column;
    align-items:flex-start!important;
    justify-content:flex-end;
    gap:10px!important;
    background:#f8f8fc!important;
    border:1px solid #e8e9f0!important;
  }
  #appView.dashboard-page .dash-quick-light:active{transform:scale(.985)}
  #appView.dashboard-page .dash-quick-light>span{
    position:absolute;
    left:13px;
    top:13px;
    width:38px!important;
    height:38px!important;
    border-radius:13px!important;
  }
  #appView.dashboard-page .dash-quick-light>span svg{width:17px!important;height:17px!important}
  #appView.dashboard-page .dash-quick-light b{
    width:100%;
    padding-right:22px;
    color:#353947;
    font-size:12px!important;
    line-height:1.3;
    font-weight:650!important;
    white-space:normal!important;
  }
  #appView.dashboard-page .dash-quick-light i{
    position:absolute;
    right:12px;
    bottom:12px;
  }

  #appView.dashboard-page .dash-mobile-dock{
    position:fixed;
    z-index:800;
    left:12px;
    right:12px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:3px;
    padding:7px 6px;
    border:1px solid rgba(220,222,232,.92);
    border-radius:22px;
    background:rgba(255,255,255,.94);
    -webkit-backdrop-filter:blur(20px);
    backdrop-filter:blur(20px);
    box-shadow:0 16px 42px rgba(31,35,52,.18);
  }
  #appView.dashboard-page .dash-mobile-dock button{
    min-width:0;
    min-height:54px;
    padding:5px 3px;
    border:0;
    border-radius:15px;
    background:transparent;
    color:#8a92a3;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    font:inherit;
    cursor:pointer;
  }
  #appView.dashboard-page .dash-mobile-dock button span{
    width:21px;
    height:21px;
    display:grid;
    place-items:center;
  }
  #appView.dashboard-page .dash-mobile-dock button svg{width:19px;height:19px}
  #appView.dashboard-page .dash-mobile-dock button b{
    font-size:9.5px;
    line-height:1;
    font-weight:650;
  }
  #appView.dashboard-page .dash-mobile-dock button.active{
    color:#6456e9;
    background:#f0eeff;
  }
}

@media(max-width:380px){
  #appView.dashboard-page .main,
  #appView.dashboard-page.sidebar-collapsed .main{padding-left:10px!important;padding-right:10px!important}
  #appView.dashboard-page .top.top-actions-only.dashboard-topbar{margin-left:-10px!important;margin-right:-10px!important;padding-left:10px!important;padding-right:10px!important}
  #appView.dashboard-page .dash-mobile-hero{padding:16px;border-radius:21px}
  #appView.dashboard-page .dash-mobile-hero-actions{grid-template-columns:1fr}
  #appView.dashboard-page .dash-metric-light{min-height:105px;padding:12px!important}
  #appView.dashboard-page .dash-quick-light{min-height:110px}
  #appView.dashboard-page .dash-mobile-dock{left:9px;right:9px}
}


/* RankDesk Dashboard Top Bar UI — v008.2.5 UI-only
   Scoped typography tokens preserve the proven v008.2.4 UI while establishing
   the approved hierarchy for this component and future screen-by-screen updates. */
.dashboard-topbar{
  --rd-type-page-title-size:28px;--rd-type-page-title-weight:700;
  --rd-type-modal-title-size:20px;--rd-type-modal-title-weight:700;
  --rd-type-section-heading-size:18px;--rd-type-section-heading-weight:600;
  --rd-type-card-title-size:15px;--rd-type-card-title-weight:600;
  --rd-type-navigation-size:14px;--rd-type-navigation-weight:500;
  --rd-type-body-size:14px;--rd-type-body-weight:400;
  --rd-type-field-label-size:13px;--rd-type-field-label-weight:500;
  --rd-type-table-header-size:12px;--rd-type-table-header-weight:600;
  --rd-type-meta-size:12px;--rd-type-meta-weight:400;
  --rd-type-metric-size:28px;--rd-type-metric-weight:700;
  --rd-type-button-size:14px;--rd-type-button-weight:600;
  --rd-type-status-size:12px;--rd-type-status-weight:500;
}
.dashboard-topbar .top-right{width:100%!important;gap:8px!important}
.dashboard-topbar .top-account-picker{position:relative;min-width:0;margin-right:auto;z-index:25}
.dashboard-topbar .top-account-switch{
  width:248px!important;min-width:210px!important;max-width:300px!important;height:48px!important;
  padding:5px 11px 5px 6px!important;border:1px solid #e1e4ec!important;border-radius:15px!important;
  background:#fff!important;box-shadow:0 5px 16px rgba(30,32,45,.035)!important;gap:10px!important;
  font-size:var(--rd-type-navigation-size)!important;font-weight:var(--rd-type-navigation-weight)!important;
}
.dashboard-topbar .top-account-switch:hover,.dashboard-topbar .top-account-switch.open{
  border-color:#c9c3fb!important;background:#fbfaff!important;box-shadow:0 10px 24px rgba(103,88,238,.10)!important;
}
.dashboard-topbar .top-account-switch.open .top-account-chevron{transform:rotate(180deg)}
.dashboard-topbar .top-account-avatar{width:36px!important;height:36px!important;border-radius:12px!important;font-size:12px!important;box-shadow:0 7px 16px rgba(117,103,244,.17)!important}
.dashboard-topbar .top-account-copy{display:flex!important;gap:2px!important}
.dashboard-topbar .top-account-copy small{display:block!important;font-size:var(--rd-type-meta-size)!important;font-weight:var(--rd-type-meta-weight)!important;letter-spacing:0!important;text-transform:none!important;line-height:1.1!important;color:#8a92a3!important}
.dashboard-topbar .top-account-copy strong{font-size:var(--rd-type-navigation-size)!important;font-weight:var(--rd-type-navigation-weight)!important;line-height:1.2!important;color:#252a37!important}
.dashboard-topbar .top-account-chevron{display:block!important;width:16px!important;height:16px!important;transition:transform .16s ease}
.dashboard-topbar .top-account-picker.is-switching{opacity:.65;pointer-events:none}
.dashboard-topbar .top-account-menu{
  position:absolute;top:calc(100% + 9px);left:0;width:min(330px,calc(100vw - 28px));padding:8px;
  border:1px solid #e2e5ed;border-radius:18px;background:#fff;box-shadow:0 22px 56px rgba(31,35,52,.18);z-index:900;
}
.dashboard-topbar .top-account-menu:before{content:'';position:absolute;top:-6px;left:24px;width:11px;height:11px;background:#fff;border-left:1px solid #e2e5ed;border-top:1px solid #e2e5ed;transform:rotate(45deg)}
.dashboard-topbar .top-account-menu-head{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px 10px}
.dashboard-topbar .top-account-menu-head span{font-size:var(--rd-type-card-title-size);font-weight:var(--rd-type-card-title-weight);color:#262b38}
.dashboard-topbar .top-account-menu-head small{font-size:var(--rd-type-meta-size);font-weight:var(--rd-type-meta-weight);color:#8a92a3}
.dashboard-topbar .top-account-menu-list{display:grid;gap:4px;max-height:286px;overflow:auto}
.dashboard-topbar .top-account-option{
  width:100%;min-height:58px;padding:8px;border:0;border-radius:13px;background:#fff;color:#353b49;
  display:grid;grid-template-columns:38px minmax(0,1fr) 24px;gap:10px;align-items:center;text-align:left;cursor:pointer;font:inherit;
}
.dashboard-topbar .top-account-option:hover{background:#f7f6ff}
.dashboard-topbar .top-account-option.selected{background:#f1efff}
.dashboard-topbar .top-account-option-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#8f84fb 0%,#6253e7 100%);color:#fff;font-size:12px;font-weight:700}
.dashboard-topbar .top-account-option-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.dashboard-topbar .top-account-option-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.dashboard-topbar .top-account-option-copy strong{font-size:var(--rd-type-navigation-size);font-weight:var(--rd-type-navigation-weight);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2c313e}
.dashboard-topbar .top-account-option-copy small{font-size:var(--rd-type-meta-size);font-weight:var(--rd-type-meta-weight);color:#8a92a3}
.dashboard-topbar .top-account-option-check{width:24px;height:24px;display:grid;place-items:center;color:#8d95a5}
.dashboard-topbar .top-account-option.selected .top-account-option-check{color:#6557e7}
.dashboard-topbar .top-account-option-check svg{width:16px;height:16px}
.dashboard-topbar .top-account-menu-empty{padding:18px 12px;text-align:center;color:#8a92a3;font-size:var(--rd-type-meta-size);font-weight:var(--rd-type-meta-weight)}
.dashboard-topbar .top-account-menu-manage{width:100%;height:42px;margin-top:7px;padding:0 11px;border:1px solid #e7e9f0;border-radius:12px;background:#fafaff;color:#6254df;display:flex;align-items:center;gap:9px;cursor:pointer;font:inherit;font-size:var(--rd-type-button-size);font-weight:var(--rd-type-button-weight)}
.dashboard-topbar .top-account-menu-manage:hover{background:#f1efff;border-color:#d8d3fc}
.dashboard-topbar .top-account-menu-manage svg{width:17px;height:17px;flex:0 0 auto}
.dashboard-topbar .top-sheet-link{
  width:44px;height:44px;min-width:44px;padding:0;border:1px solid #dce7df;border-radius:14px;background:#fff;color:#2f6f49;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font:inherit;
  font-size:var(--rd-type-button-size);font-weight:var(--rd-type-button-weight);box-shadow:0 5px 16px rgba(30,32,45,.03);transition:.16s ease;
}
.dashboard-topbar .top-sheet-link:hover:not(:disabled){background:#f1fbf5;border-color:#bfe1ca;color:#24633f;box-shadow:0 9px 20px rgba(48,132,79,.08)}
.dashboard-topbar .top-sheet-link:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(48,132,79,.16)}
.dashboard-topbar .top-sheet-link:disabled{opacity:.55;cursor:wait}
.dashboard-topbar .top-sheet-link svg{width:18px;height:18px;display:block;flex:0 0 auto}
.dashboard-topbar .top-sheet-link.is-loading svg{animation:rdSheetSpin .75s linear infinite}
@keyframes rdSheetSpin{to{transform:rotate(360deg)}}
.dashboard-topbar .top-action-btn,.dashboard-topbar .top-sheet-link,.dashboard-topbar .top-logout-btn{font-size:var(--rd-type-button-size)!important;font-weight:var(--rd-type-button-weight)!important}
.dashboard-topbar .top-action-btn svg,.dashboard-topbar .top-logout-btn svg{width:17px!important;height:17px!important}

@media(max-width:760px){
  #appView.dashboard-page .dashboard-topbar .top-right{justify-content:flex-end!important;gap:6px!important}
  #appView.dashboard-page .dashboard-topbar .top-account-picker{flex:1 1 auto;min-width:0;margin-right:0}
  #appView.dashboard-page .dashboard-topbar .top-account-switch{
    width:100%!important;min-width:0!important;max-width:none!important;height:44px!important;flex:1 1 auto!important;padding:4px 8px 4px 5px!important;border-radius:14px!important;
  }
  #appView.dashboard-page .dashboard-topbar .top-account-avatar{width:34px!important;height:34px!important;border-radius:11px!important}
  #appView.dashboard-page .dashboard-topbar .top-account-copy{display:flex!important}
  #appView.dashboard-page .dashboard-topbar .top-account-copy small{display:none!important}
  #appView.dashboard-page .dashboard-topbar .top-account-copy strong{font-size:13px!important;font-weight:500!important}
  #appView.dashboard-page .dashboard-topbar .top-account-chevron{display:block!important}
  #appView.dashboard-page .dashboard-topbar .top-sheet-link{width:42px;min-width:42px;height:42px;padding:0;border-radius:13px}
  #appView.dashboard-page .dashboard-topbar .top-actions{display:none!important}
  #appView.dashboard-page .dashboard-topbar .top-profile{display:none!important}
  #appView.dashboard-page .dashboard-topbar .top-logout-btn{width:40px!important;height:40px!important;border-radius:13px!important}
  #appView.dashboard-page .dashboard-topbar .top-account-menu{position:fixed;top:calc(62px + env(safe-area-inset-top));left:10px;right:10px;width:auto;max-height:calc(100dvh - 90px);overflow:auto}
  #appView.dashboard-page .dashboard-topbar .top-account-menu:before{display:none}
}
@media(max-width:390px){
  #appView.dashboard-page .dashboard-topbar .top-account-copy strong{max-width:118px}
  #appView.dashboard-page .dashboard-topbar .top-sheet-link{width:40px;min-width:40px}
  #appView.dashboard-page .dashboard-topbar .top-logout-btn{width:38px!important;height:38px!important}
}

/* v008.2.5 UI-only responsive guard for shared top bar outside Dashboard */
@media(max-width:760px){
  .dashboard-topbar .top-account-picker{flex:1 1 auto;min-width:0;margin-right:0}
  .dashboard-topbar .top-account-switch{width:100%!important;min-width:0!important;max-width:none!important}
  #appView:not(.dashboard-page) .dashboard-topbar .top-sheet-link{display:none}
}


/* =====================================================================
   RankDesk UI v008.2.6 — Choose Account + popup UX (frontend only)
   ===================================================================== */
:root{
  --rd-page-title-size:28px;
  --rd-modal-title-size:20px;
  --rd-section-title-size:18px;
  --rd-card-title-size:15px;
  --rd-nav-size:14px;
  --rd-body-size:14px;
  --rd-field-label-size:13px;
  --rd-table-head-size:12px;
  --rd-meta-size:12px;
  --rd-metric-size:28px;
  --rd-button-size:14px;
  --rd-status-size:12px;
}
.account-selection-mode .account-select-head h1{font-size:var(--rd-page-title-size)!important;font-weight:700!important;letter-spacing:-.025em!important}
.account-selection-mode .account-select-head p{font-size:var(--rd-body-size)!important;font-weight:400!important}
.account-selection-mode .account-select-brand-title{font-size:var(--rd-card-title-size)!important;font-weight:600!important}
.account-selection-mode .account-select-user-name{font-size:var(--rd-nav-size)!important;font-weight:500!important}
.account-selection-mode .account-tile-name,.account-selection-mode .account-choice-create-title{font-size:var(--rd-card-title-size)!important;font-weight:600!important}
.account-selection-mode .account-tile-sub,.account-selection-mode .account-choice-create-copy{font-size:var(--rd-meta-size)!important;font-weight:400!important}
.account-selection-mode .account-tile-chip,.account-selection-mode .account-tile-records,.account-selection-mode .account-tile-current{font-size:var(--rd-status-size)!important;font-weight:500!important}
.account-selection-mode .account-choice-menu button{font-size:var(--rd-nav-size)!important;font-weight:500!important}
.account-selection-mode .account-tile-open:after,.account-selection-mode .account-choice-create-card{font-size:var(--rd-button-size);font-weight:600}

.account-management-shell{max-width:1180px!important;padding:20px 28px 24px!important}
.account-choice-shell{min-height:100dvh!important;gap:20px!important}
.account-choice-main{justify-content:flex-start!important;padding:72px 0 24px!important}
.account-select-head{margin-bottom:28px!important}
.account-management-grid{width:min(920px,100%)!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.account-tile,.account-choice-create-card{min-height:142px!important;border-radius:20px!important;padding:18px!important}
.account-tile{box-shadow:0 8px 24px rgba(31,35,49,.055)!important}
.account-tile:hover{transform:translateY(-1px)!important;box-shadow:0 14px 30px rgba(73,62,170,.09)!important}
.account-tile-avatar,.account-choice-create-circle{width:56px!important;height:56px!important;border-radius:17px!important}
.account-tile-open,.account-choice-dots,.account-choice-create-arrow{width:42px!important;height:42px!important;border-radius:13px!important}
.account-choice-menu{width:190px!important;border-radius:16px!important;padding:8px!important}
.account-choice-footer{margin-top:auto!important;padding-bottom:max(6px,env(safe-area-inset-bottom))!important}

.account-confirm-title,.create-account-title,.user-settings-title,.popup-unsaved-title{font-size:var(--rd-modal-title-size)!important;font-weight:700!important;letter-spacing:-.02em!important}
.user-settings-section-head h3,.account-profile-crop-head h3,.user-profile-crop-head h3{font-size:var(--rd-section-title-size)!important;font-weight:600!important}
.create-account-profile-card h3,.user-profile-actions h4,.account-confirm-account-name,.account-confirm-impact-title{font-size:var(--rd-card-title-size)!important;font-weight:600!important}
.create-account-field label,.user-settings-field label{font-size:var(--rd-field-label-size)!important;font-weight:500!important}
.create-account-field input,.create-account-field select,.user-settings-field input,.account-confirm-intro,.create-account-subtitle,.user-settings-subtitle{font-size:var(--rd-body-size)!important;font-weight:400!important}
.create-account-field-help,.create-account-profile-help,.create-account-link-note,.account-confirm-account-meta,.account-confirm-impact-text,.user-settings-section-head p,.user-profile-actions p,.user-settings-field-help,.user-security-status span,.user-reset-card p{font-size:var(--rd-meta-size)!important;font-weight:400!important}
.account-confirm-state,.create-account-eyebrow,.user-settings-eyebrow,.account-confirm-eyebrow,.popup-unsaved-eyebrow{font-size:var(--rd-status-size)!important;font-weight:500!important}
.account-confirm-foot .btn,.create-account-foot .btn,.user-settings-save-row .btn,.user-security-actions .btn,.popup-unsaved-foot .btn{font-size:var(--rd-button-size)!important;font-weight:600!important}

.account-confirm-close svg,.create-account-close svg,.user-settings-close svg,.popup-unsaved-close svg{width:18px;height:18px;display:block}
.account-confirm-close,.create-account-close,.user-settings-close,.popup-unsaved-close{font-size:0!important}
.account-confirm-modal,.create-account-modal,.user-settings-modal,.popup-unsaved-modal{border-radius:22px!important}
.account-confirm-top,.create-account-head,.user-settings-head,.popup-unsaved-head{background:#fff!important}
.account-confirm-foot,.create-account-foot,.popup-unsaved-foot{background:#fafbfc!important}
.account-confirm-cancel,.create-account-foot .secondary,.user-settings-cancel,.popup-unsaved-stay{background:#fff!important;border:1px solid #dfe3ec!important;color:#596273!important;box-shadow:none!important}
.user-settings-save-row,.user-security-actions{display:flex!important;gap:10px!important}
.user-settings-cancel{min-height:42px!important;border-radius:12px!important;padding:0 16px!important}

.popup-unsaved-backdrop{z-index:260!important;padding:20px;background:rgba(20,23,34,.62);backdrop-filter:blur(9px)}
.popup-unsaved-modal{width:min(520px,calc(100vw - 32px));background:#fff;border:1px solid #e5e8f0;box-shadow:0 32px 90px rgba(18,21,31,.28);overflow:hidden}
.popup-unsaved-head{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 18px;border-bottom:1px solid #eceef4}
.popup-unsaved-heading{display:flex;align-items:flex-start;gap:13px;min-width:0;padding-right:34px}
.popup-unsaved-icon{width:44px;height:44px;border-radius:14px;background:#fff4d9;border:1px solid #f2d99b;color:#996600;display:grid;place-items:center;flex:0 0 auto}
.popup-unsaved-icon svg{width:20px;height:20px}
.popup-unsaved-eyebrow{text-transform:uppercase;letter-spacing:.08em;color:#8a92a3;line-height:1.2}
.popup-unsaved-title{margin:5px 0 0;color:#242a36;line-height:1.25}
.popup-unsaved-close{position:absolute;right:16px;top:16px;width:36px;height:36px;border:1px solid transparent;background:transparent;color:#8991a1;border-radius:11px;display:grid;place-items:center;cursor:pointer}
.popup-unsaved-close:hover{background:#f7f8fb;border-color:#e4e7ee;color:#303744}
.popup-unsaved-body{padding:20px 24px}
.popup-unsaved-body p{margin:0;color:#6f788a;font-size:var(--rd-body-size);line-height:1.6}
.popup-unsaved-foot{display:flex;justify-content:flex-end;gap:9px;padding:15px 24px 18px;border-top:1px solid #eceef4}
.popup-unsaved-foot .btn{min-height:42px!important;margin:0!important;border-radius:12px!important;padding:0 15px!important}
.popup-unsaved-discard{background:#fff5f6!important;border:1px solid #f5cfd4!important;color:#c83b4b!important;box-shadow:none!important}
.popup-unsaved-discard:hover{background:#ffedef!important}
.popup-unsaved-save{min-width:126px}

@media(max-width:760px){
  #appView.account-selection-mode .main{background:#f4f5f8!important}
  .account-management-shell{padding:0!important;max-width:none!important}
  .account-choice-shell{gap:0!important;min-height:100dvh!important}
  .account-select-topbar{position:sticky!important;top:0;z-index:100;min-height:68px;padding:10px 14px!important;background:rgba(255,255,255,.96);border-bottom:1px solid #e6e8ef;box-shadow:0 4px 16px rgba(28,32,44,.045);backdrop-filter:blur(16px)}
  .account-select-logo{width:42px!important;height:42px!important;border-radius:13px!important;box-shadow:0 8px 18px rgba(103,88,238,.18)!important}
  .account-select-brand-sub{display:none!important}
  .account-select-user{gap:6px!important}
  .account-select-user-chip{padding:2px!important}
  .account-select-user-name{display:none!important}
  .account-select-user-avatar,.account-select-settings,.account-select-logout{width:42px!important;height:42px!important;border-radius:13px!important}
  .account-choice-main{display:block!important;padding:24px 14px calc(28px + env(safe-area-inset-bottom))!important}
  .account-select-head{align-items:flex-start!important;text-align:left!important;margin:0 2px 20px!important}
  .account-select-head h1{font-size:28px!important;line-height:1.15!important}
  .account-select-head p{margin-top:6px!important;font-size:14px!important}
  .account-management-grid{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:12px!important}
  .account-choice-card{width:100%!important}
  .account-tile{min-height:126px!important;grid-template-columns:54px minmax(0,1fr) 42px!important;grid-template-areas:'avatar copy menu' 'actions actions actions'!important;gap:12px!important;padding:15px!important;border-radius:19px!important;background:#fff!important;box-shadow:0 5px 18px rgba(31,35,49,.055)!important}
  .account-tile:hover{transform:none!important}
  .account-tile-avatar-wrap{grid-area:avatar!important}
  .account-tile-avatar{width:52px!important;height:52px!important;border-radius:16px!important}
  .account-tile-copy{grid-area:copy!important;align-self:center!important}
  .account-tile-name{white-space:normal!important;line-height:1.3!important}
  .account-tile-sub{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;line-height:1.45!important;margin-top:4px!important}
  .account-tile-meta{margin-top:9px!important;gap:6px!important}
  .account-tile-chip,.account-tile-records,.account-tile-current{min-height:25px!important;padding:0 8px!important}
  .account-tile-actions{display:contents!important}
  .account-tile-open{grid-area:actions!important;width:100%!important;height:44px!important;display:flex!important;align-items:center;justify-content:center;gap:8px;border-radius:13px!important;margin-top:2px}
  .account-tile-open:after{content:'Open account';font-size:14px;font-weight:600}
  .account-tile-open:disabled:after{content:'Unavailable'}
  .account-choice-actions{grid-area:menu!important;width:42px!important;align-self:start!important}
  .account-choice-dots{width:42px!important;height:42px!important}
  .account-choice-card.menu-open{z-index:230!important}
  .account-choice-card.menu-open:before{content:'';position:fixed;inset:0;background:rgba(19,22,32,.42);backdrop-filter:blur(3px);z-index:210}
  .account-choice-menu{position:fixed!important;left:10px!important;right:10px!important;top:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;border-radius:24px!important;padding:10px!important;box-shadow:0 24px 70px rgba(18,21,31,.28)!important;z-index:220!important}
  .account-choice-menu:before{display:none!important}
  .account-choice-menu button{min-height:48px!important;border-radius:13px!important;padding:0 14px!important;font-size:14px!important}
  .account-choice-menu button svg{width:18px!important;height:18px!important}
  .account-choice-create-card{min-height:104px!important;grid-template-columns:52px minmax(0,1fr) 38px!important;padding:15px!important;border-radius:19px!important;background:#fbfaff!important}
  .account-choice-create-circle{width:52px!important;height:52px!important;border-radius:16px!important}
  .account-choice-create-arrow{display:grid!important;width:38px!important;height:38px!important}
  .account-choice-footer{display:none!important}

  .create-account-backdrop,.user-settings-backdrop{padding:0!important;align-items:flex-end!important}
  .create-account-modal,.user-settings-modal{width:100%!important;max-width:none!important;max-height:96dvh!important;border-radius:26px 26px 0 0!important;border-bottom:0!important}
  .create-account-head,.user-settings-head{padding:18px 16px 15px!important;position:sticky;top:0;z-index:8}
  .create-account-head-icon,.user-settings-head-icon{width:42px!important;height:42px!important;border-radius:13px!important}
  .create-account-title,.user-settings-title{font-size:20px!important}
  .create-account-subtitle,.user-settings-subtitle{font-size:12px!important;line-height:1.45!important}
  .create-account-body{padding:16px!important}
  .create-account-layout{grid-template-columns:1fr!important;gap:14px!important}
  .create-account-profile-card{display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;gap:13px!important;align-items:center!important;text-align:left!important;padding:14px!important;border-radius:17px!important}
  .create-account-profile-preview-wrap,.create-account-profile-preview{width:76px!important;height:76px!important}
  .create-account-profile-preview{font-size:18px!important}
  .create-account-profile-actions{justify-content:flex-start!important;margin-top:10px!important}
  .create-account-profile-help{grid-column:1/-1!important;margin-top:0!important}
  .create-account-field input,.create-account-field select{height:48px!important;border-radius:14px!important}
  .create-account-foot{position:sticky;bottom:0;z-index:8;padding:12px 14px calc(12px + env(safe-area-inset-bottom))!important;flex-direction:column!important;align-items:stretch!important;box-shadow:0 -8px 22px rgba(25,29,41,.05)}
  .create-account-foot-note{display:none!important}
  .create-account-foot-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .create-account-foot .btn{height:46px!important;font-size:14px!important}

  .user-settings-body{display:block!important;overflow:auto!important}
  .user-settings-nav{position:sticky!important;top:75px!important;z-index:7;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:9px 14px!important;border-right:0!important;border-bottom:1px solid #eceef4!important;background:rgba(250,251,252,.98)!important}
  .user-settings-nav-btn{justify-content:center!important;min-height:42px!important;font-size:14px!important}
  .user-settings-content{padding:18px 14px calc(22px + env(safe-area-inset-bottom))!important}
  .user-profile-card{grid-template-columns:82px minmax(0,1fr)!important;gap:14px!important;text-align:left!important;padding:15px!important}
  .user-profile-avatar{width:80px!important;height:80px!important;border-radius:22px!important}
  .user-profile-avatar-wrap{justify-self:start!important}
  .user-profile-action-row{justify-content:flex-start!important}
  .user-settings-form{grid-template-columns:1fr!important;gap:14px!important}
  .user-settings-field input{min-height:48px!important;border-radius:14px!important}
  .user-settings-save-row,.user-security-actions{position:sticky;bottom:0;z-index:5;display:grid!important;grid-template-columns:1fr 1fr!important;margin:20px -14px -22px!important;padding:12px 14px calc(12px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.97);border-top:1px solid #eceef4;box-shadow:0 -8px 22px rgba(25,29,41,.05)}
  .user-settings-save-row .btn,.user-security-actions .btn{width:100%!important;height:46px!important}

  .account-confirm-modal,.popup-unsaved-modal{width:100%!important;max-width:none!important;border-radius:26px 26px 0 0!important;border-bottom:0!important}
  #accountActionModal,.popup-unsaved-backdrop{padding:0!important;align-items:flex-end!important}
  .account-confirm-top,.popup-unsaved-head{padding:19px 17px 16px!important}
  .account-confirm-body,.popup-unsaved-body{padding:17px!important}
  .account-confirm-foot,.popup-unsaved-foot{display:grid!important;grid-template-columns:1fr 1fr!important;padding:12px 14px calc(12px + env(safe-area-inset-bottom))!important}
  .popup-unsaved-foot{grid-template-columns:1fr 1fr!important}
  .popup-unsaved-stay{grid-column:1/-1!important;order:3}
  .popup-unsaved-foot .btn,.account-confirm-foot .btn{width:100%!important;height:46px!important;margin:0!important}
}

@media(max-width:430px){
  .account-select-brand-title{font-size:14px!important}
  .account-select-user-avatar,.account-select-settings,.account-select-logout{width:40px!important;height:40px!important}
  .account-choice-main{padding-left:12px!important;padding-right:12px!important}
  .account-tile{padding:14px!important;grid-template-columns:50px minmax(0,1fr) 40px!important}
  .account-tile-avatar{width:50px!important;height:50px!important}
  .account-tile-meta{align-items:flex-start!important}
  .account-tile-records{max-width:100%;white-space:normal!important;height:auto!important;min-height:25px!important;padding-top:5px!important;padding-bottom:5px!important;line-height:1.25!important}
  .create-account-head-icon,.user-settings-head-icon{display:none!important}
  .create-account-head-copy,.user-settings-head-copy{padding-right:38px!important}
  .create-account-profile-card{grid-template-columns:66px minmax(0,1fr)!important}
  .create-account-profile-preview-wrap,.create-account-profile-preview{width:64px!important;height:64px!important}
  .user-profile-card{grid-template-columns:1fr!important;text-align:center!important}
  .user-profile-avatar-wrap{justify-self:center!important}
  .user-profile-action-row{justify-content:center!important}
  .popup-unsaved-heading{display:block!important}
  .popup-unsaved-icon{margin-bottom:11px!important}
}


/* ========================================================================== */
/* RankDesk UI v008.2.7 — Users & Permissions responsive app UI (UI only)    */
/* ========================================================================== */
.users-page-shell{
  display:flex!important;
  flex-direction:column!important;
  gap:16px!important;
  min-width:0;
}
.users-overview-card{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  gap:15px;
  align-items:center;
  padding:18px 20px;
  border:1px solid #e4e7ef;
  border-radius:20px;
  background:linear-gradient(135deg,#fff 0%,#fbfaff 100%);
  box-shadow:0 10px 28px rgba(30,32,45,.045);
  overflow:hidden;
  position:relative;
}
.users-overview-card:after{content:'';position:absolute;right:-45px;top:-75px;width:170px;height:170px;border-radius:50%;background:rgba(117,103,244,.07);pointer-events:none}
.users-overview-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#f0edff;color:#6253e8;border:1px solid #ded9ff;position:relative;z-index:1}
.users-overview-icon svg{width:25px;height:25px}
.users-overview-copy{min-width:0;position:relative;z-index:1}
.users-overview-eyebrow,.permissions-eyebrow,.user-editor-eyebrow{display:block;font-size:12px;font-weight:500;color:#7165dd;letter-spacing:.025em;margin-bottom:4px}
.users-overview-copy h2{margin:0;font-size:18px;font-weight:600;color:#232733;letter-spacing:-.02em}
.users-overview-copy p{margin:5px 0 0;font-size:14px;font-weight:400;line-height:1.5;color:#737b8c}
.users-overview-copy p strong{font-weight:600;color:#4c5363}
.users-overview-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid #e3e5ed;background:#fff;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:500;color:#626b7c;white-space:nowrap;position:relative;z-index:1}
.users-overview-badge span{width:8px;height:8px;border-radius:50%;background:#18a66e;box-shadow:0 0 0 4px rgba(24,166,110,.10)}
.users-invite-primary{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;font-size:14px!important;font-weight:600!important}
.users-invite-primary svg{width:18px;height:18px}
.users-tabs{display:inline-flex!important;align-items:center;gap:5px!important;padding:5px!important;border:1px solid #e3e6ee!important;border-radius:15px!important;background:#fff!important;width:max-content!important;box-shadow:0 7px 20px rgba(30,32,45,.035)!important}
.users-tab{display:inline-flex;align-items:center;gap:8px;min-height:40px;border:0!important;background:transparent!important;color:#727b8c!important;border-radius:11px!important;padding:0 13px!important;font-size:14px!important;font-weight:500!important;cursor:pointer;transition:.16s ease}
.users-tab svg{width:17px;height:17px}
.users-tab b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#f0f1f5;color:#757d8d;font-size:11px;font-weight:600}
.users-tab:hover{background:#f7f7fb!important;color:#4f5667!important}
.users-tab.active{background:#f0edff!important;color:#5748df!important;box-shadow:inset 0 0 0 1px #e1dcff}
.users-tab.active b{background:#fff;color:#5b4ded}
.users-kpi-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-bottom:14px}
.users-kpi{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;min-height:116px;padding:17px 18px!important;border:1px solid #e4e7ef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 9px 24px rgba(30,32,45,.04)!important;overflow:hidden;position:relative}
.users-kpi>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.users-kpi span{font-size:12px!important;font-weight:500!important;color:#7a8293!important;letter-spacing:.01em}
.users-kpi strong{font-size:28px!important;font-weight:700!important;line-height:1!important;color:#242835!important;letter-spacing:-.04em!important;margin-top:8px}
.users-kpi small{font-size:12px;font-weight:400;color:#939aaa;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.users-kpi i{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:0 0 auto;font-style:normal}
.users-kpi i svg{width:21px;height:21px}
.users-kpi.total i{background:#f0edff;color:#6153e8}.users-kpi.active i{background:#eaf9f2;color:#0d9463}.users-kpi.pending i{background:#fff5df;color:#b27608}
.users-kpi.total strong{color:#6557e9!important}.users-kpi.active strong{color:#0b9563!important}.users-kpi.pending strong{color:#b27608!important}
.users-panel,.permissions-panel{border:1px solid #e3e6ee!important;border-radius:20px!important;background:#fff!important;box-shadow:0 10px 28px rgba(30,32,45,.045)!important;overflow:hidden!important}
.users-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:14px 16px!important;border-bottom:1px solid #e8eaf0!important;background:#fff!important}
.users-search-wrap{position:relative!important;min-width:280px!important;max-width:520px!important;flex:1!important}
.users-search-wrap svg{position:absolute!important;left:13px!important;top:50%!important;transform:translateY(-50%)!important;width:17px!important;height:17px!important;color:#9299a8!important}
.users-search-wrap input{height:44px!important;padding:0 13px 0 40px!important;border:1px solid #dfe3eb!important;border-radius:13px!important;background:#fbfcfe!important;font-size:14px!important;font-weight:400!important}
.users-search-wrap input:focus{background:#fff!important;border-color:#7567f4!important;box-shadow:0 0 0 3px rgba(117,103,244,.11)!important}
.users-result-count{display:inline-flex;align-items:center;gap:4px;border:1px solid #e5e7ee!important;background:#f7f8fa!important;border-radius:999px!important;padding:7px 10px!important;font-size:12px!important;font-weight:400!important;color:#7a8292!important;white-space:nowrap}
.users-result-count strong{font-weight:600;color:#505867}
.users-table-scroll{overflow:auto}.users-table{min-width:1000px!important}
.users-table th,.permissions-table th{padding:12px 16px!important;background:#f7f8fa!important;color:#727a8b!important;font-size:12px!important;font-weight:600!important;text-transform:none!important;letter-spacing:.01em!important;border-bottom:1px solid #e7e9ef!important}
.users-table td,.permissions-table td{padding:14px 16px!important;vertical-align:middle!important;border-bottom:1px solid #eceef3!important}
.users-table tbody tr:last-child td,.permissions-table tbody tr:last-child td{border-bottom:0!important}
.users-table tbody tr:hover td{background:#fbfaff!important}
.users-table th:last-child,.users-table td:last-child{text-align:right;width:118px}
.user-identity{display:flex!important;align-items:center!important;gap:11px!important;min-width:0}
.user-avatar{width:40px!important;height:40px!important;border-radius:13px!important;background:linear-gradient(135deg,#f0edff,#e7e2ff)!important;color:#5749de!important;border:1px solid #ddd7ff;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:12px!important;font-weight:700!important;flex:0 0 auto!important;letter-spacing:.02em}
.user-identity>span:last-child{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0}
.user-identity strong{font-size:14px!important;font-weight:600!important;color:#292d39!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.user-identity small{font-size:12px!important;font-weight:400!important;color:#81899a!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.user-role-pill,.user-status-pill{display:inline-flex!important;align-items:center!important;gap:6px!important;border-radius:999px!important;padding:6px 9px!important;font-size:12px!important;font-weight:500!important;line-height:1!important;border:1px solid #e1e4ec!important;background:#f5f6f9!important;color:#636c7e!important;white-space:nowrap}
.user-status-pill svg{width:13px;height:13px}.user-status-dot{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.85}
.user-role-pill.super{background:#f0edff!important;color:#5b4ded!important;border-color:#ded8ff!important}.user-status-pill.active{background:#edf9f3!important;color:#0b8257!important;border-color:#cfeadc!important}.user-status-pill.pending{background:#fff7e6!important;color:#9b6800!important;border-color:#f4dfad!important}.user-status-pill.disabled{background:#f4f5f8!important;color:#7d8493!important;border-color:#e4e6eb!important}
.user-last-login{font-size:12px!important;font-weight:400!important;color:#737c8d!important}
.user-row-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important}
.user-row-actions .icon-action{width:36px!important;height:36px!important;border-radius:11px!important;margin:0!important}
.user-protected{display:inline-flex!important;align-items:center!important;gap:6px!important;font-size:12px!important;font-weight:500!important;color:#858d9d!important;white-space:nowrap}
.user-protected svg{width:15px;height:15px}
.users-mobile-list{display:none}
.user-empty-state{padding:42px 20px!important;text-align:center!important;color:#858d9d!important;font-size:14px!important;font-weight:400!important}
.users-no-access{display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border:1px solid #e4e7ef;border-radius:20px;box-shadow:0 10px 28px rgba(30,32,45,.04)}
.users-no-access .user-empty-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#f0edff;color:#6153e8}.users-no-access .user-empty-icon svg{width:23px;height:23px}.users-no-access strong{font-size:18px;font-weight:600;color:#2d313d}.users-no-access span{font-size:14px;color:#7d8596}
.permissions-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:17px 18px!important;border-bottom:1px solid #e7e9ef!important;background:#fff!important}
.permissions-head-copy{min-width:0}.permissions-head h3{margin:0!important;font-size:18px!important;font-weight:600!important;color:#292d39!important;letter-spacing:-.02em!important}.permissions-head p{margin:5px 0 0!important;font-size:12px!important;font-weight:400!important;color:#7d8596!important;line-height:1.45}
.permissions-save-btn{display:inline-flex!important;align-items:center!important;gap:8px!important;font-size:14px!important;font-weight:600!important;white-space:nowrap}.permissions-save-btn svg{width:17px;height:17px}
.permissions-panel.is-dirty .permissions-save-btn{box-shadow:0 0 0 4px rgba(117,103,244,.10),0 10px 22px rgba(117,103,244,.18)!important}
.permissions-table{min-width:980px!important}.permissions-table td:first-child{min-width:220px!important}.permissions-table td:first-child strong{display:block;font-size:14px;font-weight:600;color:#323744}.permissions-table td:first-child small{display:block;margin-top:4px;font-size:12px;color:#8a92a2}
.permissions-table select{min-width:138px!important;height:40px!important;border-radius:11px!important;border:1px solid #dfe3eb!important;background:#fff!important;font-size:12px!important;font-weight:500!important;color:#505868!important;padding:0 32px 0 10px!important}
.permissions-table select:focus{border-color:#7567f4!important;box-shadow:0 0 0 3px rgba(117,103,244,.10)!important}
.permissions-mobile-list{display:none}
.permissions-note{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:13px 16px!important;border-top:1px solid #e8eaf0!important;background:#fbfbfd!important;color:#747d8e!important}
.permissions-note>span{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#f0edff;color:#5f51e7;flex:0 0 auto}.permissions-note svg{width:16px;height:16px}.permissions-note p{margin:0;font-size:12px;font-weight:400;line-height:1.5}.permissions-note strong{font-weight:600;color:#4c5464}
.account-user-backdrop,.remove-user-backdrop{padding:20px!important;background:rgba(24,26,36,.54)!important;backdrop-filter:blur(3px)}
.user-editor-modal{width:min(720px,100%)!important;max-height:92dvh!important;border:1px solid #e3e6ee!important;border-radius:22px!important;background:#fff!important;box-shadow:0 30px 90px rgba(20,22,32,.25)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.user-editor-head,.remove-user-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 19px 16px;border-bottom:1px solid #e8eaf0;background:#fff}
.user-editor-heading,.remove-user-heading{display:flex;align-items:flex-start;gap:12px;min-width:0}.user-editor-head-icon,.remove-user-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;flex:0 0 auto}.user-editor-head-icon{background:#f0edff;color:#5e50e5;border:1px solid #ddd8ff}.remove-user-icon{background:#fff0f1;color:#d73540;border:1px solid #ffd8dc}.user-editor-head-icon svg,.remove-user-icon svg{width:21px;height:21px}
.user-editor-head h2,.remove-user-head h2{margin:0;font-size:20px;font-weight:700;color:#252936;letter-spacing:-.025em;line-height:1.2}.user-editor-head p{margin:5px 0 0;font-size:12px;font-weight:400;color:#7c8495;line-height:1.45}.remove-user-heading>div:last-child>span{display:block;font-size:12px;font-weight:500;color:#d13a44;margin-bottom:4px}
.user-editor-close,.remove-user-close{width:38px;height:38px;border:1px solid #e2e5ec;border-radius:12px;background:#f8f9fb;color:#6c7484;display:grid;place-items:center;cursor:pointer;flex:0 0 auto;transition:.15s ease}.user-editor-close:hover,.remove-user-close:hover{background:#f0f1f5;color:#3e4553}.user-editor-close svg,.remove-user-close svg{width:17px;height:17px}
.user-editor-body{padding:18px 19px;overflow:auto;background:#fbfcfe;display:flex;flex-direction:column;gap:13px}.user-editor-section{padding:15px;border:1px solid #e5e8ef;border-radius:17px;background:#fff}.user-editor-section-head{margin-bottom:13px}.user-editor-section-head h3{margin:0;font-size:18px;font-weight:600;color:#303541;letter-spacing:-.015em}.user-editor-section-head p{margin:4px 0 0;font-size:12px;font-weight:400;color:#858d9d;line-height:1.45}
.user-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important}.user-form-field{display:flex!important;flex-direction:column!important;gap:6px!important}.user-form-field label{font-size:13px!important;font-weight:500!important;color:#596173!important}.user-form-field input,.user-form-field select{min-height:44px!important;border:1px solid #dfe3eb!important;border-radius:13px!important;background:#fff!important;font-size:14px!important;font-weight:400!important;color:#292e3a!important;padding:0 12px!important}.user-form-field input:disabled{background:#f3f4f7!important;color:#7d8594!important;cursor:not-allowed}.user-form-field input:focus,.user-form-field select:focus{border-color:#7567f4!important;box-shadow:0 0 0 3px rgba(117,103,244,.11)!important}.user-form-field small{font-size:12px!important;font-weight:400!important;color:#8a92a2!important;line-height:1.4!important}
.user-security-note{display:flex;align-items:flex-start;gap:11px;padding:13px 14px;border:1px solid #dfdbff;border-radius:15px;background:#f6f4ff;color:#584ca9}.user-security-note>span{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:#fff;color:#6253e8;flex:0 0 auto}.user-security-note svg{width:17px;height:17px}.user-security-note strong{display:block;font-size:13px;font-weight:600;color:#51469b}.user-security-note p{margin:4px 0 0;font-size:12px;font-weight:400;line-height:1.45;color:#7167ac}
.user-editor-foot,.remove-user-foot{display:flex;justify-content:flex-end;gap:9px;padding:14px 19px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #e7e9ef;background:#fff}.user-editor-foot .btn,.remove-user-foot .btn{min-height:43px;border-radius:12px;padding:0 16px;font-size:14px;font-weight:600}
.remove-user-modal{width:min(520px,100%);border:1px solid #e3e6ee;border-radius:22px;background:#fff;box-shadow:0 30px 90px rgba(20,22,32,.25);overflow:hidden}.remove-user-body{padding:18px 19px}.remove-user-body>p{margin:0;font-size:14px;font-weight:400;line-height:1.55;color:#586071}.remove-user-note{display:flex;align-items:flex-start;gap:9px;margin-top:14px;padding:12px;border:1px solid #f0dfe1;border-radius:14px;background:#fff8f8;color:#8b5b60}.remove-user-note svg{width:17px;height:17px;flex:0 0 auto;margin-top:1px}.remove-user-note span{font-size:12px;font-weight:400;line-height:1.45}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

@media(max-width:900px){
  .users-overview-card{grid-template-columns:48px minmax(0,1fr);padding:16px}.users-overview-icon{width:48px;height:48px}.users-overview-badge{grid-column:1/-1;width:max-content;margin-left:63px}
  .users-kpi-grid{grid-template-columns:repeat(3,minmax(160px,1fr))!important;overflow-x:auto;padding-bottom:3px;scroll-snap-type:x proximity}.users-kpi{scroll-snap-align:start}
}
@media(max-width:700px){
  #appView.management-page:has(.users-page-shell) .page-header{position:sticky;top:0;z-index:30;margin:0 -14px 14px;padding:11px 14px;background:rgba(250,250,252,.96);border-bottom:1px solid #e7e9ef;backdrop-filter:blur(14px)}
  #appView.management-page:has(.users-page-shell) .page-header-title{font-size:20px!important;line-height:1.2!important}
  #appView.management-page:has(.users-page-shell) .page-header-actions{margin-left:auto}
  #appView.management-page:has(.users-page-shell) .users-invite-primary{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;border-radius:13px!important}
  #appView.management-page:has(.users-page-shell) .users-invite-primary span{display:none}.users-invite-primary svg{width:19px;height:19px}
  .users-page-shell{gap:13px!important;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .users-overview-card{display:block;padding:15px 16px;border-radius:18px}.users-overview-card:after{display:none}.users-overview-icon{width:42px;height:42px;border-radius:13px;margin-bottom:12px}.users-overview-icon svg{width:21px;height:21px}.users-overview-copy h2{font-size:18px}.users-overview-copy p{font-size:13px}.users-overview-badge{margin:12px 0 0;padding:7px 10px}
  .users-tabs{display:grid!important;grid-template-columns:1fr 1fr;width:100%!important;position:sticky;top:64px;z-index:24;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px)}.users-tab{justify-content:center;padding:0 10px!important}.users-tab b{display:none}.users-tab:last-child:first-child{grid-column:1/-1}
  .users-kpi-grid{display:flex!important;gap:10px!important;margin:0 -14px 13px!important;padding:0 14px 4px!important;overflow-x:auto!important;scrollbar-width:none}.users-kpi-grid::-webkit-scrollbar{display:none}.users-kpi{min-width:190px!important;min-height:104px!important;padding:15px!important;border-radius:17px!important}.users-kpi i{width:38px;height:38px;border-radius:13px}.users-kpi strong{font-size:28px!important}.users-kpi small{font-size:11px}
  .users-panel,.permissions-panel{border-radius:18px!important;box-shadow:none!important}
  .users-toolbar{position:sticky;top:116px;z-index:20;padding:11px!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(12px)}.users-search-wrap{min-width:0!important;max-width:none!important}.users-search-wrap input{height:46px!important}.users-result-count{display:none!important}
  .users-desktop-table{display:none!important}.users-mobile-list{display:grid!important;gap:10px;padding:11px;background:#f7f8fa}
  .user-mobile-card{padding:14px;border:1px solid #e3e6ed;border-radius:17px;background:#fff;box-shadow:0 5px 16px rgba(30,32,45,.035)}
  .user-mobile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid #eceef3}.user-mobile-head .user-identity{min-width:0;flex:1}.user-mobile-head .user-avatar{width:42px!important;height:42px!important}.user-mobile-head .user-identity strong,.user-mobile-head .user-identity small{max-width:180px}
  .user-mobile-head .user-row-actions{flex:0 0 auto}.user-mobile-head .icon-action{width:38px!important;height:38px!important}.user-mobile-head .user-protected{font-size:0!important;width:38px;height:38px;justify-content:center;border:1px solid #e4e6ec;border-radius:11px;background:#f7f8fa}.user-mobile-head .user-protected svg{width:17px;height:17px}
  .user-mobile-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.user-mobile-detail-grid>div{min-width:0;padding:10px;border:1px solid #eceef3;border-radius:13px;background:#fafbfc}.user-mobile-detail-grid>div>span{display:block;font-size:11px;font-weight:400;color:#8a92a2;margin-bottom:7px}.user-mobile-detail-grid>div>strong{display:block;min-width:0;font-size:12px;font-weight:500;color:#525a69;overflow:hidden;text-overflow:ellipsis}.user-mobile-detail-grid .user-role-pill,.user-mobile-detail-grid .user-status-pill{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .permissions-head{align-items:flex-start!important;padding:15px!important}.permissions-head-copy{padding-right:4px}.permissions-head h3{font-size:18px!important}.permissions-head p{font-size:12px!important}.permissions-save-btn{position:fixed;left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:45;width:calc(100% - 28px)!important;height:48px!important;justify-content:center!important;border-radius:14px!important;box-shadow:0 12px 28px rgba(117,103,244,.26)!important}.permissions-desktop-table{display:none!important}.permissions-mobile-list{display:grid!important;gap:10px;padding:11px 11px 76px;background:#f7f8fa}
  .permission-module-card{border:1px solid #e3e6ed;border-radius:17px;background:#fff;overflow:hidden}.permission-module-head{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid #eceef3}.permission-module-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#f0edff;color:#5d4fe5;flex:0 0 auto}.permission-module-icon svg{width:19px;height:19px}.permission-module-head h4{margin:0;font-size:15px;font-weight:600;color:#303541}.permission-module-head p{margin:3px 0 0;font-size:12px;font-weight:400;color:#8a92a2}.permission-role-list{display:grid}.permission-role-row{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:10px;align-items:center;padding:11px 14px;border-bottom:1px solid #eef0f4}.permission-role-row:last-child{border-bottom:0}.permission-role-row>span{font-size:13px;font-weight:500;color:#596171}.permission-role-row select{height:40px;border:1px solid #dfe3eb;border-radius:11px;background:#fff;font-size:12px;font-weight:500;color:#505868;padding:0 30px 0 10px;min-width:0}
  .permissions-note{margin-bottom:70px}.permissions-note p{font-size:12px}
  .account-user-backdrop,.remove-user-backdrop{padding:0!important;align-items:flex-end!important;background:rgba(24,26,36,.50)!important}.user-editor-modal,.remove-user-modal{width:100%!important;max-width:none!important;max-height:96dvh!important;border-radius:26px 26px 0 0!important;border-bottom:0!important}.user-editor-head,.remove-user-head{padding:17px 15px 14px;position:sticky;top:0;z-index:5}.user-editor-head-icon,.remove-user-icon{display:none}.user-editor-heading,.remove-user-heading{display:block}.user-editor-heading>div:last-child,.remove-user-heading>div:last-child{padding-right:40px}.user-editor-head h2,.remove-user-head h2{font-size:20px}.user-editor-close,.remove-user-close{position:absolute;right:14px;top:14px;width:40px;height:40px;border-radius:13px}.user-editor-body{padding:14px;gap:11px}.user-editor-section{padding:14px;border-radius:16px}.user-editor-section-head h3{font-size:16px}.user-form-grid{grid-template-columns:1fr!important}.user-form-field input,.user-form-field select{min-height:48px!important;border-radius:14px!important}.user-security-note{border-radius:15px}.user-editor-foot,.remove-user-foot{display:grid;grid-template-columns:1fr 1fr;position:sticky;bottom:0;z-index:5;padding:12px 14px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(24,28,40,.06)}.user-editor-foot .btn,.remove-user-foot .btn{width:100%;height:47px}.remove-user-body{padding:18px 15px 20px}
}
@media(max-width:390px){
  .users-tab{font-size:13px!important;gap:6px}.users-tab svg{width:16px;height:16px}.user-mobile-detail-grid{grid-template-columns:1fr}.permission-role-row{grid-template-columns:1fr;gap:7px}.permission-role-row select{width:100%}.user-editor-foot,.remove-user-foot{grid-template-columns:1fr}.user-editor-cancel{order:2}
}


/* ========================================================================== */
/* RankDesk UI v008.2.8 — Settings screen app UI (UI only)                   */
/* Baseline: v008.2.7. No backend, API, database or permission changes.       */
/* ========================================================================== */
#appView.settings-page{--settings-bg:#f6f7fb;--settings-card:#fff;--settings-line:#e5e8f0;--settings-ink:#242733;--settings-muted:#737b8d}
#appView.settings-page .main{background:var(--settings-bg)}
#appView.settings-page .page-header{align-items:center;margin-bottom:18px}
#appView.settings-page .page-header-title{font-size:28px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:-.035em!important}
#appView.settings-page .page-header-actions{gap:9px}
#appView.settings-page .settings-head-action{height:42px;margin:0;display:inline-flex;align-items:center;gap:8px;padding:0 14px;font-size:14px;font-weight:600}
#appView.settings-page .settings-head-action span{width:18px;height:18px;display:inline-flex}
#appView.settings-page .settings-head-action svg{width:100%;height:100%}
#appView.settings-page .settings-head-action b{font:inherit}
#appView.settings-page #content{display:block}
#appView.settings-page .settings-ui-shell{display:grid;gap:16px;min-width:0}
#appView.settings-page .settings-overview-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
#appView.settings-page .settings-overview-card{min-width:0;min-height:104px;padding:16px;border:1px solid var(--settings-line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(34,38,58,.04);display:flex;align-items:flex-start;gap:12px}
#appView.settings-page .settings-overview-icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;flex:0 0 auto;background:#f1efff;color:#6657e8}
#appView.settings-page .settings-overview-icon svg{width:19px;height:19px}
#appView.settings-page .settings-overview-card.green .settings-overview-icon{background:#eaf8f1;color:#13875a}
#appView.settings-page .settings-overview-card.red .settings-overview-icon{background:#fff0f2;color:#d43f4d}
#appView.settings-page .settings-overview-card.blue .settings-overview-icon{background:#edf6ff;color:#2470ad}
#appView.settings-page .settings-overview-card.amber .settings-overview-icon{background:#fff6df;color:#ae7410}
#appView.settings-page .settings-overview-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
#appView.settings-page .settings-overview-copy>span{font-size:12px;font-weight:400;color:var(--settings-muted);line-height:1.25}
#appView.settings-page .settings-overview-copy>strong{display:block;max-width:100%;font-size:22px;font-weight:700;color:var(--settings-ink);line-height:1.08;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#appView.settings-page .settings-overview-copy>small{font-size:12px;font-weight:400;color:#949bad;line-height:1.3}
#appView.settings-page .settings-app-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:16px;align-items:start}
#appView.settings-page .settings-primary-column,#appView.settings-page .settings-side-column{display:grid;gap:16px;min-width:0}
#appView.settings-page .settings-side-column{position:sticky;top:18px}
#appView.settings-page .settings-ui-card{margin:0;border:1px solid var(--settings-line);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(34,38,58,.035);overflow:hidden}
#appView.settings-page .settings-ui-card-head{min-height:82px;padding:17px 18px 15px;border-bottom:1px solid #edf0f5;display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
#appView.settings-page .settings-ui-card-head.compact{min-height:auto}
#appView.settings-page .settings-ui-card-heading{display:flex;align-items:flex-start;gap:12px;min-width:0}
#appView.settings-page .settings-ui-card-icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;flex:0 0 auto;background:#f1efff;color:#6657e8}
#appView.settings-page .settings-ui-card-icon svg{width:19px;height:19px}
#appView.settings-page .settings-ui-card-icon.blue{background:#edf6ff;color:#2470ad}
#appView.settings-page .settings-ui-card-icon.amber{background:#fff6df;color:#ae7410}
#appView.settings-page .settings-ui-card-icon.green{background:#eaf8f1;color:#13875a}
#appView.settings-page .settings-ui-card-heading h2{margin:0;color:var(--settings-ink);font-size:18px;font-weight:600;line-height:1.25;letter-spacing:-.018em}
#appView.settings-page .settings-ui-card-heading p{margin:5px 0 0;color:var(--settings-muted);font-size:12px;font-weight:400;line-height:1.5}
#appView.settings-page .settings-ui-card-body{padding:18px}
#appView.settings-page .settings-ui-card-foot{padding:14px 18px;border-top:1px solid #edf0f5;background:#fbfcfe;display:flex;justify-content:flex-end}
#appView.settings-page .settings-connection-badge{height:30px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;font-weight:500}
#appView.settings-page .settings-connection-badge i{width:7px;height:7px;border-radius:50%;background:currentColor}
#appView.settings-page .settings-connection-badge.connected{background:#eaf8f1;color:#13875a}
#appView.settings-page .settings-connection-badge.missing{background:#fff0f2;color:#c93a47}
#appView.settings-page .settings-api-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:14px}
#appView.settings-page .settings-generation-grid{display:grid;grid-template-columns:1.3fr .7fr .8fr;gap:14px}
#appView.settings-page .settings-image-grid{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr);gap:14px;align-items:stretch}
#appView.settings-page .settings-field{margin:0;min-width:0}
#appView.settings-page .settings-field label{display:flex;align-items:center;gap:7px;margin:0 0 7px;color:#4d5566;font-size:13px;font-weight:500;line-height:1.3}
#appView.settings-page .settings-field input{height:46px;border:1px solid #dfe3ec;border-radius:13px;background:#fff;padding:0 13px;color:var(--settings-ink);font-size:14px;font-weight:400;box-shadow:none}
#appView.settings-page .settings-field input:hover{border-color:#ccd2df}
#appView.settings-page .settings-field input:focus{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
#appView.settings-page .settings-help{margin-top:7px;color:var(--settings-muted);font-size:12px;font-weight:400;line-height:1.45}
#appView.settings-page .settings-sensitive-label{padding:3px 6px;border-radius:999px;background:#fff1f3;color:#c83c49;font-size:10px;font-weight:600;line-height:1}
#appView.settings-page .settings-mask{min-height:46px;padding:0 12px;border:1px dashed #d6dae5;border-radius:13px;background:#f8f9fc;display:flex;align-items:center;gap:9px;color:#596174}
#appView.settings-page .settings-mask span{width:18px;height:18px;display:inline-flex;color:#7567f4}
#appView.settings-page .settings-mask svg{width:100%;height:100%}
#appView.settings-page .settings-mask b{min-width:0;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#appView.settings-page .settings-number-control{position:relative}
#appView.settings-page .settings-number-control input{padding-right:64px}
#appView.settings-page .settings-number-control>span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#81899a;font-size:12px;font-weight:500;pointer-events:none}
#appView.settings-page .settings-logic-card{min-height:100%;padding:14px;border:1px solid #e5e2fb;border-radius:16px;background:#faf9ff;display:flex;align-items:flex-start;gap:12px}
#appView.settings-page .settings-logic-card>span{width:34px;height:34px;border-radius:12px;background:#eeeaff;color:#6657e8;display:grid;place-items:center;flex:0 0 auto}
#appView.settings-page .settings-logic-card svg{width:18px;height:18px}
#appView.settings-page .settings-logic-card b{display:block;color:var(--settings-ink);font-size:15px;font-weight:600;line-height:1.35}
#appView.settings-page .settings-logic-card p{margin:5px 0 0;color:var(--settings-muted);font-size:12px;font-weight:400;line-height:1.5}
#appView.settings-page .settings-inline-link{border:0;background:transparent;color:#6253df;padding:7px 0;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px;font-weight:500;cursor:pointer}
#appView.settings-page .settings-inline-link:hover{color:#4939cc}
#appView.settings-page .settings-check-list{padding:4px 18px 14px;display:grid}
#appView.settings-page .settings-check-row{padding:13px 0;border-bottom:1px solid #edf0f5;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start}
#appView.settings-page .settings-check-row:last-child{border-bottom:0}
#appView.settings-page .settings-check-mark{width:26px;height:26px;border-radius:9px;display:grid;place-items:center;background:#f1f3f7;color:#939aaa}
#appView.settings-page .settings-check-row.done .settings-check-mark{background:#eaf8f1;color:#13875a}
#appView.settings-page .settings-check-mark svg{width:15px;height:15px}
#appView.settings-page .settings-check-mark>span{width:6px;height:6px;border-radius:50%;background:currentColor}
#appView.settings-page .settings-check-row b{display:block;color:var(--settings-ink);font-size:15px;font-weight:600;line-height:1.35}
#appView.settings-page .settings-check-row p{margin:3px 0 0;color:var(--settings-muted);font-size:12px;font-weight:400;line-height:1.4}
#appView.settings-page .settings-test-full{width:calc(100% - 36px);height:42px;margin:0 18px 18px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:600}
#appView.settings-page .settings-test-full span{width:18px;height:18px;display:inline-flex}
#appView.settings-page .settings-test-full svg{width:100%;height:100%}
#appView.settings-page .settings-quick-list{padding:8px;display:grid;gap:4px}
#appView.settings-page .settings-quick-list button{width:100%;min-height:62px;border:0;border-radius:14px;background:transparent;padding:9px 10px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;cursor:pointer;color:inherit}
#appView.settings-page .settings-quick-list button:hover{background:#f7f7fc}
#appView.settings-page .settings-quick-list button>span{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#f1efff;color:#6657e8}
#appView.settings-page .settings-quick-list button>span.blue{background:#edf6ff;color:#2470ad}
#appView.settings-page .settings-quick-list button>span.green{background:#eaf8f1;color:#13875a}
#appView.settings-page .settings-quick-list svg{width:18px;height:18px}
#appView.settings-page .settings-quick-list b{display:block;color:var(--settings-ink);font-size:15px;font-weight:600;line-height:1.3}
#appView.settings-page .settings-quick-list small{display:block;margin-top:3px;color:var(--settings-muted);font-size:12px;font-weight:400;line-height:1.3}
#appView.settings-page .settings-quick-list i{font-style:normal;color:#a0a6b5;font-size:17px}
#appView.settings-page .settings-security-note{padding:15px;border:1px solid #dfe8e4;border-radius:18px;background:#f7fcf9;display:flex;align-items:flex-start;gap:11px}
#appView.settings-page .settings-security-note>span{width:32px;height:32px;border-radius:11px;background:#e5f5ec;color:#13875a;display:grid;place-items:center;flex:0 0 auto}
#appView.settings-page .settings-security-note svg{width:17px;height:17px}
#appView.settings-page .settings-security-note b{display:block;color:#2b4137;font-size:15px;font-weight:600;line-height:1.35}
#appView.settings-page .settings-security-note p{margin:4px 0 0;color:#667b70;font-size:12px;font-weight:400;line-height:1.45}
#appView.settings-page .settings-save-indicator{height:34px;padding:0 10px;margin:0;border:1px solid #ffe1a7;border-radius:999px;background:#fff7e2;color:#96610b;align-items:center;gap:7px;font-size:12px;font-weight:500}
#appView.settings-page .settings-save-indicator.active{display:inline-flex}
#appView.settings-page .settings-mobile-savebar{display:none}

/* Settings unsaved alert */
.settings-unsaved-modal{z-index:980}
.settings-unsaved-modal .settings-unsaved-sheet{width:min(520px,100%);max-width:520px;border-radius:22px;overflow:hidden}
.settings-unsaved-head{padding:18px 18px 14px;border-bottom:1px solid #edf0f5;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.settings-unsaved-heading{display:flex;align-items:flex-start;gap:12px}
.settings-unsaved-heading .settings-unsaved-icon{width:42px;height:42px;margin:0;border-radius:14px;background:#fff4d9;color:#a86f0c;display:grid;place-items:center;font-size:20px;font-weight:700;flex:0 0 auto}
.settings-unsaved-heading span{display:block;color:#9a6913;font-size:12px;font-weight:500;line-height:1.2}
.settings-unsaved-heading h2{margin:4px 0 0;color:#242733;font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-.025em}
.settings-unsaved-close{width:36px;height:36px;border:1px solid #e5e8f0;border-radius:12px;background:#f8f9fc;color:#697184;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.settings-unsaved-close:hover{background:#eff1f6;color:#3f4655}
.settings-unsaved-close svg{width:17px;height:17px}
.settings-unsaved-body{padding:16px 18px}
.settings-unsaved-body p{margin:0;color:#697184;font-size:14px;font-weight:400;line-height:1.55}
.settings-unsaved-foot{padding:14px 18px;border-top:1px solid #edf0f5;background:#fbfcfe;display:flex;justify-content:flex-end;gap:9px}
.settings-unsaved-foot .btn{height:42px;margin:0;font-size:14px;font-weight:600}
.settings-unsaved-foot .settings-discard-btn{background:#fff1f2!important;color:#c43845!important;box-shadow:none!important}
.settings-unsaved-foot .settings-discard-btn:hover{background:#ffe5e8!important}

@media(max-width:1280px){
  #appView.settings-page .settings-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #appView.settings-page .settings-app-grid{grid-template-columns:minmax(0,1fr) 320px}
  #appView.settings-page .settings-generation-grid{grid-template-columns:1fr 1fr}
  #appView.settings-page .settings-generation-grid .settings-field:first-child{grid-column:1/-1}
}
@media(max-width:980px){
  #appView.settings-page .settings-app-grid{grid-template-columns:1fr}
  #appView.settings-page .settings-side-column{position:static}
  #appView.settings-page .settings-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  #appView.settings-page .main{padding-bottom:96px}
  #appView.settings-page .page-header{position:sticky;top:0;z-index:30;margin:0 -16px 14px;padding:12px 16px;background:rgba(246,247,251,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(224,227,236,.9)}
  #appView.settings-page .page-header-title{font-size:24px!important}
  #appView.settings-page .page-header-actions .settings-head-action{display:none}
  #appView.settings-page .page-header-actions{margin:0}
  #appView.settings-page .settings-save-indicator{height:30px;padding:0 8px;font-size:11px}
  #appView.settings-page .settings-ui-shell{gap:12px}
  #appView.settings-page .settings-overview-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin:0 -16px;padding:0 16px 4px;scrollbar-width:none}
  #appView.settings-page .settings-overview-grid::-webkit-scrollbar{display:none}
  #appView.settings-page .settings-overview-card{min-width:168px;min-height:96px;padding:14px;border-radius:17px;scroll-snap-align:start;box-shadow:0 5px 18px rgba(34,38,58,.035)}
  #appView.settings-page .settings-overview-copy>strong{font-size:20px}
  #appView.settings-page .settings-app-grid,#appView.settings-page .settings-primary-column,#appView.settings-page .settings-side-column{gap:12px}
  #appView.settings-page .settings-ui-card{border-radius:18px;box-shadow:0 5px 18px rgba(34,38,58,.03)}
  #appView.settings-page .settings-ui-card-head{min-height:auto;padding:15px;align-items:flex-start}
  #appView.settings-page .settings-ui-card-heading{gap:10px}
  #appView.settings-page .settings-ui-card-icon{width:36px;height:36px;border-radius:12px}
  #appView.settings-page .settings-ui-card-heading h2{font-size:18px}
  #appView.settings-page .settings-connection-badge{height:28px;padding:0 8px;font-size:11px}
  #appView.settings-page .settings-ui-card-body{padding:15px}
  #appView.settings-page .settings-ui-card-foot{padding:12px 15px}
  #appView.settings-page .settings-api-grid,#appView.settings-page .settings-generation-grid,#appView.settings-page .settings-image-grid{grid-template-columns:1fr;gap:14px}
  #appView.settings-page .settings-generation-grid .settings-field:first-child{grid-column:auto}
  #appView.settings-page .settings-inline-link{display:none}
  #appView.settings-page .settings-field input{height:48px;font-size:16px}
  #appView.settings-page .settings-mask{min-height:48px}
  #appView.settings-page .settings-number-control>span{font-size:12px}
  #appView.settings-page .settings-logic-card{padding:13px}
  #appView.settings-page .settings-setup-card{order:1}
  #appView.settings-page .settings-quick-card{order:2}
  #appView.settings-page .settings-security-note{order:3}
  #appView.settings-page .settings-check-list{padding:2px 15px 12px}
  #appView.settings-page .settings-test-full{width:calc(100% - 30px);margin:0 15px 15px}
  #appView.settings-page .settings-quick-list{padding:7px}
  #appView.settings-page .settings-mobile-savebar{position:fixed;left:0;right:0;bottom:0;z-index:80;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e2e5ed;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);box-shadow:0 -12px 30px rgba(34,38,58,.08);display:grid;grid-template-columns:.75fr 1.25fr;gap:9px}
  #appView.settings-page .settings-mobile-savebar .btn{height:46px;margin:0;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:600;border-radius:13px}
  #appView.settings-page .settings-mobile-savebar span{width:18px;height:18px;display:inline-flex}
  #appView.settings-page .settings-mobile-savebar svg{width:100%;height:100%}
  .settings-unsaved-modal{align-items:flex-end;padding:0}
  .settings-unsaved-modal .settings-unsaved-sheet{width:100%;max-width:none;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .settings-unsaved-modal .settings-unsaved-sheet:before{content:'';display:block;width:42px;height:4px;margin:8px auto 0;border-radius:999px;background:#d9dce5}
  .settings-unsaved-head{padding:14px 16px 12px}
  .settings-unsaved-heading .settings-unsaved-icon{width:40px;height:40px}
  .settings-unsaved-heading h2{font-size:20px}
  .settings-unsaved-body{padding:15px 16px}
  .settings-unsaved-foot{padding:12px 16px;display:grid;grid-template-columns:1fr 1fr}
  .settings-unsaved-foot .btn{width:100%;height:46px}
  .settings-unsaved-foot .btn:last-child{grid-column:1/-1;grid-row:1}
}
@media(max-width:420px){
  #appView.settings-page .settings-ui-card-head{display:block}
  #appView.settings-page .settings-connection-badge{margin:12px 0 0 46px}
  #appView.settings-page .settings-overview-card{min-width:158px}
}

/* ========================================================================== */
/* RankDesk UI v008.2.9 — Settings connection controls refinement (UI only)  */
/* ========================================================================== */
#appView.settings-page .settings-api-grid{align-items:start}
#appView.settings-page .settings-api-field{display:grid;grid-template-rows:minmax(24px,auto) 46px minmax(36px,auto);align-content:start}
#appView.settings-page .settings-api-field>label{min-height:24px;align-items:center}
#appView.settings-page .settings-api-field>input,#appView.settings-page .settings-api-field>.settings-mask{width:100%;height:46px;min-height:46px}
#appView.settings-page .settings-api-field>.settings-help{align-self:start}
#appView.settings-page .settings-field-label-row{min-height:24px;margin:0 0 7px;display:flex;align-items:center;gap:7px}
#appView.settings-page .settings-field-label-row>label{margin:0}
#appView.settings-page .settings-select-control{position:relative;width:100%}
#appView.settings-page .settings-select-control select{width:100%;height:46px;appearance:none;-webkit-appearance:none;border:1px solid #dfe3ec;border-radius:13px;background:#fff;padding:0 44px 0 13px;color:var(--settings-ink);font:400 14px/1.2 'Inter',Arial,Helvetica,sans-serif;outline:0;cursor:pointer;box-shadow:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
#appView.settings-page .settings-select-control select:hover{border-color:#ccd2df;background:#fcfcff}
#appView.settings-page .settings-select-control select:focus{border-color:#7567f4;box-shadow:0 0 0 3px rgba(117,103,244,.12);background:#fff}
#appView.settings-page .settings-select-icon{position:absolute;right:13px;top:50%;width:18px;height:18px;transform:translateY(-50%);display:grid;place-items:center;color:#747d90;pointer-events:none}
#appView.settings-page .settings-select-icon svg{width:18px;height:18px}
#appView.settings-page .settings-tooltip{position:relative;display:inline-flex;align-items:center;z-index:6}
#appView.settings-page .settings-tooltip-trigger{width:22px;height:22px;padding:0;border:0;border-radius:7px;background:#f1efff;color:#6657e8;display:grid;place-items:center;cursor:help;outline:0;transition:background .16s ease,color .16s ease,box-shadow .16s ease}
#appView.settings-page .settings-tooltip-trigger:hover,#appView.settings-page .settings-tooltip-trigger:focus{background:#7567f4;color:#fff;box-shadow:0 0 0 3px rgba(117,103,244,.12)}
#appView.settings-page .settings-tooltip-trigger svg{width:14px;height:14px}
#appView.settings-page .settings-tooltip-bubble{position:absolute;left:50%;bottom:calc(100% + 9px);width:280px;max-width:calc(100vw - 48px);padding:10px 11px;border:1px solid #dfe3ec;border-radius:11px;background:#262936;color:#fff;font-size:12px;font-weight:400;line-height:1.45;box-shadow:0 14px 34px rgba(28,31,44,.22);opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,5px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;z-index:40}
#appView.settings-page .settings-tooltip-bubble:after{content:'';position:absolute;left:50%;top:100%;width:9px;height:9px;background:#262936;transform:translate(-50%,-5px) rotate(45deg)}
#appView.settings-page .settings-tooltip:hover .settings-tooltip-bubble,#appView.settings-page .settings-tooltip:focus-within .settings-tooltip-bubble{opacity:1;visibility:visible;transform:translate(-50%,0)}
#appView.settings-page .settings-generation-grid .settings-field:last-child .settings-tooltip-bubble{left:auto;right:0;transform:translate(0,5px)}
#appView.settings-page .settings-generation-grid .settings-field:last-child .settings-tooltip-bubble:after{left:auto;right:7px;transform:translate(0,-5px) rotate(45deg)}
#appView.settings-page .settings-generation-grid .settings-field:last-child .settings-tooltip:hover .settings-tooltip-bubble,#appView.settings-page .settings-generation-grid .settings-field:last-child .settings-tooltip:focus-within .settings-tooltip-bubble{transform:translate(0,0)}
@media(max-width:700px){
  #appView.settings-page .settings-api-field{grid-template-rows:minmax(24px,auto) 48px minmax(36px,auto)}
  #appView.settings-page .settings-api-field>input,#appView.settings-page .settings-api-field>.settings-mask,#appView.settings-page .settings-select-control select{height:48px;min-height:48px;font-size:16px}
  #appView.settings-page .settings-tooltip-bubble,#appView.settings-page .settings-generation-grid .settings-field:last-child .settings-tooltip-bubble{left:0;right:auto;bottom:calc(100% + 9px);transform:translate(0,5px)}
  #appView.settings-page .settings-tooltip-bubble:after,#appView.settings-page .settings-generation-grid .settings-field:last-child .settings-tooltip-bubble:after{left:7px;right:auto;transform:translate(0,-5px) rotate(45deg)}
  #appView.settings-page .settings-tooltip:hover .settings-tooltip-bubble,#appView.settings-page .settings-tooltip:focus-within .settings-tooltip-bubble,#appView.settings-page .settings-generation-grid .settings-field:last-child .settings-tooltip:hover .settings-tooltip-bubble,#appView.settings-page .settings-generation-grid .settings-field:last-child .settings-tooltip:focus-within .settings-tooltip-bubble{transform:translate(0,0)}
}



/* ========================================================================== */
/* RankDesk UI v008.2.10 — Settings label + model tooltip correction (UI only) */
/* ========================================================================== */
#appView.settings-page .settings-api-key-label{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:7px!important;width:max-content;max-width:100%;white-space:nowrap;text-align:left!important}
#appView.settings-page .settings-api-key-label>span:first-child{display:inline-block;min-width:0}
#appView.settings-page .settings-api-key-label .settings-sensitive-label{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0;vertical-align:middle}
#appView.settings-page .settings-model-field .settings-field-label-row{justify-content:flex-start}
#appView.settings-page .settings-model-field .settings-tooltip{flex:0 0 auto}
@media(max-width:420px){
  #appView.settings-page .settings-api-key-label{width:100%;white-space:normal}
  #appView.settings-page .settings-api-key-label>span:first-child{white-space:nowrap}
}


/* ========================================================================== */
/* RankDesk UI v008.2.11 — Settings tooltip + API key label fix (UI only)     */
/* ========================================================================== */
#appView.settings-page .settings-api-label-row{
  min-height:24px;
  margin:0 0 7px;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%;
  white-space:nowrap;
  text-align:left;
}
#appView.settings-page .settings-api-label-row>label{
  display:inline-block!important;
  width:auto!important;
  min-width:0;
  margin:0!important;
  padding:0!important;
  flex:0 1 auto!important;
  white-space:nowrap!important;
  color:#4d5566;
  font-size:13px;
  font-weight:500;
  line-height:1.3;
}
#appView.settings-page .settings-api-label-row>.settings-sensitive-label{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  vertical-align:middle;
  white-space:nowrap!important;
}

/* The model tooltip needs to render outside the card's former clipping area. */
#appView.settings-page .settings-generation-card{
  position:relative;
  z-index:4;
  overflow:visible!important;
}
#appView.settings-page .settings-generation-card>.settings-ui-card-head{
  border-radius:20px 20px 0 0;
}
#appView.settings-page .settings-generation-card>.settings-ui-card-body{
  border-radius:0 0 20px 20px;
}
#appView.settings-page .settings-tooltip.settings-tooltip-below .settings-tooltip-bubble{
  left:50%!important;
  right:auto!important;
  top:calc(100% + 9px)!important;
  bottom:auto!important;
  width:280px;
  max-width:calc(100vw - 28px);
  transform:translate(-50%,-5px)!important;
  z-index:120!important;
}
#appView.settings-page .settings-tooltip.settings-tooltip-below .settings-tooltip-bubble:after{
  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:100%!important;
  transform:translate(-50%,5px) rotate(45deg)!important;
}
#appView.settings-page .settings-tooltip.settings-tooltip-below:hover .settings-tooltip-bubble,
#appView.settings-page .settings-tooltip.settings-tooltip-below:focus-within .settings-tooltip-bubble{
  transform:translate(-50%,0)!important;
}
@media(max-width:420px){
  #appView.settings-page .settings-api-label-row{width:100%;gap:6px!important}
  #appView.settings-page .settings-api-label-row>label{font-size:13px!important}
  #appView.settings-page .settings-tooltip.settings-tooltip-below .settings-tooltip-bubble{
    width:250px;
    max-width:calc(100vw - 24px);
  }
}

/* ========================================================================== */
/* RankDesk UI v008.2.12 — Settings alignment + save guard (UI only)          */
/* ========================================================================== */
#appView.settings-page .settings-left-label,
#appView.settings-page .settings-current-key-field>label,
#appView.settings-page .settings-image-slot-field>label{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 7px!important;
  text-align:left!important;
  white-space:normal;
}
#appView.settings-page .settings-current-key-field,
#appView.settings-page .settings-image-slot-field{
  text-align:left!important;
  justify-items:stretch!important;
}
#appView.settings-page .settings-image-slot-field .settings-number-control{
  width:100%;
}

.settings-unsaved-modal{
  z-index:1100!important;
  padding:22px!important;
  background:rgba(22,24,34,.55)!important;
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.settings-unsaved-modal .settings-unsaved-sheet{
  width:min(560px,100%)!important;
  max-width:560px!important;
  border:1px solid rgba(226,229,238,.96)!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 34px 100px rgba(22,24,36,.28)!important;
  overflow:hidden!important;
}
.settings-unsaved-head{
  padding:20px 20px 16px!important;
  border-bottom:0!important;
  background:linear-gradient(180deg,#fff 0%,#fcfcff 100%)!important;
}
.settings-unsaved-heading{align-items:center!important;gap:13px!important;min-width:0}
.settings-unsaved-heading .settings-unsaved-icon{
  width:46px!important;
  height:46px!important;
  border:1px solid #f3dba1!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#fff8e6 0%,#ffefc8 100%)!important;
  color:#a66b09!important;
  box-shadow:0 8px 18px rgba(185,124,16,.10);
}
.settings-unsaved-heading .settings-unsaved-icon svg{width:22px;height:22px}
.settings-unsaved-heading span{
  color:#a46c12!important;
  font-size:12px!important;
  font-weight:500!important;
  letter-spacing:.01em;
}
.settings-unsaved-heading h2{
  margin:4px 0 0!important;
  color:#242733!important;
  font-size:20px!important;
  font-weight:700!important;
  line-height:1.2!important;
}
.settings-unsaved-close{
  width:38px!important;
  height:38px!important;
  border:1px solid #e3e6ed!important;
  border-radius:12px!important;
  background:#f8f9fc!important;
  color:#687183!important;
}
.settings-unsaved-close:hover{background:#eff1f6!important;color:#343a47!important}
.settings-unsaved-body{padding:0 20px 20px!important}
.settings-unsaved-body>p{
  margin:0!important;
  color:#656e80!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.55!important;
}
.settings-unsaved-summary{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-top:15px;
  padding:13px 14px;
  border:1px solid #e6e3ff;
  border-radius:15px;
  background:#f8f7ff;
}
.settings-unsaved-summary>span{
  width:34px;
  height:34px;
  border-radius:11px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:#ebe8ff;
  color:#6354e8;
}
.settings-unsaved-summary>span svg{width:17px;height:17px}
.settings-unsaved-summary b{display:block;color:#35394a;font-size:13px;font-weight:600;line-height:1.35}
.settings-unsaved-summary small{display:block;margin-top:3px;color:#7c8496;font-size:12px;font-weight:400;line-height:1.45}
.settings-unsaved-foot{
  padding:15px 20px 18px!important;
  border-top:1px solid #eceef3!important;
  background:#fbfcfe!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
}
.settings-unsaved-foot .btn{
  min-height:43px!important;
  height:43px!important;
  margin:0!important;
  border-radius:12px!important;
  padding:0 15px!important;
  font-size:14px!important;
  font-weight:600!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
}
.settings-unsaved-foot .settings-keep-btn{background:#f1f3f7!important;color:#505868!important;box-shadow:none!important}
.settings-unsaved-foot .settings-keep-btn:hover{background:#e8eaf0!important}
.settings-unsaved-foot .settings-discard-btn{
  border:1px solid #ffd8dc!important;
  background:#fff2f3!important;
  color:#c73542!important;
  box-shadow:none!important;
}
.settings-unsaved-foot .settings-discard-btn:hover{background:#ffe7e9!important}
.settings-unsaved-foot .settings-save-continue-btn span{width:17px;height:17px;display:inline-flex}
.settings-unsaved-foot .settings-save-continue-btn svg{width:100%;height:100%}

@media(max-width:700px){
  .settings-unsaved-modal{align-items:flex-end!important;padding:0!important}
  .settings-unsaved-modal .settings-unsaved-sheet{
    width:100%!important;
    max-width:none!important;
    border-width:1px 0 0!important;
    border-radius:24px 24px 0 0!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
  }
  .settings-unsaved-modal .settings-unsaved-sheet:before{
    content:'';
    display:block;
    width:42px;
    height:4px;
    margin:8px auto 0;
    border-radius:999px;
    background:#d8dbe4;
  }
  .settings-unsaved-head{padding:13px 16px 14px!important}
  .settings-unsaved-heading .settings-unsaved-icon{width:42px!important;height:42px!important;border-radius:14px!important}
  .settings-unsaved-heading h2{font-size:20px!important}
  .settings-unsaved-body{padding:0 16px 16px!important}
  .settings-unsaved-summary{margin-top:13px;padding:12px}
  .settings-unsaved-foot{
    padding:12px 16px!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:9px!important;
  }
  .settings-unsaved-foot .btn{width:100%!important;height:46px!important;min-height:46px!important;padding:0 12px!important}
  .settings-unsaved-foot .settings-save-continue-btn{grid-column:1/-1!important;grid-row:1!important}
}
@media(max-width:390px){
  .settings-unsaved-heading{gap:10px!important}
  .settings-unsaved-heading .settings-unsaved-icon{width:40px!important;height:40px!important}
  .settings-unsaved-foot{grid-template-columns:1fr!important}
  .settings-unsaved-foot .settings-save-continue-btn{grid-column:auto!important;grid-row:auto!important}
}

/* ========================================================================== */
/* RankDesk UI v008.2.13 — Settings field-title alignment fix (UI only)       */
/* ========================================================================== */
#appView.settings-page .settings-current-key-field,
#appView.settings-page .settings-image-slot-field{
  align-items:stretch!important;
  justify-items:stretch!important;
  text-align:left!important;
}
#appView.settings-page .settings-control-label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  width:100%!important;
  max-width:none!important;
  min-height:24px!important;
  margin:0 0 7px!important;
  padding:0!important;
  color:#4d5566!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.3!important;
  text-align:left!important;
  white-space:normal!important;
}
#appView.settings-page .settings-control-label>label{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  font:inherit!important;
  line-height:inherit!important;
  text-align:left!important;
  justify-content:flex-start!important;
}
#appView.settings-page .settings-current-key-field>.settings-mask,
#appView.settings-page .settings-image-slot-field>.settings-number-control,
#appView.settings-page .settings-image-slot-field>.settings-help{
  width:100%!important;
  justify-self:stretch!important;
  text-align:left!important;
}

/* ========================================================================== */
/* RankDesk UI v008.2.14 — Settings unsaved popup redesign (UI only)          */
/* ========================================================================== */
.settings-unsaved-modal{
  z-index:1100!important;
  padding:24px!important;
  background:rgba(20,22,31,.48)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}
.settings-unsaved-modal .settings-unsaved-sheet{
  width:min(500px,100%)!important;
  max-width:500px!important;
  border:1px solid rgba(228,231,239,.98)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 28px 80px rgba(22,25,36,.24)!important;
  overflow:hidden!important;
  animation:settingsUnsavedEnter .18s ease-out both;
}
.settings-unsaved-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:22px 22px 16px!important;
  border:0!important;
  background:#fff!important;
}
.settings-unsaved-heading{
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  min-width:0!important;
}
.settings-unsaved-heading .settings-unsaved-icon{
  width:44px!important;
  height:44px!important;
  margin:0!important;
  border:1px solid #dfdcff!important;
  border-radius:14px!important;
  background:#f3f1ff!important;
  color:#6254e8!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
}
.settings-unsaved-heading .settings-unsaved-icon svg{width:21px!important;height:21px!important}
.settings-unsaved-title-group{min-width:0!important}
.settings-unsaved-heading span{
  display:block!important;
  margin:0!important;
  color:#7a8292!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.2!important;
  letter-spacing:0!important;
}
.settings-unsaved-heading h2{
  margin:4px 0 0!important;
  color:#20232d!important;
  font-size:20px!important;
  font-weight:700!important;
  line-height:1.25!important;
  letter-spacing:-.025em!important;
}
.settings-unsaved-close{
  width:36px!important;
  height:36px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #e7e9ef!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#757d8d!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  flex:0 0 auto!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease!important;
}
.settings-unsaved-close:hover{background:#f5f6f9!important;border-color:#dfe2e9!important;color:#343a47!important}
.settings-unsaved-close:focus-visible{outline:0!important;box-shadow:0 0 0 3px rgba(117,103,244,.16)!important;border-color:#bdb7fb!important}
.settings-unsaved-close svg{width:16px!important;height:16px!important}
.settings-unsaved-body{
  padding:0 22px 22px!important;
  background:#fff!important;
}
.settings-unsaved-body>p{
  margin:0!important;
  color:#646c7c!important;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.55!important;
}
.settings-unsaved-summary{
  display:flex!important;
  align-items:flex-start!important;
  gap:11px!important;
  margin:17px 0 0!important;
  padding:13px 14px!important;
  border:1px solid #ececf2!important;
  border-radius:14px!important;
  background:#f8f9fb!important;
  box-shadow:none!important;
}
.settings-unsaved-summary>span,
.settings-unsaved-summary .settings-unsaved-summary-icon{
  width:32px!important;
  height:32px!important;
  border:0!important;
  border-radius:10px!important;
  background:#eeecff!important;
  color:#6254e8!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
}
.settings-unsaved-summary>span svg,
.settings-unsaved-summary .settings-unsaved-summary-icon svg{width:16px!important;height:16px!important}
.settings-unsaved-summary b{
  display:block!important;
  color:#343845!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:1.35!important;
}
.settings-unsaved-summary small{
  display:block!important;
  margin-top:3px!important;
  color:#7c8494!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.45!important;
}
.settings-unsaved-foot{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
  padding:15px 22px 18px!important;
  border-top:1px solid #eceef3!important;
  background:#fbfbfd!important;
}
.settings-unsaved-foot .btn{
  min-height:42px!important;
  height:42px!important;
  margin:0!important;
  padding:0 15px!important;
  border-radius:11px!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease!important;
}
.settings-unsaved-foot .btn:active{transform:translateY(1px)!important}
.settings-unsaved-foot .settings-keep-btn{
  margin-right:auto!important;
  border:0!important;
  background:transparent!important;
  color:#5d6574!important;
  box-shadow:none!important;
  padding-left:4px!important;
  padding-right:8px!important;
}
.settings-unsaved-foot .settings-keep-btn:hover{background:transparent!important;color:#302f65!important}
.settings-unsaved-foot .settings-discard-btn{
  border:1px solid #e4e6ec!important;
  background:#fff!important;
  color:#bd3643!important;
  box-shadow:none!important;
}
.settings-unsaved-foot .settings-discard-btn:hover{background:#fff6f7!important;border-color:#f0cbd0!important}
.settings-unsaved-foot .settings-save-continue-btn{
  border:1px solid #6657ec!important;
  background:linear-gradient(135deg,#7567f4 0%,#6253e9 100%)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(98,83,233,.22)!important;
}
.settings-unsaved-foot .settings-save-continue-btn:hover{background:linear-gradient(135deg,#6f61f0 0%,#5949df 100%)!important;box-shadow:0 10px 24px rgba(98,83,233,.27)!important}
.settings-unsaved-foot .settings-save-continue-btn span{width:17px!important;height:17px!important;display:inline-flex!important}
.settings-unsaved-foot .settings-save-continue-btn svg{width:100%!important;height:100%!important}

@keyframes settingsUnsavedEnter{
  from{opacity:0;transform:translateY(8px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .settings-unsaved-modal .settings-unsaved-sheet{animation:none!important}
}
@media(max-width:700px){
  .settings-unsaved-modal{align-items:flex-end!important;padding:0!important}
  .settings-unsaved-modal .settings-unsaved-sheet{
    width:100%!important;
    max-width:none!important;
    border-width:1px 0 0!important;
    border-radius:22px 22px 0 0!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
    animation:settingsUnsavedMobileEnter .2s ease-out both!important;
  }
  .settings-unsaved-modal .settings-unsaved-sheet:before{
    content:''!important;
    display:block!important;
    width:38px!important;
    height:4px!important;
    margin:8px auto 0!important;
    border-radius:999px!important;
    background:#d9dce4!important;
  }
  .settings-unsaved-head{padding:14px 16px 14px!important}
  .settings-unsaved-heading{gap:11px!important}
  .settings-unsaved-heading .settings-unsaved-icon{width:42px!important;height:42px!important;border-radius:13px!important}
  .settings-unsaved-heading h2{font-size:20px!important}
  .settings-unsaved-body{padding:0 16px 16px!important}
  .settings-unsaved-summary{margin-top:14px!important;padding:12px!important}
  .settings-unsaved-foot{
    padding:12px 16px 14px!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:9px!important;
  }
  .settings-unsaved-foot .btn{width:100%!important;height:46px!important;min-height:46px!important;padding:0 12px!important}
  .settings-unsaved-foot .settings-save-continue-btn{grid-column:1/-1!important;grid-row:1!important}
  .settings-unsaved-foot .settings-keep-btn{
    margin:0!important;
    border:1px solid #e4e6ec!important;
    background:#fff!important;
    color:#586071!important;
    padding:0 12px!important;
  }
  .settings-unsaved-foot .settings-keep-btn:hover{background:#f6f7f9!important;color:#343a47!important}
}
@keyframes settingsUnsavedMobileEnter{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:390px){
  .settings-unsaved-foot{grid-template-columns:1fr!important}
  .settings-unsaved-foot .settings-save-continue-btn{grid-column:auto!important;grid-row:auto!important}
}



/* ========================================================================== */
/* RankDesk UI v008.2.15 — Prompt Templates table refinement (UI only)       */
/* ========================================================================== */
#appView.management-page .prompt-screen-card{
  padding:16px!important;
  overflow:visible!important;
}
#appView.management-page .prompt-table-shell-v2{
  overflow:hidden!important;
  border:1px solid #e4e7ef!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(35,39,58,.035)!important;
}
#appView.management-page .prompt-table-v2{
  width:100%;
  min-width:1080px;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
}
#appView.management-page .prompt-table-v2 .prompt-col-name{width:24%}
#appView.management-page .prompt-table-v2 .prompt-col-target{width:19%}
#appView.management-page .prompt-table-v2 .prompt-col-action{width:11%}
#appView.management-page .prompt-table-v2 .prompt-col-preview{width:28%}
#appView.management-page .prompt-table-v2 .prompt-col-status{width:9%}
#appView.management-page .prompt-table-v2 .prompt-col-actions{width:9%;text-align:right}
#appView.management-page .prompt-table-v2 thead th{
  position:sticky;
  top:0;
  z-index:2;
  height:48px!important;
  padding:0 16px!important;
  background:#f8f9fc!important;
  color:#6d7586!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:.025em!important;
  text-transform:none!important;
  vertical-align:middle;
}
#appView.management-page .prompt-table-v2 tbody td{
  padding:15px 16px!important;
  background:#fff;
  border-bottom:1px solid #eceef4!important;
  vertical-align:middle!important;
}
#appView.management-page .prompt-table-v2 tbody tr:last-child td{border-bottom:0!important}
#appView.management-page .prompt-row-v2{
  cursor:pointer;
  transition:background .16s ease;
}
#appView.management-page .prompt-row-v2:hover td{background:#faf9ff!important}
#appView.management-page .prompt-row-v2:focus-within td{background:#faf9ff!important}
#appView.management-page .prompt-primary-cell{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
#appView.management-page .prompt-row-type-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e1defb;
  border-radius:12px;
  background:#f4f2ff;
  color:#6759e8;
}
#appView.management-page .prompt-row-type-icon svg{width:18px;height:18px}
#appView.management-page .prompt-row-type-icon.is-description{background:#effaf6;border-color:#d5efe4;color:#087b59}
#appView.management-page .prompt-row-type-icon.is-alt{background:#fff8e9;border-color:#f8e5bc;color:#a96b08}
#appView.management-page .prompt-row-type-icon.is-file{background:#eef8ff;border-color:#d4eafa;color:#1670a6}
#appView.management-page .prompt-primary-copy{min-width:0}
#appView.management-page .prompt-table-v2 .prompt-title,
#appView.management-page .prompt-mobile-card .prompt-title{
  margin:0;
  color:#252a36!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#appView.management-page .prompt-table-v2 .prompt-meta,
#appView.management-page .prompt-mobile-card .prompt-meta{
  margin-top:4px;
  color:#8991a2!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#appView.management-page .prompt-for-badge{
  max-width:100%;
  min-height:28px;
  padding:6px 9px!important;
  gap:6px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:500!important;
  overflow:hidden;
  text-overflow:ellipsis;
}
#appView.management-page .prompt-for-badge:before{width:6px!important;height:6px!important;flex:0 0 6px}
#appView.management-page .prompt-action-badge,
#appView.management-page .prompt-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:28px;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:12px;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
}
#appView.management-page .prompt-action-badge svg{width:14px;height:14px}
#appView.management-page .prompt-action-badge.is-generate{background:#edf9f4;border-color:#d1eddf;color:#087a58}
#appView.management-page .prompt-action-badge.is-fix{background:#fff7e6;border-color:#f2dfb2;color:#9a6306}
#appView.management-page .prompt-status-badge.is-active{background:#eaf8f1;border-color:#d3eddf;color:#087b59}
#appView.management-page .prompt-status-badge.is-disabled{background:#f2f3f6;border-color:#e2e4e9;color:#697184}
#appView.management-page .prompt-status-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 6px}
#appView.management-page .prompt-preview-card{
  min-width:0;
  padding:10px 11px;
  border:1px solid #e8eaf0;
  border-radius:12px;
  background:#fbfbfd;
}
#appView.management-page .prompt-preview{
  max-width:none!important;
  color:#4d5565!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.45!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  word-break:break-word;
}
#appView.management-page .prompt-preview-meta{
  margin-top:6px;
  color:#9299a8;
  font-size:11px;
  font-weight:400;
  line-height:1.2;
}
#appView.management-page .prompt-row-actions{
  text-align:right!important;
  white-space:nowrap;
}
#appView.management-page .prompt-row-actions .icon-action{
  width:32px!important;
  height:32px!important;
  margin:0 0 0 5px!important;
  border-radius:9px!important;
}
#appView.management-page .prompt-row-actions .icon-action:first-child{margin-left:0!important}
#appView.management-page .prompt-row-actions .icon-action svg{width:15px;height:15px}
#appView.management-page .prompt-view-action{background:#f2f0ff!important;border-color:#dedafb!important;color:#6254df!important}
#appView.management-page .prompt-view-action:hover{background:#e9e5ff!important;border-color:#cbc4fb!important;color:#5143cf!important}
#appView.management-page .prompt-table-footer-v2{
  min-height:54px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:12px 16px!important;
  border-top:1px solid #e8eaf0!important;
  background:#fafbfc!important;
}
#appView.management-page .prompt-table-guidance{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
  color:#737b8c;
  font-size:12px;
  font-weight:400;
  line-height:1.45;
}
#appView.management-page .prompt-table-guidance-icon{
  width:18px;height:18px;flex:0 0 18px;display:inline-flex;align-items:center;justify-content:center;color:#7567f4;
}
#appView.management-page .prompt-table-guidance-icon svg{width:16px;height:16px}
#appView.management-page .prompt-footer-count{
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid #e0e3ea;
  border-radius:999px;
  background:#fff;
  color:#697184;
  font-size:11px;
  font-weight:500;
  white-space:nowrap;
}
#appView.management-page .prompt-table-empty{
  min-height:230px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:28px;
  color:#858d9e;
  text-align:center;
}
#appView.management-page .prompt-table-empty-icon{
  width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:1px solid #dedafb;border-radius:14px;background:#f3f1ff;color:#6759e8;margin-bottom:4px;
}
#appView.management-page .prompt-table-empty-icon svg{width:20px;height:20px}
#appView.management-page .prompt-table-empty strong{color:#2e3441;font-size:15px;font-weight:600}
#appView.management-page .prompt-table-empty > span:last-child{max-width:360px;font-size:12px;line-height:1.45}
#appView.management-page .prompt-mobile-list{display:none}
#appView.management-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:900px){
  #appView.management-page .prompt-table-v2{min-width:980px}
  #appView.management-page .prompt-table-footer-v2{align-items:flex-start!important;flex-direction:column!important;gap:10px!important}
}
@media(max-width:720px){
  #appView.management-page .prompt-screen-card{padding:10px!important;border-radius:16px!important}
  #appView.management-page .prompt-desktop-table-wrap{display:none!important}
  #appView.management-page .prompt-mobile-list{display:grid;gap:10px;padding:10px;background:#f7f8fb}
  #appView.management-page .prompt-mobile-card{
    display:block;
    padding:14px;
    border:1px solid #e4e7ef;
    border-radius:16px;
    background:#fff;
    box-shadow:0 4px 14px rgba(34,38,58,.035);
    cursor:pointer;
  }
  #appView.management-page .prompt-mobile-card:active{transform:scale(.995)}
  #appView.management-page .prompt-mobile-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center}
  #appView.management-page .prompt-mobile-title-wrap{min-width:0}
  #appView.management-page .prompt-mobile-head .prompt-status-badge{align-self:start}
  #appView.management-page .prompt-mobile-badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0 10px}
  #appView.management-page .prompt-mobile-card .prompt-preview-card{padding:10px;background:#fafbfc}
  #appView.management-page .prompt-mobile-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px;padding-top:12px;border-top:1px solid #edf0f4}
  #appView.management-page .prompt-mobile-action{
    min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #e0e3ea;border-radius:10px;background:#fff;color:#596172;font-family:inherit;font-size:12px;font-weight:500;cursor:pointer;
  }
  #appView.management-page .prompt-mobile-action svg{width:15px;height:15px}
  #appView.management-page .prompt-mobile-action.is-view{background:#f3f1ff;border-color:#dedafb;color:#6254df}
  #appView.management-page .prompt-mobile-action.is-edit{background:#f6f7fa;color:#4f5767}
  #appView.management-page .prompt-mobile-action.is-delete{background:#fff3f4;border-color:#f4d7da;color:#c33a45}
  #appView.management-page .prompt-table-footer-v2{padding:12px!important;background:#fff!important}
  #appView.management-page .prompt-footer-count{align-self:flex-start}
  #appView.management-page .prompt-table-empty{min-height:210px;border:1px dashed #dfe2ea;border-radius:14px;background:#fff}
}
@media(max-width:430px){
  #appView.management-page .prompt-mobile-head{grid-template-columns:38px minmax(0,1fr)}
  #appView.management-page .prompt-mobile-head .prompt-status-badge{grid-column:2;justify-self:start;margin-top:2px}
  #appView.management-page .prompt-mobile-actions{grid-template-columns:1fr 1fr 1fr}
  #appView.management-page .prompt-mobile-action span{display:none}
}

/* ========================================================================== */
/* RankDesk UI v008.2.16 — grouped sidebar navigation (UI only)               */
/* ========================================================================== */
#appView .nav{
  gap:14px!important;
}
#appView .nav-group{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
#appView .nav-section-label{
  display:block;
  margin:0 8px 3px!important;
  color:#817b99!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:600!important;
  letter-spacing:.105em!important;
  text-transform:uppercase!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#appView .nav-group + .nav-group{
  margin-top:1px;
}
#appView .nav button{
  font-size:14px!important;
  font-weight:500!important;
}
#appView .nav-label{
  font-size:14px!important;
  font-weight:500!important;
}
#appView.sidebar-collapsed .nav{
  gap:8px!important;
}
#appView.sidebar-collapsed .nav-group{
  align-items:center;
  gap:7px;
}
#appView.sidebar-collapsed .nav-section-label{
  display:none!important;
}
#appView.sidebar-collapsed .nav-group + .nav-group{
  margin-top:7px;
  padding-top:8px;
  position:relative;
}
#appView.sidebar-collapsed .nav-group + .nav-group:before{
  content:'';
  width:26px;
  height:1px;
  margin:0 auto 1px;
  border-radius:999px;
  background:rgba(255,255,255,.075);
}
@media(max-width:900px){
  #appView .nav,
  #appView.sidebar-collapsed .nav{
    gap:8px!important;
  }
  #appView .nav-group,
  #appView.sidebar-collapsed .nav-group{
    width:100%!important;
    align-items:center!important;
    gap:7px!important;
  }
  #appView .nav-section-label,
  #appView.sidebar-collapsed .nav-section-label{
    display:none!important;
  }
  #appView .nav-group + .nav-group,
  #appView.sidebar-collapsed .nav-group + .nav-group{
    margin-top:7px!important;
    padding-top:8px!important;
    position:relative!important;
  }
  #appView .nav-group + .nav-group:before,
  #appView.sidebar-collapsed .nav-group + .nav-group:before{
    content:'';
    width:26px;
    height:1px;
    margin:0 auto 1px;
    border-radius:999px;
    background:rgba(255,255,255,.075);
  }
}



/* ========================================================================== */
/* RankDesk UI v008.2.17 — Prompt Templates filter dropdowns (UI only)        */
/* ========================================================================== */
#appView .prompt-filter-group{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
#appView .prompt-filter-dd-v2{
  position:relative;
  min-width:190px;
}
#appView .prompt-filter-btn-v2{
  width:100%;
  min-width:190px;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 38px 6px 8px;
  border:1px solid #e0e4ee;
  border-radius:14px;
  background:#fff;
  color:#2f3442;
  text-align:left;
  box-shadow:0 5px 16px rgba(30,32,45,.045);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .16s ease;
}
#appView .prompt-filter-btn-v2:after{display:none!important;content:none!important}
#appView .prompt-filter-btn-v2:hover{
  border-color:#d3d7e6;
  background:#fcfcff;
  transform:translateY(-1px);
}
#appView .prompt-filter-btn-v2.open,
#appView .prompt-filter-btn-v2:focus-visible{
  border-color:#7567f4;
  background:#fff;
  box-shadow:0 0 0 3px rgba(117,103,244,.12),0 10px 24px rgba(30,32,45,.07);
  outline:none;
}
#appView .prompt-filter-btn-v2.active{
  border-color:#d8d2ff;
  background:#f8f7ff;
}
#appView .prompt-filter-btn-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#f1efff;
  color:#6758ee;
}
#appView .prompt-filter-btn-icon.is-status{background:#edf9f3;color:#0b8b60}
#appView .prompt-filter-btn-icon svg{width:17px;height:17px;display:block}
#appView .prompt-filter-btn-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
  line-height:1.15;
}
#appView .prompt-filter-btn-copy small{
  color:#8a92a4;
  font-size:10px;
  font-weight:500;
  letter-spacing:.025em;
}
#appView .prompt-filter-btn-copy strong{
  max-width:105px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#303542;
  font-size:13px;
  font-weight:600;
}
#appView .prompt-filter-chevron{
  position:absolute;
  right:13px;
  top:50%;
  width:15px;
  height:15px;
  color:#8c94a6;
  transform:translateY(-50%);
  transition:transform .16s ease,color .16s ease;
}
#appView .prompt-filter-btn-v2.open .prompt-filter-chevron{
  color:#6758ee;
  transform:translateY(-50%) rotate(180deg);
}
#appView .prompt-filter-menu-v2{
  position:fixed;
  z-index:820;
  overflow:auto;
  padding:8px;
  border:1px solid #e2e5ef;
  border-radius:17px;
  background:#fff;
  box-shadow:0 22px 58px rgba(25,28,39,.18);
}
#appView .prompt-filter-menu-head-v2{
  padding:7px 8px 10px;
  border-bottom:1px solid #eef0f5;
  margin-bottom:5px;
}
#appView .prompt-filter-menu-head-v2 strong{
  display:block;
  color:#252a36;
  font-size:13px;
  font-weight:600;
}
#appView .prompt-filter-menu-head-v2 span{
  display:block;
  margin-top:3px;
  color:#7d8699;
  font-size:11px;
  font-weight:400;
  line-height:1.35;
}
#appView .prompt-filter-options-v2{
  display:grid;
  gap:3px;
}
#appView .prompt-filter-option{
  width:100%;
  min-height:54px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 24px;
  align-items:center;
  gap:10px;
  padding:7px 8px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:#303542;
  text-align:left;
  cursor:pointer;
  transition:background .14s ease,border-color .14s ease;
}
#appView .prompt-filter-option:hover,
#appView .prompt-filter-option:focus-visible{
  background:#f8f7ff;
  border-color:#ebe8ff;
  outline:none;
}
#appView .prompt-filter-option.is-selected{
  background:#f2f0ff;
  border-color:#dfdafe;
}
#appView .prompt-filter-option-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#f3f4f8;
  color:#697184;
}
#appView .prompt-filter-option-icon svg{width:17px;height:17px}
#appView .prompt-filter-option-icon.is-generate{background:#eafaf2;color:#09855b}
#appView .prompt-filter-option-icon.is-fix{background:#fff5df;color:#a86b00}
#appView .prompt-filter-status-icon span{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#9aa2b4;
  box-shadow:0 0 0 4px rgba(154,162,180,.12);
}
#appView .prompt-filter-status-icon.is-active{background:#eaf9f2}
#appView .prompt-filter-status-icon.is-active span{background:#0a9a68;box-shadow:0 0 0 4px rgba(10,154,104,.12)}
#appView .prompt-filter-status-icon.is-disabled{background:#f1f2f6}
#appView .prompt-filter-status-icon.is-disabled span{background:#8a92a4;box-shadow:0 0 0 4px rgba(138,146,164,.12)}
#appView .prompt-filter-option-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
#appView .prompt-filter-option-copy strong{font-size:13px;font-weight:600;color:#2d3240}
#appView .prompt-filter-option-copy small{font-size:11px;font-weight:400;color:#81899a;line-height:1.25}
#appView .prompt-filter-option-check{
  width:18px;
  height:18px;
  color:#6758ee;
  opacity:0;
  transform:scale(.8);
  transition:opacity .14s ease,transform .14s ease;
}
#appView .prompt-filter-option.is-selected .prompt-filter-option-check{opacity:1;transform:scale(1)}

@media(max-width:900px){
  #appView .prompt-control-panel .prompt-toolbar:last-child{align-items:flex-start}
  #appView .prompt-filter-group{width:100%;justify-content:flex-start}
}
@media(max-width:700px){
  #appView .prompt-tabs{
    width:100%;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:3px;
    scrollbar-width:none;
  }
  #appView .prompt-tabs::-webkit-scrollbar{display:none}
  #appView .prompt-filter-group{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  #appView .prompt-filter-dd-v2,
  #appView .prompt-filter-btn-v2{min-width:0;width:100%}
  #appView .prompt-filter-btn-v2{min-height:46px;padding-left:7px}
  #appView .prompt-filter-btn-icon{width:32px;height:32px;flex-basis:32px}
  #appView .prompt-filter-btn-copy strong{max-width:92px;font-size:12px}
  #appView .prompt-filter-menu-v2{border-radius:17px;padding:8px}
}
@media(max-width:430px){
  #appView .prompt-filter-group{grid-template-columns:1fr}
  #appView .prompt-filter-btn-copy strong{max-width:none}
}


/* ========================================================================== */
/* RankDesk UI v008.2.19 — Prompt Templates popup system (UI only)            */
/* ========================================================================== */
#promptModal.prompt-editor-backdrop-v219,
#promptViewModal.prompt-detail-backdrop-v219{
  background:rgba(20,22,32,.48)!important;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
#promptModal .prompt-editor-modal-v219,
#promptViewModal .prompt-detail-modal-v219{
  width:min(980px,calc(100vw - 36px))!important;
  max-height:min(92vh,900px)!important;
  border:1px solid rgba(226,229,238,.96)!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 32px 90px rgba(24,27,40,.24)!important;
  overflow:hidden!important;
}
#promptModal .prompt-editor-head-v219,
#promptViewModal .prompt-detail-head-v219{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px;
  border-bottom:1px solid #eceef4;
  background:linear-gradient(180deg,#fbfaff 0%,#fff 100%);
}
#promptModal .prompt-editor-heading-v219,
#promptViewModal .prompt-detail-heading-v219{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-width:0;
}
#promptModal .prompt-editor-icon-v219,
#promptViewModal .prompt-detail-icon-v219{
  width:46px;
  height:46px;
  flex:0 0 46px;
  display:grid;
  place-items:center;
  border:1px solid #ded9ff;
  border-radius:15px;
  background:linear-gradient(145deg,#f4f1ff 0%,#ebe7ff 100%);
  color:#6959ef;
  box-shadow:0 8px 20px rgba(105,89,239,.11);
}
#promptModal .prompt-editor-icon-v219 svg,
#promptViewModal .prompt-detail-icon-v219 svg{width:20px;height:20px}
#promptModal .prompt-editor-heading-copy-v219,
#promptViewModal .prompt-detail-heading-v219>div:last-child{min-width:0}
#promptModal .prompt-editor-eyebrow-v219,
#promptViewModal .prompt-detail-eyebrow-v219{
  color:#7567f4;
  font-size:10px;
  line-height:1.3;
  font-weight:650;
  letter-spacing:.09em;
  text-transform:uppercase;
}
#promptModal .prompt-editor-title-v219,
#promptViewModal .prompt-detail-title-v219{
  margin:4px 0 0;
  color:#252a36;
  font-size:20px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:-.025em;
}
#promptModal .prompt-editor-subtitle-v219,
#promptViewModal .prompt-detail-subtitle-v219{
  margin:5px 0 0;
  color:#747d8f;
  font-size:12px;
  line-height:1.45;
  font-weight:400;
}
#promptModal .prompt-modal-close-v219,
#promptViewModal .prompt-modal-close-v219{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border:1px solid #e5e7ef;
  border-radius:12px;
  background:#fff;
  color:#7d8596;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}
#promptModal .prompt-modal-close-v219:hover,
#promptViewModal .prompt-modal-close-v219:hover{background:#f7f7fb;border-color:#d8dce7;color:#333946;transform:translateY(-1px)}
#promptModal .prompt-modal-close-v219:focus-visible,
#promptViewModal .prompt-modal-close-v219:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(117,103,244,.14)}
#promptModal .prompt-modal-close-v219 svg,
#promptViewModal .prompt-modal-close-v219 svg{width:17px;height:17px}
#promptModal .prompt-editor-body-v219{
  padding:18px!important;
  background:#f7f8fb!important;
  overflow:auto!important;
}
#promptModal .prompt-editor-section-v219{
  padding:17px;
  border:1px solid #e6e9f1;
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 20px rgba(29,32,45,.035);
}
#promptModal .prompt-editor-section-v219 + .prompt-editor-section-v219{margin-top:14px}
#promptModal .prompt-editor-section-head-v219{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
#promptModal .prompt-editor-section-head-v219 h3{
  margin:0;
  color:#2a2f3c;
  font-size:15px;
  line-height:1.3;
  font-weight:600;
  letter-spacing:-.012em;
}
#promptModal .prompt-editor-section-head-v219 p{
  margin:4px 0 0;
  color:#7a8395;
  font-size:12px;
  line-height:1.45;
}
#promptModal .prompt-required-note-v219{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid #eceef4;
  border-radius:999px;
  background:#fafbfc;
  color:#7b8496;
  font-size:11px;
  font-weight:500;
}
#promptModal .prompt-required-note-v219 span{color:#e44b5a;font-weight:700}
#promptModal .prompt-editor-grid-v219{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
#promptModal .prompt-editor-field-v219{min-width:0}
#promptModal .prompt-editor-field-v219 label,
#promptModal .prompt-template-main-label-v219{
  display:flex!important;
  align-items:center;
  gap:4px;
  margin:0 0 7px!important;
  color:#4d5565!important;
  font-size:13px!important;
  line-height:1.35;
  font-weight:500!important;
  text-align:left!important;
}
#promptModal .prompt-editor-field-v219 input,
#promptModal .prompt-editor-field-v219 select{
  width:100%;
  min-height:44px!important;
  border:1px solid #dfe3ec!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#2f3442!important;
  font-size:14px!important;
}
#promptModal .prompt-editor-field-v219 input:hover,
#promptModal .prompt-editor-field-v219 select:hover{border-color:#cfd4e0!important}
#promptModal .prompt-editor-field-v219 input:focus,
#promptModal .prompt-editor-field-v219 select:focus{border-color:#7567f4!important;box-shadow:0 0 0 3px rgba(117,103,244,.11)!important}
#promptModal .prompt-field-help-v219{
  display:block;
  margin-top:6px;
  color:#8a92a3;
  font-size:11px;
  line-height:1.4;
}
#promptModal .prompt-template-composer-v219{
  margin-top:0!important;
  border:1px solid #e1e4ed!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
#promptModal .prompt-template-composer-v219 .prompt-placeholder-toolbar{
  align-items:center;
  padding:12px 13px;
  background:#faf9ff;
}
#promptModal .prompt-template-composer-v219 .prompt-placeholder-title{font-size:13px;font-weight:600}
#promptModal .prompt-template-composer-v219 .prompt-placeholder-sub{font-size:11px}
#promptModal .prompt-template-composer-v219 .prompt-placeholder-insert{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-color:#ddd8fb!important;
  background:#f3f1ff!important;
  color:#6254df!important;
  font-weight:600!important;
}
#promptModal .prompt-template-composer-v219 .prompt-placeholder-insert svg{width:14px;height:14px}
#promptModal .prompt-template-composer-v219 .prompt-template-editor{
  min-height:270px!important;
  padding:16px!important;
  color:#303542!important;
  font-size:14px!important;
  line-height:1.65!important;
  background:#fff!important;
}
#promptModal .prompt-template-composer-v219 .prompt-placeholder-footer{background:#fafbfc}
#promptModal .prompt-editor-note-v219{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:10px;
  color:#737c8e;
  font-size:12px;
  line-height:1.5;
}
#promptModal .prompt-editor-note-icon-v219{width:18px;height:18px;flex:0 0 18px;color:#7567f4;margin-top:1px}
#promptModal .prompt-editor-note-icon-v219 svg{width:18px;height:18px}
#promptModal .prompt-editor-foot-v219{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 20px!important;
  border-top:1px solid #eceef4!important;
  background:#fff!important;
}
#promptModal .prompt-editor-foot-left-v219{display:flex;align-items:center;gap:8px}
#promptModal .prompt-editor-foot-v219 .btn{min-height:42px;margin:0!important;border-radius:12px!important;font-size:14px!important;font-weight:600!important}
#promptModal .prompt-editor-cancel-v219{background:#fff!important;border:1px solid #e1e4ec!important;color:#596172!important}
#promptModal .prompt-editor-clear-v219{background:#f6f7fa!important;border:1px solid #e7e9ef!important;color:#667082!important}
#promptModal .prompt-editor-save-v219{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:148px;box-shadow:0 10px 22px rgba(104,88,238,.18)!important}
#promptModal .prompt-editor-save-v219 svg{width:16px;height:16px}

#promptViewModal .prompt-detail-body-v219{padding:18px!important;background:#f7f8fb!important;overflow:auto!important}
#promptViewModal .prompt-detail-hero-v219{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  border:1px solid #e5e8f0;
  border-radius:17px;
  background:#fff;
}
#promptViewModal .prompt-detail-hero-main-v219{min-width:0}
#promptViewModal .prompt-detail-name-v219{color:#272c39;font-size:18px;line-height:1.3;font-weight:600;letter-spacing:-.02em;word-break:break-word}
#promptViewModal .prompt-detail-id-v219{margin-top:5px;color:#8a92a3;font-size:11px;font-weight:500;word-break:break-all}
#promptViewModal .prompt-detail-grid-v219{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
#promptViewModal .prompt-detail-card-v219{min-width:0;padding:13px;border:1px solid #e5e8f0;border-radius:15px;background:#fff}
#promptViewModal .prompt-detail-card-v219>span{display:block;color:#8a92a3;font-size:10px;line-height:1.3;font-weight:600;letter-spacing:.065em;text-transform:uppercase}
#promptViewModal .prompt-detail-card-v219>strong{display:block;margin-top:7px;color:#343a47;font-size:13px;line-height:1.45;font-weight:600;word-break:break-word}
#promptViewModal .prompt-detail-card-v219 .prompt-for-badge{max-width:100%;white-space:normal}
#promptViewModal .prompt-detail-action-v219{display:inline-flex!important;width:auto;padding:5px 9px;border-radius:999px;font-size:12px!important}
#promptViewModal .prompt-detail-action-v219.is-generate{background:#eafaf2;color:#087f57}
#promptViewModal .prompt-detail-action-v219.is-fix{background:#fff4dd;color:#9d6500}
#promptViewModal .prompt-detail-template-v219{margin-top:12px;border:1px solid #e3e6ef;border-radius:17px;background:#fff;overflow:hidden}
#promptViewModal .prompt-detail-template-head-v219{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid #e9ebf1;background:#faf9ff}
#promptViewModal .prompt-detail-template-head-v219>div:first-child span{display:block;color:#8a92a3;font-size:10px;font-weight:600;letter-spacing:.065em;text-transform:uppercase}
#promptViewModal .prompt-detail-template-head-v219>div:first-child strong{display:block;margin-top:3px;color:#303542;font-size:14px;font-weight:600}
#promptViewModal .prompt-detail-template-meta-v219{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
#promptViewModal .prompt-detail-template-meta-v219 span{padding:5px 8px;border:1px solid #e3e5ef;border-radius:999px;background:#fff;color:#737c8e;font-size:10px;font-weight:500}
#promptViewModal .prompt-detail-template-body-v219{max-height:430px;overflow:auto;padding:16px;color:#333947;font-size:13px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
#promptViewModal .prompt-detail-foot-v219{display:flex!important;justify-content:flex-end!important;padding:14px 20px!important;border-top:1px solid #eceef4!important;background:#fff!important}
#promptViewModal .prompt-detail-close-v219{min-width:96px;min-height:42px;margin:0!important;border:1px solid #e1e4ec!important;background:#fff!important;color:#596172!important;border-radius:12px!important;font-size:14px!important;font-weight:600!important}

/* Prompt-specific delete confirmation */
#managementActionModal.prompt-delete-state-v219{background:rgba(20,22,32,.48)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#managementActionModal .prompt-delete-dialog-v219{width:min(520px,calc(100vw - 32px));border-radius:24px;border-color:#e7e9f1;box-shadow:0 30px 90px rgba(24,28,42,.24)}
#managementActionModal .prompt-delete-dialog-v219 .management-confirm-head{padding:22px 22px 18px;background:linear-gradient(180deg,#fff7f8 0%,#fff 100%)}
#managementActionModal .prompt-template-delete-icon-v219{width:46px;height:46px;border-radius:15px;background:#fff0f2;color:#d33d4e;border-color:#f8cbd1}
#managementActionModal .prompt-template-delete-icon-v219 svg{width:20px;height:20px}
#managementActionModal .prompt-delete-dialog-v219 .management-confirm-title{font-size:20px;font-weight:700}
#managementActionModal .prompt-delete-dialog-v219 .management-confirm-body{padding:18px 22px 20px}
#managementActionModal .prompt-delete-message-v219{margin:0;color:#697284;font-size:13px;line-height:1.55}
#managementActionModal .prompt-delete-preview-v219{display:flex;align-items:center;gap:12px;margin-top:14px;padding:13px;border:1px solid #e7e9f0;border-radius:15px;background:#fafbfc}
#managementActionModal .prompt-delete-preview-icon-v219{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:1px solid #ded9ff;border-radius:12px;background:#f2f0ff;color:#6959ef}
#managementActionModal .prompt-delete-preview-icon-v219 svg{width:17px;height:17px}
#managementActionModal .prompt-delete-preview-copy-v219{min-width:0}
#managementActionModal .prompt-delete-preview-copy-v219 span{display:block;color:#8991a2;font-size:10px;font-weight:600;letter-spacing:.065em;text-transform:uppercase}
#managementActionModal .prompt-delete-preview-copy-v219 strong{display:block;margin-top:3px;color:#303542;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#managementActionModal .prompt-delete-preview-copy-v219 small{display:block;margin-top:4px;color:#7b8495;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#managementActionModal .prompt-delete-impact-v219{margin-top:12px;padding:11px 12px;border-left:3px solid #e35260;border-radius:0 11px 11px 0;background:#fff5f6}
#managementActionModal .prompt-delete-impact-v219 span{display:block;color:#a13e49;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
#managementActionModal .prompt-delete-impact-v219 strong{display:block;margin-top:4px;color:#5d4650;font-size:12px;line-height:1.45;font-weight:500}
#managementActionModal .prompt-delete-dialog-v219 .management-confirm-foot{padding:14px 22px 18px;background:#fff}
#managementActionModal .prompt-delete-confirm-v219{background:#d63d4e!important;color:#fff!important;box-shadow:none!important}
#managementActionModal .prompt-delete-confirm-v219:hover{background:#c53242!important}

/* Prompt-specific unsaved changes */
#managementUnsavedModal.prompt-unsaved-state-v219{background:rgba(20,22,32,.48)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#managementUnsavedModal .prompt-unsaved-dialog-v219{width:min(560px,calc(100vw - 32px));border:1px solid #e6e8f0;border-radius:24px;box-shadow:0 30px 90px rgba(24,28,42,.24);overflow:hidden}
#managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-head{padding:22px 22px 18px;background:linear-gradient(180deg,#f8f6ff 0%,#fff 100%)}
#managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-icon{width:46px;height:46px;border-radius:15px;background:#f1efff;color:#6758ee;border-color:#ddd8ff}
#managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-icon svg{width:20px;height:20px}
#managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-title{font-size:20px;font-weight:700}
#managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-body{padding:17px 22px 20px}
#managementUnsavedModal .prompt-unsaved-intro-v219{margin:0;color:#697284;font-size:13px;line-height:1.55}
#managementUnsavedModal .prompt-unsaved-preview-v219{display:grid;grid-template-columns:1.25fr .75fr .9fr;gap:8px;margin-top:14px}
#managementUnsavedModal .prompt-unsaved-preview-v219>div{min-width:0;padding:11px;border:1px solid #e7e9f0;border-radius:13px;background:#fafbfc}
#managementUnsavedModal .prompt-unsaved-preview-v219 span{display:block;color:#8a92a3;font-size:9px;font-weight:600;letter-spacing:.065em;text-transform:uppercase}
#managementUnsavedModal .prompt-unsaved-preview-v219 strong{display:block;margin-top:4px;color:#343a47;font-size:12px;line-height:1.35;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:14px 22px 18px;background:#fff}
#managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-foot .btn{min-height:42px;margin:0!important;border-radius:12px!important;font-size:14px!important;font-weight:600!important}
#managementUnsavedModal.prompt-unsaved-state-v219 #managementUnsavedStayBtn{margin-right:auto!important;background:#fff!important;border:1px solid #e1e4ec!important;color:#596172!important}
#managementUnsavedModal.prompt-unsaved-state-v219 #managementUnsavedDiscardBtn{background:#fff5f6!important;border:1px solid #f2d6da!important;color:#bd3945!important}
#managementUnsavedModal.prompt-unsaved-state-v219 #managementUnsavedSaveBtn{min-width:130px}

@media(max-width:760px){
  #promptModal.prompt-editor-backdrop-v219,
  #promptViewModal.prompt-detail-backdrop-v219{align-items:flex-end!important;padding:0!important}
  #promptModal .prompt-editor-modal-v219,
  #promptViewModal .prompt-detail-modal-v219{
    width:100%!important;
    max-height:94dvh!important;
    border-radius:22px 22px 0 0!important;
    border-left:0!important;
    border-right:0!important;
    border-bottom:0!important;
  }
  #promptModal .prompt-editor-head-v219,
  #promptViewModal .prompt-detail-head-v219{padding:17px 16px 15px}
  #promptModal .prompt-editor-icon-v219,
  #promptViewModal .prompt-detail-icon-v219{width:42px;height:42px;flex-basis:42px;border-radius:14px}
  #promptModal .prompt-editor-title-v219,
  #promptViewModal .prompt-detail-title-v219{font-size:19px}
  #promptModal .prompt-editor-subtitle-v219,
  #promptViewModal .prompt-detail-subtitle-v219{font-size:11.5px}
  #promptModal .prompt-editor-body-v219,
  #promptViewModal .prompt-detail-body-v219{padding:12px!important}
  #promptModal .prompt-editor-section-v219{padding:14px;border-radius:16px}
  #promptModal .prompt-editor-section-head-v219{display:block;margin-bottom:12px}
  #promptModal .prompt-required-note-v219{margin-top:8px}
  #promptModal .prompt-editor-grid-v219{grid-template-columns:1fr;gap:13px}
  #promptModal .prompt-template-composer-v219 .prompt-placeholder-toolbar{display:block}
  #promptModal .prompt-template-composer-v219 .prompt-placeholder-picker{grid-template-columns:minmax(0,1fr) auto;margin-top:10px}
  #promptModal .prompt-template-composer-v219 .prompt-template-editor{min-height:230px!important}
  #promptModal .prompt-editor-foot-v219{position:sticky;bottom:0;display:grid!important;grid-template-columns:1fr!important;padding:12px 14px calc(12px + env(safe-area-inset-bottom))!important}
  #promptModal .prompt-editor-foot-left-v219{display:grid;grid-template-columns:1fr 1fr;gap:8px;order:2}
  #promptModal .prompt-editor-save-v219{width:100%;order:1;min-height:46px}
  #promptModal .prompt-editor-foot-left-v219 .btn{width:100%}
  #promptViewModal .prompt-detail-grid-v219{grid-template-columns:1fr}
  #promptViewModal .prompt-detail-template-head-v219{align-items:flex-start;flex-direction:column}
  #promptViewModal .prompt-detail-template-meta-v219{justify-content:flex-start}
  #promptViewModal .prompt-detail-template-body-v219{max-height:42dvh}
  #promptViewModal .prompt-detail-foot-v219{padding:12px 14px calc(12px + env(safe-area-inset-bottom))!important}
  #promptViewModal .prompt-detail-close-v219{width:100%}
  #managementActionModal.prompt-delete-state-v219,
  #managementUnsavedModal.prompt-unsaved-state-v219{align-items:flex-end!important;padding:0!important}
  #managementActionModal .prompt-delete-dialog-v219,
  #managementUnsavedModal .prompt-unsaved-dialog-v219{width:100%;border-radius:22px 22px 0 0;border-left:0;border-right:0;border-bottom:0}
  #managementActionModal .prompt-delete-dialog-v219 .management-confirm-head,
  #managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-head{padding:18px 16px 15px}
  #managementActionModal .prompt-delete-dialog-v219 .management-confirm-body,
  #managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-body{padding:15px 16px 17px}
  #managementActionModal .prompt-delete-dialog-v219 .management-confirm-foot{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  #managementActionModal .prompt-delete-dialog-v219 .management-confirm-foot .btn{width:100%;min-height:44px;margin:0!important}
  #managementUnsavedModal .prompt-unsaved-preview-v219{grid-template-columns:1fr 1fr}
  #managementUnsavedModal .prompt-unsaved-preview-main-v219{grid-column:1/-1}
  #managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-foot{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  #managementUnsavedModal.prompt-unsaved-state-v219 #managementUnsavedSaveBtn{grid-column:1/-1;grid-row:1;width:100%;min-height:46px}
  #managementUnsavedModal.prompt-unsaved-state-v219 #managementUnsavedStayBtn{margin:0!important;width:100%;grid-column:1;grid-row:2}
  #managementUnsavedModal.prompt-unsaved-state-v219 #managementUnsavedDiscardBtn{width:100%;grid-column:2;grid-row:2}
}
@media(max-width:420px){
  #promptModal .prompt-editor-heading-v219,
  #promptViewModal .prompt-detail-heading-v219{gap:10px}
  #promptModal .prompt-editor-subtitle-v219,
  #promptViewModal .prompt-detail-subtitle-v219{display:none}
  #promptModal .prompt-editor-foot-left-v219{grid-template-columns:1fr}
  #managementActionModal .prompt-delete-dialog-v219 .management-confirm-foot{grid-template-columns:1fr}
  #managementUnsavedModal .prompt-unsaved-preview-v219{grid-template-columns:1fr}
  #managementUnsavedModal .prompt-unsaved-preview-main-v219{grid-column:auto}
  #managementUnsavedModal.prompt-unsaved-state-v219 .listing-unsaved-foot{grid-template-columns:1fr}
  #managementUnsavedModal.prompt-unsaved-state-v219 #managementUnsavedSaveBtn,
  #managementUnsavedModal.prompt-unsaved-state-v219 #managementUnsavedStayBtn,
  #managementUnsavedModal.prompt-unsaved-state-v219 #managementUnsavedDiscardBtn{grid-column:1;grid-row:auto}
}


/* ========================================================================== */
/* RankDesk UI v008.2.20 — Add Prompt Template UI + field tooltips (UI only)  */
/* ========================================================================== */
#promptModal.is-adding-prompt-v220 .prompt-editor-head-v219{
  background:linear-gradient(135deg,#fbfaff 0%,#fff 62%,#f5f2ff 100%);
}
#promptModal.is-adding-prompt-v220 .prompt-editor-icon-v219{
  border-color:#d8d2ff;
  background:linear-gradient(145deg,#f5f2ff 0%,#e9e4ff 100%);
  box-shadow:0 10px 24px rgba(105,89,239,.14);
}
#promptModal .prompt-create-guide-v220{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 14px;
  padding:15px 16px;
  border:1px solid #e4e0fb;
  border-radius:18px;
  background:linear-gradient(135deg,#fff 0%,#faf9ff 55%,#f4f1ff 100%);
  box-shadow:0 8px 24px rgba(63,54,130,.045);
}
#promptModal.is-adding-prompt-v220 .prompt-create-guide-v220{display:flex}
#promptModal .prompt-create-guide-intro-v220{min-width:190px;max-width:245px}
#promptModal .prompt-create-guide-kicker-v220{
  display:block;
  margin-bottom:4px;
  color:#7567f4;
  font-size:10px;
  line-height:1.3;
  font-weight:650;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#promptModal .prompt-create-guide-intro-v220 strong{
  display:block;
  color:#303543;
  font-size:14px;
  line-height:1.4;
  font-weight:600;
}
#promptModal .prompt-create-guide-steps-v220{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  flex:1;
}
#promptModal .prompt-create-step-v220{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:9px 10px;
  border:1px solid rgba(225,222,244,.92);
  border-radius:13px;
  background:rgba(255,255,255,.82);
}
#promptModal .prompt-create-step-v220>span{
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f0edff;
  color:#6657e8;
  font-size:11px;
  font-weight:700;
}
#promptModal .prompt-create-step-v220>div{min-width:0}
#promptModal .prompt-create-step-v220 strong{
  display:block;
  color:#454b59;
  font-size:11px;
  line-height:1.35;
  font-weight:600;
}
#promptModal .prompt-create-step-v220 small{
  display:block;
  margin-top:2px;
  color:#8a92a3;
  font-size:10px;
  line-height:1.35;
  font-weight:400;
}
#promptModal.is-adding-prompt-v220 .prompt-editor-field-v219{
  padding:13px;
  border:1px solid #e8eaf1;
  border-radius:15px;
  background:#fcfcfe;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
#promptModal.is-adding-prompt-v220 .prompt-editor-field-v219:focus-within{
  border-color:#d7d1fb;
  background:#fff;
  box-shadow:0 8px 20px rgba(72,61,142,.055);
}
#promptModal .prompt-field-label-row-v220,
#promptModal .prompt-placeholder-title-row-v220{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  min-width:0;
}
#promptModal .prompt-field-label-row-v220>label,
#promptModal .prompt-template-label-row-v220>label{margin-bottom:7px!important}
#promptModal .prompt-template-label-row-v220{margin-bottom:0}
#promptModal .prompt-template-label-row-v220 .prompt-field-tooltip-v220{margin-bottom:7px}
#promptModal .prompt-placeholder-title-row-v220{gap:5px}
#promptModal .prompt-field-tooltip-v220{
  position:relative;
  z-index:1600;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}
#promptModal .prompt-field-tooltip-trigger-v220{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:7px;
  background:#f1efff;
  color:#6657e8;
  cursor:help;
  transition:background .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease;
}
#promptModal .prompt-field-tooltip-trigger-v220:hover,
#promptModal .prompt-field-tooltip-trigger-v220:focus-visible,
#promptModal .prompt-field-tooltip-v220.is-open .prompt-field-tooltip-trigger-v220{
  outline:none;
  background:#7567f4;
  color:#fff;
  box-shadow:0 0 0 3px rgba(117,103,244,.12);
  transform:translateY(-1px);
}
#promptModal .prompt-field-tooltip-trigger-v220 svg{width:13px;height:13px}
#promptModal .prompt-field-tooltip-bubble-v220{
  position:fixed;
  z-index:2600;
  display:block;
  width:280px;
  max-width:calc(100vw - 24px);
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:#282b37;
  color:#fff;
  font-size:12px;
  line-height:1.5;
  font-weight:400;
  text-align:left;
  box-shadow:0 18px 42px rgba(24,27,40,.25);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(4px);
  transition:opacity .13s ease,visibility .13s ease,transform .13s ease;
}
#promptModal .prompt-field-tooltip-v220.is-open .prompt-field-tooltip-bubble-v220{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
#promptModal.is-adding-prompt-v220 .prompt-instructions-section-v219{
  border-color:#e2def8;
  box-shadow:0 8px 24px rgba(63,54,130,.045);
}
#promptModal.is-adding-prompt-v220 .prompt-template-composer-v219{
  border-color:#ded9fa!important;
  box-shadow:0 6px 18px rgba(75,63,150,.04)!important;
}
#promptModal.is-adding-prompt-v220 .prompt-template-composer-v219:focus-within{
  border-color:#bfb6f5!important;
  box-shadow:0 0 0 3px rgba(117,103,244,.08)!important;
}
@media(max-width:900px){
  #promptModal .prompt-create-guide-v220{align-items:flex-start;display:none;flex-direction:column;gap:11px}
  #promptModal.is-adding-prompt-v220 .prompt-create-guide-v220{display:flex}
  #promptModal .prompt-create-guide-intro-v220{max-width:none}
  #promptModal .prompt-create-guide-steps-v220{width:100%}
}
@media(max-width:700px){
  #promptModal .prompt-create-guide-v220{padding:13px;border-radius:16px}
  #promptModal .prompt-create-guide-steps-v220{grid-template-columns:1fr;gap:7px}
  #promptModal .prompt-create-step-v220{padding:8px 9px}
  #promptModal.is-adding-prompt-v220 .prompt-editor-field-v219{padding:12px}
  #promptModal .prompt-field-tooltip-bubble-v220{font-size:12px;line-height:1.45}
}
@media(prefers-reduced-motion:reduce){
  #promptModal .prompt-field-tooltip-trigger-v220,
  #promptModal .prompt-field-tooltip-bubble-v220{transition:none!important}
}


/* RankDesk UI v008.2.21 — Prompt field label row alignment fix (UI only) */
#promptModal .prompt-field-label-row-v221{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  min-height:20px;
  margin:0 0 7px!important;
  text-align:left!important;
}
#promptModal .prompt-field-label-row-v221>.prompt-field-label-v221{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:calc(100% - 28px)!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  gap:4px!important;
  white-space:nowrap!important;
  line-height:20px!important;
  text-align:left!important;
}
#promptModal .prompt-field-label-text-v221{
  display:inline!important;
  flex:0 1 auto!important;
  min-width:0;
  white-space:nowrap!important;
}
#promptModal .prompt-field-required-v221{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  color:var(--bad)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1!important;
  vertical-align:middle!important;
}
#promptModal .prompt-field-label-row-v221>.prompt-field-tooltip-v220{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  margin:0!important;
}
@media(max-width:700px){
  #promptModal .prompt-field-label-row-v221{
    flex-wrap:nowrap!important;
  }
  #promptModal .prompt-field-label-row-v221>.prompt-field-label-v221{
    max-width:calc(100% - 28px)!important;
  }
}


/* RankDesk UI v008.2.22 — hard one-line labels in both Add and Edit Prompt Template */
#promptModal .prompt-control-label-v222{
  display:grid!important;
  grid-template-columns:max-content max-content 20px!important;
  grid-template-rows:20px!important;
  align-items:center!important;
  justify-content:start!important;
  column-gap:5px!important;
  width:100%!important;
  min-width:0!important;
  min-height:20px!important;
  margin:0 0 7px!important;
  padding:0!important;
  text-align:left!important;
  white-space:nowrap!important;
}
#promptModal .prompt-control-label-v222>label{
  grid-column:1!important;
  grid-row:1!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  color:#4d5565!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:20px!important;
  text-align:left!important;
  white-space:nowrap!important;
}
#promptModal .prompt-control-label-v222>.prompt-control-required-v222{
  grid-column:2!important;
  grid-row:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  height:20px!important;
  margin:0!important;
  padding:0!important;
  color:var(--bad)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:20px!important;
  white-space:nowrap!important;
}
#promptModal .prompt-control-label-v222>.prompt-field-tooltip-v220{
  grid-column:3!important;
  grid-row:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:20px!important;
  height:20px!important;
  margin:0!important;
  padding:0!important;
  align-self:center!important;
}
#promptModal .prompt-control-label-v222 .prompt-field-tooltip-trigger-v220{
  width:20px!important;
  height:20px!important;
  margin:0!important;
}
@media(max-width:700px){
  #promptModal .prompt-control-label-v222{
    grid-template-columns:max-content max-content 20px!important;
    width:100%!important;
  }
}


/* ========================================================================== */
/* RankDesk UI v008.2.24 — Prompt Template tooltip clean placement (UI only)  */
/* ========================================================================== */
#promptModal .prompt-field-tooltip-bubble-v220{
  --prompt-tooltip-arrow-x:50%;
  box-sizing:border-box!important;
  width:286px;
  max-width:calc(100vw - 24px)!important;
  padding:10px 12px!important;
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:11px!important;
  background:#292c38!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.45!important;
  letter-spacing:0!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  box-shadow:0 16px 38px rgba(22,25,38,.23)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(3px) scale(.985)!important;
  transform-origin:var(--prompt-tooltip-arrow-x) bottom;
}
#promptModal .prompt-field-tooltip-bubble-v220::after{
  content:'';
  position:absolute;
  left:var(--prompt-tooltip-arrow-x);
  width:10px;
  height:10px;
  background:#292c38;
  border-right:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
#promptModal .prompt-field-tooltip-bubble-v220[data-placement="top"]::after{
  bottom:-6px;
  transform:translateX(-50%) rotate(45deg);
}
#promptModal .prompt-field-tooltip-bubble-v220[data-placement="bottom"]::after{
  top:-6px;
  transform:translateX(-50%) rotate(225deg);
}
#promptModal .prompt-field-tooltip-v220.is-open.is-positioned .prompt-field-tooltip-bubble-v220{
  opacity:1!important;
  visibility:visible!important;
  transform:translateY(0) scale(1)!important;
}
#promptModal .prompt-template-control-label-v223{
  position:relative;
  z-index:2;
}
#promptModal .prompt-instructions-section-v219,
#promptModal .prompt-editor-body-v219,
#promptModal .prompt-editor-modal-v219{
  overflow:visible;
}
#promptModal .prompt-editor-body-v219{
  overflow-y:auto!important;
  overflow-x:visible!important;
}
@media(max-width:700px){
  #promptModal .prompt-field-tooltip-bubble-v220{
    width:min(268px,calc(100vw - 24px))!important;
    padding:9px 11px!important;
  }
}


/* ========================================================================== */
/* RankDesk UI v008.2.25 — Prompt Templates target badge fix (UI only)        */
/* ========================================================================== */
#appView.management-page .prompt-table-v2 td:nth-child(2){
  min-width:0;
}
#appView.management-page .prompt-table-target-badge-v225{
  display:inline-grid!important;
  grid-template-columns:6px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center!important;
  column-gap:7px!important;
  row-gap:2px;
  width:auto;
  max-width:100%;
  min-height:30px;
  padding:7px 10px!important;
  border-radius:12px!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.2!important;
  vertical-align:middle;
}
#appView.management-page .prompt-table-target-badge-v225:before{
  grid-column:1;
  grid-row:1 / span 2;
  align-self:center;
  margin:0!important;
}
#appView.management-page .prompt-table-target-badge-v225 .prompt-target-kind-v225{
  grid-column:2;
  min-width:0;
  display:block;
  color:inherit;
  font-size:12px;
  font-weight:600;
  line-height:1.25;
  overflow-wrap:anywhere;
}
#appView.management-page .prompt-table-target-badge-v225 .prompt-target-detail-v225{
  grid-column:2;
  min-width:0;
  display:-webkit-box;
  color:inherit;
  font-size:11px;
  font-weight:500;
  line-height:1.25;
  opacity:.82;
  overflow:hidden;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
#appView.management-page .prompt-table-target-badge-v225.is-single-line{
  grid-template-rows:auto;
  border-radius:999px!important;
}
#appView.management-page .prompt-table-target-badge-v225.is-single-line:before{
  grid-row:1;
}
#appView.management-page .prompt-table-target-badge-v225.is-single-line .prompt-target-kind-v225{
  white-space:normal;
}
#appView.management-page .prompt-row-v2 td:nth-child(2){
  overflow:visible;
}
#appView.management-page .prompt-mobile-badges .prompt-table-target-badge-v225{
  max-width:100%;
}
@media(max-width:720px){
  #appView.management-page .prompt-mobile-badges{
    align-items:flex-start!important;
  }
  #appView.management-page .prompt-mobile-badges .prompt-table-target-badge-v225{
    width:100%;
  }
  #appView.management-page .prompt-mobile-badges .prompt-table-target-badge-v225 .prompt-target-detail-v225{
    display:block;
    overflow:visible;
    -webkit-line-clamp:unset;
  }
}


/* ========================================================================== */
/* RankDesk UI v008.2.26 — compact single-line Description Section target     */
/* ========================================================================== */
#appView.management-page .prompt-table-target-badge-v226{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  width:auto;
  max-width:100%;
  min-width:0;
  min-height:30px;
  padding:7px 10px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.2!important;
  vertical-align:middle;
}
#appView.management-page .prompt-table-target-badge-v226:before{
  flex:0 0 auto;
  margin:0!important;
}
#appView.management-page .prompt-table-target-badge-v226 .prompt-target-single-v226{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:inherit;
  font-size:12px;
  font-weight:600;
  line-height:1.25;
}
#appView.management-page .prompt-mobile-badges .prompt-table-target-badge-v226{
  max-width:100%;
}
@media(max-width:720px){
  #appView.management-page .prompt-mobile-badges .prompt-table-target-badge-v226{
    width:100%;
  }
}

/* ==========================================================
   RankDesk v008.2.27 — Prompt Template Details summary cards
   UI-only: target, action and updated metadata presentation
   ========================================================== */
#promptViewModal .prompt-detail-grid-v227{
  grid-template-columns:minmax(0,1.35fr) minmax(180px,.75fr) minmax(210px,.9fr)!important;
  gap:12px!important;
}
#promptViewModal .prompt-detail-card-v227{
  min-height:104px;
  padding:14px 15px!important;
  border-color:#e4e7ef!important;
  border-radius:17px!important;
  background:linear-gradient(180deg,#fff 0%,#fcfcfe 100%)!important;
  box-shadow:0 7px 20px rgba(35,40,58,.035);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:13px;
  overflow:hidden;
}
#promptViewModal .prompt-detail-card-label-v227{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:#7c8598;
  font-size:11px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}
#promptViewModal .prompt-detail-card-icon-v227{
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:grid;
  place-items:center;
  border:1px solid #e4e1ff;
  border-radius:8px;
  background:#f5f3ff;
  color:#6c5bef;
}
#promptViewModal .prompt-detail-card-icon-v227 svg{width:13px;height:13px}
#promptViewModal .prompt-detail-card-value-v227{min-width:0;display:flex;align-items:center}
#promptViewModal .prompt-detail-target-v227{
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
#promptViewModal .prompt-detail-target-code-v227{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:26px;
  padding:0 8px;
  border-radius:9px;
  background:#eafaf4;
  color:#07835e;
  font-size:11px;
  font-weight:700;
  letter-spacing:.03em;
}
#promptViewModal .prompt-detail-target-v227.is-seo .prompt-detail-target-code-v227{background:#efedff;color:#6554ec}
#promptViewModal .prompt-detail-target-v227.is-alt .prompt-detail-target-code-v227{background:#fff5df;color:#a66800}
#promptViewModal .prompt-detail-target-v227.is-file .prompt-detail-target-code-v227{background:#edf7ff;color:#0b6a9d}
#promptViewModal .prompt-detail-target-v227.is-other .prompt-detail-target-code-v227{background:#f0f2f6;color:#697184}
#promptViewModal .prompt-detail-target-name-v227{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#252b38;
  font-size:14px;
  line-height:1.35;
  font-weight:600;
}
#promptViewModal .prompt-detail-action-chip-v227{
  display:inline-flex;
  align-items:center;
  gap:7px;
  width:max-content;
  max-width:100%;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:10px;
  font-size:12px;
  line-height:1;
  font-weight:600;
}
#promptViewModal .prompt-detail-action-chip-v227 svg{width:14px;height:14px;flex:0 0 14px}
#promptViewModal .prompt-detail-action-chip-v227.is-generate{background:#eafaf3;border-color:#d1f2e3;color:#077d58}
#promptViewModal .prompt-detail-action-chip-v227.is-fix{background:#fff5df;border-color:#f7e3b8;color:#996300}
#promptViewModal .prompt-detail-date-v227{min-width:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
#promptViewModal .prompt-detail-date-v227 strong{
  color:#252b38;
  font-size:14px;
  line-height:1.35;
  font-weight:600;
  white-space:nowrap;
}
#promptViewModal .prompt-detail-date-v227 span{
  color:#7b8496;
  font-size:12px;
  line-height:1.3;
  font-weight:500;
  white-space:nowrap;
}
@media(max-width:900px){
  #promptViewModal .prompt-detail-grid-v227{grid-template-columns:1fr 1fr!important}
  #promptViewModal .prompt-detail-card-v227.is-target{grid-column:1/-1}
}
@media(max-width:620px){
  #promptViewModal .prompt-detail-grid-v227{grid-template-columns:1fr!important;gap:10px!important}
  #promptViewModal .prompt-detail-card-v227.is-target{grid-column:auto}
  #promptViewModal .prompt-detail-card-v227{min-height:94px;padding:13px 14px!important}
  #promptViewModal .prompt-detail-target-name-v227{font-size:13px}
}



/* ==========================================================
   RankDesk v008.2.29 — Prompt Template Details compact cards
   UI-only: reduce label-to-value vertical spacing
   ========================================================== */
#promptViewModal .prompt-detail-card-v227{
  min-height:88px!important;
  padding:12px 14px!important;
  justify-content:flex-start!important;
  gap:8px!important;
}
#promptViewModal .prompt-detail-card-value-v227,
#promptViewModal .prompt-detail-date-v227{
  margin-top:0!important;
}
@media(max-width:620px){
  #promptViewModal .prompt-detail-card-v227{
    min-height:82px!important;
    padding:12px 13px!important;
    gap:7px!important;
  }
}
