:root {
    --analysis-blue: #1167f4;
    --analysis-blue-dark: #0755dc;
    --analysis-ink: #10203f;
    --analysis-text: #273957;
    --analysis-muted: #71809a;
    --analysis-line: #dbe4f0;
    --analysis-soft: #f5f8fd;
}

* { box-sizing: border-box; }

.analysis-app,
.analysis-app button,
.analysis-app input,
.analysis-app textarea,
.analysis-app select { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }

#analysis-app a { text-decoration: none; }
.analysis-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.analysis-main {
    width: min(1120px, calc(100% - 96px));
    padding: 39px 0 34px;
    color: var(--analysis-text);
}

.analysis-heading { text-align: center; }
.analysis-heading h1 { margin: 0; color: var(--analysis-ink); font-size: 38px; font-weight: 750; line-height: 1.2; letter-spacing: .01em; }
.analysis-heading p { margin: 10px 0 0; color: var(--analysis-muted); font-size: 15px; line-height: 1.55; }
.analysis-home-heading h1 { font-size: 44px; }

.analysis-breadcrumb { display: flex; align-items: center; gap: 10px; margin: -12px 0 28px; color: #71809a; font-size: 14px; }
.analysis-breadcrumb a { color: #5c6f8e; }
.analysis-breadcrumb a:hover { color: var(--analysis-blue); }
.analysis-breadcrumb span:last-child { color: var(--analysis-ink); }

.analysis-main:has(.analysis-breadcrumb) { padding-top: 21px; }
.analysis-main:has(.analysis-breadcrumb) .analysis-breadcrumb { margin-bottom: 18px; }

.analysis-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 34px; margin-top: 28px; align-items: start; }
.analysis-home-main { min-width: 0; }

.analysis-upload-drop {
    min-height: 274px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed #a8c7ff;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.analysis-upload-drop:hover,
.analysis-upload-drop.dragging { border-color: var(--analysis-blue); background: #f9fbff; box-shadow: 0 0 0 3px rgba(17, 103, 244, .05); }
.analysis-upload-drop img { width: 90px; height: 90px; object-fit: contain; }
.analysis-upload-drop strong { margin-top: 18px; color: var(--analysis-ink); font-size: 20px; font-weight: 700; line-height: 1.4; }
.analysis-upload-mobile-copy { display: none; }
.analysis-upload-drop em { color: var(--analysis-blue); font-style: normal; }
.analysis-upload-drop > span { margin-top: 8px; color: #7585a0; font-size: 15px; }

.analysis-selected-files { margin-top: 10px; padding: 10px 14px; border: 1px solid #d8e5f7; border-radius: 9px; background: #f8fbff; color: #536786; font-size: 13px; line-height: 1.6; }
.analysis-selected-files strong { color: var(--analysis-blue); }

.analysis-drop-notes { min-height: 66px; display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; border-bottom: 1px solid #e3eaf4; }
.analysis-drop-notes span { display: flex; align-items: center; justify-content: center; gap: 10px; color: #657793; font-size: 14px; }
.analysis-drop-notes .analysis-icon { width: 23px; height: 23px; color: #5f7291; }
.analysis-drop-notes i { width: 1px; height: 27px; background: #dce5f1; }

.analysis-form-block { margin-top: 19px; }
.analysis-prompt-title { margin-bottom: 12px; color: var(--analysis-ink); font-size: 15px; font-weight: 700; }
.analysis-prompt { width: 100%; min-height: 112px; padding: 15px 17px; resize: vertical; border: 1px solid #d6dfeb; border-radius: 11px; outline: 0; background: #fff; color: var(--analysis-text); font-size: 15px; line-height: 1.6; transition: border-color .18s ease, box-shadow .18s ease; }
.analysis-prompt::placeholder { color: #8a98ad; }
.analysis-prompt:focus { border-color: #77a9ff; box-shadow: 0 0 0 3px rgba(17, 103, 244, .08); }

.analysis-quick-pills { display: flex; flex-wrap: wrap; gap: 10px 11px; margin-top: 18px; }
.analysis-quick-pills button { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d7e1ee; border-radius: 9px; background: #fff; color: var(--analysis-blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.analysis-quick-pills button:hover { border-color: #8db7ff; background: #f6f9ff; }
.analysis-quick-pills .analysis-icon { width: 20px; height: 20px; color: var(--analysis-blue); }

.analysis-home-footer { min-height: 94px; margin-top: 21px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 26px; }
.analysis-rights { margin: 0; display: flex; align-items: center; gap: 9px; color: #7585a0; font-size: 13px; line-height: 1.5; }
.analysis-rights svg { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: #6d81a2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.analysis-start-wrap { text-align: center; }
.analysis-primary { width: 100%; min-height: 58px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--analysis-blue); border-radius: 10px; background: var(--analysis-blue); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .18s ease, opacity .18s ease; }
.analysis-primary:hover { background: var(--analysis-blue-dark); }
.analysis-primary:disabled { border-color: #76a1fa; background: #76a1fa; cursor: not-allowed; opacity: .86; }
.analysis-primary svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.analysis-primary img { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 5px; object-fit: contain; }
.analysis-primary-note { margin: 7px 0 0; color: #8795aa; font-size: 12px; }

.analysis-process-panel { overflow: hidden; border: 1px solid #dce4ef; border-radius: 13px; background: #fff; }
.analysis-process-panel > h2 { margin: 0; padding: 23px 20px 16px; color: var(--analysis-ink); font-size: 18px; }
.analysis-process-panel article { min-height: 146px; margin: 0 17px 16px; padding: 20px 16px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: start; border: 1px solid #dbe3ee; border-radius: 10px; }
.analysis-process-panel article > .analysis-icon { width: 42px; height: 42px; color: var(--analysis-blue); stroke-width: 1.45; }
.analysis-process-panel h3 { margin: 1px 0 3px; color: var(--analysis-ink); font-size: 16px; line-height: 1.35; }
.analysis-process-panel strong { display: block; color: #30425f; font-size: 14px; font-weight: 500; line-height: 1.45; }
.analysis-process-panel article div::after { content: ""; display: block; }
.analysis-process-panel article div { display: contents; }
.analysis-process-panel article strong { grid-column: 1 / -1; margin-top: 2px; }
.analysis-deeper { padding: 18px 20px 22px; border-top: 1px solid #e1e8f2; color: #647691; font-size: 13px; line-height: 1.5; }
.analysis-deeper span, .analysis-deeper a { display: block; }
.analysis-deeper a { margin-top: 8px; color: var(--analysis-blue); font-size: 14px; font-weight: 700; }

.analysis-section-title { margin: 0 0 11px; color: var(--analysis-ink); font-size: 17px; line-height: 1.4; }
.analysis-section-title small { color: #61728d; font-size: 14px; font-weight: 500; }
.analysis-setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 258px; gap: 34px; margin-top: 27px; align-items: start; }
.analysis-setup-main { min-width: 0; }
.analysis-uploaded-list { display: grid; gap: 6px; }
.analysis-uploaded-file { min-height: 50px; padding: 0 15px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 76px auto 1px 25px; gap: 12px; align-items: center; border: 1px solid #d9e2ed; border-radius: 8px; background: #fff; }
.analysis-uploaded-file > strong { min-width: 0; overflow: hidden; color: var(--analysis-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-uploaded-file > span:not(.analysis-file-badge) { color: #6d7c94; font-size: 13px; }
.analysis-uploaded-file > .analysis-view-control { width: auto; height: auto; padding: 0; border: 0; background: transparent; color: var(--analysis-blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.analysis-uploaded-file > i { height: 20px; background: #e2e8f0; }
.analysis-uploaded-file > button[data-analysis-remove] { width: 25px; height: 25px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #7586a2; cursor: pointer; }
.analysis-uploaded-file > button[data-analysis-remove]:hover { color: #e5484d; }
.analysis-uploaded-file > button[data-analysis-remove] svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.analysis-file-badge { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; color: #fff; font-size: 10px; font-weight: 800; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.analysis-file-badge.pdf { background: linear-gradient(135deg, #f1373e, #e40012); }
.analysis-file-badge.docx { background: linear-gradient(135deg, #2576f4, #0050d8); font-size: 18px; }
.analysis-file-badge.xlsx { background: linear-gradient(135deg, #21a768, #087c41); font-size: 18px; }
img.analysis-file-badge { display: block; border-radius: 0; background: transparent !important; box-shadow: none; object-fit: contain; }

.analysis-add-file { min-width: 144px; min-height: 38px; margin-top: 13px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #92b9ff; border-radius: 7px; background: #fff; color: var(--analysis-blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.analysis-add-file:hover { background: #f6f9ff; }
.analysis-add-file img { width: 19px; height: 19px; object-fit: contain; }
.analysis-setup-prompt-block { margin: 14px 0 13px; }
.analysis-setup-prompt-block .analysis-prompt { min-height: 74px; }

.analysis-method-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.analysis-method-option { min-height: 75px; padding: 12px 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 12px; align-items: center; border: 1px solid #d6e0ec; border-radius: 10px; background: #fff; color: var(--analysis-text); text-align: left; cursor: pointer; }
.analysis-method-option:hover { border-color: #8fb7ff; }
.analysis-method-option.active { border: 1.5px solid var(--analysis-blue); background: #fbfdff; }
.analysis-method-icon { width: 40px; height: 40px; padding: 7px; border-radius: 8px; background: #f3f7fd; object-fit: contain; }
.analysis-method-option.active .analysis-method-icon { background: #eef5ff; }
.analysis-method-option span { min-width: 0; }
.analysis-method-option strong, .analysis-method-option small { display: block; }
.analysis-method-option strong { color: var(--analysis-ink); font-size: 15px; }
.analysis-method-option small { margin-top: 4px; color: #6d7d95; font-size: 12px; white-space: nowrap; }
.analysis-method-option b { width: 22px; height: 22px; display: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--analysis-blue); color: #fff; }
.analysis-method-option.active b { display: inline-flex; }
.analysis-method-option b svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.analysis-output-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.analysis-output-row button { min-height: 49px; padding: 0 13px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #d7e0eb; border-radius: 9px; background: #fff; color: var(--analysis-text); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.analysis-output-row button:hover { border-color: #8eb7ff; }
.analysis-output-row button.active { border: 1.5px solid var(--analysis-blue); color: var(--analysis-blue); }
.analysis-output-row i { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cdd9e9; border-radius: 5px; color: transparent; font-style: normal; }
.analysis-output-row button.active i { border-color: var(--analysis-blue); background: var(--analysis-blue); color: #fff; }
.analysis-output-row i svg, .analysis-output-row b svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.analysis-output-row b { width: 18px; height: 18px; display: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--analysis-blue); color: #fff; }
.analysis-output-row button:first-child.active b { display: inline-flex; }

.analysis-language-select { width: 235px; min-height: 44px; padding: 0 44px 0 15px; border: 1px solid #d7e0eb; border-radius: 8px; outline: 0; background: #fff; color: var(--analysis-ink); font-size: 14px; }
.analysis-setup-rights { margin-top: 22px; }
.analysis-rights .analysis-safety-icon { width: 21px; height: 21px; flex: 0 0 21px; object-fit: contain; }

.analysis-settings-side { padding: 26px 22px 22px; border: 1px solid #d9e2ee; border-radius: 12px; background: #fff; }
.analysis-settings-side h2 { margin: 0 0 24px; color: var(--analysis-ink); font-size: 17px; }
.analysis-settings-side p { margin: 0 0 22px; display: flex; align-items: center; gap: 14px; color: var(--analysis-ink); font-size: 14px; }
.analysis-settings-side p > img { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.analysis-settings-side p b { font-weight: 700; }
.analysis-settings-side hr { height: 1px; margin: 36px 0 26px; border: 0; background: #e1e7ef; }
.analysis-settings-side .analysis-primary { min-height: 57px; }
.analysis-settings-side > small { display: block; margin-top: 13px; color: #71809a; font-size: 12px; line-height: 1.6; }

body[data-ui-theme="dark"] .analysis-settings-side p > img[src*="fuuvo-analysis-content"],
body[data-ui-theme="dark"] .analysis-settings-side p > img[src*="fuuvo-language"],
body[data-ui-theme="dark"] .analysis-safety-icon {
    filter: brightness(0) saturate(100%) invert(72%) sepia(33%) saturate(1137%) hue-rotate(184deg) brightness(102%) contrast(101%);
}

.analysis-result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 34px; margin-top: 25px; align-items: start; }
.analysis-result-main { min-width: 0; }
.analysis-spreadsheet-result { margin-bottom: 18px; padding: 22px; overflow: hidden; border: 1px solid #b9d3ff; border-radius: 12px; background: linear-gradient(145deg, #f7faff 0%, #fff 62%); }
.analysis-spreadsheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.analysis-spreadsheet-heading > div { min-width: 0; }
.analysis-spreadsheet-heading span { color: var(--analysis-blue); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.analysis-spreadsheet-heading h2 { margin: 5px 0 3px; color: var(--analysis-ink); font-size: 20px; }
.analysis-spreadsheet-heading p { margin: 0; overflow: hidden; color: #697b96; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-spreadsheet-download { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 8px; background: var(--analysis-blue); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.analysis-spreadsheet-download:hover { background: #286fec; }
.analysis-spreadsheet-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.analysis-spreadsheet-stats > div { min-width: 0; padding: 13px 14px; border: 1px solid #dbe7f8; border-radius: 9px; background: rgba(255, 255, 255, .88); }
.analysis-spreadsheet-stats span, .analysis-spreadsheet-stats strong { display: block; }
.analysis-spreadsheet-stats span { color: #6c7e98; font-size: 11px; }
.analysis-spreadsheet-stats strong { margin-top: 5px; overflow: hidden; color: var(--analysis-ink); font-size: 18px; text-overflow: ellipsis; }
.analysis-spreadsheet-preview { margin-top: 20px; }
.analysis-spreadsheet-preview h3 { margin: 0 0 10px; color: var(--analysis-ink); font-size: 14px; }
.analysis-spreadsheet-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #dbe4ef; border-radius: 9px; background: #fff; }
.analysis-spreadsheet-scroll table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 11px; }
.analysis-spreadsheet-scroll th, .analysis-spreadsheet-scroll td { max-width: 260px; padding: 9px 11px; overflow: hidden; border-right: 1px solid #e6ebf2; border-bottom: 1px solid #e6ebf2; color: #3e506b; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.analysis-spreadsheet-scroll th { position: sticky; top: 0; z-index: 1; background: #f3f7fc; color: var(--analysis-ink); font-weight: 700; }
.analysis-spreadsheet-scroll tr:last-child td { border-bottom: 0; }
.analysis-spreadsheet-scroll th:last-child, .analysis-spreadsheet-scroll td:last-child { border-right: 0; }
.analysis-conclusion { padding: 21px 22px 18px; border: 1px solid #d8e1ec; border-radius: 11px; background: #fff; }
.analysis-conclusion h2, .analysis-data-panel > h2 { margin: 0 0 16px; color: var(--analysis-ink); font-size: 17px; }
.analysis-conclusion p { margin: 0 0 11px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: #243653; font-size: 14px; line-height: 1.55; }
.analysis-conclusion p:last-child { margin-bottom: 0; }
.analysis-conclusion p b { width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--analysis-blue); color: #fff; font-size: 12px; }

.analysis-result-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.analysis-result-three article { min-height: 174px; padding: 19px 20px; border: 1px solid #d8e1ec; border-radius: 11px; background: #fff; }
.analysis-result-three article.verify { border-color: #ffbe8d; }
.analysis-result-three h2 { margin: 0 0 15px; display: flex; align-items: center; gap: 10px; color: var(--analysis-ink); font-size: 16px; }
.analysis-result-three h2 .analysis-icon { width: 25px; height: 25px; color: var(--analysis-blue); }
.analysis-result-three article.verify h2 .analysis-icon { color: #ff6b16; }
.analysis-result-three p { margin: 0 0 8px; color: #334561; font-size: 12px; line-height: 1.55; }

.analysis-data-panel { margin-top: 19px; padding: 22px; border: 1px solid #d8e1ec; border-radius: 11px; background: #fff; }
.analysis-data-content { display: grid; grid-template-columns: 215px repeat(3, minmax(0, 1fr)); gap: 22px; align-items: center; }
.analysis-chart { width: 215px; height: 116px; object-fit: contain; }
.analysis-finding-item { min-width: 0; display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 9px; align-items: start; }
.analysis-finding-icon { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.analysis-finding-icon.blue { background: #eaf2ff; color: var(--analysis-blue); }
.analysis-finding-icon.green { background: #e7f8ee; color: #13a25a; }
.analysis-finding-icon .analysis-icon { width: 20px; height: 20px; }
.analysis-finding-item p { margin: 0; }
.analysis-finding-item strong, .analysis-finding-item span { display: block; }
.analysis-finding-item strong { margin: 2px 0 9px; color: var(--analysis-ink); font-size: 13px; }
.analysis-finding-item span { color: #50617b; font-size: 11px; line-height: 1.65; }

.analysis-result-side { overflow: hidden; border: 1px solid #d8e1ec; border-radius: 12px; background: #fff; }
.analysis-result-side > section { padding: 22px 20px; }
.analysis-result-side > section + section { padding-top: 8px; }
.analysis-result-side h2 { margin: 0 0 19px; color: var(--analysis-ink); font-size: 17px; }
.analysis-source-file { min-height: 62px; margin-bottom: 11px; padding: 11px 9px; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 9px; align-items: center; border: 1px solid #dbe3ee; border-radius: 8px; }
.analysis-source-file strong { min-width: 0; overflow: hidden; color: var(--analysis-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-source-file .analysis-view-control { padding: 0; border: 0; background: transparent; color: var(--analysis-blue); font: inherit; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none; }
.analysis-source-notes { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e4eaf2; }
.analysis-source-notes p { margin: 0 0 8px; color: #60718c; font-size: 11px; line-height: 1.55; }
.analysis-source-notes p:last-child { margin-bottom: 0; }
.analysis-result-actions .analysis-primary { min-height: 50px; font-size: 16px; }
.analysis-outline { width: 100%; min-height: 43px; margin-top: 11px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #4c85ff; border-radius: 8px; background: #fff; color: var(--analysis-blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.analysis-outline:hover { background: #f5f9ff; }
.analysis-outline svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.analysis-outline .analysis-design-icon { width: 21px; height: 21px; flex: 0 0 21px; object-fit: contain; }
.analysis-source-note { margin: 30px 0 0; padding: 13px 11px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; border-radius: 8px; background: #eef4ff; color: #5d6f8d; font-size: 11px; line-height: 1.55; }
.analysis-source-note > img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(2401%) hue-rotate(199deg) brightness(99%) contrast(97%); }

.analysis-followup { min-height: 65px; margin-top: 24px; padding: 0 14px 0 17px; display: flex; align-items: center; gap: 14px; border: 1px solid #aab7cb; border-radius: 9px; background: #fff; }
.analysis-followup input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--analysis-text); font-size: 14px; }
.analysis-followup input::placeholder { color: #8996aa; }
.analysis-followup button { width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--analysis-blue); cursor: pointer; }
.analysis-followup button svg { width: 39px; height: 39px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.analysis-followup button .analysis-design-icon { width: 39px; height: 39px; object-fit: contain; }

.analysis-result-layout [hidden] { display: none !important; }
.analysis-primary.is-loading { cursor: wait; opacity: .78; }

.analysis-generation-status { min-height: 64px; margin: 18px 0 0; padding: 12px 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #cfe0fa; border-radius: 10px; background: #f5f9ff; color: #385579; }
.analysis-generation-status[hidden] { display: none !important; }
.analysis-generation-status strong, .analysis-generation-status small { display: block; }
.analysis-generation-status strong { color: var(--analysis-ink); font-size: 14px; }
.analysis-generation-status small { margin-top: 3px; color: #6b7d98; font-size: 12px; line-height: 1.5; }
.analysis-generation-status button { min-width: 90px; min-height: 36px; padding: 0 14px; border: 1px solid var(--analysis-blue); border-radius: 7px; background: #fff; color: var(--analysis-blue); font-size: 13px; font-weight: 700; cursor: pointer; }
.analysis-generation-spinner { position: relative; width: 24px; height: 24px; border: 3px solid #d7e6ff; border-top-color: var(--analysis-blue); border-radius: 50%; animation: analysis-spin .85s linear infinite; }
.analysis-generation-status.success { border-color: #bde6ce; background: #f3fbf6; }
.analysis-generation-status.success .analysis-generation-spinner { border: 0; border-radius: 50%; background: #20a85d; animation: none; }
.analysis-generation-status.success .analysis-generation-spinner::after { content: ""; width: 9px; height: 5px; margin: 7px 0 0 6px; display: block; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.analysis-generation-status.error { border-color: #f2c2c2; background: #fff7f7; }
.analysis-generation-status.error .analysis-generation-spinner { border: 0; background: #df4b4b; animation: none; }
.analysis-generation-status.error .analysis-generation-spinner::before, .analysis-generation-status.error .analysis-generation-spinner::after { content: ""; position: absolute; width: 11px; height: 2px; margin: 11px 0 0 6px; background: #fff; transform: rotate(45deg); }
.analysis-generation-status.error .analysis-generation-spinner::after { transform: rotate(-45deg); }
@keyframes analysis-spin { to { transform: rotate(360deg); } }

.analysis-result-layout.is-loading { opacity: 1; }
.analysis-result-layout.is-loading .analysis-result-actions button, .analysis-result-layout.is-loading + .analysis-followup button { pointer-events: none; }
.analysis-empty-result { margin: 0; color: #8190a6; font-size: 12px; line-height: 1.6; }
.analysis-conclusion p.analysis-empty-result { width: 100%; display: block; grid-template-columns: none; }
.analysis-loading-placeholder,
.analysis-conclusion p.analysis-loading-placeholder,
.analysis-result-three p.analysis-loading-placeholder {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin: 0;
    padding: 9px 12px;
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: #f5f8fc;
    color: #71829b;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
}
.analysis-loading-placeholder::before,
.analysis-loading-copy::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--analysis-blue);
    box-shadow: 0 0 0 4px rgba(53, 126, 246, .12);
    animation: analysis-loading-pulse 1.2s ease-in-out infinite;
}
.analysis-loading-copy { display: flex !important; align-items: center; gap: 9px; color: #71829b !important; }
.analysis-result-layout.is-loading .analysis-conclusion,
.analysis-result-layout.is-loading .analysis-result-three article,
.analysis-result-layout.is-loading .analysis-data-panel { border-color: #cfe0fa; }
.analysis-result-layout.is-loading .analysis-result-actions button:disabled { cursor: wait; opacity: .58; }
@keyframes analysis-loading-pulse {
    0%, 100% { opacity: .42; transform: scale(.82); }
    50% { opacity: 1; transform: scale(1); }
}
.analysis-data-overview { grid-column: 1 / -1; padding: 13px 15px; border-radius: 8px; background: #f5f8fc; color: #40536f; font-size: 12px; line-height: 1.65; }
.analysis-data-content { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.analysis-finding-item span[data-analysis-data] { white-space: pre-line; }

body[data-ui-theme="dark"] .analysis-source-note > img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(33%) saturate(1137%) hue-rotate(184deg) brightness(102%) contrast(101%);
}

body[data-ui-theme="dark"] .analysis-spreadsheet-result { border-color: #34547b; background: linear-gradient(145deg, #17253a 0%, #111b2b 70%); }
body[data-ui-theme="dark"] .analysis-spreadsheet-heading p, body[data-ui-theme="dark"] .analysis-spreadsheet-stats span { color: #afbdd0; }
body[data-ui-theme="dark"] .analysis-spreadsheet-stats > div, body[data-ui-theme="dark"] .analysis-spreadsheet-scroll { border-color: #34445b; background: #172235; }
body[data-ui-theme="dark"] .analysis-spreadsheet-scroll th { background: #1d2b40; }
body[data-ui-theme="dark"] .analysis-spreadsheet-scroll th, body[data-ui-theme="dark"] .analysis-spreadsheet-scroll td { border-color: #34445b; color: #e5edf8; }

.analysis-toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 8px; background: rgba(16, 32, 63, .94); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.analysis-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
    .analysis-home-layout, .analysis-setup-layout, .analysis-result-layout { gap: 22px; }
    .analysis-home-layout { grid-template-columns: minmax(0, 1fr) 245px; }
    .analysis-setup-layout { grid-template-columns: minmax(0, 1fr) 235px; }
    .analysis-result-layout { grid-template-columns: minmax(0, 1fr) 245px; }
    .analysis-output-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analysis-data-content { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 920px) {
    .analysis-main { width: 100% !important; margin: 0 !important; padding: 28px 22px 30px; }
    .analysis-heading h1, .analysis-home-heading h1 { font-size: 32px; }
    .analysis-breadcrumb { margin-top: 0; flex-wrap: wrap; overflow: visible; white-space: normal; }
    .analysis-home-layout, .analysis-setup-layout, .analysis-result-layout { grid-template-columns: minmax(0, 1fr); }
    .analysis-process-panel, .analysis-settings-side, .analysis-result-side { width: 100%; }
    .analysis-process-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analysis-process-panel > h2, .analysis-deeper { grid-column: 1 / -1; }
    .analysis-process-panel article { margin-right: 8px; margin-left: 8px; }
    .analysis-data-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analysis-chart { grid-column: 1 / -1; width: min(100%, 360px); height: auto; justify-self: center; }
    .analysis-spreadsheet-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .analysis-main { padding: 22px 15px 26px; }
    .analysis-heading h1, .analysis-home-heading h1 { font-size: 28px; }
    .analysis-heading p { font-size: 13px; }
    .analysis-upload-drop { min-height: 220px; padding: 20px 14px; text-align: center; }
    .analysis-upload-drop img { width: 72px; height: 72px; }
    .analysis-upload-drop strong { font-size: 17px; }
    .analysis-drop-notes { grid-template-columns: 1fr; gap: 11px; padding: 14px 0; }
    .analysis-drop-notes i { display: none; }
    .analysis-home-footer { grid-template-columns: minmax(0, 1fr); }
    .analysis-start-wrap { grid-row: 1; }
    .analysis-process-panel { display: block; }
    .analysis-process-panel article { min-height: 120px; margin: 0 14px 12px; }
    .analysis-uploaded-file { grid-template-columns: 35px minmax(0, 1fr) 25px; gap: 8px; padding: 8px 10px; }
    .analysis-uploaded-file > span:not(.analysis-file-badge), .analysis-uploaded-file > .analysis-view-control, .analysis-uploaded-file > i { display: none; }
    .analysis-method-row, .analysis-output-row, .analysis-result-three, .analysis-data-content { grid-template-columns: minmax(0, 1fr); }
    .analysis-method-option small { white-space: normal; }
    .analysis-language-select { width: 100%; }
    .analysis-result-three article { min-height: 0; }
    .analysis-chart { grid-column: 1; }
    .analysis-followup { min-height: 56px; }
    .analysis-generation-status { grid-template-columns: 24px minmax(0, 1fr); }
    .analysis-generation-status button { grid-column: 1 / -1; width: 100%; }
    .analysis-data-content { grid-template-columns: minmax(0, 1fr); }
    .analysis-spreadsheet-result { padding: 17px 14px; }
    .analysis-spreadsheet-heading { align-items: stretch; flex-direction: column; }
    .analysis-spreadsheet-download { width: 100%; }
}
