:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;-webkit-tap-highlight-color:transparent}
body{height:100dvh!important;background:#e9e7da;background-image:radial-gradient(ellipse at 20% 10%,#f5f4eb,transparent 60%)!important}
body>div:first-child{max-height:100dvh!important;max-width:430px!important;box-shadow:0 12px 70px #243e301a}
body>div:first-child>div:first-child:has(>span:first-child){display:none}
body>div:first-child>div:nth-child(2){min-height:58px;padding-top:env(safe-area-inset-top)}
main{overscroll-behavior-y:contain;scrollbar-width:none;scroll-behavior:smooth}
main::-webkit-scrollbar{display:none}
a,button,input,textarea{touch-action:manipulation}
a,button{transition:background-color .15s,opacity .15s,transform .15s}
a:active,button:active{opacity:.75}
button:disabled{opacity:.45;cursor:not-allowed}
:focus-visible{outline:2px solid #345e40;outline-offset:3px}
input,textarea{font-size:16px!important;max-width:100%}
input[aria-invalid=true],textarea[aria-invalid=true]{border-color:#a1452e!important}
iconify-icon{display:inline-flex;vertical-align:middle;flex-shrink:0}
nav a{min-height:58px}
nav a[aria-current=page]{position:relative}
nav a[aria-current=page]:before{content:"";position:absolute;top:0;width:20px;height:3px;border-radius:3px;background:#345e40}
.demo-ribbon{font-size:11px;color:#815e2e;padding:6px 16px;background:#f3eedf;flex-shrink:0;display:flex;justify-content:space-between;gap:8px}
.demo-ribbon a{text-decoration:underline}
.enhance-toast{position:fixed;z-index:100;bottom:100px;left:50%;transform:translateX(-50%);width:max-content;max-width:min(85vw,360px);padding:12px 18px;background:#243e30f2;color:#fff;border-radius:12px;font-size:14px;box-shadow:0 5px 24px #0002}
.enhance-dialog{width:calc(100% - 32px);max-width:398px;max-height:85dvh;border:1px solid #e4e1cf;border-radius:22px;padding:24px;background:#fffef9;color:#243e30}
.enhance-dialog::backdrop{background:#17271e80;backdrop-filter:blur(3px)}
.enhance-dialog h2{font-size:21px;font-weight:600;margin:10px 0}
.enhance-dialog p{font-size:14px;line-height:1.8;margin:12px 0;color:#667163}
.enhance-dialog a,.enhance-dialog button.primary{display:block;text-align:center;background:#345e40;color:#fff;border-radius:24px;padding:12px;margin-top:12px}
.enhance-dialog .close{float:right;min-width:40px;min-height:40px;border-radius:50%;background:#eaf0df}
.enhance-dialog label{display:block;font-size:13px;margin-top:12px}
.enhance-dialog input,.enhance-dialog textarea{display:block;width:100%;padding:10px;border:1px solid #e4e1cf;border-radius:10px;margin-top:6px;background:#f7f6ee}
.enhance-dialog [role=alert]{color:#a1452e}
.preview-selection{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.preview-selection img{width:54px;height:54px;object-fit:cover;border-radius:6px}
@media(min-width:600px){body{padding:20px}body>div:first-child{height:calc(100dvh - 40px)!important;border-radius:26px;border:1px solid #dadbcb}}
@media(max-width:350px){.text-\[22px\]{font-size:20px!important}.demo-ribbon{font-size:10px}.w-\[260px\],.w-\[240px\]{max-width:100%}.px-7{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.photo-container{position:relative}
.photo-holder{display:inline-block;max-width:100%;vertical-align:top}
.photo-open{position:absolute;right:5px;bottom:5px;z-index:5;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#17271ec9;color:white;font-size:24px;line-height:1;cursor:zoom-in;border:1px solid #ffffff70;box-shadow:0 2px 8px #0002;touch-action:manipulation}
.photo-open:active{background:#345e40}
.photo-viewer{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;border:0;background:#101612;color:#fff;overflow:hidden}
.photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.photo-viewer::backdrop{background:#101612}
.photo-viewer header{display:flex;align-items:center;justify-content:space-between;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;font-size:14px}
.photo-viewer button{min-width:44px;min-height:44px;border-radius:24px;background:#ffffff18;color:#fff;touch-action:manipulation}
.photo-close,.photo-prev,.photo-next{font-size:28px}
.photo-stage{display:flex;align-items:center;justify-content:center;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
.photo-full{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;flex-shrink:0}
.photo-stage.is-zoomed{display:block;touch-action:pan-x pan-y pinch-zoom}
.photo-stage.is-zoomed .photo-full{width:200%;max-width:none;max-height:none;height:auto}
.photo-viewer footer{padding:12px 16px calc(16px + env(safe-area-inset-bottom));text-align:center;background:#101612}
.photo-caption{font-size:13px;line-height:1.6;margin:0 auto 10px;max-width:600px}
.photo-controls{display:flex;justify-content:center;align-items:center;gap:20px}
.photo-zoom{padding:0 20px;font-size:14px}
.photo-hint{font-size:11px;color:#b6beb8;margin-top:10px}
.preview-selection .photo-holder{width:54px;height:54px}
.preview-selection .photo-open{width:26px;height:26px;font-size:20px;right:1px;bottom:1px}
