:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102116;
  background: #cde6ff;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; touch-action: none; }
#application { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: fixed; inset: 0; pointer-events: none; }
.glass { background: rgba(255,255,255,.84); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.topbar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; padding: 8px 12px; border-radius: 16px; font-size: 14px; white-space: nowrap; }
.mission { position: absolute; top: 58px; left: 12px; width: min(350px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 14px; display: grid; gap: 3px; font-size: 13px; }
.context-panel { position: absolute; right: 12px; top: 58px; width: min(320px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 14px; font-size: 13px; }
.context-panel strong { display:block; margin-bottom:5px; }
.hidden { display: none !important; }
.round-button, .action-button { pointer-events: auto; border: 0; box-shadow: 0 5px 15px rgba(0,0,0,.22); cursor: pointer; }
.round-button { position: absolute; right: 14px; bottom: 92px; width: 54px; height: 54px; border-radius: 50%; background: #fff; font-size: 25px; }
.action-button { position: absolute; right: 14px; bottom: 20px; min-width: 110px; height: 58px; border-radius: 18px; background: #2f7d3c; color: #fff; font-weight: 800; font-size: 17px; padding: 0 18px; }
.seed-tray { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display:flex; gap:8px; padding:8px; border-radius:16px; max-width: calc(100vw - 190px); overflow-x:auto; pointer-events:auto; }
.seed-button { border:2px solid transparent; background:#fff; border-radius:12px; padding:7px 10px; min-width:84px; font-size:12px; cursor:pointer; }
.seed-button.selected { border-color:#2f7d3c; background:#effbea; }
.seed-button small { display:block; opacity:.72; margin-top:2px; }
.toast { position:fixed; left:50%; top:125px; transform:translateX(-50%); background:rgba(20,35,20,.9); color:#fff; padding:10px 14px; border-radius:12px; z-index:20; pointer-events:none; }
.mobile-controls { position: fixed; inset:0; pointer-events:none; }
.joystick-base { pointer-events:auto; position:absolute; left:18px; bottom:18px; width:122px; height:122px; border-radius:50%; background:rgba(255,255,255,.25); border:2px solid rgba(255,255,255,.5); }
.joystick-knob { position:absolute; left:36px; top:36px; width:50px; height:50px; border-radius:50%; background:rgba(255,255,255,.78); box-shadow:0 4px 10px rgba(0,0,0,.18); }
.look-hint { position:absolute; right:10px; bottom:160px; color:rgba(255,255,255,.8); text-shadow:0 1px 3px #000; font-size:12px; text-align:center; display:none; }
@media (hover:hover) and (pointer:fine) { .joystick-base { opacity:.32; } }
@media (max-width:700px) {
  .topbar { left:10px; right:10px; transform:none; width:auto; overflow-x:auto; justify-content:flex-start; }
  .mission { top:60px; }
  .context-panel { top:130px; }
  .seed-tray { left:150px; right:136px; transform:none; max-width:none; }
}

.inventory-panel { position:fixed; z-index:30; left:50%; top:50%; transform:translate(-50%,-50%); width:min(520px,calc(100vw - 28px)); max-height:76vh; overflow:auto; border-radius:18px; padding:14px; pointer-events:auto; }
.inventory-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.inventory-head button { border:0; border-radius:50%; width:34px; height:34px; background:#fff; cursor:pointer; }
.inventory-row { display:grid; grid-template-columns:34px 1fr auto; gap:8px; align-items:center; padding:8px 4px; border-bottom:1px solid rgba(0,0,0,.08); }
.inventory-row small { display:block; opacity:.72; }

.mission-complete { width:min(440px,calc(100vw - 32px)); max-height:85vh; overflow:auto; border-radius:20px; padding:24px; color:#102116; }
.mission-complete::backdrop { background:rgba(12,28,18,.55); }
.mission-complete h2 { margin:0 0 14px; font-size:23px; }
.mission-complete p { line-height:1.5; }
.mission-continue { width:100%; min-height:48px; border:0; border-radius:12px; background:#2f7d3c; color:#fff; font-size:17px; font-weight:700; cursor:pointer; }
.mission-continue:focus-visible { outline:3px solid #bc861c; outline-offset:3px; }
#weatherEffects { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:1; }
.hud,.seed-tray { z-index:2; }
.mobile-controls { z-index:3; }
.expansion-button { position:absolute; right:14px; bottom:156px; padding:10px 14px; min-height:44px; border:0; border-radius:14px; background:#fff6d9; color:#28472f; font-weight:700; cursor:pointer; pointer-events:auto; }
.dialog-close { width:100%; background:transparent; border:1px solid #6a806c; padding:12px; border-radius:12px; margin-top:12px; cursor:pointer; color:inherit; }
.mission-continue:disabled { background:#6c776e; cursor:default; }
.context-panel meter { display:block; width:100%; height:18px; margin:6px 0; }
@media(max-width:700px){
  .topbar { display:grid; grid-template-columns:1fr 1fr; gap:4px 12px; font-size:12px; }
  .mission { top:80px; }
  .context-panel { top:170px; }
  .action-button { max-width:124px; font-size:15px; }
}

/* La interfaz se organiza dentro del área real del navegador, también al redimensionar Edge. */
html,body { position:fixed; inset:0; width:100%; height:100%; overflow:hidden; overscroll-behavior:none; }
#gameViewport { position:fixed; inset:0; width:100%; height:100%; height:100dvh; overflow:hidden; isolation:isolate; }
#gameViewport:fullscreen { width:100%; height:100%; }
#application { position:absolute; inset:0; margin:0!important; padding:0; }
#weatherEffects,.mobile-controls { position:absolute; }
.hud { position:absolute; inset:10px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); gap:10px; align-content:start; padding-bottom:150px; }
.topbar { position:static; grid-column:1/-1; justify-self:center; transform:none; width:auto; max-width:calc(100% - 96px); display:flex; flex-wrap:wrap; justify-content:center; gap:6px 14px; overflow:visible; }
.mission,.context-panel { position:static; top:auto; left:auto; right:auto; width:100%; max-width:350px; min-width:0; align-self:start; max-height:100%; overflow:auto; overflow-wrap:anywhere; }
.mission { grid-column:1; grid-row:2; }
.context-panel { grid-column:2; grid-row:2; justify-self:end; pointer-events:auto; touch-action:pan-y; }
.fullscreen-button { position:absolute; top:0; right:0; width:40px; height:40px; border:0; border-radius:12px; font-size:27px; background:#fff; color:#315b3a; cursor:pointer; pointer-events:auto; }
.seed-tray { position:absolute; left:154px; right:152px; bottom:18px; width:auto; max-width:620px; margin:0 auto; transform:none; scrollbar-width:none; touch-action:pan-x; }
.seed-tray::-webkit-scrollbar { display:none; }
.seed-button { flex:0 0 84px; }
.inventory-panel,.toast { position:absolute; }
.action-button { right:4px; bottom:10px; max-width:140px; }
.round-button { right:4px; bottom:82px; }
.expansion-button { right:4px; bottom:146px; }
.mission-complete { max-height:calc(100dvh - 24px); }
@media(max-width:700px){
  .hud { inset:8px; gap:8px; }
  .topbar { max-width:calc(100% - 48px); justify-self:start; width:calc(100% - 48px); gap:4px 10px; font-size:12px; padding:7px 8px; }
  .mission,.context-panel { font-size:12px; padding:8px; }
  .seed-tray { left:130px; right:140px; padding:6px; }
  .joystick-base { width:104px; height:104px; left:12px; bottom:18px; }
  .joystick-knob { left:27px; top:27px; }
}
@media(max-width:520px) and (min-height:560px){
  .hud { grid-template-rows:auto auto minmax(0,1fr); padding-bottom:238px; }
  .topbar { display:grid; grid-template-columns:1.3fr 1fr; }
  .mission { grid-column:1/-1; grid-row:2; max-width:none; }
  .context-panel { grid-column:1/-1; grid-row:3; max-width:none; }
  .seed-tray { left:10px; right:10px; bottom:142px; max-width:none; }
  .expansion-button { bottom:84px; right:68px; font-size:12px; padding:8px; }
  .round-button { bottom:82px; }
}
@media(max-height:550px){
  .hud { padding-bottom:100px; gap:6px; }
  .topbar { font-size:11px; padding:5px 8px; gap:4px 10px; }
  .mission,.context-panel { font-size:11px; padding:7px; max-width:320px; }
  .seed-tray { left:112px; right:126px; bottom:12px; gap:5px; padding:5px; }
  .seed-button { flex-basis:80px; min-width:80px; padding:5px; font-size:11px; }
  .joystick-base { width:88px; height:88px; left:12px; bottom:12px; }
  .joystick-knob { left:23px; top:23px; width:38px; height:38px; }
  .action-button { bottom:4px; min-width:106px; max-width:116px; height:46px; font-size:13px; padding:0 10px; }
  .round-button { bottom:58px; width:42px; height:42px; font-size:21px; }
  .expansion-button { bottom:108px; min-height:36px; font-size:11px; padding:6px 9px; }
  .fullscreen-button { width:30px; height:30px; font-size:23px; }
}

/* Gestión en un diálogo: evita añadir paneles flotantes sobre el mundo. */
.farm-menu { width:min(640px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:18px; border:0; border-radius:18px; color:#102116; }
.farm-menu::backdrop { background:rgba(12,28,18,.65); }
.farm-menu header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.farm-menu h2,.farm-menu h3 { margin:6px 0 10px; }
.farm-menu nav,.farm-actions { display:flex; flex-wrap:wrap; gap:8px; }
.farm-menu button,.learn-link { border:1px solid #6a806c; border-radius:10px; background:#f1f8eb; color:#16391c; padding:10px 12px; min-height:42px; cursor:pointer; font:inherit; }
.farm-menu button[aria-pressed="true"] { background:#296f39; color:white; }
.farm-menu button:disabled,.action-button:disabled,.seed-button:disabled { opacity:.55; cursor:default; }
.farm-card { padding:12px 0; border-bottom:1px solid #bdcdb9; }
#farmFeedback:not(:empty) { background:#e6f3dc; padding:12px; border-radius:10px; border:1px solid #527944; }
#farmMission { margin-top:20px; padding:12px; border-radius:12px; background:#e8efd9; }
.learn-link { min-height:28px; padding:3px 8px; font-size:11px; justify-self:start; pointer-events:auto; }
@media(max-width:520px){.farm-menu {padding:12px;font-size:14px;} .farm-menu button {padding:9px;}}

.farm-menu header { position:sticky; top:-18px; background:#e2e8df; z-index:2; padding:6px 0; }
@media(max-width:520px){.farm-menu header {top:-12px;}}

.valley-map {position:relative;height:300px;background:linear-gradient(90deg,transparent 73%,#c1a06d 73%,#c1a06d 75%,transparent 75%),linear-gradient(#739b57,#abc680);border-radius:12px;border:2px solid #547a41;overflow:hidden;}
.map-pin {position:absolute;transform:translate(-50%,-50%);padding:2px!important;min-height:24px!important;width:24px;font-size:15px!important;}
.map-player {position:absolute;transform:translate(-50%,-50%);color:#b22e22;font-size:20px;pointer-events:none;}
.topbar {max-width:calc(100% - 55px);}
#weatherLabel {max-width:360px;overflow-wrap:anywhere;}

/* Selector lateral: todas las semillas en una ventana, sin carrusel horizontal. */
.crop-selector {position:absolute;left:12px;bottom:154px;z-index:4;width:132px;min-height:54px;padding:8px;border-radius:14px;color:#16391c;font:inherit;font-weight:700;cursor:pointer;touch-action:manipulation;}
.crop-selector small {display:block;margin-top:3px;font-size:12px;font-weight:400;}
.crop-dialog {touch-action:pan-y;overscroll-behavior:contain;}
.crop-dialog .seed-tray {position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:none;width:100%;margin:0;padding:0;transform:none;overflow:visible;touch-action:pan-y;}
.crop-dialog .seed-button {min-width:0;min-height:74px;white-space:normal;overflow-wrap:anywhere;font-size:15px;}
.crop-dialog .seed-button small {font-size:12px;opacity:1;}
@media(min-width:600px){.crop-dialog .seed-tray {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-height:550px){.crop-selector {bottom:110px;min-height:48px;width:124px;font-size:14px;}}

.season-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:8px} #seasonButton{display:block;margin-top:5px} .farm-card{overflow-wrap:anywhere}
/* Descubrimiento: lectura clara del mundo y controles agrupados. */
:root{--forest:#174b3b;--leaf:#347b52;--cream:#fcf8ed;--ink:#203b31}
.glass{background:rgba(252,248,237,.94);border:1px solid rgba(255,255,255,.85);box-shadow:0 8px 28px #173b2922;backdrop-filter:blur(10px)}
.topbar{background:#174b3bee;color:#fff5df;border-color:#ffffff30;border-radius:100px;padding:10px 20px;font-weight:600}
.mission{max-width:300px;padding:16px;border-radius:20px;gap:7px}.context-panel{max-width:285px;padding:16px;border-radius:20px;line-height:1.45}
#missionTitle{font-size:12px;color:#47604e;border-top:1px solid #cfd8c6;padding-top:10px}#missionText{font-size:11px;line-height:1.4}
.eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:1.5px;color:#547963;margin-bottom:8px}
.discovery-guide strong{display:block;font-size:19px;line-height:1.2;color:var(--forest)}.discovery-guide p{font-size:12px;line-height:1.5;margin:8px 0}
.guide-progress{display:flex;gap:5px;margin:10px 0 4px}.guide-progress i{height:4px;border-radius:6px;flex:1;background:#d7decf}.guide-progress i.done{background:#347b52}
.discovery-launch{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);pointer-events:auto;background:var(--forest);color:var(--cream);border:1px solid #fff8;min-height:52px;padding:12px 25px;border-radius:100px;font:inherit;font-weight:750;box-shadow:0 8px 20px #173b2940;cursor:pointer}
.observe-button{position:absolute;bottom:76px;right:68px;pointer-events:auto;border:1px solid #d7decf;background:var(--cream);color:var(--forest);min-height:48px;border-radius:14px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer}.observe-button:disabled{opacity:.5;cursor:default}
.action-button{background:#28734a;border-radius:16px}.crop-selector{background:var(--cream);border-radius:16px}.round-button{border-radius:16px;background:var(--cream)}
.discovery-dialog{width:min(860px,calc(100vw - 24px));background:var(--cream);color:var(--ink);border:1px solid #d8ddca;padding:24px;touch-action:pan-y}.discovery-dialog header{top:-24px;background:var(--cream);border-bottom:1px solid #d8ddca;padding-bottom:14px;margin-bottom:14px}.discovery-dialog h2{font-size:27px}.discovery-dialog nav{margin-bottom:16px}.discovery-dialog p{line-height:1.6}
.discovery-dialog button.primary{background:var(--forest);color:white;border-color:var(--forest)}.discovery-hero{background:linear-gradient(120deg,#e3efd9,#f6edcd);border:1px solid #d2ddbd;border-radius:20px;padding:24px}.discovery-hero h3{font-size:28px;color:var(--forest);margin:8px 0 12px}.route-steps{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.route-steps span{padding:8px 10px;border-radius:100px;background:#fff8;font-size:12px;color:#5d6758}.route-steps .current{background:#fff;border:1px solid var(--forest);color:var(--forest);font-weight:700}.route-steps .done{background:var(--forest);color:white}
.discovery-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:20px 4px}.discovery-note{font-size:12px;color:#59705f}.research-card{background:#fffdf6;border:1px solid #d9decf;border-radius:18px;padding:20px;margin:16px 0}.research-card h3{font-size:23px;color:var(--forest)}.research-selects{display:grid;grid-template-columns:1fr 1fr;gap:12px}.discovery-dialog label{display:block;font-weight:650;font-size:13px;margin:12px 0}.discovery-dialog textarea,.discovery-dialog select{display:block;box-sizing:border-box;width:100%;margin:6px 0 10px;padding:12px;border:1px solid #b2c3ad;border-radius:10px;background:#fff;color:var(--ink);font:inherit}.discovery-dialog textarea{min-height:86px;resize:vertical;touch-action:pan-y}.research-running,#discoveryFeedback:not(:empty){background:#e2efd9;padding:12px;border-radius:10px}.journal-summary{background:#e7eddc;padding:20px;border-radius:18px}.result-scroll{overflow-x:auto;touch-action:pan-x}.discovery-dialog table{width:100%;border-collapse:collapse;font-size:13px}.discovery-dialog caption{text-align:left;margin:10px 0;font-weight:700}.discovery-dialog th,.discovery-dialog td{text-align:left;padding:10px;border-bottom:1px solid #dae0d2}.discovery-dialog td small{display:block;font-size:11px;color:#5a715c}.discovery-dialog pre{white-space:pre-wrap;font-size:11px;max-height:240px;overflow:auto;touch-action:pan-y}.observation-entry{border-bottom:1px solid #dae0d2;padding:12px}.toast{top:auto;bottom:215px;max-width:calc(100% - 28px);text-align:center}
button:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c69b36;outline-offset:3px}
@media(max-width:700px){.mission{padding:10px;max-width:230px}.discovery-guide strong{font-size:16px}.discovery-dialog{padding:16px}.discovery-dialog header{top:-16px}.discovery-dialog h2{font-size:22px}.discovery-hero{padding:16px}.discovery-hero h3{font-size:23px}.discovery-columns{grid-template-columns:1fr;gap:4px}.research-card{padding:14px}.discovery-launch{left:128px;transform:none;bottom:12px;padding:10px 14px;font-size:13px;min-height:45px}.observe-button{right:4px;bottom:204px;font-size:13px;min-height:42px}.context-panel{font-size:11px;padding:10px}.discovery-guide p{font-size:11px}}
@media(max-width:520px) and (min-height:560px){.hud{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr);padding-bottom:238px}.mission{max-width:none;padding:9px 11px;gap:4px}.discovery-guide p{margin:5px 0}.discovery-guide strong{font-size:15px}.guide-progress{margin:6px 0}.mission .learn-link{display:inline-block}.context-panel{max-width:none}.research-selects{grid-template-columns:1fr}.crop-selector{bottom:164px;width:114px;min-height:46px;font-size:13px}.observe-button{bottom:145px;right:4px}.expansion-button{bottom:84px;right:68px}.discovery-launch{left:120px;bottom:13px;padding:10px 12px;font-size:12px;min-height:44px}.toast{bottom:215px}}
@media(max-height:550px){.mission{padding:8px;max-width:265px}.discovery-guide p{font-size:10px;margin:4px 0}.discovery-guide strong{font-size:14px}.mission #missionText{display:none}.guide-progress{margin:5px 0}.observe-button{bottom:57px;right:54px;min-height:38px;font-size:12px;padding:6px 10px}.discovery-launch{left:50%;transform:translateX(-50%);bottom:10px;min-height:40px}.toast{bottom:120px}.discovery-dialog h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(max-width:520px) and (min-height:560px){.mission{display:grid;grid-template-columns:1fr 1fr;gap:5px}.discovery-guide{grid-column:1/-1}.mission #missionTitle,.mission #missionText{display:none}.mission .learn-link{font-size:10px;margin:0;min-height:27px;padding:4px 7px}.mission #seasonButton{margin:0;justify-self:end}.discovery-guide p{font-size:10px}.context-panel{max-height:158px;overflow:auto}.context-panel #contextDetails{font-size:11px}.discovery-guide .eyebrow{margin-bottom:5px}.topbar{padding:7px 12px}.action-button{font-size:14px;min-width:140px}.discovery-dialog .eyebrow{font-size:9px}.discovery-dialog h2{font-size:20px}}
@media(max-width:350px){.discovery-launch{left:112px;padding:9px 10px;font-size:11px}.action-button{min-width:108px;max-width:112px;font-size:12px}.observe-button{padding:8px 10px}.context-panel{max-height:135px}}
@media(max-width:350px){.joystick-base{width:88px;height:88px;left:10px;bottom:18px}.joystick-knob{left:19px;top:19px}.discovery-launch{left:106px;width:84px;max-width:84px;font-size:10px;padding:8px}}
/* Armario con vista 3D en el mismo canvas del juego. */
.wardrobe-launch{position:absolute;left:4px;top:0;pointer-events:auto;border:1px solid #ffffff70;border-radius:100px;background:#fcf8ed;color:#245441;font:inherit;font-size:12px;font-weight:750;padding:10px 16px;min-height:42px;cursor:pointer}
.wardrobe-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;display:none;border:0;padding:0;background:transparent;color:#234235;overflow:hidden;grid-template-columns:56% 44%;font:inherit}.wardrobe-dialog[open]{display:grid}.wardrobe-dialog::backdrop{background:transparent}.wardrobe-preview{position:relative;min-width:0;pointer-events:none}.wardrobe-heading{position:absolute;top:28px;left:32px;z-index:2}.wardrobe-heading h2{margin:0;font-size:38px;letter-spacing:-1px}.wardrobe-heading p{margin:10px 0;color:#52735e}.wardrobe-controls{margin:18px 18px 18px 0;padding:22px;background:#fcf8ed;border:1px solid #d4deca;border-radius:24px;overflow:auto;touch-action:pan-y;box-shadow:0 12px 30px #27402b18;position:relative}.wardrobe-controls header{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-22px;background:#fcf8ed;z-index:3;padding:10px 0}.wardrobe-controls h3{font-size:25px;margin:0}.wardrobe-controls p{font-size:13px;line-height:1.5;color:#56705c}.wardrobe-controls button{border:1px solid #a9bda1;background:#f0f4e8;color:#245441;border-radius:12px;padding:10px 12px;min-height:42px;font:inherit;cursor:pointer}.wardrobe-presets{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0}.wardrobe-presets button{font-size:12px}.wardrobe-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wardrobe-controls label{display:block;font-size:12px;font-weight:700;line-height:1.5}.wardrobe-controls select{width:100%;display:block;margin-top:6px;padding:10px;min-height:42px;border:1px solid #b3c4a8;border-radius:10px;background:white;color:#244934;font:inherit;touch-action:manipulation}.wardrobe-check{display:flex!important;gap:10px;align-items:center}.wardrobe-check input{width:19px;height:19px;accent-color:#347854}.wardrobe-colors{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wardrobe-colors label{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid #d7dece;border-radius:12px;gap:7px}.wardrobe-colors input{width:48px;min-width:48px;height:38px;cursor:pointer;border:0;padding:2px;background:transparent}.wardrobe-controls h4{margin-bottom:12px}.wardrobe-controls footer{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px}.wardrobe-controls .wardrobe-save{background:#245441;color:white;flex:1;min-height:48px}.wardrobe-help{font-size:11px!important}.wardrobe-rotate{position:absolute;left:50%;transform:translateX(-50%);bottom:28px;z-index:2;display:flex;align-items:center;gap:14px;white-space:nowrap;font-size:12px;color:#42664e;pointer-events:auto}.wardrobe-rotate button{width:44px;height:44px;border:1px solid #a4b897;border-radius:50%;background:#faf8eb;color:#245441;font-size:27px;cursor:pointer}.avatar-drag{position:absolute;inset:130px 0 90px;pointer-events:auto;touch-action:none;cursor:grab}.wardrobe-open #weatherEffects{visibility:hidden}.wardrobe-open #hud,.wardrobe-open #cropSelectorButton,.wardrobe-open #mobileControls,.wardrobe-open #toast{visibility:hidden}
@media(max-width:700px){.wardrobe-dialog{grid-template-columns:1fr;grid-template-rows:45% 55%}.wardrobe-heading{top:12px;left:16px}.wardrobe-heading h2{font-size:24px}.wardrobe-heading p{display:none}.wardrobe-heading .eyebrow{font-size:8px;margin-bottom:4px}.wardrobe-controls{margin:0 8px 8px;padding:14px;border-radius:18px}.wardrobe-controls header{top:-14px;padding:8px 0}.wardrobe-controls h3{font-size:21px}.wardrobe-controls p{font-size:12px}.wardrobe-grid{gap:9px}.wardrobe-colors{gap:7px}.wardrobe-colors label{padding:6px;font-size:11px}.wardrobe-presets{margin:10px 0}.wardrobe-rotate{bottom:8px;font-size:10px;gap:10px}.wardrobe-rotate button{width:34px;height:34px;font-size:23px}.avatar-drag{inset:58px 0 48px}.wardrobe-launch{top:auto;bottom:214px;left:4px;min-height:36px;font-size:11px;padding:8px 12px}}
@media(max-width:520px) and (min-height:560px){.wardrobe-launch{bottom:220px;left:4px}.wardrobe-dialog .wardrobe-controls select{padding:8px}.wardrobe-controls footer{padding-bottom:8px}}
@media(max-height:550px){.wardrobe-dialog{grid-template-columns:48% 52%;grid-template-rows:1fr}.wardrobe-heading h2{font-size:25px}.wardrobe-heading{top:12px;left:16px}.wardrobe-heading p{display:none}.wardrobe-controls{margin:8px;padding:12px}.wardrobe-controls header{top:-12px}.wardrobe-rotate{bottom:10px;font-size:10px}.wardrobe-launch{bottom:164px;top:auto;min-height:34px;padding:7px 10px}.avatar-drag{inset:80px 0 60px}}
.wardrobe-dialog{background:linear-gradient(90deg,transparent 56%,#dfe5d6 56%)}
.business-launch{position:absolute;left:170px;top:8px;z-index:8;pointer-events:auto;min-height:42px;border:1px solid #aec7a2;background:#244f3d;color:#fff7e4;border-radius:24px;padding:10px 18px;font:inherit;font-weight:750;cursor:pointer}
.delivery-map{display:block;width:100%;max-width:700px;height:auto;margin:18px auto}
.business-pulse{position:absolute;left:50%;top:70px;transform:translateX(-50%);z-index:5;background:#fcf8ede8;color:#234c3b;border:1px solid #bdcfb3;border-radius:20px;padding:8px 14px;max-width:75%;font:inherit;font-size:12px;pointer-events:auto;cursor:pointer;box-shadow:0 3px 12px #244f3d22}
.business-dialog{width:min(1050px,94vw);max-width:94vw;max-height:88dvh;margin:auto;border:1px solid #c5d4bc;background:#faf7ee;color:#244536;border-radius:24px;padding:24px;font:inherit;box-shadow:0 20px 90px #16392670;overflow:auto;box-sizing:border-box}
.business-dialog::backdrop{background:#122a2470;backdrop-filter:blur(3px)}.business-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.business-dialog h2{font-size:30px;line-height:1.15;letter-spacing:-.8px;margin:4px 0 18px}.business-dialog button,.business-dialog select{font:inherit;min-height:40px;border:1px solid #b7c9ad;border-radius:10px;background:#f0f3e8;color:#244c38;padding:9px 13px;cursor:pointer;max-width:100%;white-space:normal}.business-dialog button:disabled{opacity:.45;cursor:default}.business-dialog button:focus-visible,.business-launch:focus-visible{outline:3px solid #d49436;outline-offset:3px}.business-dialog nav{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}.business-dialog nav button[aria-pressed=true]{background:#244f3d;color:#fff7e4;border-color:#244f3d}.business-dialog p,.business-dialog li{font-size:14px;line-height:1.6}.business-clock{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-top:1px solid #d5ddcc;border-bottom:1px solid #d5ddcc;padding:10px 0;font-size:12px}.business-clock span{flex:1;min-width:180px}.business-clock button{font-size:12px}.business-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:14px}.business-card{background:white;border:1px solid #d9e1d0;border-radius:17px;padding:18px;margin:14px 0;min-width:0;overflow-wrap:anywhere}.business-grid .business-card{margin:0}.business-card h3{margin:0 0 8px;font-size:18px}.business-card p{margin:8px 0}.business-card button{margin:3px 2px 3px 0;font-size:12px}.business-card label{display:block;font-size:13px;font-weight:650}.business-card select{display:block;width:100%;margin:6px 0}.business-card progress{width:100%;accent-color:#427656}.business-deadline{font-weight:750;color:#a65e28}.business-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.business-metrics span{padding:14px;border-radius:14px;background:#e7eddd;font-size:12px}.business-metrics b{display:block;font-size:28px;margin-bottom:5px}.channel-map{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin:15px 0}.channel-map button{font-size:12px;min-width:0;padding:7px 2px}.channel-map .dug{background:#b7a37e}.channel-map .connected{background:#397e85;color:white}#businessFeedback{color:#754f24;min-height:22px;font-weight:650}.wardrobe-open .business-launch,.wardrobe-open .business-pulse{visibility:hidden}
@media(max-width:700px){.business-dialog{padding:16px;border-radius:18px;max-height:92dvh}.business-dialog h2{font-size:24px}.business-launch{left:auto;right:10px;top:70px;padding:8px 12px;font-size:12px;min-height:36px}.business-pulse{top:112px;left:auto;right:10px;transform:none;max-width:70%;font-size:10px;padding:6px 9px}.business-metrics{grid-template-columns:repeat(2,1fr)}.business-card{padding:14px}.channel-map{grid-template-columns:repeat(5,1fr)}.business-dialog nav button{font-size:12px;padding:7px 9px}.business-dialog p,.business-dialog li{font-size:13px}}
@media(max-height:550px){.business-launch{top:8px;right:10px;left:auto;min-height:30px;padding:5px 10px;font-size:11px}.business-pulse{top:48px;font-size:10px;padding:5px 9px}.business-dialog{max-height:94dvh}}
@media(max-width:700px){.wardrobe-dialog{background:linear-gradient(180deg,transparent 45%,#dfe5d6 45%)}}
@media(max-height:550px){.wardrobe-dialog{background:linear-gradient(90deg,transparent 48%,#dfe5d6 48%)}}
@media(max-width:700px) and (min-height:551px){.wardrobe-launch{bottom:118px;top:auto}}
@media(max-height:550px){.wardrobe-launch{top:0;bottom:auto;left:4px;min-height:30px;padding:6px 10px}}

.weekly-calendar{grid-column:1/-1;width:100%;min-width:0;margin-top:8px;pointer-events:auto;font-size:12px;text-align:left}.weekly-calendar summary{cursor:pointer;padding:9px;border:1px solid #bacbb0;border-radius:12px;background:#f5f6eb;color:#234c3b;font-weight:700}.weekly-calendar-content{max-height:clamp(90px,28vh,250px);overflow:auto;padding:0 5px}.weekly-calendar ol{padding:0;list-style:none}.weekly-calendar li{padding:9px 0;border-bottom:1px solid #d3ddc8}.weekly-calendar li strong,.weekly-calendar li span,.weekly-calendar li small{display:block}.weekly-calendar li span{margin:4px 0}.weekly-calendar p,.weekly-calendar small{line-height:1.5}.weekly-calendar summary:focus-visible{outline:3px solid #447d69}
