/* 聊表心意：近侍式卷宗，左选对象/类别/礼物，右备礼。 */
html body[data-game='palace'] #game[data-page='sentiment'] {
 --sentiment-font-heading:var(--font-heading);
 --sentiment-font-main:var(--font-body);
 --sentiment-font-note:var(--font-note);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-paper {
 flex:1;min-width:0;min-height:0;overflow:hidden;
 color:#574535;font-size:var(--sentiment-font-main);line-height:1.55;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-scroll {
 display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;
 overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:#aa8a5955 transparent;
 padding:2px clamp(3px,.5cqw,7px) 8px 0;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-scroll.sentiment-gallery-scroll {
 overflow:hidden;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-picker {
 display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;
 padding:0;background:transparent;border:0;border-radius:0;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-columns {
 display:grid;grid-template-columns:minmax(0,.88fr) 1px minmax(0,1.55fr);
 align-items:stretch;gap:clamp(9px,1.5cqw,22px);
 flex:1;min-height:0;min-width:0;padding:0;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-columns > .dossier-column-divider {
 position:relative;inset:auto;display:block;
 width:1px;height:auto;min-height:32px;align-self:stretch;
 background:linear-gradient(180deg,transparent,#b79c6755 20%,#b79c6755 80%,transparent);
 pointer-events:none;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-columns > .dossier-column-divider .dossier-column-jewel {
 position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);opacity:.42;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-choice-column,
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-inventory-column {
 display:flex;flex-direction:column;min-width:0;min-height:0;
 padding:1px clamp(3px,.5cqw,7px) 8px 0;
 overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-inventory-column {
 padding-left:0;border:0;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-field-group {
 min-width:0;flex:none;
 margin:0 0 clamp(12px,2cqh,22px);padding:0;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-field-group:last-child {margin-bottom:0;}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-recipient-section {
 display:flex;align-items:center;min-width:0;padding:0 2px;
}
/* All three floral groups use one consistent dropdown control. */
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-field-group select {
 display:block;box-sizing:border-box;width:min(100%,clamp(145px,19cqw,260px));
 max-width:100%;min-width:0;min-height:clamp(32px,4.6cqh,41px);
 margin:0;padding:4px 23px 4px 10px;
 font:inherit;font-size:var(--sentiment-font-main);line-height:1.4;
 color:#58422d;background:rgba(255,252,242,.67);
 border:1px solid rgba(162,131,88,.43);border-radius:5px;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-field-group select:disabled {
 opacity:.55;cursor:not-allowed;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-chosen-label {
 flex:none;margin:0 0 clamp(8px,1.2cqh,14px);
 color:#866e4f;font-size:var(--sentiment-font-main);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-section {
 margin:0;padding:clamp(5px,.9cqh,11px) 0;border:0;
}
@media (max-width:720px) {
 html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-columns {
  grid-template-columns:minmax(0,.8fr) 1px minmax(0,1.52fr);gap:7px;
 }
}
@media (orientation:landscape) and (max-height:450px) {
 html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-field-group {margin-bottom:8px;}
 html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-columns {gap:7px;}
 html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-field-group select {
  min-height:30px;padding-top:3px;padding-bottom:3px;
 }
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-empty {
 padding:clamp(8px,1.3cqh,15px) 2px;margin:2px 0 8px;
 color:#8c7053;font-size:var(--sentiment-font-main);line-height:1.5;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-pending-stock {
 font-size:var(--sentiment-font-note);color:#846b4b;margin:0 0 7px;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-stock-heading,
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-materials h4 {
 margin:clamp(5px,.8cqh,9px) 0 clamp(5px,.8cqh,9px);
 font-size:var(--sentiment-font-main);
 color:#756045;font-weight:600;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-materials {
 display:flex;flex-direction:column;gap:clamp(5px,.8cqh,9px);
 margin:0 0 clamp(7px,1cqh,11px);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-materials h4 {margin:0 0 2px;}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-materials .sentiment-empty {
 padding:clamp(5px,.8cqh,10px) 0;margin:0;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-materials > button.sentiment-source-choice,
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-inventory-list > button {
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 width:100%;min-width:0;min-height:clamp(42px,6.5cqh,62px);
 gap:3px;margin:0;padding:clamp(7px,.95cqh,11px) clamp(9px,1.1cqw,14px);
 text-align:left;white-space:normal;
 color:#59432e;background:rgba(255,253,246,.72);
 border:1px solid rgba(166,138,98,.36);border-radius:7px;box-shadow:none;
 font-size:var(--sentiment-font-main);line-height:1.38;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-materials > button.sentiment-source-choice[aria-pressed='true'],
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-inventory-list > button[aria-pressed='true'] {
 border-color:#9b7745;background:rgba(235,217,186,.8);box-shadow:inset 3px 0 0 #b28b57;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-list-detail {
 display:block;font-size:var(--sentiment-font-note);line-height:1.45;
 font-weight:400;color:#735e46;overflow-wrap:anywhere;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-acquisition {
 margin-top:clamp(9px,1.5cqh,17px);
 padding-top:clamp(7px,1cqh,12px);border-top:1px solid rgba(166,138,98,.27);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-acquisition-first {
 margin-top:0;padding-top:0;border-top:0;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-stock-actions {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(6px,.85cqw,12px);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-stock-actions button {
 min-height:clamp(36px,5.4cqh,45px);min-width:0;width:100%;
 margin:0;padding:6px 8px;color:#58422d;background:rgba(255,253,246,.73);
 border:1px solid rgba(166,138,98,.42);border-radius:6px;
 font-size:var(--sentiment-font-main);text-align:center;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-stock-actions button:disabled {opacity:.48;cursor:not-allowed;}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-stock-actions button:only-child {grid-column:1 / -1;}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-write-note {
 margin:clamp(5px,.7cqh,9px) 0 0;padding:0 2px;
 color:#846c4d;font-size:var(--sentiment-font-note);line-height:1.5;
}

/* One small confirmation in the existing manuscript, not a separate errand page. */
html body[data-game='palace'] #game[data-page='sentiment'] > #tab-content.sentiment-page > .sentiment-purchase-overlay {
 position:absolute;inset:0;z-index:5;
 display:flex;align-items:center;justify-content:center;
 padding:clamp(8px,2cqh,18px);box-sizing:border-box;
 background:rgba(43,30,21,.44);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-dialog {
 display:flex;flex-direction:column;gap:clamp(6px,1cqh,12px);
 width:min(92%,520px);max-width:100%;max-height:100%;overflow-y:auto;
 box-sizing:border-box;
 padding:clamp(12px,2.3cqh,24px) clamp(15px,2.1cqw,25px);
 color:#533d28;text-align:left;
 background:linear-gradient(145deg,#fffaf0 0%,#f4e8d3 100%);
 border:1px solid rgba(153,109,63,.64);border-radius:10px;
 box-shadow:inset 0 0 0 2px rgba(255,255,246,.72),0 9px 32px rgba(27,18,11,.3);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-dialog h3 {
 margin:0;padding-bottom:clamp(4px,.7cqh,7px);
 color:#513724;border-bottom:1px solid rgba(153,109,63,.25);
 font-size:var(--sentiment-font-heading);line-height:1.4;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-dialog p {
 margin:0;font-size:var(--sentiment-font-main);line-height:1.52;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-terms {
 display:flex;flex-direction:column;gap:clamp(3px,.6cqh,8px);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-dialog .sentiment-purchase-error {
 color:#914c35;font-weight:600;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-actions {
 display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;
 gap:clamp(8px,1.1cqw,14px);margin-top:clamp(4px,.7cqh,9px);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-actions button {
 flex:1 1 130px;max-width:200px;min-height:clamp(34px,5.5cqh,42px);
 margin:0;padding:5px 12px;
 color:#5e4226;background:rgba(250,239,216,.9);
 border:1px solid rgba(145,107,66,.48);border-radius:6px;
 font-size:var(--sentiment-font-main);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-actions button[data-gift-procurement-confirm] {
 background:#b38b56;color:#fffdf7;border-color:#96703f;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-actions button:disabled {
 opacity:.48;cursor:not-allowed;
}
@media (orientation:landscape) and (max-height:450px) {
 html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-dialog {padding:9px 14px;gap:5px;}
 html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-dialog h3 {font-size:var(--sentiment-font-heading);}
 html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-dialog p {font-size:var(--sentiment-font-main);line-height:1.35;}
 html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-actions {margin-top:3px;}
 html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-purchase-actions button {min-height:32px;}
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-unavailable {
 margin:5px 0;
 color:#925d3b;
 font-size:var(--sentiment-font-note);
 line-height:1.45;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-footer {
 width:100%;
 box-sizing:border-box;
 display:flex;
 flex:none;
 align-items:center;
 justify-content:space-between;
 gap:clamp(8px,1.1cqw,15px);
 min-height:0;
 margin:0;
 padding:clamp(7px,1cqh,12px) 4px 1px;
 border-top:1px solid rgba(174,133,73,.38);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-footer-summary {
 flex:1;
 min-width:0;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-footer-summary .sentiment-cost {
 margin:0;
 color:#755f48;
 font-size:var(--sentiment-font-note);
 line-height:1.45;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-footer-actions {
 display:flex;
 flex:none;
 align-items:center;
 justify-content:flex-end;
 gap:clamp(5px,.8cqw,10px);
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-footer-actions button {
 min-width:clamp(86px,11cqw,135px);
 min-height:clamp(34px,5cqh,43px);
 margin:0;
 padding:5px 12px;
 border:1px solid #9c7848;
 border-radius:7px;
 background:#ecd9b5;
 color:#493521;
 font-size:var(--sentiment-font-main);
 line-height:1.3;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-footer-actions button:disabled {
 opacity:.5;
 cursor:not-allowed;
}
html body[data-game='palace'] #game[data-page='sentiment'] .sentiment-footer[hidden] {
 display:none;
}
