* {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 30px 15px;
            background: #f4f6f8;
            font-family: Arial, sans-serif;
            color: #202124;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
        }

        h1 {
            margin-bottom: 5px;
        }

        .subtitle {
            color: #666;
            margin-top: 0;
            margin-bottom: 25px;
        }

        .upload-card,
        .card {
            background: white;
            border-radius: 14px;
            padding: 22px;
            margin-bottom: 20px;
            box-shadow: 0 3px 15px rgba(0,0,0,.06);
        }

        input[type="file"] {
            width: 100%;
            padding: 15px;
            border: 2px dashed #bbb;
            border-radius: 10px;
            background: #fafafa;
        }

        #fileName {
            margin-top: 12px;
            font-weight: bold;
        }

        button {
            border: none;
            border-radius: 9px;
            padding: 13px 22px;
            font-size: 16px;
            cursor: pointer;
        }

        #analyzeButton {
            margin-top: 15px;
            background: #111827;
            color: white;
        }

        #wordButton {
            margin-top: 15px;
            margin-left: 8px;
            background: #2563eb;
            color: white;
            display: none;
        }

        button:disabled {
            opacity: .6;
            cursor: wait;
        }

        #status,
        #chatStatus {
            margin-top: 15px;
            font-weight: bold;
        }

        .ai-header {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .ai-result {
            background: #f8fafc;
            border: 1px solid #e1e5e9;
            border-radius: 12px;
            padding: 20px;
        }

        .field {
            margin-bottom: 18px;
        }

        .field-title {
            font-weight: bold;
            font-size: 17px;
            margin-bottom: 7px;
        }

        .value {
            line-height: 1.6;
            white-space: pre-wrap;
        }

        .list-item {
            padding: 10px 12px;
            margin: 7px 0;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            line-height: 1.5;
        }

        .risk {
            padding: 13px;
            margin: 8px 0;
            border-radius: 9px;
            background: #fff4f4;
            border: 1px solid #f1caca;
            line-height: 1.5;
        }

        .json-object {
            margin-top: 10px;
            padding-left: 15px;
            border-left: 3px solid #e5e7eb;
        }

        .empty {
            color: #777;
        }

        pre {
            white-space: pre-wrap;
            word-break: break-word;
            line-height: 1.55;
        }

        .page {
            padding: 18px;
            background: #fafafa;
            border: 1px solid #ddd;
            border-radius: 10px;
            margin-top: 12px;
        }

        .page-title {
            font-weight: bold;
            margin-bottom: 10px;
        }

        .error {
            color: #b00020;
        }

        .success {
            color: #167a3f;
        }

        /* ==============================
           ЧАТ
        ============================== */

        #documentChat {
            display: none;
        }

        #chatMessages {
            max-height: 500px;
            overflow-y: auto;
            padding: 10px;
            background: #f8fafc;
            border: 1px solid #e1e5e9;
            border-radius: 12px;
        }

        .chat-message {
            margin: 10px 0;
            padding: 12px 15px;
            border-radius: 12px;
            line-height: 1.55;
        }

        .chat-user {
            background: #e8f0fe;
            margin-left: 15%;
        }

        .chat-ai {
            background: white;
            border: 1px solid #e5e7eb;
            margin-right: 15%;
        }

        .chat-role {
            font-weight: bold;
            margin-bottom: 5px;
        }

        .chat-text {
            white-space: pre-wrap;
            word-break: break-word;
        }

        #chatInput {
            width: 100%;
            min-height: 90px;
            margin-top: 12px;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 10px;
            resize: vertical;
            font-family: Arial, sans-serif;
            font-size: 15px;
        }

        #chatSendButton {
            margin-top: 10px;
            background: #111827;
            color: white;
        }

        #chatSendButton:hover {
            background: #1f2937;
        }

        #chatSendButton:disabled {
            opacity: .6;
        }


        /* ==============================
           ПРОФЕССИОНАЛЬНАЯ ПАНЕЛЬ РИСКОВ
        ============================== */
        .brand { display:flex; align-items:center; gap:12px; margin-bottom:4px; }
        .brand-mark { width:44px; height:44px; border-radius:13px; display:grid; place-items:center; background:#111827; color:#fff; font-size:23px; box-shadow:0 6px 18px rgba(17,24,39,.18); }
        .hero-subtitle { margin:0 0 25px 56px; color:#667085; }
        .risk-dashboard { margin-bottom:20px; }
        .risk-top { display:grid; grid-template-columns:250px 1fr; gap:18px; }
        .risk-score { border-radius:20px; padding:22px; color:white; background:#111827; min-height:205px; display:flex; flex-direction:column; justify-content:space-between; box-shadow:0 12px 30px rgba(17,24,39,.12); }
        .risk-score .small { font-size:13px; opacity:.78; }
        .risk-score .number { font-size:58px; font-weight:850; line-height:1; margin:8px 0 4px; }
        .risk-score .label { font-size:18px; font-weight:750; }
        .risk-meter { height:7px; border-radius:99px; background:rgba(255,255,255,.18); overflow:hidden; margin-top:12px; }
        .risk-meter span { display:block; height:100%; width:0; background:#fff; border-radius:99px; transition:width .4s ease; }
        .risk-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
        .risk-stat { background:#fff; border:1px solid #e6eaf0; border-radius:15px; padding:18px; min-height:92px; }
        .risk-stat strong { display:block; font-size:28px; margin-bottom:3px; }
        .risk-stat span { color:#667085; font-size:13px; line-height:1.35; }
        .risk-stat small { display:block; color:#98a2b3; margin-top:7px; font-size:11px; }
        .risk-summary-note { grid-column:1/-1; background:#f8fafc; border:1px solid #e4e7ec; border-radius:15px; padding:15px 17px; line-height:1.55; color:#344054; }
        .risk-summary-note strong { display:inline; font-size:14px; }
        .risk-section { margin-top:20px; }
        .risk-section h3 { margin:0 0 10px; font-size:17px; }
        .risk-section-subtitle { color:#667085; font-size:13px; margin:-4px 0 12px; }
        .risk-card { border:1px solid #ead0d0; background:#fff8f8; border-radius:15px; padding:16px 17px; margin:10px 0; }
        .risk-card.medium { border-color:#eadfbe; background:#fffcf2; }
        .risk-card.low { border-color:#cfe4d7; background:#f5fbf7; }
        .risk-card-title { font-weight:750; margin-bottom:7px; line-height:1.4; }
        .risk-card-text { color:#475467; line-height:1.5; font-size:14px; }
        .risk-action { margin-top:10px; padding-top:10px; border-top:1px dashed #e4e7ec; color:#344054; font-size:13px; line-height:1.5; }
        .risk-action strong { color:#111827; }
        .risk-badge { display:inline-block; font-size:10px; font-weight:800; letter-spacing:.02em; padding:4px 8px; border-radius:999px; margin-right:7px; background:#fee4e2; vertical-align:1px; }
        .risk-card.medium .risk-badge { background:#fef0c7; }
        .risk-card.low .risk-badge { background:#dcfae6; }
        .risk-category { display:inline-block; margin-left:5px; font-size:11px; color:#667085; font-weight:600; }
        .risk-fix-btn { margin-top:12px; border:1px solid #c7d7f5; background:#f5f8ff; color:#2457a6; border-radius:10px; padding:9px 12px; font-weight:650; cursor:pointer; font-size:13px; }
        .risk-fix-btn:hover { background:#eaf1ff; }
        .correction-modal { position:fixed; inset:0; background:rgba(15,23,42,.48); display:none; align-items:center; justify-content:center; z-index:9999; padding:20px; }
        .correction-modal.open { display:flex; }
        .correction-dialog { width:min(760px,100%); max-height:88vh; overflow:auto; background:#fff; border-radius:18px; box-shadow:0 24px 70px rgba(0,0,0,.22); padding:24px; }
        .correction-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:16px; }
        .correction-title { font-size:20px; font-weight:800; }
        .correction-close { border:0; background:#f2f4f7; width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:20px; }
        .correction-risk { padding:12px 14px; background:#f8fafc; border-radius:12px; margin-bottom:16px; line-height:1.5; }
        .correction-loading { padding:18px; text-align:center; color:#667085; }
        .correction-result { display:none; }
        .correction-label { font-size:12px; color:#667085; font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin:16px 0 7px; }
        .correction-text { white-space:pre-wrap; line-height:1.6; padding:15px; background:#f8fafc; border:1px solid #e4e7ec; border-radius:12px; }
        .correction-note { font-size:12px; color:#667085; margin-top:12px; line-height:1.5; }
        .privacy-box { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 16px; margin-top:18px; background:#f8fafc; border:1px solid #e4e7ec; border-radius:13px; }
        .privacy-box label { display:flex; align-items:center; gap:10px; font-weight:600; }
        .privacy-box input { width:18px; height:18px; }
        .disclaimer { margin-top:14px; padding:12px 14px; border-radius:10px; background:#f9fafb; color:#667085; font-size:12px; line-height:1.5; }

        .law-check-card { margin-top:20px; border:1px solid #dbe4f0; background:#fbfdff; border-radius:16px; padding:18px; }
        .law-check-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
        .law-check-button { background:#0f766e; color:#fff; font-weight:700; }
        .law-check-button:hover { background:#115e59; }
        .law-check-button:disabled { opacity:.6; cursor:wait; }
        .law-status { margin-top:10px; color:#475467; font-size:13px; line-height:1.5; }
        .law-warning { margin-top:14px; padding:13px 14px; border-radius:11px; background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; line-height:1.5; }
        .law-meta { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
        .law-chip { padding:6px 9px; border-radius:999px; background:#eef2ff; color:#3730a3; font-size:11px; font-weight:700; }
        .law-source { margin-top:10px; padding:13px; background:#fff; border:1px solid #e4e7ec; border-radius:12px; }
        .law-source-title { font-weight:750; line-height:1.4; }
        .law-source-note { margin-top:5px; color:#667085; font-size:12px; line-height:1.45; }
        .law-source-link { display:inline-block; margin-top:9px; color:#175cd3; font-size:13px; font-weight:650; text-decoration:none; }
        .law-source-link:hover { text-decoration:underline; }
        /* ===== Аккуратная юридическая проверка ===== */
        .legal-report-shell{display:grid;gap:14px;margin-top:14px}
        .legal-report-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 14px;border:1px solid #e4e7ec;border-radius:12px;background:#f8fafc;color:#475467;font-size:13px;line-height:1.45}
        .legal-report-card{border:1px solid #e4e7ec;border-radius:14px;background:#fff;padding:16px 17px;box-shadow:0 2px 8px rgba(16,24,40,.04)}
        .legal-report-card h3{margin:0 0 10px;font-size:16px;line-height:1.35;color:#101828}
        .legal-report-card h4{margin:14px 0 8px;font-size:14px;color:#344054}
        .legal-report-text{white-space:pre-wrap;line-height:1.62;color:#344054;font-size:14px}
        .legal-report-list{margin:8px 0 0;padding-left:20px;color:#344054}
        .legal-report-list li{margin:7px 0;line-height:1.55}
        .legal-law-grid{display:grid;gap:10px;margin-top:10px}
        .legal-law-item{border:1px solid #eaecf0;border-radius:12px;padding:13px 14px;background:#fcfcfd}
        .legal-law-item-title{font-weight:750;color:#101828;line-height:1.4}
        .legal-law-item-status{display:inline-block;margin-top:7px;padding:4px 8px;border-radius:999px;background:#eef4ff;color:#3538cd;font-size:12px;font-weight:700}
        .legal-law-item-note{margin-top:8px;color:#475467;font-size:13px;line-height:1.55}
        .legal-report-source{border:1px solid #e4e7ec;border-radius:12px;background:#fff;padding:12px 14px}
        .legal-report-source a{font-weight:700;color:#175cd3;text-decoration:none}.legal-report-source a:hover{text-decoration:underline}
        .legal-report-source small{display:block;margin-top:5px;color:#667085}
        .legal-report-quote{margin:10px 0;padding:10px 12px;border-left:3px solid #98a2b3;background:#f9fafb;border-radius:8px;color:#475467;font-size:13px;line-height:1.55}

        .law-disclaimer { margin-top:14px; padding:12px 14px; border-radius:10px; background:#f2f4f7; color:#667085; font-size:12px; line-height:1.5; }

        .analysis-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
        .analysis-grid .field { background:#fff; border:1px solid #e7eaf0; border-radius:12px; padding:15px; margin:0; }
        .analysis-grid .field-title { font-size:14px; color:#475467; }
        @media (max-width:700px) { .risk-top{grid-template-columns:1fr}.risk-summary{grid-template-columns:1fr 1fr}.analysis-grid{grid-template-columns:1fr}.hero-subtitle{margin-left:0}.brand-mark{width:40px;height:40px}.risk-score .number{font-size:44px} }

        @media (max-width: 700px) {

            .chat-user,
            .chat-ai {
                margin-left: 0;
                margin-right: 0;
            }

            #wordButton {
                margin-left: 0;
                margin-top: 10px;
            }
        }

        /* Главный экран DocMind */
        body {padding:0;}
        .app-shell {min-height:100vh;}
        .sidebar {position:fixed;inset:0 auto 0 0;width:238px;background:white;border-right:1px solid #eaecf0;padding:24px 16px;}
        .side-brand {display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;margin-bottom:30px;}
        .side-mark {background:#111827;color:white;border-radius:12px;padding:8px;}
        .side-nav {display:grid;gap:8px;}
        .side-nav button {background:white;text-align:left;padding:12px;font-size:14px;}

        .side-nav button:hover { background:#f2f4f7; }
        .side-bottom { position:absolute; left:16px; right:16px; bottom:20px; color:#98a2b3; font-size:12px; line-height:1.5; }
        .main { margin-left:238px; width:calc(100% - 238px); }
        .topbar { height:68px; background:#fff; border-bottom:1px solid #eaecf0; display:flex; align-items:center; justify-content:space-between; padding:0 34px; }
        .topbar-title { font-size:14px; color:#667085; }
        .topbar-badge { font-size:12px; padding:7px 10px; border-radius:999px; background:#f2f4f7; color:#475467; }
        .main-content { max-width:1120px; margin:0 auto; padding:48px 34px 70px; }
        .hero { max-width:760px; margin-bottom:30px; }
        .hero h1 { font-size:42px; line-height:1.08; letter-spacing:-1.4px; margin:0 0 12px; }
        .hero p { color:#667085; font-size:17px; line-height:1.55; margin:0; }
        .quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:0 0 18px; }
        .quick-card { background:#fff; border:1px solid #eaecf0; border-radius:16px; padding:20px; text-align:left; box-shadow:0 2px 8px rgba(16,24,40,.03); }
        .quick-card strong { display:block; font-size:16px; margin-bottom:5px; }
        .quick-card span { display:block; color:#667085; font-size:13px; line-height:1.45; }
        .quick-card:hover { border-color:#cfd4dc; transform:translateY(-1px); }
        .problem-card, .upload-card { background:#fff; border:1px solid #eaecf0; border-radius:18px; padding:22px; box-shadow:0 3px 12px rgba(16,24,40,.04); margin-bottom:18px; }
        .section-label { font-size:13px; font-weight:750; color:#344054; margin-bottom:9px; }
        #problemInput { width:100%; min-height:82px; resize:vertical; border:1px solid #d0d5dd; border-radius:12px; padding:13px; font:inherit; outline:none; }
        #problemInput:focus { border-color:#98a2b3; box-shadow:0 0 0 3px rgba(16,24,40,.06); }
        .problem-actions { display:flex; justify-content:flex-end; margin-top:10px; }
        .secondary-action { background:#111827; color:#fff; padding:11px 16px; }
        .upload-card { border:1.5px dashed #cbd5e1; text-align:center; padding:30px; }
        .upload-zone-title { font-size:18px; font-weight:750; margin-bottom:6px; }
        .upload-zone-subtitle { color:#667085; font-size:13px; margin-bottom:16px; }
        #documentUpload { display:none; }
        .upload-trigger { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:#111827; color:#fff; border-radius:10px; padding:12px 18px; cursor:pointer; font-size:15px; font-weight:700; }
        #fileName { margin-top:14px; font-size:14px; color:#344054; }
        #analyzeButton { background:#111827; color:#fff; }
        #wordButton { background:#fff; color:#344054; border:1px solid #d0d5dd; }
        .upload-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
        #status { color:#667085; }
        #analysisResult { margin-top:26px; }
        @media (max-width:850px) { .sidebar{display:none}.main{margin-left:0;width:100%}.quick-grid{grid-template-columns:1fr}.topbar{padding:0 18px}.main-content{padding:32px 18px}.hero h1{font-size:34px}.topbar-title{display:none} }

        /* ===== Новый компактный результат ===== */
        .tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0 20px}
        .tool-card{border:1px solid #e4e7ec;background:#fff;border-radius:14px;padding:17px;text-align:left;cursor:pointer;box-shadow:0 2px 8px rgba(16,24,40,.04);transition:.18s}
        .tool-card:hover{transform:translateY(-2px);border-color:#98a2b3;box-shadow:0 6px 18px rgba(16,24,40,.08)}
        .tool-card strong{display:block;font-size:15px;margin-bottom:6px}.tool-card span{display:block;color:#667085;font-size:13px;line-height:1.45}
        .result-hub{background:#fff;border:1px solid #e4e7ec;border-radius:18px;padding:22px;margin-bottom:18px}
        .result-hub h2{margin:0 0 5px}.result-hub-sub{color:#667085;margin-bottom:16px}.result-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
        .result-action{padding:15px 16px;border:1px solid #d0d5dd;background:#fff;border-radius:12px;text-align:left;font-weight:700;cursor:pointer}.result-action:hover{background:#f8fafc}
        .result-action small{display:block;color:#667085;font-weight:400;margin-top:4px}
        .result-detail{display:none!important}
        .result-modal{display:none;position:fixed;inset:0;z-index:9999}.result-modal.open{display:block}.result-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.52);backdrop-filter:blur(2px)}
        .result-modal-window{position:relative;width:min(920px,calc(100% - 28px));max-height:calc(100vh - 28px);overflow:auto;margin:14px auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.25)}
        .result-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #eaecf0;background:#fff}.result-modal-head h2{margin:0;font-size:20px}.result-modal-close{width:38px;height:38px;padding:0;border:1px solid #d0d5dd;background:#fff;font-size:26px;line-height:1}.result-modal-body{padding:20px}.result-modal-body>.card,.result-modal-body>.law-check-card{margin:0;box-shadow:none;border:0;padding:0}.result-modal-body .result-detail{display:block!important}
        @media(max-width:850px){.tools-grid{grid-template-columns:1fr 1fr}.result-actions{grid-template-columns:1fr}}
        @media(max-width:600px){.tools-grid{grid-template-columns:1fr}}
    
        .legal-fix-button{display:none;background:#7c3aed;color:#fff;font-weight:800;border:0;border-radius:10px;padding:11px 15px;cursor:pointer;margin-top:14px}
        .legal-fix-button:hover{background:#6d28d9}.legal-fix-button:disabled{opacity:.6;cursor:wait}
        .legal-fix-panel{display:none;margin-top:16px;border:1px solid #e4e7ec;border-radius:14px;padding:16px;background:#fff}
        .legal-fix-summary{padding:12px 14px;background:#f5f3ff;border-radius:10px;line-height:1.55;margin-bottom:12px}
        .legal-fix-change{border:1px solid #eaecf0;border-radius:12px;padding:13px;margin-top:10px}
        .legal-fix-change strong{display:block;margin-bottom:6px}.legal-fix-text{white-space:pre-wrap;line-height:1.55;max-height:420px;overflow:auto;background:#f8fafc;padding:14px;border-radius:10px}
        .legal-fix-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.legal-fix-actions button{font-weight:750}
        #draftQuestions{margin:18px 0;padding:16px;border:1px solid #d0d5dd;border-radius:14px;background:#f8fafc}
        #draftQuestions label{display:block;font-weight:700;margin:0 0 14px;color:#344054}
        #draftQuestions label:last-child{margin-bottom:0}
        #draftQuestions textarea{display:block;width:100%;min-height:86px;margin-top:8px;padding:12px 13px;border:1px solid #cfd4dc;border-radius:10px;background:#fff;font:inherit;line-height:1.5;resize:vertical}
        #draftQuestions textarea:focus{outline:2px solid #98a2b3;outline-offset:1px;border-color:#98a2b3}
        .build-badge{font-size:11px;padding:6px 9px;border-radius:999px;background:#ecfdf3;color:#027a48;border:1px solid #abefc6;font-weight:700;white-space:nowrap}


        /* ===== SMART RESOLUTION — polished creator ===== */
        #composer.problem-card{padding:0;background:transparent;border:0;box-shadow:none}
        .creator-shell{background:#fff;border:1px solid #e6e9ef;border-radius:24px;overflow:hidden;box-shadow:0 18px 45px rgba(16,24,40,.08)}
        .creator-head{padding:26px 28px 22px;background:linear-gradient(135deg,#fbfcfe 0%,#f5f7fb 100%);border-bottom:1px solid #eaecf0}
        .creator-kicker{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#eef4ff;color:#3538cd;font-size:12px;font-weight:800;margin-bottom:10px}
        .creator-head h2{margin:0;font-size:28px;letter-spacing:-.5px}.creator-head p{margin:7px 0 0;color:#667085;max-width:720px;line-height:1.55}
        .creator-body{padding:26px 28px}.creator-section{padding:20px;border:1px solid #eaecf0;border-radius:18px;background:#fff;margin-bottom:16px}
        .creator-section-title{font-size:15px;font-weight:850;margin-bottom:4px;color:#101828}.creator-section-sub{font-size:13px;color:#667085;margin-bottom:16px;line-height:1.5}
        .creator-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.creator-field{display:flex;flex-direction:column;gap:7px}.creator-field.full{grid-column:1/-1}
        .creator-field label,.creator-label{font-size:13px;font-weight:750;color:#344054}
        #composer input:not([type=checkbox]),#composer select,#composer textarea{width:100%;border:1px solid #d0d5dd;border-radius:12px;background:#fff;padding:11px 12px;font:inherit;color:#101828;box-sizing:border-box;transition:.16s;box-shadow:0 1px 2px rgba(16,24,40,.03)}
        #composer input:not([type=checkbox]):focus,#composer select:focus,#composer textarea:focus{outline:0;border-color:#84adff;box-shadow:0 0 0 4px rgba(47,109,246,.10)}
        #composer textarea#problemInput{min-height:145px;resize:vertical;line-height:1.55}
        .creator-check{display:flex;gap:10px;align-items:flex-start;padding:12px 13px;border:1px solid #eaecf0;border-radius:12px;background:#f8fafc;font-size:13px;color:#475467;line-height:1.45}.creator-check input{margin-top:2px}
        .creator-help{font-size:12px;color:#98a2b3;line-height:1.45;margin-top:8px}
        #autoTypeResult{border-color:#b2ccff!important;background:#f5f8ff!important;color:#1849a9;font-size:13px;line-height:1.5}
        #problemButton{width:100%;margin-top:14px;padding:13px 18px;border-radius:12px;font-weight:850;font-size:15px;background:#155eef;color:#fff;border:0;box-shadow:0 6px 16px rgba(21,94,239,.22)}
        #problemButton:hover{background:#004eeb;transform:translateY(-1px)}
        #composerStatus{padding:0;margin:12px 2px 0;color:#475467;font-size:13px;line-height:1.5}
        #draftNotes{font-size:13px;color:#667085;line-height:1.5;margin:10px 0}
        #draftResult{margin-top:18px}
        .document-workspace.consultation-workspace{grid-template-columns:1fr!important}
        .document-workspace.consultation-workspace .editor-card textarea{min-height:320px}
        .document-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.8fr);gap:18px;align-items:start}
        .editor-card,.preview-card{border:1px solid #e4e7ec;border-radius:18px;background:#fff;overflow:hidden}
        .editor-head,.preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #eaecf0;background:#f9fafb}
        .editor-head strong,.preview-head strong{font-size:14px}.mini-badge{font-size:11px;color:#667085;background:#fff;border:1px solid #e4e7ec;border-radius:999px;padding:5px 8px}
        #draftText{border:0!important;border-radius:0!important;box-shadow:none!important;min-height:520px!important;padding:18px!important;line-height:1.6!important;resize:vertical}
        .preview-wrap{padding:18px;background:#eef1f5;max-height:720px;overflow:auto}
        .a4-preview{width:100%;max-width:520px;min-height:690px;margin:0 auto;background:#fff;box-shadow:0 6px 20px rgba(16,24,40,.13);padding:42px 34px 48px;box-sizing:border-box;color:#111;font-family:"Times New Roman",Times,serif;font-size:13px;line-height:1.5}
        .a4-head{width:56%;margin-left:auto;white-space:pre-wrap;min-height:95px}.a4-title{text-align:center;font-weight:700;text-transform:uppercase;margin:28px 0 20px;font-size:14px}.a4-body{white-space:pre-wrap;text-align:justify;text-indent:24px}.a4-footer{display:flex;justify-content:space-between;gap:20px;margin-top:38px}.a4-muted{color:#8a8a8a}
        #printDetails{margin-top:18px!important;padding:20px!important;border:1px solid #e4e7ec!important;border-radius:18px!important;background:#fff!important}
        .print-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.print-title-row strong{font-size:15px}.print-title-row span{font-size:12px;color:#667085}
        .print-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.print-grid label{font-size:13px;font-weight:750;color:#344054}
        .print-grid label input{margin-top:7px!important}
        .final-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important;margin-top:14px!important}.final-actions button{padding:13px 16px;border-radius:12px;font-weight:800}
        #draftFinalCheck{background:#fff;color:#344054;border:1px solid #d0d5dd}#draftFinalCheck:hover{background:#f9fafb}
        #draftWord{background:#155eef;color:#fff;border:1px solid #155eef}#draftWord:hover{background:#004eeb}
        .ready-note{display:flex;gap:9px;align-items:flex-start;margin-top:12px;padding:11px 13px;border-radius:12px;background:#ecfdf3;color:#05603a;font-size:12px;line-height:1.5;border:1px solid #abefc6}
        #draftQuestions{border-radius:18px;padding:18px;background:#f8fafc;border-color:#e4e7ec}
        #draftQuestions textarea{min-height:92px}
        #draftResearchReport{margin-top:14px}
        @media(max-width:920px){.document-workspace{grid-template-columns:1fr}.preview-wrap{max-height:none}.creator-grid,.print-grid,.final-actions{grid-template-columns:1fr}.creator-field.full{grid-column:auto}.a4-preview{min-height:620px}.creator-body,.creator-head{padding-left:18px;padding-right:18px}}



        /* Маршрут дела после консультации: локальные CaseRouter/FullFlow, без дополнительного API */
        .case-route-card{margin:18px 0 0;border:1px solid #d9e2f0;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border-radius:16px;padding:18px;box-shadow:0 2px 10px rgba(16,24,40,.04)}
        .case-route-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
        .case-route-title{font-size:17px;font-weight:800;color:#101828}
        .case-route-sub{font-size:12px;color:#667085;line-height:1.45;margin-top:4px}
        .case-route-badges{display:flex;gap:7px;flex-wrap:wrap}
        .case-route-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;background:#eef4ff;color:#3538cd}
        .case-route-badge.urgent{background:#fff4e5;color:#9a3412}
        .case-route-badge.critical{background:#fee4e2;color:#b42318}
        .case-route-badge.normal{background:#ecfdf3;color:#027a48}
        .case-route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
        .case-route-cell{background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:12px 13px}
        .case-route-cell b{display:block;font-size:11px;color:#667085;text-transform:uppercase;letter-spacing:.03em;margin-bottom:5px}
        .case-route-cell span{font-size:14px;color:#101828;line-height:1.4}
        .case-route-steps{margin-top:8px;padding-top:12px;border-top:1px solid #eaecf0}
        .case-route-steps strong{font-size:13px;color:#344054}
        .case-route-steps ul{margin:8px 0 0 18px;padding:0;color:#475467;font-size:13px;line-height:1.5}
        .case-route-steps li{margin:5px 0}
        .case-route-note{margin-top:10px;font-size:11px;line-height:1.45;color:#667085}
        .case-progress{margin-top:14px;padding-top:14px;border-top:1px solid #eaecf0}
        .case-progress-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
        .case-progress-head strong{font-size:13px;color:#344054}.case-progress-head span{font-size:11px;color:#667085}
        .case-progress-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
        .case-progress-item{position:relative;min-height:92px;border:1px solid #e4e7ec;border-radius:12px;background:#fff;padding:12px}
        .case-progress-item.done{background:#f6fef9;border-color:#abefc6}.case-progress-item.active{background:#eef4ff;border-color:#b2ccff;box-shadow:0 0 0 1px rgba(21,94,239,.04)}
        .case-progress-index{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:50%;background:#f2f4f7;color:#475467;font-size:11px;font-weight:800;margin-bottom:8px}
        .case-progress-item.done .case-progress-index{background:#d1fadf;color:#027a48}.case-progress-item.active .case-progress-index{background:#d1e9ff;color:#175cd3}
        .case-progress-item b{display:block;font-size:12px;color:#101828;margin-bottom:4px}.case-progress-item p{margin:0;font-size:11px;line-height:1.4;color:#667085}
        @media (max-width:700px){.case-route-grid{grid-template-columns:1fr}.case-progress-track{grid-template-columns:1fr 1fr}}
        @media (max-width:480px){.case-progress-track{grid-template-columns:1fr}}

        .decision-card{margin-top:20px;border:1px solid #dbe4f0;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border-radius:18px;padding:20px}
        .decision-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
        .decision-head h2{margin:0 0 6px;font-size:22px}.decision-sub{color:#667085;font-size:14px;line-height:1.55}
        .decision-summary{padding:14px 16px;border-radius:12px;background:#f2f4f7;color:#344054;line-height:1.6;margin:12px 0}
        .decision-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 16px}
        .decision-meta>div{background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:12px}.decision-meta b{display:block;font-size:12px;color:#667085;margin-bottom:5px}.decision-meta span{font-size:14px;color:#101828}
        .decision-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.decision-option{background:#fff;border:1px solid #d0d5dd;border-radius:14px;padding:16px;box-shadow:0 2px 8px rgba(16,24,40,.04)}
        .decision-option-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.decision-option h3{margin:0;font-size:17px}.decision-priority{font-size:11px;font-weight:700;padding:5px 8px;border-radius:999px;background:#eef4ff;color:#3538cd;white-space:nowrap}
        .decision-option p{margin:10px 0;color:#475467;font-size:13px;line-height:1.55}.decision-option small{display:block;color:#667085;line-height:1.5;margin-top:8px}
        .decision-action{width:100%;margin-top:12px;background:#155eef;color:#fff;border:1px solid #155eef;font-weight:700}.decision-action:hover{background:#004eeb}.decision-action:disabled{opacity:.6;cursor:wait}
        .decision-recommended{grid-column:1/-1;border:2px solid #12b76a;background:linear-gradient(180deg,#f6fef9 0%,#ecfdf3 100%);box-shadow:0 8px 24px rgba(18,183,106,.12)}.decision-recommended .decision-priority{background:#d1fadf;color:#027a48}.decision-recommended-banner{font-size:12px;font-weight:800;color:#027a48;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}.decision-reason{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff;border:1px solid #abefc6;color:#05603a;font-size:13px;line-height:1.5}.decision-status{font-size:13px;color:#667085}.decision-empty{padding:14px;border:1px dashed #d0d5dd;border-radius:12px;color:#667085;background:#fff}
        @media(max-width:760px){.decision-options,.decision-meta{grid-template-columns:1fr}}

        /* ===== PROFESSIONAL RESULT V1 ===== */
        .quick-grid{grid-template-columns:repeat(4,1fr)}
        .quick-card.primary-entry{border-color:#d0d5dd;min-height:132px;display:flex;flex-direction:column;justify-content:space-between}
        .quick-card .entry-icon{font-size:24px;margin-bottom:12px}
        .quick-card .entry-cta{margin-top:14px;font-size:12px;color:#475467;font-weight:700}
        .pro-summary{background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);border:1px solid #dfe3e8;border-radius:20px;padding:24px;margin-bottom:18px;box-shadow:0 8px 26px rgba(16,24,40,.05)}
        .pro-summary-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.pro-summary-head h2{margin:0 0 5px;font-size:24px}.pro-summary-head p{margin:0;color:#667085;line-height:1.5}
        .pro-badge{border-radius:999px;padding:7px 11px;background:#ecfdf3;color:#067647;font-size:12px;font-weight:800;white-space:nowrap}
        .pro-summary-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:12px}.pro-box{border:1px solid #eaecf0;border-radius:14px;background:#fff;padding:16px}.pro-box h3{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#667085;margin:0 0 8px}.pro-box .pro-main{font-size:16px;line-height:1.5;font-weight:650;color:#101828}.pro-box .pro-text{font-size:14px;line-height:1.55;color:#344054}.pro-list{margin:8px 0 0;padding-left:18px;color:#344054;font-size:14px;line-height:1.55}.pro-deadline{font-weight:800;color:#b42318}.pro-deadline.safe{color:#067647}.pro-summary-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.pro-summary-actions button{margin:0}.pro-muted{color:#667085;font-size:13px;line-height:1.5}
        .seo-route-note{display:none}
        @media(max-width:1000px){.quick-grid{grid-template-columns:repeat(2,1fr)}.pro-summary-grid{grid-template-columns:1fr 1fr}.pro-summary-grid .pro-box:first-child{grid-column:1/-1}}
        @media(max-width:650px){.quick-grid{grid-template-columns:1fr}.pro-summary-grid{grid-template-columns:1fr}.pro-summary-grid .pro-box:first-child{grid-column:auto}.pro-summary-head{display:block}.pro-badge{display:inline-block;margin-top:10px}}


        /* ===== PROFESSIONAL V2: МОИ ДЕЛА ===== */
        .cases-panel{margin:0 0 22px;background:#fff;border:1px solid #e4e7ec;border-radius:20px;padding:22px;box-shadow:0 8px 24px rgba(16,24,40,.05)}
        .cases-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}.cases-head h2{margin:0 0 6px;font-size:24px}.cases-head p{margin:0;color:#667085;line-height:1.5}.cases-note{font-size:12px;color:#667085;background:#f8fafc;border:1px solid #eaecf0;border-radius:10px;padding:9px 11px;max-width:380px}
        .cases-list{display:grid;gap:12px}.case-card{display:grid;grid-template-columns:1fr auto;gap:16px;border:1px solid #e4e7ec;border-radius:15px;padding:16px;background:#fff}.case-card:hover{border-color:#b2ccff;box-shadow:0 4px 14px rgba(21,94,239,.07)}
        .case-title{font-size:16px;font-weight:800;color:#101828;margin-bottom:5px}.case-meta{display:flex;gap:8px;flex-wrap:wrap;color:#667085;font-size:12px}.case-pill{padding:4px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-weight:700}.case-actions{display:flex;gap:8px;align-items:center}.case-actions button{margin:0;padding:9px 12px;font-size:13px}.case-delete{background:#fff!important;color:#b42318!important;border:1px solid #fecdca!important}.cases-empty{padding:24px;text-align:center;border:1px dashed #d0d5dd;border-radius:14px;color:#667085;background:#fcfcfd}.cases-status{font-size:13px;color:#667085;margin-top:10px}
        .cases-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 16px}.cases-search{flex:1 1 280px;min-width:220px;padding:11px 13px;border:1px solid #d0d5dd;border-radius:12px;background:#fff;font-size:14px;color:#101828}.cases-sort-wrap{display:flex;align-items:center;gap:7px}.cases-sort-label{font-size:12px;color:#667085;font-weight:700;white-space:nowrap}.cases-sort{padding:9px 34px 9px 11px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#344054;font-size:12px;font-weight:700;cursor:pointer;min-width:170px}.cases-sort:focus{outline:2px solid #b2ccff;outline-offset:1px}.cases-filters{display:flex;gap:7px;flex-wrap:wrap}.cases-filter{margin:0!important;padding:8px 11px!important;border-radius:999px!important;background:#fff!important;color:#475467!important;border:1px solid #d0d5dd!important;font-size:12px!important;font-weight:700}.cases-filter.active{background:#eff4ff!important;color:#1849a9!important;border-color:#84adff!important}.case-archive{background:#fff!important;color:#475467!important;border:1px solid #d0d5dd!important}.case-card.archived{opacity:.72;background:#f9fafb}.case-title-sub{font-size:12px;color:#98a2b3;margin-top:4px;word-break:break-word}.case-last-action{margin-top:8px;padding:8px 10px;border-radius:10px;background:#f8fafc;border:1px solid #eaecf0;font-size:12px;line-height:1.45;color:#475467}.case-last-action b{color:#344054}.case-last-action time{color:#98a2b3;margin-left:6px;white-space:nowrap}.cases-summary{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:0 0 16px}.cases-summary-card{border:1px solid #e4e7ec;border-radius:14px;padding:13px 14px;background:#fff;min-width:0}.cases-summary-card strong{display:block;font-size:22px;line-height:1;color:#101828;margin-bottom:6px}.cases-summary-card span{display:block;font-size:11px;font-weight:750;color:#475467;line-height:1.3}.cases-summary-card.attention{background:#fff8f1;border-color:#fed7aa}.cases-summary-card.waiting{background:#fffbeb;border-color:#fde68a}.cases-summary-card.draft{background:#f8fafc}.cases-summary-card.completed{background:#ecfdf3;border-color:#abefc6}.cases-summary-card.archived{background:#f2f4f7}.cases-summary-card.active{background:#f5f8ff;border-color:#b2ccff}.cases-summary-card.total{background:#fff}.cases-summary-card[data-summary-filter]{cursor:pointer}.cases-summary-card[data-summary-filter]:hover{box-shadow:0 4px 14px rgba(21,94,239,.07);border-color:#84adff}.cases-summary-card.is-selected{outline:2px solid #84adff;outline-offset:1px}.cases-recent{margin:0 0 16px;border:1px solid #e4e7ec;border-radius:16px;background:#fcfcfd;overflow:hidden}.cases-recent-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #eaecf0;background:#fff}.cases-recent-head strong{display:block;font-size:14px;color:#101828}.cases-recent-head span{display:block;margin-top:3px;font-size:11px;line-height:1.4;color:#667085}.cases-recent-list{display:grid}.cases-recent-item{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;width:100%;padding:11px 14px;border:0;border-bottom:1px solid #eaecf0;border-radius:0;background:#fff;text-align:left;color:#344054}.cases-recent-item:last-child{border-bottom:0}.cases-recent-item:hover{background:#f8fafc}.cases-recent-dot{width:9px;height:9px;border-radius:50%;background:#155eef;box-shadow:0 0 0 4px #eef4ff}.cases-recent-main{min-width:0}.cases-recent-title{font-size:12px;font-weight:800;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cases-recent-event{margin-top:3px;font-size:12px;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cases-recent-meta{font-size:11px;color:#98a2b3;white-space:nowrap}.cases-recent-empty{padding:16px;color:#667085;font-size:12px}.cases-deadline-overview{margin:0 0 16px;border:1px solid #e4e7ec;border-radius:16px;background:#fff;overflow:hidden}.cases-deadline-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #eaecf0;background:#fff}.cases-deadline-head strong{display:block;font-size:14px;color:#101828}.cases-deadline-head span{display:block;margin-top:3px;font-size:11px;line-height:1.4;color:#667085}.cases-deadline-list{display:grid}.cases-deadline-row{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;width:100%;padding:11px 14px;border:0;border-bottom:1px solid #eaecf0;border-radius:0;background:#fff;text-align:left}.cases-deadline-row:last-child{border-bottom:0}.cases-deadline-row:hover{background:#f8fafc}.cases-deadline-badge{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:5px 8px;border-radius:999px;background:#eef4ff;color:#175cd3;font-size:10px;font-weight:800}.cases-deadline-badge.overdue{background:#fee4e2;color:#b42318}.cases-deadline-badge.today{background:#fff4e5;color:#9a3412}.cases-deadline-badge.soon{background:#fff7e6;color:#b54708}.cases-deadline-main{min-width:0}.cases-deadline-title{display:block;font-size:12px;font-weight:800;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cases-deadline-note{display:block;margin-top:3px;font-size:11px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cases-deadline-date{font-size:11px;color:#475467;font-weight:700;white-space:nowrap}.cases-deadline-empty{padding:16px;color:#667085;font-size:12px}.cases-waiting-overview{margin:0 0 16px;border:1px solid #e4e7ec;border-radius:16px;background:#fff;overflow:hidden}.cases-waiting-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #eaecf0;background:#fff}.cases-waiting-head strong{display:block;font-size:14px;color:#101828}.cases-waiting-head span{display:block;margin-top:3px;font-size:11px;line-height:1.4;color:#667085}.cases-waiting-list{display:grid}.cases-waiting-row{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;width:100%;padding:11px 14px;border:0;border-bottom:1px solid #eaecf0;border-radius:0;background:#fff;text-align:left}.cases-waiting-row:last-child{border-bottom:0}.cases-waiting-row:hover{background:#f8fafc}.cases-waiting-badge{display:inline-flex;align-items:center;justify-content:center;min-width:82px;padding:5px 8px;border-radius:999px;background:#fffbeb;color:#b54708;font-size:10px;font-weight:800}.cases-waiting-main{min-width:0}.cases-waiting-title{display:block;font-size:12px;font-weight:800;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cases-waiting-note{display:block;margin-top:3px;font-size:11px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cases-waiting-meta{font-size:11px;color:#475467;font-weight:700;white-space:nowrap}.cases-waiting-empty{padding:16px;color:#667085;font-size:12px}.cases-attention-overview{margin:0 0 16px;border:1px solid #fecdca;border-radius:16px;background:#fff;overflow:hidden}.cases-attention-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #fecdca;background:#fffafa}.cases-attention-head strong{display:block;font-size:14px;color:#b42318}.cases-attention-head span{display:block;margin-top:3px;font-size:11px;line-height:1.4;color:#667085}.cases-attention-list{display:grid}.cases-attention-row{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;width:100%;padding:11px 14px;border:0;border-bottom:1px solid #f2d6d3;border-radius:0;background:#fff;text-align:left}.cases-attention-row:last-child{border-bottom:0}.cases-attention-row:hover{background:#fffafa}.cases-attention-badge{display:inline-flex;align-items:center;justify-content:center;min-width:84px;padding:5px 8px;border-radius:999px;background:#fee4e2;color:#b42318;font-size:10px;font-weight:800}.cases-attention-badge.today{background:#fff4e5;color:#9a3412}.cases-attention-badge.soon{background:#fff7e6;color:#b54708}.cases-attention-badge.urgent{background:#fff4e5;color:#9a3412}.cases-attention-badge.critical{background:#fee4e2;color:#b42318}.cases-attention-main{min-width:0}.cases-attention-title{display:block;font-size:12px;font-weight:800;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cases-attention-note{display:block;margin-top:3px;font-size:11px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cases-attention-meta{font-size:11px;color:#475467;font-weight:700;white-space:nowrap}.cases-attention-empty{padding:16px;color:#667085;font-size:12px}@media(max-width:1100px){.cases-summary{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.cases-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}.cases-count{font-size:12px;color:#667085;margin-left:auto}.case-pill.waiting{background:#fff7e6;color:#b54708}.case-pill.archived{background:#f2f4f7;color:#667085}.case-pill.overdue{background:#fee4e2;color:#b42318}.case-pill.today{background:#fff4e5;color:#9a3412}.case-pill.soon{background:#fff7e6;color:#b54708}.case-pill.attention{background:#fef0c7;color:#93370d}.case-card.overdue{border-color:#fda29b;background:#fffafa}.case-card.today{border-color:#fec84b;background:#fffdf5}.case-doc-item{display:flex;align-items:center;justify-content:space-between;gap:12px}.case-doc-main{min-width:0}.case-doc-open{margin:0!important;padding:7px 10px!important;font-size:12px!important;white-space:nowrap;background:#fff!important;color:#1849a9!important;border:1px solid #b2ccff!important}
        .return-loop{margin-top:16px;border:1px solid #d1e9ff;background:linear-gradient(180deg,#f5faff 0%,#eff8ff 100%);border-radius:18px;padding:18px}
        .return-loop h3{margin:0 0 6px;font-size:18px;color:#101828}.return-loop p{margin:0;color:#475467;line-height:1.55}.return-loop-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.return-loop-actions button{margin:0}.return-loop-secondary{background:#fff!important;color:#344054!important;border:1px solid #d0d5dd!important}.return-loop-sent{margin-top:14px;padding:13px 14px;border:1px solid #abefc6;background:#ecfdf3;border-radius:12px;color:#05603a;line-height:1.5}.return-loop-sent strong{display:block;margin-bottom:4px}.return-loop-upload{background:#155eef!important;color:#fff!important;border:1px solid #155eef!important}
        .case-timeline-panel{margin:16px 0 22px;border:1px solid #d9e2f0;background:#fff;border-radius:18px;padding:20px;box-shadow:0 6px 18px rgba(16,24,40,.05)}
        .case-timeline-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:16px}.case-timeline-head h2{margin:0 0 5px;font-size:21px}.case-timeline-head p{margin:0;color:#667085;font-size:13px;line-height:1.45}.case-timeline-close{margin:0;background:#fff!important;color:#344054!important;border:1px solid #d0d5dd!important;padding:8px 11px!important;font-size:12px!important}
        .case-timeline{position:relative;margin-left:8px}.case-timeline:before{content:"";position:absolute;left:9px;top:9px;bottom:9px;width:2px;background:#e4e7ec}.case-timeline-item{position:relative;padding:0 0 18px 34px}.case-timeline-item:last-child{padding-bottom:0}.case-timeline-dot{position:absolute;left:2px;top:4px;width:16px;height:16px;border-radius:50%;background:#fff;border:4px solid #155eef;box-sizing:border-box}.case-timeline-item.done .case-timeline-dot{border-color:#12b76a}.case-timeline-item.urgent .case-timeline-dot{border-color:#f79009}.case-timeline-item.critical .case-timeline-dot{border-color:#d92d20}.case-timeline-date{font-size:11px;color:#98a2b3;margin-bottom:2px}.case-timeline-title{font-size:14px;font-weight:800;color:#101828}.case-timeline-text{font-size:13px;color:#475467;line-height:1.45;margin-top:3px}.case-timeline-empty{color:#667085;font-size:13px;padding:8px 0}.case-timeline-caption{font-size:12px;color:#667085;line-height:1.45;margin:2px 0 12px}.case-timeline-topline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:2px}.case-timeline-kind{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.case-timeline-item.critical .case-timeline-kind{background:#fee4e2;color:#b42318}.case-timeline-item.urgent .case-timeline-kind{background:#fff4e5;color:#9a3412}.case-timeline-item.done .case-timeline-kind{background:#ecfdf3;color:#067647}.case-timeline-title{margin-top:2px}.case-timeline-item.created .case-timeline-dot{border-color:#667085}
        @media(max-width:700px){.cases-head{display:block}.cases-note{margin-top:12px;max-width:none}.case-card{grid-template-columns:1fr}.case-actions{justify-content:flex-start}.cases-sort-wrap{width:100%}.cases-sort{flex:1;min-width:0}.cases-recent-item{grid-template-columns:auto 1fr}.cases-recent-meta{grid-column:2;white-space:normal}.cases-recent-head{display:block}.cases-deadline-row{grid-template-columns:1fr}.cases-deadline-head{display:block}.cases-deadline-date{white-space:normal}.cases-waiting-row{grid-template-columns:1fr}.cases-waiting-head{display:block}.cases-waiting-meta{white-space:normal}.cases-attention-row{grid-template-columns:1fr}.cases-attention-head{display:block}.cases-attention-meta{white-space:normal}}



        /* ===== PROFESSIONAL V6: ЕДИНЫЙ ЭКРАН ДЕЛА ===== */
        .case-workspace{margin:0 0 22px;background:#fff;border:1px solid #d9e2f0;border-radius:22px;padding:24px;box-shadow:0 10px 30px rgba(16,24,40,.07)}
        .case-workspace-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}.case-workspace-head h2{margin:0 0 7px;font-size:25px}.case-workspace-sub{color:#667085;font-size:13px;line-height:1.5}.case-workspace-actions{display:flex;gap:9px;flex-wrap:wrap}.case-workspace-actions button{margin:0}
        .case-workspace-status{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0}.case-workspace-badge{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eef4ff;color:#3538cd;font-size:11px;font-weight:800}.case-workspace-badge.urgent{background:#fff4e5;color:#9a3412}.case-workspace-badge.critical{background:#fee4e2;color:#b42318}.case-workspace-badge.safe{background:#ecfdf3;color:#067647}
        .case-workspace-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.case-summary-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:0 0 16px}.case-summary-item{border:1px solid #eaecf0;border-radius:12px;background:#f8fafc;padding:11px 12px;min-width:0}.case-summary-item b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.035em;color:#667085;margin-bottom:5px}.case-summary-item span{display:block;font-size:12px;font-weight:750;color:#101828;line-height:1.4;word-break:break-word}.case-summary-item.attention{background:#fff7ed;border-color:#fed7aa}.case-summary-item.waiting{background:#fffbeb;border-color:#fde68a}.case-summary-item.done{background:#ecfdf3;border-color:#abefc6}.case-summary-item.archived{background:#f2f4f7}.case-save-history{margin-top:14px;border:1px solid #eaecf0;border-radius:14px;background:#fcfcfd;overflow:hidden}.case-save-history summary{cursor:pointer;list-style:none;padding:13px 15px;font-size:13px;font-weight:800;color:#344054;background:#fff}.case-save-history summary::-webkit-details-marker{display:none}.case-save-history summary:after{content:"▾";float:right;color:#98a2b3}.case-save-history[open] summary:after{content:"▴"}.case-save-history-list{border-top:1px solid #eaecf0}.case-save-history-row{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:10px 14px;border-bottom:1px solid #eaecf0;font-size:12px;line-height:1.45}.case-save-history-row:last-child{border-bottom:0}.case-save-history-time{color:#667085;white-space:nowrap}.case-save-history-reason{color:#344054;font-weight:650}.case-save-history-empty{padding:12px 14px;color:#667085;font-size:12px}.case-workspace-box{border:1px solid #eaecf0;background:#fcfcfd;border-radius:14px;padding:14px}.case-workspace-box b{display:block;text-transform:uppercase;letter-spacing:.035em;color:#667085;font-size:10px;margin-bottom:6px}.case-workspace-box span{display:block;color:#101828;font-size:14px;line-height:1.45;font-weight:650}
        .case-workspace-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}.case-workspace-section{border:1px solid #eaecf0;border-radius:16px;padding:17px;background:#fff}.case-workspace-section h3{margin:0 0 10px;font-size:16px;color:#101828}.case-workspace-text{font-size:13px;line-height:1.6;color:#475467;white-space:pre-wrap}.case-doc-list{display:grid;gap:8px}.case-doc-item{padding:11px 12px;border-radius:11px;background:#f8fafc;border:1px solid #eaecf0;font-size:13px;color:#344054}.case-doc-item b{color:#101828}.case-facts{display:flex;flex-wrap:wrap;gap:8px}.case-fact{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:999px;background:#f8fafc;border:1px solid #eaecf0;font-size:12px;line-height:1.25;color:#344054}.case-fact b{color:#101828}.case-facts-note{margin-top:10px;font-size:12px;line-height:1.5;color:#667085}.case-facts-warning{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:12px;line-height:1.5}
        .case-position{display:grid;gap:10px}.case-position-main{padding:13px 14px;border:1px solid #d0d5dd;border-radius:12px;background:#f8fafc;font-size:13px;line-height:1.6;color:#344054}.case-position-main strong{display:block;color:#101828;font-size:14px;margin-bottom:4px}.case-position-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.case-position-card{padding:11px 12px;border:1px solid #eaecf0;border-radius:11px;background:#fff}.case-position-card b{display:block;margin-bottom:5px;font-size:12px;color:#667085}.case-position-card span{display:block;font-size:12px;line-height:1.45;color:#344054}.case-position-card.next{background:#f0f9ff;border-color:#bae6fd}.case-position-card.wait{background:#fffbeb;border-color:#fde68a}@media(max-width:800px){.case-position-grid{grid-template-columns:1fr}}
        .case-access-note{margin-top:16px;padding:12px 13px;border-radius:12px;background:#f8fafc;border:1px solid #eaecf0;color:#667085;font-size:12px;line-height:1.5}.case-access-note.guest{background:#fffaeb;border-color:#fedf89;color:#7a2e0e}.case-access-note button{margin:8px 0 0;padding:8px 11px;font-size:12px}
        .case-deadlines{display:grid;gap:9px}.case-deadline-item{padding:12px 13px;border-radius:12px;border:1px solid #eaecf0;background:#f8fafc}.case-deadline-item strong{display:block;font-size:13px;color:#101828;margin-bottom:4px}.case-deadline-item span{display:block;font-size:12px;line-height:1.5;color:#475467}.case-deadline-item.attention{background:#fffbeb;border-color:#fde68a}.case-deadline-item.urgent{background:#fff4ed;border-color:#fed7aa}.case-deadline-note{font-size:11px;line-height:1.45;color:#667085;margin-top:7px}.case-control-date{margin-top:10px;padding:12px 13px;border-radius:12px;border:1px solid #b2ccff;background:#f5f8ff}.case-control-date strong{display:block;font-size:13px;color:#1849a9;margin-bottom:5px}.case-control-date span{display:block;font-size:13px;line-height:1.5;color:#344054}.case-control-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.case-control-actions button{margin:0!important;padding:7px 10px!important;font-size:12px!important}.case-control-clear{background:#fff!important;color:#667085!important;border:1px solid #d0d5dd!important}
        .case-change{display:grid;gap:9px}.case-change-card{padding:12px 13px;border-radius:12px;border:1px solid #eaecf0;background:#f8fafc}.case-change-card b{display:block;font-size:12px;color:#667085;margin-bottom:5px}.case-change-card span{display:block;font-size:13px;line-height:1.5;color:#344054;white-space:pre-wrap}.case-change-card.now{background:#f0f9ff;border-color:#bae6fd}.case-change-note{font-size:11px;line-height:1.45;color:#667085;margin-top:3px}.case-resolution{padding:14px 15px;border:1px solid #abefc6;background:#ecfdf3;border-radius:13px;color:#05603a;font-size:13px;line-height:1.55}.case-resolution b{display:block;color:#054f31;margin-bottom:5px}.case-resolution small{display:block;margin-top:7px;color:#477b62}.case-pill.completed{background:#ecfdf3;color:#067647}.case-card.completed{border-color:#abefc6}.case-workspace-timeline{margin-top:14px}.case-workspace-empty{color:#667085;font-size:13px;padding:8px 0}
        @media(max-width:950px){.case-workspace-grid{grid-template-columns:1fr 1fr}.case-workspace-columns{grid-template-columns:1fr}.case-summary-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:620px){.case-workspace-head{display:block}.case-workspace-actions{margin-top:12px}.case-workspace-grid{grid-template-columns:1fr}.case-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.case-save-history-row{grid-template-columns:1fr;gap:3px}.case-save-history-time{white-space:normal}.case-workspace{padding:17px}}

        /* ===== PROFESSIONAL V4: АККАУНТ ===== */
        .auth-top-button{margin:0;padding:8px 13px;border-radius:10px;border:1px solid #d0d5dd;background:#fff;color:#344054;font-weight:750;font-size:13px;white-space:nowrap}.auth-top-button:hover{background:#f9fafb;border-color:#98a2b3}
        .auth-modal{position:fixed;inset:0;z-index:12000;display:none;align-items:center;justify-content:center;padding:20px}.auth-modal.open{display:flex}.auth-backdrop{position:absolute;inset:0;background:rgba(16,24,40,.58);backdrop-filter:blur(3px)}
        .auth-dialog{position:relative;width:min(470px,100%);background:#fff;border-radius:22px;box-shadow:0 28px 80px rgba(16,24,40,.28);overflow:hidden}.auth-head{padding:22px 24px 12px;display:flex;justify-content:space-between;gap:16px}.auth-head h2{margin:0;font-size:24px}.auth-head p{margin:6px 0 0;color:#667085;font-size:14px;line-height:1.45}.auth-close{width:38px;height:38px;border-radius:10px;border:1px solid #e4e7ec;background:#fff;padding:0;font-size:24px;color:#667085}
        .auth-body{padding:8px 24px 24px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f2f4f7;border-radius:12px;padding:4px;margin-bottom:18px}.auth-tab{margin:0;border:0;background:transparent;color:#667085;padding:9px 10px;border-radius:9px;font-weight:750}.auth-tab.active{background:#fff;color:#101828;box-shadow:0 1px 4px rgba(16,24,40,.08)}
        .auth-form{display:grid;gap:12px}.auth-field label{display:block;font-size:13px;font-weight:750;color:#344054;margin-bottom:6px}.auth-field input{width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:11px;padding:11px 12px;font-size:15px}.auth-submit{margin:4px 0 0;width:100%;padding:12px 14px;border:0;border-radius:11px;background:#155eef;color:#fff;font-weight:800}.auth-status{min-height:20px;margin-top:10px;font-size:13px;color:#b42318}.auth-account{display:none}.auth-account.open{display:block}.auth-user-card{padding:16px;border:1px solid #e4e7ec;background:#f9fafb;border-radius:14px;margin-bottom:14px}.auth-user-name{font-size:18px;font-weight:800;color:#101828}.auth-user-email{font-size:13px;color:#667085;margin-top:4px}.auth-logout{width:100%;margin:0;background:#fff!important;color:#b42318!important;border:1px solid #fecdca!important}.auth-small{font-size:12px;color:#667085;line-height:1.5;margin-top:12px}.auth-provider-note{padding:11px 12px;border-radius:11px;background:#f8fafc;border:1px solid #eaecf0;color:#667085;font-size:12px;line-height:1.45;margin-top:14px}
        @media(max-width:700px){.build-badge{display:none}.auth-top-button{padding:7px 10px}.auth-dialog{border-radius:18px}}


        .case-no-result-route{margin-top:14px;padding:15px 16px;border:1px solid #fed7aa;background:#fffaf2;border-radius:14px;color:#344054}
        .case-no-result-route strong{display:block;color:#9a3412;margin-bottom:7px;font-size:13px}
        .case-no-result-route .route-primary{font-weight:750;color:#101828;line-height:1.5;margin-bottom:9px}
        .case-no-result-route ul{margin:7px 0 0 18px;padding:0;font-size:13px;line-height:1.5}
        .case-no-result-route li{margin:5px 0}
        .case-no-result-route small{display:block;margin-top:10px;color:#667085;line-height:1.45}
        .case-context-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px dashed #e4e7ec}
        .case-context-action{margin:0!important;padding:9px 12px!important;border-radius:10px!important;font-size:12px!important;font-weight:750!important;border:1px solid #d0d5dd!important;background:#fff!important;color:#344054!important}
        .case-context-action.primary{background:#155eef!important;color:#fff!important;border-color:#155eef!important}
        .case-context-action:hover{transform:translateY(-1px)}
        .case-work-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid #b2ccff;background:#f5f8ff;border-radius:14px;color:#344054}
        .case-work-context-main{min-width:0}.case-work-context-main b{display:block;font-size:12px;color:#1849a9;margin-bottom:3px}.case-work-context-title{font-size:13px;font-weight:800;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.case-work-context button{margin:0!important;padding:8px 11px!important;font-size:12px!important;background:#fff!important;color:#1849a9!important;border:1px solid #b2ccff!important;white-space:nowrap}
        @media(max-width:620px){.case-work-context{align-items:flex-start;flex-direction:column}.case-work-context-title{white-space:normal}.case-work-context button{width:100%}}

        /* ===== ACCOUNT MODES V12: простой пользователь / профессионал ===== */
        .account-type-label{font-size:13px;font-weight:750;color:#344054;margin-bottom:7px}
        .account-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
        .account-type-option{position:relative;display:block;cursor:pointer}
        .account-type-option input{position:absolute;opacity:0;pointer-events:none}
        .account-type-card{display:block;padding:12px;border:1px solid #d0d5dd;border-radius:12px;background:#fff;min-height:74px;transition:.15s}
        .account-type-card b{display:block;font-size:13px;color:#101828;margin-bottom:4px}.account-type-card span{display:block;font-size:11px;line-height:1.4;color:#667085}
        .account-type-option input:checked + .account-type-card{border-color:#84adff;background:#f5f8ff;box-shadow:0 0 0 2px rgba(21,94,239,.08)}
        .profile-mode-box{margin:12px 0;padding:13px;border:1px solid #e4e7ec;border-radius:13px;background:#fff}
        .profile-mode-box strong{display:block;font-size:13px;margin-bottom:7px}.profile-mode-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
        .profile-mode-button{margin:0!important;padding:9px 10px!important;background:#fff!important;color:#475467!important;border:1px solid #d0d5dd!important;font-size:12px!important;font-weight:750!important}
        .profile-mode-button.active{background:#eff4ff!important;color:#1849a9!important;border-color:#84adff!important}
        .cases-mode-chip{display:inline-flex;margin-top:7px;padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:11px;font-weight:750}
        .simple-case-state{display:none;margin-top:8px;font-size:12px;font-weight:800;color:#1849a9;background:#eff4ff;border-radius:999px;padding:5px 9px;width:max-content;max-width:100%}
        body.docmind-simple-user #casesPanel .cases-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
        body.docmind-simple-user #casesPanel .cases-summary-card.total,
        body.docmind-simple-user #casesPanel .cases-summary-card.active,
        body.docmind-simple-user #casesPanel .cases-summary-card.archived{display:none}
        body.docmind-simple-user #casesRecent,
        body.docmind-simple-user #casesDeadlineOverview{display:none}
        body.docmind-simple-user #casesPanel .cases-sort-wrap,
        body.docmind-simple-user #casesPanel .cases-filters{display:none}
        body.docmind-simple-user #casesPanel .case-meta,
        body.docmind-simple-user #casesPanel .case-last-action,
        body.docmind-simple-user #casesPanel .case-archive,
        body.docmind-simple-user #casesPanel .case-delete{display:none!important}
        body.docmind-simple-user #casesPanel .simple-case-state{display:inline-flex}
        body.docmind-simple-user #casesPanel .case-card{grid-template-columns:1fr auto;align-items:center;padding:17px}
        body.docmind-simple-user #casesPanel .case-actions button[data-open-case]{padding:10px 14px;font-weight:800;background:#155eef;color:#fff}
        body.docmind-simple-user #caseWorkspacePanel .professional-only{display:none!important}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-actions #caseAddEventButton,
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-actions #caseControlDateButton,
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-actions #caseRenameButton{display:none!important}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-columns{grid-template-columns:1fr}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-section{grid-column:1/-1}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-head h2{font-size:24px}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-actions{gap:8px}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-actions button{font-size:12px;padding:9px 11px}
        @media(max-width:700px){.account-type-grid,.profile-mode-actions{grid-template-columns:1fr}body.docmind-simple-user #casesPanel .cases-summary{grid-template-columns:1fr 1fr}}

        /* ===== V13: простой кабинет «Для себя» ===== */
        .simple-only{display:none}
        .simple-case-overview{margin:18px 0 20px;padding:0;background:transparent}
        .simple-case-main{border:1px solid #b2ccff;background:linear-gradient(180deg,#f7f9ff 0%,#eef4ff 100%);border-radius:18px;padding:20px 21px}
        .simple-case-kicker{display:inline-flex;padding:5px 9px;border-radius:999px;background:#d1e9ff;color:#175cd3;font-size:11px;font-weight:850;margin-bottom:9px}
        .simple-case-main strong{display:block;font-size:21px;line-height:1.3;color:#101828;margin-bottom:7px}
        .simple-case-main p{margin:0;color:#475467;font-size:14px;line-height:1.6;white-space:pre-wrap}
        .simple-case-grid{display:grid;grid-template-columns:1.35fr .8fr;gap:12px;margin-top:12px}
        .simple-case-card{border:1px solid #e4e7ec;background:#fff;border-radius:16px;padding:17px 18px;min-width:0}
        .simple-case-card.action{border-color:#abefc6;background:#f6fef9}
        .simple-case-card.return{background:#fcfcfd}
        .simple-case-label{display:block;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.035em;color:#667085;margin-bottom:7px}
        .simple-case-card strong{display:block;color:#101828;font-size:16px;line-height:1.45;margin-bottom:5px}
        .simple-case-card p{margin:0;color:#475467;font-size:13px;line-height:1.55;white-space:pre-wrap}
        .simple-case-return-date{font-size:18px!important;font-weight:850!important;color:#101828!important}
        body.docmind-simple-user #caseWorkspacePanel .simple-only{display:block}
        body.docmind-simple-user #caseWorkspaceBadges{display:none!important}
        body.docmind-simple-user #caseWorkspacePanel .simple-hide{display:none!important}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-head{padding-bottom:2px}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-sub{font-size:12px;color:#98a2b3}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-columns{display:block}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-section.simple-documents{margin-top:12px;border-radius:16px}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-section.simple-documents h3{font-size:15px;margin-bottom:10px}
        body.docmind-simple-user #caseWorkspacePanel .case-workspace-actions #caseCompleteButton{background:#fff!important;color:#667085!important;border:1px solid #e4e7ec!important}
        @media(max-width:700px){.simple-case-grid{grid-template-columns:1fr}.simple-case-main{padding:17px}.simple-case-main strong{font-size:19px}}

        /* ===== V14: упрощённый список «Мои дела» для режима «Для себя» ===== */
        .simple-list-hint{display:none;margin-top:8px;color:#667085;font-size:13px;line-height:1.45}
        body.docmind-simple-user #casesWaitingOverview,
        body.docmind-simple-user #casesAttentionOverview{display:none!important}
        body.docmind-simple-user #casesPanel .cases-head{margin-bottom:14px}
        body.docmind-simple-user #casesPanel .cases-note{display:none}
        body.docmind-simple-user #casesPanel .cases-summary{margin-bottom:18px}
        body.docmind-simple-user #casesPanel .cases-summary-card{padding:16px;border-radius:16px}
        body.docmind-simple-user #casesPanel .cases-summary-card strong{font-size:26px}
        body.docmind-simple-user #casesPanel .cases-summary-card span{font-size:12px}
        body.docmind-simple-user #casesPanel .cases-toolbar{display:grid;grid-template-columns:1fr;margin-bottom:14px}
        body.docmind-simple-user #casesPanel .cases-search{min-width:0;width:100%;font-size:15px;padding:12px 14px}
        body.docmind-simple-user #casesPanel .cases-count{display:none}
        body.docmind-simple-user #casesPanel .cases-list{gap:10px}
        body.docmind-simple-user #casesPanel .case-card{border-radius:16px;padding:16px 17px;box-shadow:none}
        body.docmind-simple-user #casesPanel .case-title{font-size:15px;line-height:1.4}
        body.docmind-simple-user #casesPanel .case-title-sub{display:none}
        body.docmind-simple-user #casesPanel .simple-list-hint{display:block}
        body.docmind-simple-user #casesPanel .case-actions button[data-open-case]{white-space:nowrap}
        @media(max-width:560px){body.docmind-simple-user #casesPanel .case-card{grid-template-columns:1fr}body.docmind-simple-user #casesPanel .case-actions{margin-top:4px}body.docmind-simple-user #casesPanel .case-actions button[data-open-case]{width:100%}}


        /* ===== V15: полноценный личный кабинет ===== */
        .account-page{margin:0 0 24px;background:#fff;border:1px solid #e4e7ec;border-radius:20px;padding:24px;box-shadow:0 8px 24px rgba(16,24,40,.05)}
        .account-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
        .account-page-head h2{margin:0 0 6px;font-size:26px;color:#101828}.account-page-head p{margin:0;color:#667085;line-height:1.5}
        .account-page-close{margin:0!important;background:#fff!important;color:#344054!important;border:1px solid #d0d5dd!important;padding:9px 12px!important;font-size:13px!important}
        .account-overview{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-bottom:16px}
        .account-profile-card,.account-plan-card,.account-setting-card{border:1px solid #e4e7ec;border-radius:16px;background:#fff;padding:18px}
        .account-profile-card{background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);border-color:#d1e9ff}
        .account-profile-name{font-size:22px;font-weight:850;color:#101828;margin-bottom:4px}.account-profile-email{color:#667085;font-size:14px;word-break:break-word}
        .account-profile-mode{display:inline-flex;margin-top:12px;padding:6px 9px;border-radius:999px;background:#eef4ff;color:#3538cd;font-size:11px;font-weight:800}
        .account-card-kicker{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#667085;margin-bottom:9px}
        .account-plan-name{font-size:20px;font-weight:850;color:#101828}.account-plan-note{font-size:13px;line-height:1.5;color:#667085;margin-top:6px}
        .account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
        .account-setting-card h3{margin:0 0 7px;font-size:16px;color:#101828}.account-setting-card p{margin:0;color:#667085;font-size:13px;line-height:1.55}
        .account-setting-card .profile-mode-actions{margin-top:13px}
        .account-page-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}
        .account-primary{background:#155eef!important;color:#fff!important;border:1px solid #155eef!important;font-weight:750}
        .account-secondary{background:#fff!important;color:#344054!important;border:1px solid #d0d5dd!important;font-weight:700}
        .account-danger{background:#fff!important;color:#b42318!important;border:1px solid #fecdca!important;font-weight:700}
        .account-coming{display:inline-flex;margin-top:10px;padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:11px;font-weight:750}
        .account-security-list{display:grid;gap:8px;margin-top:12px}.account-security-row{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-top:1px solid #f0f1f3;font-size:12px;color:#475467}.account-security-row b{color:#344054}
        @media(max-width:760px){.account-overview,.account-grid{grid-template-columns:1fr}.account-page{padding:18px}.account-page-head{display:block}.account-page-close{margin-top:12px!important}}


        .account-inline-status{min-height:18px;margin-top:9px;font-size:12px;line-height:1.45;color:#667085}
        .account-inline-status.ok{color:#067647}.account-inline-status.error{color:#b42318}
        .account-security-form{display:grid;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid #f0f1f3}
        .account-security-form label{font-size:12px;font-weight:750;color:#344054}
        .account-security-form input{width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:10px;padding:10px 11px;font:inherit;color:#101828;background:#fff}
        .account-security-form input:focus{outline:2px solid #b2ccff;outline-offset:1px;border-color:#84adff}
        .account-security-form .account-page-actions{margin-top:2px}
        .account-security-note{font-size:11px;line-height:1.45;color:#667085}


/* V27: strict CSP - no inline style attributes or JS style mutations */
[hidden]{display:none !important;}
.topbar-actions{display:flex;gap:8px;align-items:center;}
.case-workspace-full{grid-column:1 / -1;}
.case-action-row{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;}
.optional-note{font-weight:400;color:#667085;}
.prewrap{white-space:pre-wrap;}
.prewrap-readable{white-space:pre-wrap;line-height:1.6;}
.print-help-text{font-size:13px;color:#667085;margin-top:4px;}
.mt-10{margin-top:10px;}
.mt-12{margin-top:12px;}
.law-title{margin:0 0 5px;}
.law-controls{margin-top:14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.law-controls-label{font-size:13px;font-weight:700;color:#344054;}
.law-controls-select{padding:9px 12px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;}
.legal-fix-title{margin:0 0 10px;}
.clarify-heading{font-weight:800;font-size:16px;margin-bottom:14px;}
.privacy-note{font-size:12px;color:#667085;}
.law-source-number{color:#667085;font-weight:600;}
.law-sources-heading{margin-top:15px;font-weight:750;}
.legal-fix-line{margin-top:6px;}
.legal-fix-reason{color:#667085;}
.warning-notice{padding:12px;background:#fff3cd;color:#664d03;border-radius:8px;}
.region-picker{display:block;width:100%;max-width:100%;padding:10px;margin:6px 0;}
.risk-meter-progress{display:block;width:100%;height:10px;margin-top:10px;border:0;border-radius:999px;overflow:hidden;appearance:none;}
.risk-meter-progress::-webkit-progress-bar{background:#eef2f6;border-radius:999px;}
.risk-meter-progress::-webkit-progress-value{background:currentColor;border-radius:999px;}
.risk-meter-progress::-moz-progress-bar{background:currentColor;border-radius:999px;}
