:root {
    --ren-ink: #08131d;
    --ren-ink-2: #102330;
    --ren-paper: #f4efe4;
    --ren-paper-2: #e9e0d0;
    --ren-white: #fffdf7;
    --ren-copper: #d69755;
    --ren-copper-2: #f0bd7e;
    --ren-blue: #78b8d1;
    --ren-blue-2: #c6e3ee;
    --ren-green: #6f9b79;
    --ren-red: #b9634e;
    --ren-muted: #6d7d86;
    --ren-line: rgba(9, 25, 36, .14);
    --ren-shadow: 0 28px 70px rgba(0, 0, 0, .20);
}

.ren-v475-body {
    min-width: 320px;
    color: var(--ren-paper);
    background:
        linear-gradient(rgba(120, 184, 209, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 184, 209, .035) 1px, transparent 1px),
        radial-gradient(circle at 14% 4%, rgba(214, 151, 85, .16), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(120, 184, 209, .15), transparent 28%),
        linear-gradient(145deg, #07111a 0%, #0b1b27 45%, #102a38 100%);
    background-size: 30px 30px, 30px 30px, auto, auto, auto;
    background-attachment: fixed;
}

.ren-v475-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.ren-shell { min-height: 100vh; }

.ren-header {
    min-height: 74px;
    padding: 12px clamp(14px, 2vw, 30px);
    background: rgba(7, 17, 26, .82);
    border-bottom-color: rgba(198, 227, 238, .14);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .16);
}

.ren-brand-mark {
    color: var(--ren-copper-2);
    background: linear-gradient(145deg, rgba(214, 151, 85, .20), rgba(120, 184, 209, .08));
    border-color: rgba(240, 189, 126, .28);
}

.ren-header .wb-title {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 15px;
    letter-spacing: .06em;
}

.ren-version-chip {
    display: grid;
    gap: 1px;
    min-width: 170px;
    margin-left: auto;
    margin-right: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(214, 151, 85, .22);
    border-radius: 9px;
    color: rgba(244, 239, 228, .7);
    background: rgba(214, 151, 85, .07);
}
.ren-version-chip span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.ren-version-chip strong { color: var(--ren-copper-2); font-size: 12px; font-variant-numeric: tabular-nums; }

.ren-main { width: min(1780px, 100%); margin: 0 auto; padding: 22px clamp(12px, 2vw, 28px) 44px; }

.ren-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
    padding: clamp(24px, 3vw, 42px);
    margin-bottom: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(198, 227, 238, .13);
    border-radius: 22px;
    background:
        linear-gradient(100deg, rgba(5, 18, 28, .82), rgba(13, 48, 64, .54)),
        repeating-linear-gradient(135deg, transparent 0 36px, rgba(255,255,255,.025) 36px 37px);
    box-shadow: var(--ren-shadow);
}
.ren-hero::after {
    content: "V4.7.5";
    position: absolute;
    right: -18px;
    top: -38px;
    font: 700 clamp(74px, 10vw, 154px)/1 Georgia, serif;
    letter-spacing: -.06em;
    color: rgba(198, 227, 238, .045);
    pointer-events: none;
}
.ren-kicker, .ren-section-head span, .ren-results-head > div > span, .ren-card-title-row > div > span, .ren-dialog-kicker {
    color: var(--ren-copper-2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.ren-hero h1 {
    max-width: 850px;
    margin: 8px 0 10px;
    font: 600 clamp(28px, 3.3vw, 52px)/1.12 "Songti SC", "Noto Serif SC", serif;
    letter-spacing: -.035em;
    color: var(--ren-paper);
}
.ren-hero p { max-width: 760px; color: rgba(198, 227, 238, .70); font-size: 14px; line-height: 1.8; }
.ren-hero-meta { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 1px; min-width: 360px; border: 1px solid rgba(198, 227, 238, .14); background: rgba(198, 227, 238, .12); border-radius: 13px; overflow: hidden; z-index: 1; }
.ren-hero-meta div { display: grid; gap: 5px; padding: 15px 14px; background: rgba(6, 20, 30, .82); }
.ren-hero-meta span { color: rgba(198, 227, 238, .55); font-size: 11px; }
.ren-hero-meta strong { color: var(--ren-white); font-size: 13px; }

.ren-workspace {
    display: grid;
    grid-template-columns: 220px minmax(540px, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.ren-rail, .ren-summary {
    position: sticky;
    top: 92px;
    border: 1px solid rgba(198, 227, 238, .12);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(7, 19, 28, .76);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .20);
}

.ren-rail { padding: 14px; }
.ren-rail-title { padding: 7px 8px 12px; color: rgba(198, 227, 238, .48); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.ren-step {
    width: 100%;
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-areas: "num title" "num sub";
    gap: 2px 8px;
    align-items: center;
    padding: 11px 10px;
    margin: 2px 0;
    border: 0;
    border-radius: 11px;
    color: rgba(244, 239, 228, .64);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}
.ren-step:hover, .ren-step.is-active { color: var(--ren-white); background: rgba(120, 184, 209, .10); }
.ren-step.is-active { box-shadow: inset 2px 0 0 var(--ren-copper); }
.ren-step span { grid-area: num; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(198, 227, 238, .16); border-radius: 50%; color: var(--ren-copper-2); font: 700 10px/1 Georgia, serif; }
.ren-step b { grid-area: title; font-size: 12px; }
.ren-step small { grid-area: sub; color: rgba(198, 227, 238, .42); font-size: 10px; }

.ren-draft-box { margin-top: 14px; padding: 13px; border: 1px solid rgba(214, 151, 85, .18); border-radius: 12px; background: rgba(214, 151, 85, .06); }
.ren-draft-box > div { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.ren-draft-box > div span { color: var(--ren-copper-2); }
.ren-draft-box p { margin: 8px 0 10px; color: rgba(198, 227, 238, .48); font-size: 10px; line-height: 1.6; }

.ren-canvas { min-width: 0; display: grid; gap: 18px; }
.ren-section { scroll-margin-top: 96px; }
.ren-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 8px 4px 11px; }
.ren-section-head h2, .ren-results-head h2 { margin: 4px 0 0; color: var(--ren-paper); font: 600 25px/1.2 "Songti SC", "Noto Serif SC", serif; letter-spacing: -.02em; }
.ren-section-head p { max-width: 420px; color: rgba(198, 227, 238, .52); font-size: 11px; text-align: right; }

.ren-card {
    border: 1px solid rgba(198, 227, 238, .13);
    border-radius: 17px;
    background: rgba(243, 239, 229, .97);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .17);
    color: var(--ren-ink);
}
.ren-card-pad { padding: clamp(17px, 2.3vw, 26px); }

.ren-form-grid { display: grid; gap: 15px; }
.ren-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ren-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ren-form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ren-span-2 { grid-column: span 2; }

.ren-field { display: grid; gap: 7px; min-width: 0; }
.ren-field > span, .ren-option-grid label > span { color: #31434c; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.ren-field em { color: var(--ren-red); font-style: normal; }
.ren-field input, .ren-field select, .ren-field textarea, .ren-option-grid select {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid rgba(8, 19, 29, .15);
    border-radius: 9px;
    outline: none;
    color: var(--ren-ink);
    background: rgba(255, 253, 247, .83);
    font: inherit;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.ren-field textarea { resize: vertical; min-height: 92px; }
.ren-field input:hover, .ren-field select:hover, .ren-field textarea:hover, .ren-option-grid select:hover { border-color: rgba(8, 19, 29, .30); }
.ren-field input:focus, .ren-field select:focus, .ren-field textarea:focus, .ren-option-grid select:focus { border-color: #3b829e; box-shadow: 0 0 0 3px rgba(59, 130, 158, .14); background: var(--ren-white); }

.ren-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ren-upload { position: relative; display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "ico title pick" "ico sub pick"; align-items: center; gap: 1px 12px; min-height: 94px; padding: 18px; border: 1px dashed rgba(198, 227, 238, .28); border-radius: 15px; color: var(--ren-paper); background: rgba(120, 184, 209, .06); cursor: pointer; transition: .18s ease; }
.ren-upload:hover, .ren-upload.is-dragging { transform: translateY(-2px); border-color: rgba(240, 189, 126, .58); background: rgba(214, 151, 85, .08); }
.ren-upload input { position: absolute; opacity: 0; pointer-events: none; }
.ren-upload-icon { grid-area: ico; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(198, 227, 238, .18); border-radius: 12px; color: var(--ren-copper-2); font-size: 23px; background: rgba(198, 227, 238, .06); }
.ren-upload strong { grid-area: title; font-size: 13px; }
.ren-upload small { grid-area: sub; color: rgba(198, 227, 238, .48); font-size: 10px; }
.ren-upload b { grid-area: pick; max-width: 150px; padding: 7px 10px; border-radius: 8px; color: var(--ren-blue-2); background: rgba(120, 184, 209, .10); font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ren-upload:focus-within { border-color: rgba(240, 189, 126, .72); background: rgba(214, 151, 85, .10); box-shadow: 0 0 0 3px rgba(214, 151, 85, .18); outline: none; }

.ren-sub-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; padding: 13px 14px; border: 1px solid rgba(214, 151, 85, .32); border-radius: 11px; background: rgba(214, 151, 85, .06); }
.ren-sub-panel[hidden] { display: none; }
.ren-sub-panel-label { grid-column: 1 / -1; color: #31434c; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.ren-field-note { grid-column: 1 / -1; margin: 2px 0 0; color: #6b7a82; font-size: 10px; line-height: 1.6; }
.ren-sub-panel > label { display: grid; gap: 6px; min-width: 0; }
.ren-sub-panel label > span { color: #53636b; font-size: 10px; }
.ren-sub-panel input[type="number"], .ren-sub-panel select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(8, 19, 29, .15);
    border-radius: 9px;
    outline: none;
    color: var(--ren-ink);
    background: rgba(255, 253, 247, .83);
    font: inherit;
}
.ren-sub-panel input[type="number"]:focus, .ren-sub-panel select:focus { border-color: #3b829e; box-shadow: 0 0 0 3px rgba(59, 130, 158, .14); background: var(--ren-white); }
.ren-sub-panel input[type="range"] { width: 100%; accent-color: #2e7793; }
.ren-sub-check { display: flex !important; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ren-line); border-radius: 9px; color: #42525a; background: rgba(255, 253, 247, .55); font-size: 11px; cursor: pointer; }
.ren-sub-check input { accent-color: #2e7793; }
.ren-terrace-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 10px; border-top: 1px dashed rgba(8, 19, 29, .12); }

.ren-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 13px; color: #44545c; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ren-divider::after { content: ""; height: 1px; flex: 1; background: var(--ren-line); }
.ren-count-grid { display: grid; grid-template-columns: repeat(8, minmax(58px, 1fr)); gap: 8px; }
.ren-count-grid label { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--ren-line); border-radius: 10px; background: rgba(255, 253, 247, .58); }
.ren-count-grid span { color: #53636b; font-size: 10px; }
.ren-count-grid input { width: 100%; border: 0; outline: 0; color: var(--ren-ink); background: transparent; font: 700 18px/1 Georgia, serif; }
.ren-inline-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ren-inline-checks label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--ren-line); border-radius: 999px; color: #42525a; background: rgba(255, 253, 247, .52); font-size: 11px; cursor: pointer; }
.ren-inline-checks input, .ren-upgrade-grid input, .ren-mode-option input { accent-color: #2e7793; }

.ren-mode-fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; border: 0; }
.ren-mode-fieldset legend { margin-bottom: 9px; color: #31434c; font-size: 11px; font-weight: 700; }
.ren-mode-option { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--ren-line); border-radius: 11px; background: rgba(255,253,247,.55); cursor: pointer; transition: .16s; }
.ren-mode-option.is-selected { border-color: rgba(46, 119, 147, .45); box-shadow: inset 0 0 0 1px rgba(46, 119, 147, .14); background: rgba(120, 184, 209, .10); }
.ren-mode-option span { display: grid; gap: 3px; }
.ren-mode-option b { font-size: 12px; }
.ren-mode-option small { color: #75838a; font-size: 10px; }
.ren-config-row { margin-top: 17px; }

.ren-grade-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.ren-grade-cards button { display: grid; gap: 4px; padding: 13px; border: 1px solid var(--ren-line); border-radius: 11px; color: #2d3c44; background: rgba(255,253,247,.58); text-align: left; cursor: pointer; transition: .16s; }
.ren-grade-cards button:hover { transform: translateY(-1px); }
.ren-grade-cards button.is-selected { border-color: rgba(214, 151, 85, .62); background: rgba(214, 151, 85, .10); box-shadow: inset 0 -3px 0 var(--ren-copper); }
.ren-grade-cards span { color: var(--ren-copper); font: 700 10px/1 Georgia, serif; letter-spacing: .12em; }
.ren-grade-cards b { font-size: 13px; }
.ren-grade-cards small { color: #75838a; font-size: 10px; }

.ren-mixed-panel { margin-top: 12px; }
.ren-card-title-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ren-card-title-row h3 { margin: 4px 0 0; color: var(--ren-ink); font: 600 20px/1.2 "Songti SC", serif; }
.ren-card-title-row > small { color: #6d7d86; font-size: 10px; }
.ren-upgrade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ren-upgrade-grid label { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "check title" "check main" "check sub"; column-gap: 9px; align-items: start; padding: 14px; border: 1px solid var(--ren-line); border-radius: 11px; background: rgba(255,253,247,.55); cursor: pointer; }
.ren-upgrade-grid input { grid-area: check; margin-top: 2px; }
.ren-upgrade-grid span { grid-area: title; color: #2e7793; font-size: 11px; font-weight: 800; }
.ren-upgrade-grid b { grid-area: main; margin-top: 4px; font-size: 12px; }
.ren-upgrade-grid small { grid-area: sub; margin-top: 3px; color: #79868c; font-size: 10px; }

.ren-option-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ren-option-grid label { display: grid; gap: 6px; }
.ren-inline-checks-wide { border-top: 1px solid var(--ren-line); padding-top: 15px; }

.ren-style-card { padding: 0; overflow: hidden; background: rgba(7, 19, 28, .87); color: var(--ren-paper); }
.ren-style-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid rgba(198, 227, 238, .10); }
.ren-style-filters { display: flex; flex-wrap: wrap; gap: 6px; max-height: 84px; overflow: auto; }
.ren-style-filters button, .ren-tabs button { padding: 7px 10px; border: 1px solid rgba(198, 227, 238, .13); border-radius: 999px; color: rgba(244, 239, 228, .62); background: rgba(198, 227, 238, .04); font-size: 10px; cursor: pointer; }
.ren-style-filters button.is-active, .ren-tabs button.is-active { color: var(--ren-ink); border-color: var(--ren-copper-2); background: var(--ren-copper-2); }
.ren-style-status { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: rgba(198, 227, 238, .50); font-size: 10px; }
.ren-style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; min-height: 260px; background: rgba(198, 227, 238, .10); }
.ren-style-item { position: relative; min-height: 190px; border: 0; padding: 0; overflow: hidden; background: var(--ren-ink); cursor: pointer; }
.ren-style-item img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; display: block; filter: saturate(.86) contrast(1.03); transition: transform .45s ease, filter .25s ease; }
.ren-style-item:hover img, .ren-style-item.is-selected img { transform: scale(1.045); filter: saturate(1) contrast(1.04); }
.ren-style-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(3, 12, 18, .86)); }
.ren-style-item span { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 11px; display: flex; align-items: end; justify-content: space-between; color: #fff; font-size: 11px; text-align: left; }
.ren-style-item span small { color: rgba(255,255,255,.58); font-size: 9px; }
.ren-style-item.is-selected { outline: 3px solid var(--ren-copper-2); outline-offset: -3px; }
.ren-style-item.is-selected::before { content: "已选入方案"; position: absolute; z-index: 2; top: 10px; right: 10px; padding: 5px 8px; border-radius: 999px; color: var(--ren-ink); background: var(--ren-copper-2); font-size: 9px; font-weight: 800; }
.ren-gallery-loading { grid-column: 1 / -1; display: grid; place-items: center; min-height: 260px; color: rgba(198, 227, 238, .48); }
.ren-selected-style { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; color: var(--ren-paper); background: rgba(214, 151, 85, .08); }
.ren-selected-style span { font-size: 11px; }
.ren-selected-style small { color: rgba(198, 227, 238, .45); font-size: 10px; }

.ren-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 17px; }
.ren-action { display: grid; gap: 5px; min-height: 76px; padding: 14px 16px; border: 1px solid var(--ren-line); border-radius: 11px; color: #273740; background: rgba(255,253,247,.60); text-align: left; cursor: pointer; transition: .18s; }
.ren-action:hover { transform: translateY(-2px); border-color: rgba(46,119,147,.36); box-shadow: 0 10px 24px rgba(8,19,29,.08); }
.ren-action-primary { color: var(--ren-paper); border-color: #173d4e; background: linear-gradient(135deg, #173d4e, #27657c); }
.ren-action span { font-size: 13px; font-weight: 800; }
.ren-action small { color: #75838a; font-size: 10px; }
.ren-action-primary small { color: rgba(230, 244, 255, .65); }
.ren-action:disabled { opacity: .55; cursor: wait; transform: none; }
.ren-action.is-loading::after { content: "正在处理…"; color: var(--ren-copper-2); font-size: 10px; }

.ren-summary { padding: 16px; }
.ren-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid rgba(198,227,238,.10); }
.ren-summary-top > span { color: rgba(198,227,238,.50); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.ren-summary .wb-status { display: inline-flex; align-items: center; gap: 6px; color: rgba(244,239,228,.7); font-size: 10px; }
.ren-summary .wb-status i { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(198,227,238,.36); }
.ren-summary .wb-status.running i { background: var(--ren-copper-2); box-shadow: 0 0 0 4px rgba(214,151,85,.12); }
.ren-summary .wb-status.ok i { background: #7fc68b; }
.ren-summary .wb-status.bad i { background: #df8068; }
.ren-summary-price { display: grid; gap: 5px; padding: 22px 0 18px; }
.ren-summary-price small { color: rgba(198,227,238,.46); font-size: 10px; }
.ren-summary-price strong { color: var(--ren-paper); font: 600 31px/1.1 "Songti SC", serif; letter-spacing: -.03em; }
.ren-summary-price span { color: var(--ren-copper-2); font-size: 10px; }
.ren-summary-list { display: grid; gap: 9px; padding: 13px 0; border-top: 1px solid rgba(198,227,238,.10); border-bottom: 1px solid rgba(198,227,238,.10); }
.ren-summary-list div { display: grid; grid-template-columns: 75px 1fr; gap: 10px; }
.ren-summary-list span { color: rgba(198,227,238,.42); font-size: 10px; }
.ren-summary-list b { min-width: 0; color: rgba(244,239,228,.86); font-size: 11px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ren-summary-image { margin: 14px 0; min-height: 146px; overflow: hidden; position: relative; border: 1px solid rgba(198,227,238,.12); border-radius: 11px; background: linear-gradient(135deg, rgba(120,184,209,.09), rgba(214,151,85,.08)); }
.ren-summary-image img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ren-summary-image div { display: grid; place-items: center; min-height: 120px; color: rgba(198,227,238,.22); font: 700 10px/1 Georgia, serif; letter-spacing: .16em; }
.ren-summary-image figcaption { padding: 8px 10px; color: rgba(198,227,238,.45); font-size: 9px; }
.ren-health { padding: 12px; border: 1px solid rgba(198,227,238,.10); border-radius: 11px; background: rgba(198,227,238,.035); }
.ren-health > div:first-child { display: flex; justify-content: space-between; color: rgba(244,239,228,.72); font-size: 10px; }
.ren-health-bar { height: 5px; margin: 9px 0; overflow: hidden; border-radius: 999px; background: rgba(198,227,238,.10); }
.ren-health-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--ren-copper), var(--ren-blue)); transition: width .25s ease; }
.ren-health p { color: rgba(198,227,238,.42); font-size: 9px; line-height: 1.5; }
.ren-summary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ren-btn { min-height: 36px; padding: 8px 11px; border: 1px solid rgba(198,227,238,.15); border-radius: 8px; color: rgba(244,239,228,.80); background: rgba(198,227,238,.05); font-size: 10px; cursor: pointer; transition: .16s; }
.ren-btn:hover { border-color: rgba(240,189,126,.44); }
.ren-btn-primary { color: var(--ren-ink); border-color: var(--ren-copper-2); background: var(--ren-copper-2); font-weight: 800; }
.ren-card .ren-btn-quiet { color: #3e5561; border-color: rgba(8,19,29,.16); background: rgba(255,253,247,.65); }
.ren-log-box { margin-top: 12px; color: rgba(198,227,238,.50); font-size: 10px; }
.ren-log-box summary { cursor: pointer; }
.ren-log-box .wb-log { max-height: 160px; margin-top: 8px; padding: 9px; border-radius: 8px; color: rgba(198,227,238,.58); background: rgba(0,0,0,.18); font: 9px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: auto; }
.wb-log-line.ok { color: #8bd599; }
.wb-log-line.err { color: #f0957d; }

.ren-results { margin-top: 22px; padding: clamp(16px, 2vw, 26px); border: 1px solid rgba(198,227,238,.13); border-radius: 20px; background: rgba(7,19,28,.76); box-shadow: var(--ren-shadow); }
.ren-results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(198,227,238,.10); }
.ren-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ren-result-pane { display: none; padding-top: 16px; color: var(--ren-ink); }
.ren-result-pane.is-active { display: block; }
.ren-empty { min-height: 190px; display: grid; place-content: center; gap: 6px; border: 1px dashed rgba(198,227,238,.16); border-radius: 14px; color: rgba(198,227,238,.45); text-align: center; }
.ren-empty b { color: rgba(244,239,228,.72); font: 600 18px/1.2 "Songti SC", serif; }
.ren-empty span { font-size: 10px; }

/* 报价输出 */
.renovation-report { display: grid; gap: 13px; color: var(--ren-ink); }
.renovation-report > * { min-width: 0; }
.renovation-report-block { padding: clamp(17px, 2vw, 25px); border: 1px solid rgba(8,19,29,.10); border-radius: 14px; background: var(--ren-paper); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.renovation-report-block h3 { margin: 0 0 14px; color: var(--ren-ink); font: 600 22px/1.2 "Songti SC", serif; }
.renovation-report-block h4 { margin: 16px 0 9px; color: #244353; font-size: 13px; }
.renovation-report-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.renovation-chip { padding: 5px 8px; border-radius: 999px; color: #31434c; background: rgba(120,184,209,.13); font-size: 9px; }
.renovation-chip.is-copper { color: #744516; background: rgba(214,151,85,.20); }
.renovation-summary-grid, .renovation-grade-grid, .renovation-plan-grid, .renovation-info-grid { display: grid; gap: 9px; }
.renovation-summary-grid { grid-template-columns: repeat(5, 1fr); }
.renovation-grade-grid { grid-template-columns: repeat(4, 1fr); }
.renovation-plan-grid { grid-template-columns: repeat(3, 1fr); }
.renovation-info-grid { grid-template-columns: repeat(3, 1fr); }
.renovation-summary-card, .renovation-grade-card, .renovation-plan-card, .renovation-info-item { padding: 13px; border: 1px solid rgba(8,19,29,.10); border-radius: 10px; background: rgba(255,253,247,.70); }
.renovation-summary-card span, .renovation-info-item span { display: block; color: #75838a; font-size: 9px; }
.renovation-summary-card strong { display: block; margin-top: 6px; color: #153a4a; font: 700 19px/1 Georgia, serif; }
.renovation-grade-card.active, .renovation-plan-card.active { border-color: rgba(214,151,85,.65); box-shadow: inset 0 -3px 0 var(--ren-copper); }
.renovation-grade-title { color: #2e7793; font-size: 11px; font-weight: 800; }
.renovation-grade-price { margin: 9px 0 7px; color: var(--ren-ink); font: 700 21px/1 Georgia, serif; }
.renovation-grade-card div:not(.renovation-grade-title):not(.renovation-grade-price), .renovation-plan-card div:not(.renovation-grade-title):not(.renovation-grade-price), .renovation-grade-card small, .renovation-plan-card small { color: #6d7d86; font-size: 9px; line-height: 1.6; }
.renovation-table-wrap { overflow: auto; border: 1px solid rgba(8,19,29,.11); border-radius: 10px; }
.renovation-table { width: 100%; min-width: 980px; border-collapse: collapse; color: var(--ren-ink); background: rgba(255,253,247,.72); font-size: 10px; }
.renovation-table th, .renovation-table td { padding: 9px 8px; border-bottom: 1px solid rgba(8,19,29,.08); text-align: right; vertical-align: top; }
.renovation-table th { position: sticky; top: 0; z-index: 1; color: #43555e; background: #e8dece; font-size: 9px; white-space: nowrap; }
.renovation-table th:nth-child(2), .renovation-table td:nth-child(2), .renovation-table th:last-child, .renovation-table td:last-child { text-align: left; }
.renovation-table tbody tr:hover { background: rgba(120,184,209,.07); }
.renovation-money-positive { color: #8c4f21; font-weight: 700; }
.renovation-cost-split { display: flex; gap: 5px; flex-wrap: wrap; color: #65747b; font-size: 8px; }
.renovation-upgrade-list, .renovation-warning-list, .renovation-standards { display: grid; gap: 8px; }
.renovation-upgrade-row, .renovation-warning-list > div, .renovation-standards > div { padding: 10px 12px; border-radius: 9px; background: rgba(214,151,85,.10); color: #46565e; font-size: 10px; line-height: 1.6; }
.renovation-warning-list > div { border-left: 3px solid #bd755d; background: rgba(185,99,78,.08); }
.renovation-standards > div { border-left: 3px solid #6f9b79; background: rgba(111,155,121,.09); }
.renovation-note { margin-top: 12px; color: #697980; font-size: 9px; line-height: 1.7; }
.renovation-image-preview { width: 100%; max-height: 720px; object-fit: contain; border-radius: 10px; background: #09131d; }
.renovation-content-tree { display: grid; gap: 12px; }
.renovation-content-level { padding: 18px; border-radius: 12px; background: var(--ren-paper); color: var(--ren-ink); }
.renovation-content-children, .renovation-content-items { display: grid; gap: 8px; }
.renovation-content-child, .renovation-content-item { padding: 12px; border: 1px solid rgba(8,19,29,.10); border-radius: 9px; background: rgba(255,253,247,.72); }
.renovation-content-item-title { font-weight: 800; }
.renovation-content-item-text, .renovation-content-hint { margin-top: 5px; color: #607078; font-size: 10px; line-height: 1.7; }
.wb-pre { white-space: pre-wrap; color: #2f414a; font: 10px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }

.ren-style-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ren-style-board figure { overflow: hidden; border-radius: 10px; background: var(--ren-ink); }
.ren-style-board img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ren-style-board figcaption { padding: 8px; color: rgba(244,239,228,.75); font-size: 9px; }

.ren-dialog { width: min(520px, calc(100vw - 28px)); padding: 0; border: 1px solid rgba(198,227,238,.16); border-radius: 16px; color: var(--ren-paper); background: #0b1c28; box-shadow: 0 35px 90px rgba(0,0,0,.46); }
.ren-dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(5px); }
.ren-dialog form { padding: 25px; }
.ren-dialog h3 { margin: 7px 0 9px; font: 600 24px/1.2 "Songti SC", serif; }
.ren-dialog p { color: rgba(198,227,238,.58); font-size: 11px; line-height: 1.8; }
.ren-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.ren-dialog-actions button { padding: 9px 12px; border: 1px solid rgba(198,227,238,.14); border-radius: 8px; color: rgba(244,239,228,.75); background: rgba(198,227,238,.05); cursor: pointer; }
.ren-dialog-actions .is-primary { color: var(--ren-ink); border-color: var(--ren-copper-2); background: var(--ren-copper-2); }

@media (max-width: 1320px) {
    .ren-workspace { grid-template-columns: 190px minmax(520px, 1fr) 290px; gap: 13px; }
    .ren-count-grid { grid-template-columns: repeat(4, 1fr); }
    .ren-form-grid-4, .ren-option-grid { grid-template-columns: repeat(2, 1fr); }
    .ren-summary-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
    .ren-version-chip { display: none; }
    .ren-workspace { grid-template-columns: 170px minmax(0, 1fr); }
    .ren-summary { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .ren-summary-top, .ren-summary-actions, .ren-log-box { grid-column: 1 / -1; }
    .ren-summary-price, .ren-summary-list, .ren-summary-image, .ren-health { margin: 0; }
    .ren-summary-image { min-height: 170px; }
    .ren-summary-image img { height: 170px; }
    .ren-style-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .ren-header { position: static; flex-wrap: wrap; }
    .ren-header .wb-nav { width: 100%; justify-content: flex-start; overflow-x: auto; }
    .ren-main { padding-top: 12px; }
    .ren-hero { grid-template-columns: 1fr; }
    .ren-hero-meta { min-width: 0; }
    .ren-workspace { display: block; }
    .ren-rail { position: static; display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; border-radius: 13px; }
    .ren-rail-title, .ren-draft-box { display: none; }
    .ren-step { min-width: 118px; grid-template-columns: 28px 1fr; padding: 8px; }
    .ren-canvas { display: grid; }
    .ren-summary { margin-top: 16px; }
    .ren-form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ren-upload-grid, .ren-mode-fieldset, .ren-upgrade-grid { grid-template-columns: 1fr; }
    .ren-grade-cards { grid-template-columns: repeat(2, 1fr); }
    .ren-style-grid { grid-template-columns: repeat(2, 1fr); }
    .ren-results-head { align-items: flex-start; flex-direction: column; }
    .ren-tabs { justify-content: flex-start; }
    .renovation-summary-grid, .renovation-grade-grid, .renovation-plan-grid, .renovation-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .ren-header .wb-nav { gap: 6px; overflow: visible; }
    .ren-header .wb-link { flex: 0 0 auto; padding: 8px 9px; white-space: nowrap; }
    .ren-header .wb-user { min-width: 0; flex: 1 1 auto; justify-content: flex-end; gap: 4px; padding-left: 8px !important; }
    .ren-header .wb-user #wb-username { min-width: 0; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ren-header .wb-link-quit { padding-left: 2px; padding-right: 2px; white-space: nowrap; }
    .ren-main { padding-left: 9px; padding-right: 9px; }
    .ren-hero { padding: 21px 18px; border-radius: 15px; }
    .ren-hero-meta { grid-template-columns: 1fr; }
    .ren-hero-meta div { grid-template-columns: 1fr auto; }
    .ren-section-head { align-items: flex-start; flex-direction: column; gap: 5px; }
    .ren-section-head p { text-align: left; }
    .ren-form-grid-2, .ren-form-grid-3, .ren-form-grid-4, .ren-option-grid, .ren-action-grid { grid-template-columns: 1fr; }
    .ren-span-2 { grid-column: auto; }
    .ren-count-grid { grid-template-columns: repeat(2, 1fr); }
    .ren-sub-panel { grid-template-columns: 1fr; }
    .ren-terrace-row { grid-template-columns: 1fr; }
    .ren-upload { grid-template-columns: 38px 1fr; grid-template-areas: "ico title" "ico sub" "pick pick"; }
    .ren-upload b { max-width: none; margin-top: 7px; }
    .ren-card-title-row, .ren-style-toolbar, .ren-selected-style { align-items: flex-start; flex-direction: column; }
    .ren-style-status { width: 100%; justify-content: space-between; }
    .ren-style-grid { grid-template-columns: 1fr; }
    .ren-style-item, .ren-style-item img { min-height: 235px; }
    .ren-summary { display: block; }
    .ren-summary > * + * { margin-top: 12px; }
    .renovation-summary-grid, .renovation-grade-grid, .renovation-plan-grid, .renovation-info-grid, .ren-style-board { grid-template-columns: 1fr; }
    .ren-dialog-actions { flex-direction: column-reverse; }
    .ren-dialog-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
