:root {
    color-scheme: light;
    --ink: #183f35;
    --muted: #729084;
    --bg: #eff8f1;
    --green: #287d58;
    --deep: #145c42;
    --mint: #e5f5e9;
    --line: #dcece0;
    --white: #fff;
    --shadow: 0 18px 56px rgba(38, 86, 60, .07)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased
}

button,
input {
    font: inherit
}

button {
    cursor: pointer
}

button:disabled {
    cursor: not-allowed
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid #78cba3;
    outline-offset: 3px
}

a {
    color: inherit
}

.hidden {
    display: none !important
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap
}

.ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: -1
}

.ambient-one {
    width: 500px;
    height: 500px;
    top: -250px;
    left: -180px;
    background: #d0f1d7
}

.ambient-two {
    width: 380px;
    height: 380px;
    right: -140px;
    top: 460px;
    background: #d7f1eb
}

.page {
    width: min(1190px, calc(100% - 48px));
    margin: auto
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 31px 0 27px
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px
}

.brand img {
    width: 51px;
    height: 51px;
    box-shadow: 0 8px 24px #295f4a1c;
    border-radius: 16px
}

.brand h1 {
    margin: 0;
    letter-spacing: .055em;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 900
}

.brand p {
    margin: 3px 0 0;
    color: #678f7d;
    font-size: 12px;
    letter-spacing: .06em
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap
}

.online-pill {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #398362;
    font-size: 12px;
    font-weight: 700;
    background: #dff3e5;
    padding: 9px 12px;
    border: 1px solid #cce9d7;
    border-radius: 99px
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4dbc73;
    box-shadow: 0 0 0 3px #4dbc7322
}

.btn {
    border: none;
    text-decoration: none;
    border-radius: 13px;
    font-weight: 800;
    min-height: 41px;
    padding: 11px 17px;
    transition: transform .17s, box-shadow .17s, background .17s;
    white-space: nowrap
}

.btn:not(:disabled):active,
.care-button:not(:disabled):active,
.shop-item:active {
    transform: scale(.975)
}

.btn-ghost {
    color: #507668;
    background: #ffffffb9;
    border: 1px solid #d8ebdf
}

.btn-ghost:hover {
    background: #fff
}

.btn-small {
    font-size: 12px;
    min-height: 38px;
    padding: 9px 13px
}

.btn-main {
    background: #258b61;
    color: white;
    box-shadow: 0 7px 18px #288a5930
}

.btn-main:hover:not(:disabled) {
    background: #1e7754
}

.btn-main:disabled {
    background: #bed7c8;
    box-shadow: none;
    color: #658e78
}

.btn-main small {
    font-size: 11px;
    font-weight: 600;
    color: #ddf5e8;
    padding-left: 4px
}

.btn-block {
    width: 100%
}

.game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(330px, .87fr);
    gap: 21px;
    align-items: start
}

.left-stack,
.right-stack {
    display: grid;
    gap: 21px;
    min-width: 0
}

.panel {
    background: #fff;
    border: 1px solid #e4efe7;
    border-radius: 25px;
    padding: 25px;
    box-shadow: var(--shadow);
    min-width: 0
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 19px
}

.panel-heading h2 {
    font-size: 19px;
    letter-spacing: .018em;
    margin: 4px 0 0;
    font-weight: 850
}

.eyebrow {
    color: #6ca58a;
    font-size: 10px;
    letter-spacing: .19em;
    font-weight: 850
}

.hint {
    color: #8da99a;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap
}

.level-pill {
    border-radius: 99px;
    background: #e6f6ec;
    color: #298159;
    padding: 9px 15px;
    font-size: 12px;
    white-space: nowrap;
    font-weight: 700
}

.level-pill strong {
    font-size: 17px;
    padding-left: 3px
}

.pond-panel {
    padding-bottom: 23px
}

.pond-heading {
    margin-bottom: 18px
}

.pond-scene {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(155deg, #d2f4e9, #a2ded4);
    cursor: pointer;
    touch-action: manipulation;
    isolation: isolate
}

.pond-scene canvas {
    width: 100%;
    height: 100%;
    display: block
}

.scene-top,
.scene-bottom {
    position: absolute;
    left: 17px;
    right: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2
}

.scene-top {
    top: 16px
}

.scene-bottom {
    bottom: 14px;
    color: #f3fff9;
    font-size: 11px;
    font-weight: 750;
    text-shadow: 0 1px 6px #2c7974
}

.scene-label {
    background: #effff7b0;
    color: #397b69;
    font-size: 10px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 99px;
    backdrop-filter: blur(10px)
}

.scene-bubble {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    background: #65c9ac;
    border-radius: 50%
}

.scene-sparkles {
    opacity: .8
}

.boost-badge {
    padding: 8px 10px;
    background: #ffefb8df;
    border-radius: 99px;
    color: #866c12;
    font-size: 10px;
    font-weight: 800
}

.pop-text {
    position: absolute;
    top: 46%;
    left: 50%;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 3px 12px #136d5d80;
    z-index: 4
}

.pop-text.bounce {
    animation: pop .7s ease-out
}

@keyframes pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -20%) scale(.65)
    }

    25% {
        opacity: 1;
        transform: translate(-50%, -80%) scale(1.15)
    }

    80% {
        opacity: 1
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -145%) scale(1)
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 17px
}

.stat {
    background: #f5faf6;
    border: 1px solid #edf4ee;
    padding: 15px 16px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 3px
}

.stat-label {
    color: #668c78;
    font-size: 11px;
    font-weight: 750
}

.stat strong {
    font-size: 25px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em
}

.stat-sub {
    font-size: 10px;
    color: #95a99c
}

.level-progress {
    margin-top: 21px
}

.progress-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6b8b7b;
    margin-bottom: 8px
}

.progress-caption strong {
    font-size: 11px;
    color: #3e795d
}

.progress-track {
    height: 9px;
    border-radius: 99px;
    overflow: hidden;
    background: #e9f1e9
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #75ce8a, #289567);
    border-radius: inherit;
    transition: width .6s ease
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px
}

.care-button {
    min-width: 0;
    border: 1px solid #e0efe4;
    background: linear-gradient(180deg, #f8fcf8, #eef8f0);
    border-radius: 17px;
    padding: 17px 7px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #3c6b56;
    transition: transform .16s, background .2s
}

.care-button:hover:not(:disabled) {
    background: #e2f4e9
}

.care-button:disabled {
    background: #f4f7f4;
    color: #a1afa6;
    filter: saturate(.5)
}

.care-icon {
    font-size: 32px;
    line-height: 1.25;
    min-height: 40px
}

.care-button strong {
    font-size: 12px;
    line-height: 1.3
}

.care-button small {
    font-size: 10px;
    color: #719b84
}

.care-button:disabled small {
    color: #94a59a
}

.care-tip {
    font-size: 11px;
    line-height: 1.7;
    color: #759185;
    margin: 18px 0 12px
}

.care-tip span {
    color: #e9ba59
}

.boost-row {
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #719282
}

.boost-row strong {
    color: #31865a
}

.lake-panel {
    background: linear-gradient(170deg, #fff 70%, #f2faf5)
}

.lake-emoji {
    font-size: 28px;
    color: #80be94
}

.lake-view {
    position: relative;
    height: 118px;
    background: linear-gradient(180deg, #e9fbf0 3%, #caefdf 55%, #a9ddcd);
    overflow: hidden;
    border-radius: 17px;
    margin: 0 0 17px
}

.lake-view:before {
    content: "";
    position: absolute;
    left: 15%;
    right: 15%;
    height: 120px;
    border: 2px solid #fff8;
    top: 55px;
    border-radius: 50%
}

.lake-wave {
    position: absolute;
    width: 145%;
    height: 65px;
    left: -10%;
    border-radius: 50%;
    background: #7fc8b530;
    bottom: -42px
}

.wave-two {
    bottom: -52px;
    left: -30%;
    background: #4ba89117
}

.lake-marimo {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #a6df9d, #348f64 62%, #1d7659 100%);
    box-shadow: inset -6px -8px 12px #1a77571b, 0 9px 14px #48876535;
    animation: floatSmall 4.4s ease-in-out infinite
}

.lake-marimo-a {
    width: 55px;
    height: 55px;
    bottom: 16px;
    left: 27%
}

.lake-marimo-b {
    width: 38px;
    height: 38px;
    bottom: 17px;
    left: 55%;
    animation-delay: -2s
}

.lake-marimo-c {
    width: 25px;
    height: 25px;
    bottom: 23px;
    left: 72%;
    animation-delay: -1s
}

.lake-bubble {
    position: absolute;
    border: 1px solid #fff9;
    border-radius: 50%
}

.lake-bubble.a {
    width: 14px;
    height: 14px;
    top: 21px;
    left: 20%
}

.lake-bubble.b {
    width: 7px;
    height: 7px;
    top: 30px;
    right: 23%
}

@keyframes floatSmall {
    50% {
        transform: translateY(-7px)
    }
}

.lake-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.lake-stats span {
    font-size: 12px;
    color: #598b6f;
    font-weight: 800
}

.lake-stats strong {
    font-size: 22px;
    color: #267f59
}

.lake-track {
    height: 11px
}

.lake-description {
    color: #759185;
    font-size: 11px;
    line-height: 1.75;
    margin: 14px 0 20px
}

.lake-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.lake-footer>span {
    color: #678b7b;
    font-size: 11px
}

.lake-footer b {
    color: #2b8059
}

.lake-footer .btn {
    font-size: 12px;
    padding: 10px 16px
}

.social-panel .panel-heading {
    margin-bottom: 14px
}

.tab-row {
    display: flex;
    padding: 4px;
    background: #eff6ef;
    border-radius: 12px;
    gap: 3px;
    margin-bottom: 12px
}

.tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: #7e9989;
    border-radius: 9px;
    padding: 10px 6px;
    font-size: 12px;
    font-weight: 800
}

.tab.is-active {
    color: #227850;
    background: white;
    box-shadow: 0 2px 6px #567a5711
}

.social-list {
    display: grid;
    gap: 4px
}

.social-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 11px;
    border: none;
    border-radius: 12px;
    background: white;
    text-align: left;
    padding: 10px 5px;
    color: #235a43;
    transition: background .16s
}

.social-item:hover {
    background: #f2f9f3
}

.avatar {
    position: relative;
    width: 39px;
    height: 39px;
    flex: none;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 27%, var(--avatar-highlight, #a0e4aa), var(--avatar-main, #32995e) 60%, var(--avatar-dark, #1f6b4b));
    box-shadow: inset -3px -5px 7px #17644b26;
    border: 2px solid #ffffff
}

.avatar:before,
.avatar:after {
    content: "";
    position: absolute;
    background: #174a39;
    width: 3px;
    height: 4px;
    border-radius: 50%;
    top: 18px
}

.avatar:before {
    left: 13px
}

.avatar:after {
    right: 13px
}

.avatar-deco {
    position: absolute;
    top: -10px;
    left: 14px;
    font-size: 13px;
    text-shadow: 0 1px 2px #fff
}

.social-item .number {
    width: 17px;
    flex: none;
    text-align: center;
    color: #8dae9a;
    font-size: 12px;
    font-weight: 800
}

.social-name {
    min-width: 0;
    flex: 1
}

.social-name strong {
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.social-name small {
    display: block;
    font-size: 10px;
    color: #91a99a;
    margin-top: 4px
}

.social-lev {
    font-size: 12px;
    color: #468668;
    font-weight: 800;
    white-space: nowrap
}

.social-tip {
    font-size: 10px;
    color: #86a090;
    margin: 14px 0 0
}

.activity-list {
    display: grid;
    gap: 11px;
    grid-auto-rows: max-content;
    align-content: start;
    font-size: 11px;
    max-height: calc(10 * 1.55em + 9 * 11px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable
}

.activity {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.55;
    color: #678576
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8fca9e;
    margin-top: 5px;
    flex: none
}

.activity b {
    color: #397457
}

.activity time {
    margin-left: auto;
    white-space: nowrap;
    font-size: 10px;
    color: #9fb5a6
}

.empty {
    color: #88a498;
    text-align: center;
    font-size: 12px;
    padding: 15px
}

.text-button {
    border: 0;
    background: none;
    color: #3f8e6b;
    font-size: 12px;
    font-weight: 700
}

.shop-panel {
    margin-top: 21px
}

.shop-categories {
    margin-top: 18px
}

.shop-categories>span {
    font-size: 13px;
    font-weight: 800;
    color: #55866a;
    display: block;
    margin-bottom: 12px
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px
}

.shop-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    background: #f7fbf7;
    border: 1px solid #e3f0e6;
    color: #3f7156;
    border-radius: 15px;
    padding: 14px 5px 11px;
    transition: background .18s, transform .18s
}

.shop-item:hover {
    background: #e8f7ed
}

.shop-item.selected {
    border: 2px solid #49ae77;
    background: #edf9f0;
    padding: 13px 4px 10px
}

.shop-item .shop-preview {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px
}

.accessory-shop-icon {
    width: 46px;
    height: 46px;
    display: block;
}

.shop-ball {
    height: 37px;
    width: 37px;
    border-radius: 50%;
    background: radial-gradient(circle at 31% 24%, var(--avatar-highlight), var(--avatar-main) 60%, var(--avatar-dark));
    box-shadow: inset -4px -5px 7px #10593f26
}

.shop-item strong {
    font-size: 11px;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden
}

.shop-item small {
    font-size: 10px;
    color: #789788
}

.shop-item .shop-state {
    background: #e3f2e9;
    color: #3e8d61;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 9px;
    font-weight: 800
}

.shop-item.selected .shop-state {
    background: #379865;
    color: #fff
}

.howto {
    padding: 31px 0 26px
}

.howto h2 {
    font-size: 21px;
    margin: 0 0 19px
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.how-grid>div {
    border-top: 1px solid #cbe6d3;
    padding-top: 18px
}

.how-grid .step {
    font-size: 12px;
    font-weight: 900;
    color: #61ab82;
    letter-spacing: .12em
}

.how-grid h3 {
    font-size: 14px;
    margin: 8px 0
}

.how-grid p {
    font-size: 12px;
    line-height: 1.8;
    color: #688777;
    margin: 0
}

footer {
    text-align: center;
    padding: 17px 0 37px;
    color: #8ca59a;
    border-top: 1px solid #dcecdf;
    font-size: 11px;
    line-height: 1.8
}

footer p {
    margin: 4px 0
}

.load-error {
    background: #fff2e9;
    color: #996139;
    border: 1px solid #e8c8ae;
    padding: 14px 17px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 13px
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #183c32a6;
    backdrop-filter: blur(5px);
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px
}

.modal-card {
    background: white;
    position: relative;
    width: min(100%, 470px);
    border-radius: 25px;
    padding: 29px;
    max-height: min(89dvh, 900px);
    overflow: auto;
    box-shadow: 0 22px 80px #092c2650
}

.modal-card h2 {
    font-size: 22px;
    margin: 6px 0 12px
}

.modal-card p {
    font-size: 12px;
    color: #779487;
    line-height: 1.75
}

.modal-close {
    position: absolute;
    right: 17px;
    top: 14px;
    border: none;
    background: #eff5f0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: #678474;
    font-size: 23px
}

.welcome-card {
    text-align: center;
    padding: 33px
}

.welcome-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 15px
}

.modal-card form {
    text-align: left;
    margin-top: 21px
}

.modal-card label {
    display: block;
    color: #628771;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 8px
}

.modal-card input {
    border: 1px solid #dcebe1;
    background: #f8fbf8;
    border-radius: 11px;
    height: 46px;
    width: 100%;
    padding: 0 13px;
    color: #1e513c;
    outline: none;
    min-width: 0
}

.modal-card input:focus {
    border-color: #67b48a;
    box-shadow: 0 0 0 3px #90d0a830
}

.modal-card form>.btn {
    margin-top: 13px
}

.modal-card .small-note {
    font-size: 10px;
    margin-top: 17px
}

.small-modal {
    max-width: 410px
}

.visit-card {
    width: min(100%, 510px)
}

.visitor-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(150deg, #e5f7ed, #d2f0e5);
    padding: 22px;
    border-radius: 16px;
    margin-top: 18px;
    margin-bottom: 15px
}

.friend-marimo {
    flex: none;
    position: relative;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 26%, var(--avatar-highlight, #a0e4aa), var(--avatar-main, #32995e) 60%, var(--avatar-dark, #1f6b4b));
    box-shadow: inset -7px -10px 17px #1a60482d, 0 12px 20px #276f5b28
}

.friend-face i {
    position: absolute;
    width: 7px;
    height: 11px;
    top: 49px;
    border-radius: 50%;
    background: #184a38
}

.friend-face i:first-child {
    left: 32px
}

.friend-face i:nth-child(2) {
    right: 32px
}

.friend-face em {
    position: absolute;
    left: 44px;
    top: 67px;
    width: 18px;
    height: 9px;
    border-bottom: 3px solid #184a38;
    border-radius: 0 0 50% 50%
}

.friend-accessory {
    position: absolute;
    top: -19px;
    left: 36px;
    font-size: 33px
}

.friend-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.friend-info strong {
    font-size: 20px;
    overflow-wrap: anywhere
}

.friend-info span {
    font-size: 12px;
    color: #52806d
}

.gift-rule {
    text-align: center;
    margin: 8px 0 18px !important;
    font-size: 10px !important
}

.guestbook {
    border-top: 1px solid #e5f1e8;
    padding-top: 17px
}

.guestbook h3 {
    margin: 0 0 12px;
    font-size: 15px
}

.guestbook-list {
    max-height: 230px;
    overflow-y: auto;
    display: grid;
    gap: 8px
}

.guestbook-note {
    border: 1px solid #e8f1e9;
    background: #f8fcf8;
    border-radius: 11px;
    padding: 10px 13px
}

.guestbook-note .note-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #759782;
    gap: 12px
}

.guestbook-note .note-meta strong {
    color: #3e7658
}

.guestbook-note p {
    font-size: 12px;
    color: #436a53;
    margin: 6px 0 1px;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.message-compose {
    display: flex;
    gap: 8px
}

.message-compose input {
    flex: 1
}

.message-compose .btn {
    padding: 10px 15px
}

.toast {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: 24px;
    background: #1b684b;
    color: #fff;
    border-radius: 99px;
    padding: 13px 22px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 29px #195e4745;
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    max-width: calc(100% - 32px);
    text-align: center
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

@media(max-width:850px) {
    .page {
        width: min(720px, calc(100% - 28px))
    }

    .game-layout {
        grid-template-columns: 1fr
    }

    .right-stack {
        grid-template-columns: 1fr 1fr;
        align-items: start
    }

    .social-panel {
        grid-row: span 2
    }

    .shop-grid {
        grid-template-columns: repeat(5, 1fr)
    }

    .pond-scene {
        height: 390px
    }
}

@media(max-width:560px) {
    .page {
        width: calc(100% - 22px)
    }

    .header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
        padding: 21px 3px
    }

    .brand h1 {
        font-size: 23px
    }

    .brand img {
        width: 45px;
        height: 45px
    }

    .brand p {
        font-size: 11px
    }

    .header-tools {
        width: 100%;
        gap: 7px
    }

    .header-tools .online-pill {
        margin-right: auto
    }

    .header-tools .btn {
        padding: 8px 10px;
        min-height: 34px;
        font-size: 11px
    }

    .panel {
        border-radius: 20px;
        padding: 17px
    }

    .game-layout,
    .left-stack,
    .right-stack {
        gap: 13px
    }

    .right-stack {
        grid-template-columns: 1fr
    }

    .social-panel {
        grid-row: auto
    }

    .pond-scene {
        height: 300px;
        border-radius: 15px
    }

    .panel-heading {
        margin-bottom: 15px
    }

    .panel-heading h2 {
        font-size: 17px
    }

    .stat {
        padding: 11px 11px
    }

    .stat strong {
        font-size: 22px
    }

    .stat-sub {
        font-size: 9px
    }

    .care-button {
        padding: 13px 4px
    }

    .care-button strong {
        font-size: 11px
    }

    .care-button small {
        font-size: 9px
    }

    .care-icon {
        font-size: 28px
    }

    .shop-panel {
        margin-top: 13px
    }

    .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px
    }

    .shop-item {
        padding: 12px 5px
    }

    .howto {
        padding: 26px 8px
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .how-grid>div {
        padding-top: 12px
    }

    .how-grid h3 {
        margin: 5px 0
    }

    .modal-card {
        padding: 22px;
        border-radius: 19px
    }

    .welcome-card {
        padding: 25px 20px
    }

    .visitor-hero {
        gap: 15px;
        padding: 16px
    }

    .friend-marimo {
        width: 90px;
        height: 90px
    }

    .friend-face i {
        top: 44px
    }

    .friend-face i:first-child {
        left: 27px
    }

    .friend-face i:nth-child(2) {
        right: 27px
    }

    .friend-face em {
        left: 38px;
        top: 59px
    }

    .friend-info strong {
        font-size: 17px
    }

    .friend-accessory {
        left: 30px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }
}

.appearance-note {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted)
}

.appearance-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px
}

.appearance-controls fieldset {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px
}

.appearance-controls legend {
    font-size: 13px;
    font-weight: 800;
    color: var(--green);
    padding: 0 6px
}

.appearance-controls label {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
    font-size: 12px;
    margin: 4px 0 8px
}

.appearance-controls output {
    font-variant-numeric: tabular-nums;
    color: var(--green)
}

.appearance-controls input {
    grid-column: 1/-1;
    width: 100%;
    accent-color: var(--green);
    min-height: 24px;
    margin: 0
}

.appearance-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px
}

.appearance-actions span {
    font-size: 12px;
    color: var(--muted)
}

@media(max-width:560px) {
    .appearance-controls {
        grid-template-columns: 1fr
    }

    .appearance-actions .btn {
        font-size: 12px
    }
}

.custom-avatar {
    background: none;
    border: 0;
    box-shadow: none;
    object-fit: contain;
    width: 45px;
    height: 45px
}

.friend-marimo {
    background: none;
    box-shadow: none
}

.visit-tank {
    position: absolute;
    bottom: -6px;
    right: -10px;
    font-size: 28px
}

.marimo-editor {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start
}

.preview-column {
    position: sticky;
    top: 12px
}

.appearance-panel {
    min-width: 0;
    container-type: inline-size
}

.appearance-panel .panel-heading {
    margin-bottom: 8px
}

.appearance-panel .appearance-controls {
    max-height: 360px;
    max-height: min(45dvh, 440px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    grid-template-columns: 1fr;
    padding: 3px
}

.appearance-panel .appearance-actions .btn {
    font-size: 11px;
    padding: 9px 11px
}

.appearance-panel .appearance-note {
    margin: 8px 0 12px
}

.game-layout {
    margin-top: 21px
}

.tank-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3
}

.tank-decoration {
    position: absolute;
    transform: translate(-50%, -50%) scale(var(--decoration-scale, 1));
    width: 13%;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 18px;
    background: transparent;
    display: grid;
    place-items: center;
    font-size: clamp(28px, 5vw, 55px);
    line-height: 1;
    padding: 0;
    pointer-events: auto;
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none
}

.tank-decoration:hover,
.tank-decoration:focus-visible {
    border-color: #fff9;
    background: #fff2
}

.tank-decoration.dragging {
    cursor: grabbing;
    border-color: white;
    background: #fff3;
    z-index: 2
}

.tank-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0
}

.tank-tools p {
    width: 100%;
    margin: 0 0 3px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted)
}

.tank-tools span {
    font-size: 11px;
    color: var(--green)
}

.pond-panel>.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.visit-tank {
    max-width: 125px;
    line-height: 1.1;
    font-size: 20px
}

@media(max-width:850px) {
    .marimo-editor {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .preview-column {
        position: static
    }

    .marimo-editor .pond-scene {
        height: 280px
    }

    .appearance-panel .appearance-controls {
        max-height: 240px;
        max-height: min(32dvh, 280px)
    }

    .pond-panel>.stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .tank-decoration {
        font-size: clamp(30px, 7vw, 55px)
    }
}

@media(max-width:560px) {
    .marimo-editor .pond-scene {
        height: 210px;
        height: clamp(150px, 29dvh, 230px)
    }

    .appearance-panel .appearance-controls {
        max-height: 190px;
        max-height: 26dvh
    }

    .appearance-panel .panel-heading h2 {
        font-size: 16px
    }

    .appearance-panel .appearance-actions {
        gap: 6px;
        margin-top: 10px
    }

    .appearance-panel .appearance-note {
        font-size: 11px
    }

    .tank-tools p {
        font-size: 10px
    }

    .tank-tools {
        margin-bottom: 0
    }

    .game-layout {
        margin-top: 13px
    }
}

@container (min-width:420px) {
    .appearance-panel .appearance-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.background-swatch {
    display: block;
    width: 64px;
    height: 44px;
    border-radius: 9px;
    border: 1px solid #ffffff80;
    box-shadow: inset 0 1px 4px #ffffff55
}

.appearance-controls #value-blushOpacity::after {
    content: "%"
}

/* Visitor messages and voices from the lake. */
.voice-form {
    margin-top: 20px
}

.voice-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #507668;
    margin-bottom: 8px
}

.voice-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d8ebdf;
    border-radius: 12px;
    background: #f8fcf8;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px
}

.voice-form textarea:focus-visible {
    outline: 3px solid #78cba3;
    outline-offset: 2px
}

.voice-form .btn {
    margin-bottom: 6px
}

.voice-panel>.social-tip,
.message-panel>.social-tip {
    margin: 0 0 18px;
    line-height: 1.8
}

.voice-card,
.voice-own,
.friend-message {
    padding: 15px;
    border: 1px solid #e0eee4;
    background: #f5faf6;
    border-radius: 14px;
    margin: 15px 0
}

.voice-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.8;
    font-size: 14px;
    color: #345e49
}

.voice-meta {
    font-size: 11px;
    color: #759185;
    overflow-wrap: anywhere
}

.voice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.voice-actions .btn[aria-pressed="true"] {
    background: #d0eddd;
    border-color: #60b98a
}

.voice-actions .btn:disabled {
    opacity: .6
}

.voice-inbox-heading {
    margin-top: 27px
}

.voice-inbox-heading h3,
.friend-message h3 {
    font-size: 14px;
    margin: 0
}

.voice-replies {
    display: grid;
    gap: 8px;
    margin-top: 10px
}

.voice-reply {
    border-top: 1px solid #dcebe0;
    padding-top: 10px
}

.voice-own>.text-button {
    margin-top: 10px
}

.voice-own .voice-body {
    margin: 8px 0
}

.friend-message .voice-body {
    font-size: 13px;
    color: #345e49
}

.pond-panel>.care-panel {
    margin-top: 14px;
    padding: 18px;
    box-shadow: none
}

.pond-panel>.care-panel .panel-heading {
    margin-bottom: 12px
}

.pond-panel>.care-panel .panel-heading h2 {
    font-size: 17px
}

.footprint-option {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #507668;
    line-height: 1.7
}

.footprint-option input {
    accent-color: #258b61;
    width: 17px;
    height: 17px;
    flex: none
}

.social-panel .footprint-tip {
    margin: 7px 0 14px;
    line-height: 1.7
}

.home-activity-list {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    overflow-wrap: anywhere
}

.home-activity-note {
    border: 1px solid #e0eee4;
    background: #f8fcf8;
    padding: 12px;
    border-radius: 12px
}

.home-activity-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #759185;
    font-size: 11px
}

.home-activity-meta .text-button {
    text-align: left;
    padding: 0;
    overflow-wrap: anywhere
}

.home-activity-note p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.8;
    font-size: 13px;
    margin: 8px 0 0
}

.home-activity-list+.btn {
    margin-top: 12px
}

.care-button .care-reward {
    white-space: nowrap;
    line-height: 1.7
}
.visit-card{max-width:100%}.visit-pond{margin-top:18px;cursor:default}.visit-pond .tank-decoration{pointer-events:none;cursor:default}.visit-card .visitor-hero{padding:14px 0;background:none;box-shadow:none}

.marimo-editor>.stats-grid{margin-top:0;align-self:stretch}.appearance-modal{width:min(100%,1000px)}.appearance-modal-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.appearance-modal .appearance-controls{grid-template-columns:1fr;max-height:55dvh;overflow-y:auto;padding:3px;overscroll-behavior:contain}.appearance-preview{height:300px;cursor:default}.appearance-preview .tank-decoration{pointer-events:none}.modal-appearance-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:18px}.modal-appearance-actions span{font-size:12px;color:var(--muted)}.appearance-modal form{margin-top:14px}.appearance-modal .appearance-controls label{display:grid;margin:4px 0 8px}.appearance-modal .appearance-controls input{height:auto;padding:0;border:0;box-shadow:none}.appearance-modal .appearance-controls output{font-size:12px}.appearance-modal .appearance-controls label span{font-size:12px}@media(max-width:700px){.appearance-modal-grid{grid-template-columns:1fr}.appearance-preview{height:180px}.appearance-modal .appearance-controls{max-height:32dvh}.modal-appearance-actions .btn{font-size:12px;padding:9px 11px}}

.voice-form select,.diary-visibility{font:inherit;font-size:13px;padding:9px 12px;border:1px solid #d8ebdf;border-radius:10px;background:#f8fcf8;color:var(--ink);max-width:100%;margin:0 8px 10px 0}.diary-history-title{font-size:15px;margin-top:24px}.friend-diary{border-top:1px solid #e5f1e8;padding:17px 0}.friend-diary h3{font-size:15px;margin:0 0 12px}.diary-entry .diary-visibility{margin:10px 0 0}.visit-card #favoriteButton{margin-bottom:12px}

.shop-modal{width:min(100%,1000px)}
.shop-modal .panel-heading{padding-right:24px}
.shop-modal .appearance-preview .tank-decoration{pointer-events:none}

/* Keep care controls below the scene and stats, using the available panel width. */
.pond-panel>.care-panel {
    container-type: inline-size;
}
.marimo-editor>.preview-column {
    position: static;
}
.marimo-editor>.stats-grid {
    grid-template-rows: repeat(3, minmax(0, 1fr));
}
.marimo-editor>.stats-grid .stat {
    justify-content: center;
}
.care-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@container (min-width: 890px) {
    .care-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.lake-voices-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at 15% 15%, #d8efe0, transparent 55%),
        radial-gradient(ellipse at 85% 45%, #d4ecea, transparent 60%), #eff8f1;
}
.lake-voices-page .page { width: min(1480px, calc(100% - 48px)); }
.lake-voices-brand { color: var(--ink); text-decoration: none; font-weight: 800; }
.lake-voices-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0; }
.lake-voices-heading h1 { font-size: clamp(24px, 3vw, 36px); margin: 5px 0 12px; }
.lake-voices-eyebrow { color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .12em; margin: 0; }
.lake-voices-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 8px; align-items: start; gap: 22px; }
.lake-voice-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #ffffffed; box-shadow: 0 8px 24px #26563c09; min-width: 0; }
.lake-voice-header { display: flex; align-items: center; gap: 11px; }
.lake-voice-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #e1f3e7; color: var(--green); font-weight: 800; }
.lake-voice-meta { display: grid; gap: 3px; min-width: 0; }
.lake-voice-author { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.lake-voice-author:hover { text-decoration: underline; }
.lake-voice-body { margin: 20px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.9; }
.lake-voice-reactions { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 12px; }
.lake-voices-more { display: flex; justify-content: center; padding: 32px 0; }
@media(max-width: 1200px) { .lake-voices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width: 900px) { .lake-voices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 560px) {
    .lake-voices-page .page { width: calc(100% - 28px); }
    .lake-voices-grid { grid-template-columns: 1fr; gap: 16px; }
    .lake-voices-heading { align-items: flex-start; flex-wrap: wrap; }
    .lake-voice-card { padding: 20px; }
    .lake-voices-brand { font-size: 12px; }
}

.account-main { max-width: 580px; margin: 25px auto 60px; }
.account-panel h1 { font-size: 24px; margin: 0; }
.account-panel p { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.account-form { display: grid; gap: 12px; }
.account-form.hidden { display: none; }
.account-form label { font-size: 13px; font-weight: 750; }
.account-form input { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fcf9; font: inherit; }
.account-form input:focus { outline: 2px solid #8ac8a6; outline-offset: 2px; }
.account-form p { margin: 0; }
#accountStatus { color: var(--green); }
.account-save-notice { margin: 0 0 18px; padding: 14px 18px; background: #e4f3e8; border-radius: 14px; color: #456f58; font-size: 12px; line-height: 1.8; }
.account-save-notice a { color: var(--green); font-weight: 750; margin-left: 8px; }

.lake-voice-card [hidden] {
    display: none;
}

.terms-page { max-width: 900px; }
.terms-content { background: #fff; border: 1px solid #dcecdf; border-radius: 20px; padding: clamp(20px, 4vw, 44px); margin-bottom: 32px; line-height: 1.9; overflow-wrap: anywhere; }
.terms-content h1 { font-size: 26px; margin-top: 0; }
.terms-content h2 { font-size: 18px; margin: 30px 0 12px; }
.terms-content p, .terms-content ul { margin: 12px 0; }
.terms-content ul { padding-left: 1.5em; }
.terms-content a, footer a { color: #26734c; }
@media (max-width: 520px) {
    .terms-page .header { flex-wrap: wrap; }
}

/* Level-up celebration stays inside the pond and allows interaction through it. */
.level-up-effect { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; display: grid; place-content: center; justify-items: center; opacity: 0; }
.level-up-effect.is-playing { animation: level-up-appear 3.2s ease both; background: radial-gradient(ellipse at center, #fff9c94d, transparent 65%); }
.level-up-title { position: relative; font-size: clamp(24px, 5vw, 42px); font-weight: 900; letter-spacing: .08em; color: #fff9c6; text-shadow: 0 2px 0 #94712f, 0 3px 14px #46784d; }
.level-up-badge { position: relative; margin-top: 10px; border: 1px solid #fff5bb; border-radius: 999px; padding: 5px 24px; background: #fffdf0ed; color: #346744; font-size: 23px; font-weight: 800; box-shadow: 0 4px 24px #436c4326; }
.level-up-ring { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; border: 3px solid #fff4ac; border-radius: 50%; transform: translate(-50%, -50%); }
.is-playing .level-up-ring { animation: level-up-ring 1.5s ease-out both; }
.level-up-spark { position: absolute; left: 50%; top: 50%; color: #fff3a0; font-size: 18px; text-shadow: 0 0 8px #fff; }
.is-playing .level-up-spark { animation: level-up-spark 1.8s ease-out var(--spark-delay) both; }
@keyframes level-up-appear { 0% { opacity: 0; } 12%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes level-up-ring { from { transform: translate(-50%, -50%) scale(.4); opacity: .9; } to { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }
@keyframes level-up-spark { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 20% { opacity: 1; } to { transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(.5); opacity: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
    .level-up-effect.is-playing { animation: none; opacity: 1; }
    .is-playing .level-up-ring, .is-playing .level-up-spark { animation: none; display: none; }
}

.login-required-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #c4ded0;
    border-radius: 12px;
    background: #eef7f1;
    color: #315f49;
    font-size: 13px;
    line-height: 1.7;
}
.login-required-notice a { color: #195b3c; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.login-required-notice.hidden { display: none; }

.ad-panel { min-width: 0; min-height: 280px; }
.ad-label { margin: 0 0 12px; color: var(--muted); font-size: 11px; text-align: center; }

.account-delete-entry { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.account-delete-entry h2 { font-size: 15px; margin: 0 0 10px; }
.account-delete-entry p { font-size: 12px; color: var(--muted); }
.account-danger-link { color: #a34235; }
.account-delete-warning { padding: 14px 16px; border: 1px solid #e7beb4; border-radius: 12px; background: #fff5f1; color: #884238; line-height: 1.9; font-size: 13px; }
.account-delete-warning p { margin: 0 0 10px; }
.account-delete-warning p:last-child { margin-bottom: 0; }
.account-form .account-delete-confirm { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin: 18px 0; }
.account-delete-confirm input { width: 18px; height: 18px; margin: 3px 0 0; padding: 0; flex-shrink: 0; }
.btn-danger { background: #a34436; color: white; border-color: #a34436; }
.btn-danger:hover:not(:disabled) { background: #89382e; }
#accountDeleted .btn { margin: 8px 8px 0 0; }

.lake-footer { flex-wrap: wrap; }
.lake-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.lake-ranking-modal { width: min(100%, 600px); }
.lake-ranking-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lake-ranking-table th, .lake-ranking-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid #dce9df; }
.lake-ranking-table th:last-child, .lake-ranking-table td:last-child { text-align: right; white-space: nowrap; }
.lake-ranking-table td:nth-child(2) { overflow-wrap: anywhere; }
.lake-ranking-table .is-me { background: #edf9f0; font-weight: 700; }

.diary-entry-title { margin: 10px 0 8px; font-size: 15px; overflow-wrap: anywhere; }
#diaryEntryTitle { width: 100%; padding: 11px 12px; border: 1px solid #d8ebdf; border-radius: 10px; font: inherit; color: var(--ink); background: #f8fcf8; }
.diaries-page .page { max-width: 1000px; }
.diary-browse-tabs, .diary-pagination { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.diary-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.diary-filter label { font-size: 13px; }
.diary-filter input[type="date"] { padding: 9px; border: 1px solid #d8ebdf; border-radius: 10px; font: inherit; max-width: 100%; }
.diary-author-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.diary-author-grid h2, .public-diary-entry h2 { font-size: 20px; overflow-wrap: anywhere; margin: 12px 0; }
.public-diary-entry { margin-bottom: 18px; }
.public-diary-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.diary-day-heading { font-size: 18px; margin: 28px 0 16px; }

.tank-decoration[aria-pressed="true"] { border-color: #fff; background: #fff3; z-index: 1; }
.tank-size-editor { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; }
.tank-size-editor label, #tankSelectedName { font-size: 12px; font-weight: 700; }
.tank-size-editor input[type="range"] { flex: 1; min-width: 120px; max-width: 260px; accent-color: #398659; }

.appearance-modal .appearance-visibility-controls .appearance-toggle { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.appearance-modal .appearance-visibility-controls .appearance-toggle input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: #398659; }

.appearance-visibility-controls { display: flex; gap: 12px 24px; flex-wrap: wrap; margin-top: 16px; }
.appearance-modal .appearance-visibility-controls .appearance-toggle { margin: 0; }
.appearance-modal .appearance-controls input:disabled { opacity: .4; cursor: not-allowed; }
