.sentence-structure-v2{box-sizing:border-box;max-width:100%;min-width:0;width:100%;padding:18px 14px 12px;background:#fff;color:#172033;border-radius:10px;text-align:start;border:1px solid #d5dce7;font-family:Arial,"Microsoft YaHei",sans-serif}
.sentence-structure-v2 *{box-sizing:border-box}
.structure-line{display:flex;align-items:stretch;gap:8px;max-width:100%;overflow-x:auto;padding:3px 3px 12px;scrollbar-color:#8498bd #edf1f7;scrollbar-width:thin}
.structure-line:focus-visible{outline:2px solid #2457b8;outline-offset:3px}
.structure-group{--group-bg:#e7ebf4;--group-line:#a7b3c8;display:flex;flex:0 0 auto;flex-direction:column;min-width:0}
.structure-group[data-tone=subject]{--group-bg:#ffd7db;--group-line:#ce929c}
.structure-group[data-tone=predicate]{--group-bg:#f6c8f5;--group-line:#bd83bb}
.structure-group[data-tone=object]{--group-bg:#dce0ff;--group-line:#9b9ed1}
.structure-group[data-tone=adverbial]{--group-bg:#d5f3ed;--group-line:#8bbdb1}
.structure-group[data-tone=complement]{--group-bg:#fff0cc;--group-line:#c7ad72}
.structure-words{display:flex;align-items:stretch;gap:0}
.structure-word{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;background:transparent;border:0;border-radius:4px;padding:0 7px 3px;margin:0;min-width:44px;cursor:pointer;color:#111827;font:inherit;line-height:1.2;-webkit-appearance:none;touch-action:manipulation}
.structure-word:hover{background:#f0f4fa}.structure-word:focus-visible{outline:2px solid #2457b8;outline-offset:1px}
.structure-ipa{min-height:22px;white-space:nowrap;font-size:16px;color:#27344c;font-family:Arial,"Segoe UI",sans-serif}
.structure-pos{white-space:nowrap;font-size:14px;line-height:1.35;padding:1px 5px;border-radius:3px;background:#eee2fa;color:#3d235d}
.structure-pos[data-pos*=名词]{background:#f9dce4;color:#60283a}.structure-pos[data-pos*=动词]{background:#efd6f1;color:#59265e}.structure-pos[data-pos*=副词]{background:#fff1c6;color:#594613}.structure-pos[data-pos*=冠词]{background:#d4f1ef;color:#174a49}
.structure-word b{align-self:stretch;text-align:center;white-space:nowrap;font-size:clamp(24px,2.4vw,36px);font-weight:700;line-height:1.25;background:var(--group-bg,#edf1f7);padding:2px 1px}
.structure-function{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:space-between;gap:5px;min-height:67px;border:1px solid var(--group-line);border-radius:0 0 6px 6px;background:var(--group-bg);padding:7px 10px;text-align:center}
.structure-translation{font-size:16px;line-height:1.4;max-width:34ch;white-space:normal;overflow-wrap:anywhere}.structure-translation-pending{font-size:14px;color:#465066}
.structure-function strong{font-size:20px;font-weight:600;line-height:1.3}.structure-punctuation{align-self:center;font-size:28px;color:#27344c;padding-top:40px}
.structure-note{margin:5px 2px 0!important;font-size:14px!important;line-height:1.6!important;color:#46546d!important;text-align:start!important}
.structure-notice,.structure-loading{font-size:16px!important;line-height:1.6!important;color:#33415c!important;margin:5px 0!important;text-align:start!important}
.structure-notice button{font:inherit;color:#174ba2;background:#eef4ff;border:1px solid #b3c6e7;border-radius:5px;min-height:44px;padding:4px 12px;cursor:pointer}
.structure-unverified .structure-word b{background:#edf1f7}
.structure-word-dialog{width:min(500px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;padding:28px;background:#fff;color:#172033;border:1px solid #c7d3e5;border-radius:12px;text-align:start;font:16px/1.6 Arial,"Microsoft YaHei",sans-serif}
.structure-word-dialog::backdrop{background:rgb(3 9 20 / .7)}.structure-word-dialog h2{font-size:32px;margin:10px 0}.structure-word-dialog p{margin:10px 0;font-size:16px;line-height:1.6}
.structure-close{float:right;border:1px solid #c1cde0;background:#f4f7fc;color:#263a59;width:44px;height:44px;border-radius:6px;font-size:25px;cursor:pointer}
.structure-dialog-pos{display:inline-block;background:#eee2fa;color:#3d235d;border-radius:3px;padding:2px 8px;font-size:14px}.structure-dialog-ipa{font-size:23px!important;color:#46546d}
.structure-speak{background:#5149df;color:#fff;border:0;border-radius:6px;padding:10px 16px;min-height:44px;font-size:16px;cursor:pointer}.structure-speak:focus-visible,.structure-close:focus-visible{outline:2px solid #2457b8;outline-offset:3px}
@media(max-width:700px){.sentence-structure-v2{padding:12px 8px 8px}.structure-line{gap:6px}.structure-word{padding-inline:5px}.structure-word b{font-size:25px}.structure-function strong{font-size:18px}.structure-function{padding:6px;min-height:70px}.structure-note{font-size:14px!important}}

.structure-explanation{margin:8px 2px 0!important;color:#33415c!important;font-size:16px!important;line-height:1.6!important;text-align:start!important}
.structure-punctuation{align-self:flex-start;padding-top:52px;font-size:clamp(24px,2.4vw,36px);line-height:1.25}

/* Continuous divider below each complete English constituent. */
.sentence-structure-v2 .structure-function{border-top:2px solid #000}
.structure-candidate-notice{padding:8px 12px!important;border:1px solid #e2c27d;border-left:4px solid #ae7600;border-radius:5px;background:#fff8e8;color:#624800!important}.structure-group-candidate .structure-function{border-top:2px solid #000}