:root{--primary:#1e3a8a;--primary-hover:#1e40af;--primary-light:#eff6ff;--text-main:#1f2937;--text-muted:#6b7280;--bg-body:#f9fafb;--bg-card:#ffffff;--border-color:#e5e7eb;--border-focus:#3b82f6;--danger:#dc2626;--danger-bg:#fef2f2;--warning:#d97706;--warning-bg:#fffbeb;--success:#16a34a;--success-bg:#f0fdf4;--info:#0284c7;--info-bg:#f0f9ff;--radius-sm:4px;--radius-md:8px;--radius-lg:12px;--shadow-sm:0 1px 2px 0 rgba(0,0,0,0.05);--shadow-md:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06);--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);background-color:var(--bg-body);color:var(--text-main);line-height:1.5;min-height:100vh;display:flex;flex-direction:column}header{background-color:var(--bg-card);border-bottom:1px solid var(--border-color);padding:1rem 1.5rem;box-shadow:var(--shadow-sm)}.header-container{max-width:1200px;margin:0 auto;justify-content:space-between;flex-wrap:wrap;gap:1rem}.brand,.header-container{display:flex;align-items:center}.brand{gap:.75rem}.brand h1{font-size:1.25rem;font-weight:700;color:var(--primary)}.brand-badge{font-size:.75rem;font-weight:600;padding:.2rem .5rem;background-color:var(--primary-light);color:var(--primary);border-radius:var(--radius-sm);border:1px solid #bfdbfe}.user-controls{gap:1rem}.space-selector,.user-controls{display:flex;align-items:center}.space-selector{gap:.5rem}.space-selector label{font-size:.875rem;color:var(--text-muted);font-weight:500}input[type=text],select,textarea{font-family:inherit;font-size:.875rem;border:1px solid var(--border-color);border-radius:var(--radius-md);padding:.5rem .75rem;background-color:#ffffff;color:var(--text-main);outline:none;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}input[type=text]:focus,select:focus,textarea:focus{border-color:var(--border-focus);box-shadow:0 0 0 3px rgba(59,130,246,.2)}button{font-family:inherit;font-size:.875rem;font-weight:600;padding:.5rem 1rem;border-radius:var(--radius-md);border:none;cursor:pointer;transition:all .15s ease-in-out}.btn-primary{background-color:var(--primary);color:#ffffff}.btn-primary:hover:not(:disabled){background-color:var(--primary-hover)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-outline{background-color:transparent;color:var(--text-main);border:1px solid var(--border-color)}.btn-outline:hover{background-color:#f3f4f6}main{flex:1 1;max-width:1200px;width:100%;margin:1.5rem auto;padding:0 1.5rem;display:flex;flex-direction:column;gap:1.5rem}.auth-banner{background-color:var(--warning-bg);border:1px solid #fde68a;border-radius:var(--radius-md);padding:1rem 1.25rem;color:#92400e;font-size:.875rem}.auth-banner h3{font-size:1rem;font-weight:600;margin-bottom:.25rem}.layout-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}@media (min-width:900px){.layout-grid{grid-template-columns:1.2fr 1fr}}.card{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.card-title{font-size:1.125rem;font-weight:700;color:var(--text-main);display:flex;justify-content:space-between;align-items:center}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-size:.875rem;font-weight:600;color:var(--text-main)}.textarea-container{position:relative}textarea#analysis-text{width:100%;min-height:220px;resize:vertical;line-height:1.6}.char-counter{font-size:.75rem;color:var(--text-muted);text-align:right;margin-top:.25rem}.char-counter.limit-warn{color:var(--danger);font-weight:600}.mode-selector{display:flex;gap:1rem;margin-top:.25rem}.radio-label{display:flex;align-items:center;gap:.35rem;font-size:.875rem;cursor:pointer}.pairs-section{background-color:#f9fafb;border:1px dashed var(--border-color);border-radius:var(--radius-md);padding:1rem;display:none;flex-direction:column;gap:.5rem}.pairs-section.active{display:flex}.pairs-hint{font-size:.75rem;color:var(--text-muted)}.form-actions{display:flex;justify-content:space-between;align-items:center;margin-top:.5rem}.error-banner{background-color:var(--danger-bg);border:1px solid #fecaca;border-radius:var(--radius-md);padding:1rem;color:var(--danger);display:none;flex-direction:column;gap:.35rem;font-size:.875rem}.error-banner.visible{display:flex}.error-header{display:flex;align-items:center;gap:.5rem;font-weight:700}.error-meta{font-family:var(--font-mono);font-size:.75rem;color:#991b1b}.score-hero{background:linear-gradient(135deg,#eff6ff,#dbeafe);border:1px solid #bfdbfe;border-radius:var(--radius-lg);padding:1.5rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.5rem}.score-label{font-size:.875rem;font-weight:600;color:var(--primary);text-transform:uppercase;letter-spacing:.05em}.score-value{font-size:3rem;font-weight:800;color:var(--primary);line-height:1}.score-status-badge{display:inline-block;font-size:.75rem;font-weight:700;padding:.2rem .6rem;border-radius:9999px;background-color:#ffffff;color:var(--primary);box-shadow:var(--shadow-sm)}.metrics-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.metric-box{background-color:#f9fafb;border:1px solid var(--border-color);border-radius:var(--radius-md);padding:.75rem 1rem;display:flex;flex-direction:column;gap:.25rem}.metric-name{font-size:.75rem;color:var(--text-muted);font-weight:600}.metric-val{font-size:1.25rem;font-weight:700;color:var(--text-main)}.quality-notices{display:flex;flex-direction:column;gap:.5rem}.notice-card{border-radius:var(--radius-md);padding:.75rem 1rem;font-size:.8125rem;display:flex;gap:.5rem;align-items:flex-start}.notice-card.info{background-color:var(--info-bg);border:1px solid #bae6fd;color:#0369a1}.notice-card.warning{background-color:var(--warning-bg);border:1px solid #fde68a;color:#92400e}.attribution-section{border-top:1px solid var(--border-color);padding-top:1rem;display:flex;flex-direction:column;gap:.75rem}.attribution-title{font-size:.875rem;font-weight:700;color:var(--text-main)}.source-card{background-color:#f9fafb;border:1px solid var(--border-color);border-radius:var(--radius-md);padding:.75rem;font-size:.75rem;display:flex;flex-direction:column;gap:.25rem}.source-card h5{font-size:.8125rem;font-weight:700;color:var(--primary)}.six-elements-grid{display:grid;grid-template-columns:80px 1fr;gap:.25rem .5rem;margin-top:.25rem}.element-label{color:var(--text-muted);font-weight:600}.space-sync-warning{font-size:.8rem;color:#92400e;margin-left:.5rem}.element-value.element-missing{color:#b91c1c;font-weight:600}.element-value{color:var(--text-main);word-break:break-word}footer{background-color:var(--bg-card);border-top:1px solid var(--border-color);padding:1.5rem;text-align:center;font-size:.75rem;color:var(--text-muted);margin-top:auto}.footer-meta{font-family:var(--font-mono);margin-top:.25rem}.words-section{display:flex;flex-direction:column;gap:.75rem;border-top:1px solid var(--border-color);padding-top:1rem}.words-title{font-size:1rem}.words-sub,.words-title{font-weight:700;color:var(--text-main)}.words-sub{font-size:.875rem;margin-top:.25rem}.words-bars{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1rem}.words-bar-title{font-size:.8125rem;font-weight:600;margin-bottom:.25rem}.words-bar{display:flex;height:.75rem;border-radius:.375rem;overflow:hidden;background:#e2e8f0}.words-dot.in,.words-seg.in{background:#15803d}.words-dot.out,.words-seg.out{background:#b45309}.words-dot.roman,.words-seg.roman{background:#64748b}.words-legend{list-style:none;padding:0;margin:.375rem 0 0;display:flex;flex-wrap:wrap;gap:.25rem 1rem;font-size:.8125rem}.words-dot{display:inline-block;width:.625rem;height:.625rem;border-radius:50%;margin-right:.375rem}.words-note{font-size:.8125rem;color:var(--text-muted,#475569);margin:0}.words-text{line-height:2;font-size:1.0625rem;margin:0;white-space:pre-wrap;word-break:break-word}.word{border-radius:.25rem;padding:0 .0625rem}.word.in{background:#dcfce7;color:#14532d}.word.out{background:#fef3c7;color:#78350f}.word.roman{background:#e2e8f0;color:#1e293b}.word.lvl-1{background:#bbf7d0;color:#14532d;border-bottom:3px solid #15803d}.word.lvl-2{background:#a5f3fc;color:#164e63;border-bottom:3px solid #0e7490}.word.lvl-3{background:#bfdbfe;color:#1e3a8a;border-bottom:3px solid #1d4ed8}.word.lvl-4{background:#fde68a;color:#78350f;border-bottom:3px solid #b45309}.word.lvl-5{background:#fecaca;color:#7f1d1d;border-bottom:3px solid #b91c1c}.word.lvl-6{background:#ddd6fe;color:#3b0764;border-bottom:3px solid #6d28d9}.word.lvl-none{background:#e2e8f0;color:#1e293b;border-bottom:3px solid #64748b}.words-dot.lvl-1,.words-seg.lvl-1{background:#15803d;color:#fff}.words-dot.lvl-2,.words-seg.lvl-2{background:#0e7490;color:#fff}.words-dot.lvl-3,.words-seg.lvl-3{background:#1d4ed8;color:#fff}.words-dot.lvl-4,.words-seg.lvl-4{background:#b45309;color:#fff}.words-dot.lvl-5,.words-seg.lvl-5{background:#b91c1c;color:#fff}.words-dot.lvl-6,.words-seg.lvl-6{background:#6d28d9;color:#fff}.words-dot.lvl-none,.words-seg.lvl-none{background:#64748b;color:#fff}.word.lvl-iv.lvl-1.lvl-hi-2{background:linear-gradient(90deg,#bbf7d0 50%,#a5f3fc 0);border-bottom-color:#15803d}.word.lvl-iv.lvl-2.lvl-hi-3{background:linear-gradient(90deg,#a5f3fc 50%,#bfdbfe 0);border-bottom-color:#0e7490}.word.lvl-iv.lvl-3.lvl-hi-4{background:linear-gradient(90deg,#bfdbfe 50%,#fde68a 0);border-bottom-color:#1d4ed8}.word.lvl-iv.lvl-4.lvl-hi-5{background:linear-gradient(90deg,#fde68a 50%,#fecaca 0);border-bottom-color:#b45309}.word.lvl-iv.lvl-5.lvl-hi-6{background:linear-gradient(90deg,#fecaca 50%,#ddd6fe 0);border-bottom-color:#b91c1c}.word.lvl-iv{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.words-dot.lvl-iv.lvl-1.lvl-hi-2,.words-seg.lvl-iv.lvl-1.lvl-hi-2{background:linear-gradient(90deg,#15803d 50%,#0e7490 0)}.words-dot.lvl-iv.lvl-2.lvl-hi-3,.words-seg.lvl-iv.lvl-2.lvl-hi-3{background:linear-gradient(90deg,#0e7490 50%,#1d4ed8 0)}.words-dot.lvl-iv.lvl-3.lvl-hi-4,.words-seg.lvl-iv.lvl-3.lvl-hi-4{background:linear-gradient(90deg,#1d4ed8 50%,#b45309 0)}.words-dot.lvl-iv.lvl-4.lvl-hi-5,.words-seg.lvl-iv.lvl-4.lvl-hi-5{background:linear-gradient(90deg,#b45309 50%,#b91c1c 0)}.words-dot.lvl-iv.lvl-5.lvl-hi-6,.words-seg.lvl-iv.lvl-5.lvl-hi-6{background:linear-gradient(90deg,#b91c1c 50%,#6d28d9 0)}.words-seg{justify-content:center;font-size:.6875rem;font-weight:700;overflow:hidden}.words-chip,.words-seg{display:inline-flex;align-items:center}.words-chip{gap:.375rem;background:none;border:1px solid transparent;border-radius:.375rem;padding:.0625rem .375rem;font:inherit;cursor:pointer}.words-chip:hover{border-color:var(--border-color)}.words-chip[aria-pressed=true]{border-color:#1d4ed8;background:#eff6ff}.words-chip .words-dot{min-width:1.75rem;width:auto;height:auto;border-radius:.25rem;padding:0 .3125rem;margin:0;font-size:.6875rem;font-weight:700;text-align:center;line-height:1.2}.words-unknown{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.375rem}.words-unknown li{background:#fef3c7;color:#78350f;border-radius:.375rem;padding:.125rem .5rem;font-size:.875rem}.words-count{margin-left:.25rem;color:#92400e;font-size:.75rem}.experts-row{display:flex;flex-wrap:wrap;gap:.5rem .75rem;align-items:center;margin:.5rem 0}.experts-row input:not([type]),.experts-row input[type=text],.experts-row textarea{flex:1 1 18rem;min-width:12rem}.experts-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.experts-list{list-style:none;padding:0;margin:.5rem 0;display:flex;flex-direction:column;gap:.375rem;font-size:.9375rem}.experts-list li{display:flex;flex-wrap:wrap;gap:.25rem .75rem;align-items:baseline}.experts-table{width:100%;border-collapse:collapse;font-size:.9375rem}.experts-table td,.experts-table th{text-align:left;padding:.375rem .5rem;border-bottom:1px solid var(--border-color)}.experts-form{display:flex;flex-direction:column;gap:.5rem}.btn-link{background:none;border:0;padding:0;color:#1d4ed8;text-decoration:underline;cursor:pointer;font:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}a.btn-outline{display:inline-block;padding:.5rem 1rem;border-radius:.5rem;text-decoration:none}.experts-row input[type=text],.experts-row select,.experts-row textarea{padding:.375rem .5rem;border:1px solid var(--border-color);border-radius:.375rem;font:inherit}.experts-row input[type=text]:focus,.experts-row select:focus,.experts-row textarea:focus{outline:2px solid #1d4ed8;outline-offset:1px}.words-text{outline-offset:2px}.words-text:focus-visible{outline:2px solid #1d4ed8}.words-block{display:block;content-visibility:auto;contain-intrinsic-size:auto 12em}.word{cursor:pointer;scroll-margin-top:4rem}.word.dim{opacity:.3}.word.active{outline:2px solid #1d4ed8;outline-offset:1px}.words-text.show-codes .word[data-lv]:after{content:attr(data-lv);font-size:.625rem;vertical-align:sub;margin-left:1px;font-weight:700}.word-detail{position:sticky;top:0;z-index:1;background:#f8fafc;border:1px solid var(--border-color);border-radius:.5rem;padding:.5rem .75rem;font-size:.875rem;display:flex;flex-wrap:wrap;gap:.25rem .75rem;align-items:baseline}.words-codes-toggle{margin-left:auto;font-size:.8125rem;display:inline-flex;gap:.25rem;align-items:center}.words-filters{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;font-size:.875rem}.words-filters label{display:inline-flex;gap:.375rem;align-items:center}.words-filters select{padding:.25rem .5rem;border:1px solid var(--border-color);border-radius:.375rem;font:inherit}.words-filter-count{color:var(--text-muted,#475569)}.words-unit-toggle{margin-left:.75rem;font-weight:400;display:inline-flex;gap:.75rem}.words-unit-toggle label{display:inline-flex;gap:.25rem;align-items:center}.words-copy{margin-left:.75rem;padding:.125rem .625rem;font-size:.8125rem}.progress-note{display:flex;flex-direction:column;gap:.375rem;font-size:.875rem;color:var(--text-muted,#475569)}.progress-bar{display:block;height:.25rem;border-radius:.125rem;background:linear-gradient(90deg,#e2e8f0,#1d4ed8 50%,#e2e8f0);background-size:200% 100%;animation:progress-slide 1.2s linear infinite}@keyframes progress-slide{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.progress-bar{animation:none}}.words-jump{display:inline-flex;flex-wrap:wrap;gap:.375rem}.words-jump .btn-outline{padding:.125rem .625rem;font-size:.8125rem}.words-jump .btn-outline:disabled{opacity:.5;cursor:default}.words-fab{position:fixed;right:1.25rem;bottom:1.25rem;z-index:5;padding:.625rem 1rem;border-radius:999px;box-shadow:0 2px 8px rgba(15,23,42,.35)}.level-rows{list-style:none;padding:0;margin:.5rem 0 0;display:flex;flex-direction:column;gap:.25rem}.level-row{display:grid;grid-template-columns:5.5rem minmax(4rem,1fr) 9rem;gap:.5rem;align-items:center;font-size:.8125rem}.level-track{display:block;height:1rem;background:#e2e8f0;border-radius:.25rem;overflow:hidden}.level-fill.words-seg{display:block;height:100%;min-width:3px;border-radius:.25rem}.level-num{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.level-row.empty .level-num{color:var(--text-muted,#475569)}.level-row.empty .words-dot{opacity:.55}@media (max-width:30rem){.level-row{grid-template-columns:4.5rem 1fr}.level-num{grid-column:2}}.attribution-details>summary{cursor:pointer;padding:.25rem 0}.attribution-details>summary:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}.attribution-details .source-card,.attribution-details[open]>summary{margin-bottom:.5rem}.source-lines{list-style:none;padding:0;margin:.25rem 0 0;display:flex;flex-direction:column;gap:.25rem}.source-lines li{line-height:1.5;overflow-wrap:anywhere}.usage-filters label{display:flex;flex-direction:column;gap:.125rem;font-size:.875rem}.usage-filters input,.usage-filters select{padding:.375rem .5rem;border:1px solid var(--border-color);border-radius:.375rem;font:inherit}.table-scroll{overflow-x:auto}.usage-table td,.usage-table th{vertical-align:top;white-space:nowrap}.usage-filters input[type=date],.usage-filters input[type=text],.usage-filters select{flex:0 0 auto;width:12rem;min-width:0}.usage-filters input[type=date]{width:10rem}.usage-pager{display:flex;flex-wrap:wrap;gap:.5rem .75rem;align-items:center;margin:1rem 0}.usage-pager label{display:flex;align-items:center;gap:.375rem;font-size:.875rem}