/* Direct manipulation keeps the scenery visible while the small inspector helps. */
.item-dock{position:absolute;left:calc(50% - 80px);bottom:164px;width:306px;z-index:12;background:#f3f0e3f5;color:#38523d;border:1px solid #fff9;border-radius:14px;padding:13px 14px 10px;box-shadow:0 12px 40px #10282035;backdrop-filter:blur(10px);transform:translateX(-50%)}
.item-dock[hidden]{display:none}
.item-dock-top{display:flex;align-items:center;gap:10px}
.item-dock-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#e2e8d8;color:#68805b}
.item-dock-icon svg{width:21px;height:21px}
.item-dock-name{display:flex;flex-direction:column;gap:3px;min-width:0}
.item-dock-name small{font-size:8px;color:#929a81;letter-spacing:1px}
.item-dock-name b{font-size:12px;font-weight:500;color:#425b40}
.item-angle{margin-left:auto;color:#839372;font-size:12px;font-variant-numeric:tabular-nums}
.item-dock .icon-btn{width:27px;height:27px;color:#819073}
.item-dock .icon-btn svg{width:14px;height:14px}
.item-quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:11px}
.item-quick-actions>button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #a6b29750;border-radius:7px;min-height:32px;color:#657a56;font-size:9px}
.item-quick-actions>button:hover{background:#dfe6d4;border-color:#8da576}
.item-quick-actions svg{width:14px;height:14px}
.item-dock>p{font-size:8px;line-height:1.7;color:#8e977e;margin:9px 1px 0}
.turn-left{transform:scaleX(-1)}
.arrange-panel{width:354px;padding:23px;scrollbar-width:thin}
.arrange-panel .panel-heading h2{font-size:23px;letter-spacing:1px}
.arrange-panel .panel-intro{margin-bottom:19px;font-size:10px}
.object-list-heading{display:flex;justify-content:space-between;color:#819173;font-size:10px;margin-bottom:10px}
.object-list-heading small{font-size:9px;color:#9aa38a}
.object-inventory{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:204px;overflow:auto;padding:1px 3px 5px 1px;scrollbar-width:thin}
.object-chip{border:1px solid #b2bba35c;border-radius:8px;min-height:39px;display:flex;align-items:center;gap:7px;padding:8px;color:#75866b;font-size:10px;text-align:left}
.object-chip>svg{width:17px;height:17px;flex:none}
.object-chip>span{flex:1}
.object-chip>svg:last-child:not(:first-child){width:12px;height:12px}
.object-chip:hover{background:#e9ecdf}
.object-chip.selected{border-color:#8a9f75;background:#e1e8d5;color:#3c5b39}
.object-editor{margin-top:17px;border:1px solid #a5b39269;border-radius:12px;padding:15px;background:#e9ecdf80}
.object-editor-title{display:flex;align-items:center;gap:10px}
.object-editor-title>span{width:34px;height:34px;display:grid;place-items:center;background:#dce3ce;border-radius:9px;color:#71865f}
.object-editor-title>span svg{width:22px;height:22px}
.object-editor-title small{font-size:8px;color:#93a081;letter-spacing:1px}
.object-editor-title h3{font-size:14px;font-weight:400;letter-spacing:.5px;color:#48643e;margin:4px 0 0}
.object-editor-title>.icon-btn{margin-left:auto}
.object-support{font-size:9px;line-height:1.9;color:#8a967b;margin:12px 0 15px}
.object-position-controls{display:flex;gap:16px;align-items:center}
.object-nudges{display:grid;grid-template-columns:repeat(3,30px);gap:4px;flex:none}
.object-nudges>button,.object-nudges>span{width:30px;height:29px;display:grid;place-items:center;border-radius:6px;background:#dce3d0;color:#6d815b;font-size:17px}
.object-nudges>button:hover{background:#cad7ba}
.object-nudges>button:nth-child(1){grid-column:2}.object-nudges>button:nth-child(2){grid-column:1;grid-row:2}.object-nudges>span{grid-column:2;grid-row:2;background:transparent}.object-nudges>button:nth-child(4){grid-column:3;grid-row:2}.object-nudges>button:nth-child(5){grid-column:2;grid-row:3}
.object-nudges svg{width:16px;height:16px}
.object-turn-controls{flex:1;min-width:0}
.object-turn-controls>span{display:flex;justify-content:space-between;font-size:9px;color:#829070}
.object-turn-controls output{font-size:11px;color:#607a4c;font-variant-numeric:tabular-nums}
.object-turn-controls>div{display:flex;gap:5px;margin:10px 0 14px}
.object-turn-controls button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #adba9b70;border-radius:6px;min-height:29px;color:#6a7d59;font-size:9px;flex:1}
.object-turn-controls button svg{width:12px;height:12px}
.object-edit-footer{display:flex;justify-content:space-between;border-top:1px solid #b2bba340;padding-top:12px;margin-top:13px;gap:10px}
.object-edit-footer>button{display:flex;align-items:center;gap:6px;font-size:9px;color:#80926e;padding:4px 0}
.object-edit-footer>button:disabled{opacity:.35}
.object-edit-footer svg{width:13px;height:13px}
.object-color{display:flex;align-items:center;justify-content:space-between;margin:18px 0;font-size:10px;color:#819070}
.object-color .swatch{width:30px;height:30px}
.object-color .swatch svg{width:13px;height:13px;left:5px;top:5px}
.object-color .swatch-row{gap:10px}
.object-layout-footer{display:flex;flex-direction:column;gap:12px;margin-top:18px;text-align:center}
.object-layout-footer .text-btn{color:#93a080;font-size:9px;justify-content:center}
.object-keyboard-note{color:#9ba68d;font-size:8px;line-height:2.1;text-align:center;margin:16px 0 0}
.object-keyboard-note kbd{font-size:7px;padding:2px 4px}
.view-controls #water-view{border-left:1px solid #a8bd9944;margin-left:3px;padding-left:6px;width:37px;color:#c6d8c4}
.water-note{position:absolute;right:398px;top:118px;z-index:5;display:flex;align-items:center;gap:7px;font-size:9px;color:#dde8db;letter-spacing:.5px;pointer-events:none;text-shadow:0 1px 4px #172d2380}
.water-note[hidden]{display:none}
.water-note svg{width:16px;height:16px}
.ambient .item-dock,.ambient .water-note{display:none}
.ritual-return-kettle{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;margin:0 0 12px;width:100%;font-size:10px;color:#506f44;background:#dfe6d3;border-radius:8px;border:1px solid #95a87d66}
.ritual-return-kettle[hidden]{display:none}
.ritual-return-kettle svg{width:17px;height:17px}
@media(min-width:1600px){.item-dock{left:calc(50% - 105px);bottom:167px}.water-note{right:444px;top:130px}}
@media(max-width:1180px) and (min-width:761px){.item-dock{width:278px;left:calc(50% - 80px)}.water-note{right:334px;top:123px;font-size:8px}.arrange-panel{width:304px;padding:21px}.object-position-controls{gap:10px}.object-nudges{grid-template-columns:repeat(3,27px)}.object-nudges>button,.object-nudges>span{width:27px}.object-inventory{max-height:180px}}
@media(max-height:780px) and (min-width:761px){.item-dock{bottom:142px}.arrange-panel{top:91px}.object-inventory{max-height:150px}.water-note{top:99px}}
@media(max-width:760px){
  .item-dock{left:12px;right:12px;bottom:calc(var(--ritual-scene-bottom,420px) + 36px);width:auto;transform:none;padding:10px 11px 8px;border-radius:11px;max-width:none}
  .item-dock-icon{width:27px;height:27px}.item-dock-name small{font-size:7px}.item-dock-name b{font-size:11px}.item-quick-actions{margin-top:8px}.item-quick-actions>button{min-height:29px;font-size:9px}.item-dock>p{font-size:7px;margin-top:7px;line-height:1.6}
  .arrange-panel{left:12px;right:12px;top:auto;bottom:12px;width:auto;max-height:47svh;padding:16px;border-radius:15px;box-shadow:0 -8px 45px #0c231c40;scrollbar-width:thin}
  .arrange-panel .panel-heading{margin-bottom:3px}.arrange-panel .panel-heading h2{font-size:19px}.arrange-panel .panel-heading .icon-btn{width:29px;height:29px}.arrange-panel .panel-intro{font-size:8px;line-height:1.7;margin-bottom:12px}
  .object-list-heading{font-size:9px;margin-bottom:7px}.object-inventory{display:flex;overflow-x:auto;overflow-y:hidden;max-height:none;gap:6px;padding-bottom:6px;scrollbar-width:thin}.object-chip{flex:none;min-height:33px;padding:7px 9px;font-size:9px;max-width:150px}.object-chip>svg{width:15px;height:15px}
  .object-editor{margin-top:10px;padding:12px}.object-editor-title h3{font-size:12px}.object-support{font-size:8px;margin:8px 0 10px}.object-position-controls{gap:18px}.object-turn-controls>div{margin:8px 0 12px}.object-edit-footer{margin-top:10px;padding-top:8px}
  .object-layout-footer{margin-top:12px;gap:9px}.object-layout-footer>.primary{min-height:36px}.object-keyboard-note{display:none}.object-color{margin:12px 0;font-size:9px}.object-color .swatch{width:27px;height:27px}.object-editor-title>.icon-btn{width:29px;height:29px}
  .water-note{top:152px;right:15px;max-width:calc(100% - 30px);font-size:8px;gap:4px}.water-note svg{width:13px;height:13px}
  body:has(.arrange-panel:not([hidden])) .ritual-mode .activity,body:has(.arrange-panel:not([hidden])) .ritual-rail{visibility:hidden;pointer-events:none}
  .view-controls #water-view{width:29px;padding-left:5px}
}
@media(prefers-reduced-motion:reduce){.item-dock{backdrop-filter:none}}
