:root{font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',sans-serif;color:#553a30;background:#fff4ee}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}.app{max-width:470px;min-height:100dvh;margin:auto;background:linear-gradient(165deg,#ffe6ee,#fff9ed 44%,#f2f7e6);padding:14px 13px 105px}.top{display:flex;align-items:center;justify-content:space-between;gap:8px}.logo{border:2px solid #6c483b;background:#fffdfa;border-radius:40px;padding:10px 13px;font-weight:900;font-size:clamp(15px,4.2vw,19px);box-shadow:0 3px 0 #e7c4b6}.gear{border:0;background:transparent;font-size:25px;color:#68493e}.scene{position:relative;margin:12px -13px 10px;aspect-ratio:928/450;background:url('../assets/room.webp') center/cover no-repeat;border-top:2px solid #d9bca8;border-bottom:2px solid #d9bca8}.pay{position:absolute;right:12px;top:12px;background:#fffaf0;border:2px solid #704a3c;border-radius:17px;padding:9px 11px;text-align:center;font-size:11px;font-weight:800;box-shadow:0 3px #ddc2b5}.pay strong{display:block;font-size:24px}.card{background:#fffaf4;border:2px solid #795447;border-radius:22px;padding:16px;margin:11px 0;box-shadow:0 3px #ead4c5}.card h2{font-size:16px;margin:0 0 12px}.moneybox{text-align:center}.big{font-size:clamp(32px,9vw,43px);font-weight:950;letter-spacing:-1.6px;margin:5px 0;color:#694331}.sub{color:#987b6e;font-size:12px}.summary{display:grid;grid-template-columns:1fr 1fr;border-top:1px dashed #d7b9aa;margin-top:12px;padding-top:12px;gap:8px}.summary b{display:block;font-size:17px;margin-top:5px}.line{display:flex;align-items:center;justify-content:space-between;gap:10px}.tag{background:#ffdae3;padding:5px 10px;border-radius:20px;font-size:12px;font-weight:800}.track{height:20px;border:2px solid #9c786c;border-radius:20px;background:#f8eee9;overflow:hidden}.track div{height:100%;width:0;background:#f3a7b8;transition:width .3s}.field{border:1.5px solid #cdb6a9;border-radius:13px;padding:12px;background:white;color:#563d34;width:100%;min-width:0}.formrow{display:flex;gap:7px;margin:8px 0}.btn{border:0;background:#ed98a8;border-radius:13px;color:white;font-weight:900;padding:11px 15px;white-space:nowrap}.btn.alt{background:#dbe5b9;color:#574b39}.entry{display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px dashed #e1c9b8;padding:11px 0;font-size:13px}.entry:last-child{border:0}.entry button{border:0;background:transparent;color:#ab7f74;font-size:18px}.empty{text-align:center;padding:16px;color:#9e8677;font-size:13px}.hidden{display:none!important}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:470px;background:#fffaf3;display:flex;justify-content:space-around;border-top:2px solid #d4b6a6;padding:8px 3px calc(8px + env(safe-area-inset-bottom));z-index:5}.nav button{border:1.5px solid #e4c8b9;border-radius:15px;background:#fff9f3;color:#66473a;font-weight:850;font-size:10px;padding:7px 2px;flex:1;margin:0 2px}.nav button.active{background:#ffdee4;border-color:#e8a9ad}.nav span{display:block;font-size:21px;margin-bottom:4px}.fixrow{display:grid;grid-template-columns:1fr 1fr 30px;gap:6px;margin:8px 0}.note{font-size:12px;color:#96796d;line-height:1.6}.selectrow{display:grid;grid-template-columns:1fr 1fr;gap:7px}.chip{font-size:12px;background:#f7e8de;padding:5px 9px;border-radius:15px}.dateinput{max-width:150px}.status{background:#f7e7e4;border-radius:14px;padding:11px;font-size:13px;text-align:center;margin:10px 0}.editactions{display:flex;gap:4px}.editactions button{font-size:15px}.small{font-size:12px}.hint{font-size:11px;color:#a08679} @media(max-width:370px){.card{padding:12px}.scene{aspect-ratio:928/480}.pay{padding:6px}.pay strong{font-size:20px}}

.beta-cloud .formrow {
  flex-wrap: wrap;
}
.beta-cloud .formrow .field {
  flex: 1 1 150px;
}
.cloud-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.settings-save {
  width: 100%;
}

.scene {
  aspect-ratio: 4 / 3;
}
#scene-character {
  position: absolute;
  left: 56%;
  bottom: 15%;
  width: 39%;
  height: auto;
  transform: translateX(-50%);
}
.character-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}
.character-options button {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 4px 0;
  background: #fff9f3;
  color: #66473a;
  text-align: center;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.character-options button[aria-pressed="true"] {
  background: #ffdee4;
  border-color: #e8a9ad;
}
.character-options img {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: contain;
}
