:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#202d2a;background:#f7f8f6;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.56;cursor:wait}.hidden{display:none!important}.muted{color:#89928e}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#8aa29a;margin:0 0 11px}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-art{background:#173b36;display:grid;place-items:center;position:relative;overflow:hidden}.brand-mark{height:94px;width:94px;border-radius:28px;display:grid;place-items:center;background:#d9eecb;color:#1a423b;font-family:Georgia,serif;font-size:62px;line-height:1;letter-spacing:-.1em;box-shadow:0 20px 60px #071b1740;z-index:1}.brand-mark.small{height:40px;width:40px;border-radius:13px;font-size:28px;box-shadow:none}.art-orbit{position:absolute;border:1px solid #ffffff2b;border-radius:50%;width:500px;height:500px}.orbit-two{width:760px;height:760px}.login-panel{width:min(390px,80%);align-self:center;justify-self:center}.login-panel h1{font-size:36px;letter-spacing:-.05em;margin:0 0 12px}.login-panel .muted{margin:0 0 55px;font-size:14px}.login-panel label,.user-picker label,.field{display:block;font-weight:700;font-size:13px;margin-bottom:9px}.login-panel input,.user-picker input,.field-input{width:100%;height:48px;border:1px solid #dfe5e1;border-radius:13px;background:#fff;padding:0 15px;outline:none;color:#22302c}.field-input:focus,.login-panel input:focus,.user-picker input:focus{border-color:#579d80;box-shadow:0 0 0 3px #5aab8220}.login-panel .primary{margin-top:23px}.primary{border:0;background:#244f43;color:#fff;padding:15px 22px;border-radius:13px;font-weight:750;display:inline-flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 8px 18px #1d5c3524}.primary:hover{background:#1a4035}.primary.full{width:100%}.form-error{min-height:20px;color:#bf5b51;font-size:13px}.login-note{text-align:center;color:#a5aca7;font-size:12px;margin-top:45px}.app-shell{min-height:100vh}.topbar{height:76px;padding:0 4.2%;background:#fff;border-bottom:1px solid #edf0eb;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px}.brand strong,.brand small{display:block}.brand strong{font-size:15px;letter-spacing:-.03em}.brand small{font-size:11px;color:#9ba59d;margin-top:2px}.icon-button{border:1px solid #e5ebe6;background:#fff;color:#7d8d83;border-radius:11px;width:36px;height:36px;font-size:18px}.workspace{display:grid;grid-template-columns:220px minmax(0,1fr);max-width:1280px;margin:auto;min-height:calc(100vh - 76px)}.desktop-nav{border-right:1px solid #e8ece6;padding:34px 16px;position:relative}.nav-caption{font-size:11px;color:#a3ada6;letter-spacing:.12em;margin:0 16px 16px;font-weight:800}.nav-item{border:0;background:transparent;width:100%;text-align:left;padding:13px 15px;border-radius:12px;color:#78847d;font-size:13px;font-weight:700;margin:2px 0}.nav-item span{font-size:18px;margin-right:13px;vertical-align:-2px}.nav-item.active{background:#e9f0e8;color:#235545}.nav-foot{position:absolute;bottom:30px;left:32px;color:#85958b;font-size:12px}.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#69be8c;margin-right:8px}.main-column{padding:42px 6.2% 90px;min-width:0}.view{max-width:1000px}.section-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:28px;gap:15px}.section-top h1{font-size:32px;letter-spacing:-.055em;margin:0 0 8px;font-weight:800}.section-top .muted{font-size:13px;margin:0}.wave{color:#87b798;font-size:26px}.today-badge{background:#fff;border:1px solid #ebeee9;border-radius:100px;padding:10px 14px;color:#869289;font-size:11px;white-space:nowrap}.hero-card{background:linear-gradient(112deg,#205448,#2d725e);border-radius:20px;color:#fff;padding:33px 35px;display:flex;align-items:end;justify-content:space-between;position:relative;overflow:hidden;min-height:195px}.hero-card>div{align-self:center}.hero-card p{margin:0 0 9px;color:#b5e3ca;font-size:12px;font-weight:700}.hero-card h2{font-size:23px;letter-spacing:-.04em;margin:0 0 9px}.hero-card span{color:#c7e3d6;font-size:12px}.hero-button{z-index:1;background:#eff7ec;color:#285649;border:0;border-radius:10px;padding:13px 16px;font-size:12px;font-weight:800;white-space:nowrap}.hero-button span{color:#285649;margin-left:12px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:17px}.stat-card{background:#fff;border:1px solid #ebeee9;border-radius:18px;padding:20px;min-height:145px}.stat-icon{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;font-size:19px;margin-bottom:10px}.lavender{background:#eeeafa;color:#8177b4}.mint{background:#e7f3eb;color:#5ca27a}.stat-card>span{font-size:12px;color:#87928a}.stat-card strong{display:block;font-size:28px;margin:5px 0 0;letter-spacing:-.05em}.stat-card small{color:#b0b9b2;font-size:11px}.block-title{display:flex;justify-content:space-between;align-items:center;margin:31px 0 15px}.block-title h2{font-size:18px;letter-spacing:-.035em;margin:0 0 5px}.block-title p{font-size:12px;color:#a1aba3;margin:0}.tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.tool-card{border:1px solid #ebeee9;background:#fff;text-align:left;border-radius:16px;padding:18px;min-height:120px;position:relative;transition:transform .15s,box-shadow .15s}.tool-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px #294c3210}.tool-card.wide{grid-column:span 2}.tool-card strong,.tool-card small{display:block}.tool-card strong{font-size:14px;margin:9px 0 5px}.tool-card small{font-size:11px;color:#a3ada6}.tool-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;font-size:17px}.tint-peach{background:#f8ece6;color:#c48d72}.tint-blue{background:#e8eefb;color:#7088bc}.tint-yellow{background:#f8f1d9;color:#b6a15e}.tint-pink{background:#fae7ee;color:#c7839d}.tint-mint{background:#e6f3e9;color:#6ca681}.tool-arrow{position:absolute;right:17px;top:17px;color:#afbbb0}.text-button{border:0;background:none;color:#3a8165;font-size:12px;font-weight:750}.action-list{background:#fff;border:1px solid #ebeee9;border-radius:16px;overflow:hidden}.empty-list{color:#a2ada4;padding:30px;text-align:center;font-size:13px}.action-row{padding:16px 19px;display:flex;gap:12px;align-items:center;border-bottom:1px solid #f0f2ee;text-align:left}.action-row:last-child{border:0}.action-symbol{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#edf4ed;color:#498566;flex:none;font-size:18px}.action-main{min-width:0;flex:1}.action-main strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.action-main small{font-size:11px;color:#a3ada5;display:block;margin-top:4px}.status{font-size:11px;border-radius:100px;padding:6px 9px;background:#ebf5eb;color:#438767;white-space:nowrap}.status.processing,.status.pending{background:#fff4df;color:#ac8648}.status.partial,.status.failed{background:#fff0ec;color:#bf6e5a}.compact{margin-bottom:25px}.publish-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:18px;align-items:start}.form-card{background:#fff;border:1px solid #e9eee8;border-radius:18px;padding:28px}.field-label{font-size:11px;font-weight:850;letter-spacing:.08em;color:#86a08e;margin:0 0 15px}.type-tabs{display:flex;gap:8px;flex-wrap:wrap}.type-tabs button{border:1px solid #e6ebe6;border-radius:100px;background:#fff;padding:9px 13px;color:#87928a;font-size:12px;font-weight:700}.type-tabs button.active{background:#e7f0e8;color:#2c7053;border-color:#d3e8d8}.form-divider{height:1px;background:#eef0ec;margin:26px 0}.scope-control{display:grid;grid-template-columns:1fr 1fr;gap:11px}.scope-control label{display:flex;align-items:start;gap:10px;border:1px solid #e4ebe5;border-radius:13px;padding:15px;cursor:pointer}.scope-control label:has(input:checked){border-color:#80ae91;background:#f4faf4}.scope-control input{accent-color:#347657;margin:3px 0 0}.scope-control b,.scope-control small{display:block}.scope-control b{font-size:13px}.scope-control small{font-size:11px;color:#a1ada3;margin-top:5px}.user-picker{margin-top:20px}.user-results{max-height:220px;overflow:auto;margin-top:8px}.user-result{display:block;width:100%;border:1px solid #e9eee9;background:#fff;padding:12px;border-radius:10px;text-align:left;margin:6px 0}.user-result strong,.user-result small{display:block}.user-result small{font-size:11px;color:#98a49a;margin-top:4px}.selected-user{background:#eaf4eb;color:#2e6d52;border-radius:10px;padding:12px;margin-top:8px;font-size:12px}.field-group{margin-bottom:17px}.field-input.textarea{height:126px;padding:13px 15px;resize:vertical}.field-help{font-size:11px;color:#9da9a0;margin:7px 0 0}.hint-box{background:#f5f8f3;border-left:3px solid #9abda2;border-radius:9px;padding:12px 14px;color:#708378;font-size:12px;line-height:1.55;margin:17px 0 22px}.side-panel{background:#edf3ec;border-radius:16px;padding:22px}.side-icon{height:34px;width:34px;border-radius:10px;background:#dcebdd;color:#4f8e68;display:grid;place-items:center;font-size:19px}.side-panel h3{font-size:14px;margin:17px 0 11px}.side-panel p{color:#819489;font-size:12px;line-height:1.7;margin:0}.side-line{height:1px;background:#dce7db;margin:16px 0}.history-list{min-height:120px}.soft-button{border:1px solid #e1e9e1;background:#fff;color:#53745e;padding:11px 15px;border-radius:10px;font-weight:750;font-size:12px}.bottom-nav{display:none}.modal-layer{position:fixed;inset:0;background:#13251eb8;display:grid;place-items:center;z-index:10;padding:18px}.modal-card{width:min(420px,100%);background:#fff;border-radius:21px;padding:27px;box-shadow:0 25px 70px #09221940}.modal-icon{width:37px;height:37px;display:grid;place-items:center;background:#fff1d9;color:#b98c3e;border-radius:11px;font-size:21px;font-weight:800}.modal-card h2{font-size:21px;margin:17px 0 7px}.modal-card p{color:#7e8d82;font-size:13px;line-height:1.6;margin:0}.confirm-summary{background:#f6f8f5;border-radius:11px;padding:14px;margin:20px 0;font-size:12px;line-height:1.8;color:#4f6657;white-space:pre-wrap;overflow-wrap:anywhere}.modal-actions{display:flex;justify-content:flex-end;gap:9px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#203c32;color:#fff;padding:13px 18px;border-radius:12px;z-index:20;box-shadow:0 12px 30px #10291b33;font-size:12px;max-width:calc(100vw - 36px)}@media(max-width:900px){.publish-layout{grid-template-columns:1fr}.side-panel{display:none}.workspace{grid-template-columns:180px minmax(0,1fr)}.main-column{padding:32px 4% 90px}}@media(max-width:640px){.login-page{display:block;background:#f7f9f5}.login-art{height:270px;border-radius:0 0 38px 38px}.login-art .brand-mark{width:72px;height:72px;font-size:49px;border-radius:23px}.art-orbit{width:320px;height:320px}.orbit-two{width:480px;height:480px}.login-panel{width:auto;margin:-4px 25px 0;padding:38px 0 30px}.login-panel h1{font-size:29px}.login-panel .muted{margin-bottom:33px}.topbar{height:66px;padding:0 20px}.workspace{display:block;min-height:calc(100vh - 66px)}.desktop-nav{display:none}.main-column{padding:28px 18px 100px}.section-top h1{font-size:27px}.today-badge{font-size:10px;padding:8px}.hero-card{padding:24px;display:block;min-height:200px}.hero-card h2{font-size:21px;max-width:240px}.hero-card>div>span{display:block;max-width:235px;line-height:1.5}.hero-button{margin-top:19px}.stat-card{min-height:130px;padding:16px}.stat-card strong{font-size:25px}.stat-card small{line-height:1.3;display:block}.tool-card{min-height:116px;padding:15px}.tool-card.wide{grid-column:span 2}.form-card{padding:19px}.scope-control{gap:8px}.scope-control label{padding:12px 9px}.scope-control small{line-height:1.35}.bottom-nav{position:fixed;display:flex;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e9eee8;padding:9px 12px calc(9px + env(safe-area-inset-bottom));z-index:4;justify-content:space-around;box-shadow:0 -5px 20px #173b2110}.bottom-nav button{background:none;border:0;color:#a0aaa1;display:grid;gap:2px;justify-items:center;min-width:75px;font-size:10px;font-weight:700}.bottom-nav button span{font-size:21px;line-height:1.1}.bottom-nav button.active{color:#2b7655}.modal-card{padding:23px}.modal-actions .primary,.modal-actions .soft-button{padding:12px 13px}.toast{bottom:83px}}
.template-preview{display:flex;align-items:center;gap:12px;border:1px solid #e8eee7;border-radius:13px;padding:17px;background:#fbfcfa}.template-symbol{width:38px;height:38px;display:grid;place-items:center;background:#e8f2e9;color:#609772;border-radius:11px;font-size:21px;flex:none}.template-preview strong,.template-preview small{display:block}.template-preview strong{font-size:13px}.template-preview small{font-size:11px;color:#9eaaa0;margin-top:5px}
.header-actions{display:flex;align-items:center;gap:9px}.compact-button{padding:10px 12px}.modal-card form{margin-top:21px}.modal-card form .field-group{margin-bottom:15px}@media(max-width:640px){.compact-button{padding:9px 11px;font-size:11px}}

.action-list.empty-list{display:flex;align-items:center;justify-content:center;min-height:120px;padding:20px;text-align:center}

.brand-mark{position:relative;letter-spacing:0}
.brand-mark .brand-letter{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) translateY(-2px);font-size:1em;line-height:1;color:#1a423b;margin:0}
.brand-mark .brand-dot{position:absolute;right:20%;bottom:8%;font-size:.32em;line-height:1;color:#d47f64;margin:0}

.install-link{display:block;margin:12px auto 0;padding:8px 12px;border:0;background:transparent;color:#397d61;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.topbar{height:calc(76px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
.modal-layer{padding:calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom))}
@media(max-width:640px){.topbar{height:calc(66px + env(safe-area-inset-top))}}
@media(max-width:360px){.topbar{padding-left:14px;padding-right:14px}.brand small{display:none}.header-actions{gap:7px}.header-actions .icon-button{width:32px;height:32px}.compact-button{padding:8px;font-size:10px}}

.ios-keyboard-help{display:block;margin-top:10px;padding:0;border:0;background:transparent;color:#397d61;font-size:12px;text-align:left;text-decoration:underline;text-underline-offset:3px}


.lottery-summary{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 4px}
.chip{border:1px solid #e4ebe5;border-radius:100px;padding:6px 11px;background:#fff;color:#63736b;font-size:11px;font-weight:750;white-space:nowrap}
.chip-joined{background:#e8eefb;border-color:#d3def5;color:#5b74a8}
.chip-win{background:#fdf1d2;border-color:#efdca4;color:#a67c1e}
.chip-lose{background:#eef0ec;border-color:#e2e6e0;color:#8a948c}
.lottery-list{margin-top:16px}
.status.joined{background:#e8eefb;color:#5b74a8}
.status.win{background:#fdf1d2;color:#a67c1e}
.status.lose{background:#eef0ec;color:#8a948c}
.lottery-row .lottery-reset{flex:none;padding:8px 12px;font-size:11px}
#lotteryDateSelect{appearance:auto}
.lottery-row{flex-wrap:wrap}
.field-input[type="date"],.field-input[type="time"]{display:block;width:100%;min-width:0;-webkit-appearance:none;appearance:none;text-align:left}
.field-input[type="date"]::-webkit-date-and-time-value,.field-input[type="time"]::-webkit-date-and-time-value{text-align:left;min-height:1.2em}
.field-input[type="date"]::-webkit-datetime-edit,.field-input[type="time"]::-webkit-datetime-edit{padding:0}
.field-input[type="date"]::-webkit-date-and-time-value,.field-input[type="time"]::-webkit-date-and-time-value{display:flex;align-items:center;height:100%}
.nav-item span svg{display:inline-block;vertical-align:-.16em}
.tool-icon svg,.side-icon svg,.action-symbol svg,.template-symbol svg,.bottom-nav button span svg{display:block}
.modal-card{max-width:calc(100vw - 36px)}
.stat-card.clickable{cursor:pointer;transition:transform .15s,box-shadow .15s}
.stat-card.clickable:hover{transform:translateY(-2px);box-shadow:0 12px 30px #294c3210}
.stat-card.clickable:focus-visible{outline:3px solid #80ae9155;outline-offset:2px}
.users-card{width:min(620px,100%);max-width:calc(100vw - 36px);max-height:min(82vh,760px);display:flex;flex-direction:column}
.users-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.users-head h2{margin-top:0}
.users-card #usersSearch{margin:16px 0 12px;flex:none}
.user-directory{flex:1;min-height:0;overflow:auto;border:1px solid #eef1ec;border-radius:13px}
.user-directory.empty-list{border:0}
.directory-row{display:flex;align-items:center;gap:10px;width:100%;border:0;border-bottom:1px solid #f0f2ee;background:#fff;padding:12px 13px;text-align:left}
.directory-row:last-child{border-bottom:0}
.directory-main{flex:1;min-width:0}
.directory-main strong,.directory-main small{display:block}
.directory-main strong{font-size:13px}
.directory-main small{font-size:11px;color:#98a49a;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.directory-stats{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:45%}
.mini-chip{font-size:10px;color:#52705e;background:#eef5ee;border-radius:100px;padding:4px 7px;white-space:nowrap}
.directory-pick{font-size:11px;font-weight:750;color:#3a8165;white-space:nowrap}
.action-delete{border:0;background:#fff1ee;color:#b76754;border-radius:9px;width:30px;height:30px;font-size:17px;line-height:1;flex:none}
.action-delete:hover{background:#ffe4dd}
@media(max-width:640px){.users-card{max-height:86vh}.directory-stats{max-width:38%}}
#redeemLinks{max-height:240px;overflow:auto}
.link-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.link-row .field-input{flex:1;min-width:0}
#addRedeemLink{margin-top:2px}
.confirm-summary{max-height:45vh;overflow:auto}

.datetime-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:640px){.datetime-row{grid-template-columns:1fr}}

.lottery-weight{font-size:11px;font-weight:800;color:#52705e;background:#eef5ee;border:1px solid #dfeadf;border-radius:100px;padding:6px 10px;white-space:nowrap}
.lottery-weight.boosted{background:#fdf1d2;border-color:#efdca4;color:#a67c1e}
.chip-weight{background:#f6efe4;border-color:#eadbc8;color:#8f6b3d}

.lottery-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lottery-image-option{display:block;position:relative;cursor:pointer;margin:0}
.lottery-image-option input{position:absolute;width:1px;height:1px;opacity:0}
.lottery-image-option-body{display:flex;flex-direction:column;height:100%;min-height:190px;padding:8px;border:2px solid #e4ebe5;border-radius:13px;background:#fff;overflow:hidden}
.lottery-image-option input:checked+.lottery-image-option-body{border-color:#4c9871;background:#f3faf4;box-shadow:0 0 0 2px #4c987126}
.lottery-image-option input:focus-visible+.lottery-image-option-body{outline:3px solid #4c987180;outline-offset:2px}
.lottery-image-option-body img{display:block;width:100%;height:145px;object-fit:contain;border-radius:8px;background:#f6f8f5}
.lottery-image-caption{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:9px 3px 2px}
.lottery-image-caption strong,.lottery-image-auto strong{font-size:12px;color:#293d32}
.lottery-image-caption small{font-size:10px;color:#377e59;white-space:nowrap}
.lottery-image-auto{align-items:center;justify-content:center;gap:9px;text-align:center;background:#f8faf7}
.lottery-image-auto-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#e8f2e9;color:#4d8e68;font-size:24px}
.lottery-image-auto small{font-size:10px;color:#89998b;line-height:1.4}

:is(#refreshLottery,#refreshLotteryStats){min-width:94px;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
:is(#refreshLottery,#refreshLotteryStats) .refresh-icon{display:inline-block;font-size:16px;line-height:1;transform-origin:center}
:is(#refreshLottery,#refreshLotteryStats).is-refreshing .refresh-icon{animation:lottery-refresh-spin .7s linear infinite}
:is(#refreshLottery,#refreshLotteryStats).refresh-complete{color:#23734c;border-color:#b9ddc6;background:#f0faf2}
:is(#refreshLottery,#refreshLotteryStats).refresh-failed{color:#b85349;border-color:#efc9c5;background:#fff7f6}
@keyframes lottery-refresh-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){:is(#refreshLottery,#refreshLotteryStats).is-refreshing .refresh-icon{animation:none}}

.history-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:18px;color:#7c8a80;font-size:12px;font-weight:700}
.history-pagination .soft-button:disabled{cursor:default}
@media(max-width:640px){.history-pagination{justify-content:center;gap:8px}.history-pagination .soft-button{padding:10px 12px}}

.history-pagination .history-page-number{min-width:34px;padding:10px}
.history-pagination .history-page-number.active{background:#e7f0e8;border-color:#cfe3d3;color:#2b7655}

.history-toolbar{display:flex;align-items:center;gap:8px}
#toggleHistoryDelete[aria-pressed="true"]{border-color:#efc9c5;background:#fff1ee;color:#b76754}
#historyActions .action-delete{display:none}
#historyActions.delete-mode .action-delete{display:inline-flex;align-items:center;justify-content:center}

.action-openable{cursor:pointer}
.action-openable:hover,.action-openable:focus-visible{background:#f6faf6}
.action-openable:focus-visible{outline:2px solid #8fb99b;outline-offset:-2px}
.action-detail-card{width:min(700px,100%);max-width:calc(100vw - 36px);max-height:min(86vh,850px);display:flex;flex-direction:column;overflow:hidden}
.action-detail-card .users-head{flex:none}
.action-detail-card .users-head h2{overflow-wrap:anywhere;margin:0}
.action-detail-content{overflow:auto;min-height:0;margin-top:16px;padding-right:4px}
.action-detail-content h3{font-size:13px;color:#486858;margin:20px 0 10px}
.action-detail-content h3:first-child{margin-top:0}
.action-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.action-detail-field{min-width:0;padding:12px;border:1px solid #e7ede7;border-radius:11px;background:#fafcf9}
.action-detail-field dt{font-size:11px;font-weight:800;color:#809388}
.action-detail-field dt small{font-size:10px;font-weight:500;margin-left:6px;color:#a1ada5}
.action-detail-field dd{margin:7px 0 0;font-size:13px;line-height:1.5;color:#293d32;white-space:pre-wrap;overflow-wrap:anywhere}
.action-target-list{border:1px solid #e7ede7;border-radius:11px;overflow:hidden}
.action-target-row{padding:11px 13px;border-bottom:1px solid #edf1eb;overflow-wrap:anywhere}
.action-target-row:last-child{border-bottom:0}
.action-target-row strong,.action-target-row span{display:block;font-size:12px;line-height:1.5}
.action-target-row span{color:#819087;margin-top:3px}
@media(max-width:640px){.action-detail-grid{grid-template-columns:1fr}.action-detail-card{max-height:88vh}}

#actionDetailLayer:not(.hidden){animation:action-detail-backdrop-in .18s ease-out both}
#actionDetailLayer:not(.hidden) .action-detail-card{animation:action-detail-card-in .22s ease-out both}
.action-detail-card{height:min(74vh,600px)}
.action-detail-content{flex:1}
.action-detail-content.is-loading{display:flex;align-items:center;justify-content:center}
.action-detail-content.is-ready{animation:action-detail-content-in .2s ease-out both}
.action-detail-loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#71877a;font-size:13px;font-weight:700}
.action-detail-spinner{width:34px;height:34px;border:3px solid #dce9df;border-top-color:#398763;border-radius:50%;animation:action-detail-spin .8s linear infinite}
@keyframes action-detail-spin{to{transform:rotate(360deg)}}
@keyframes action-detail-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes action-detail-card-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes action-detail-content-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.action-detail-card{height:min(80vh,620px)}}
@media(prefers-reduced-motion:reduce){#actionDetailLayer:not(.hidden),#actionDetailLayer:not(.hidden) .action-detail-card,.action-detail-content.is-ready,.action-detail-spinner{animation:none}}

/* Portrait previews for the coffee lottery popup images. */
#lotteryImageChoices .lottery-image-option-body{min-height:0}
#lotteryImageChoices .lottery-image-option-body img{width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}

/* Staggered entrance for the four workspace views. */
.view.page-enter :is(.section-top,.hero-card,.stat-card,.block-title,.tool-card,.form-card,.side-panel,.action-row,.history-pagination,.lottery-summary,.hint-box,.action-list.empty-list){animation:page-content-in .42s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--enter-delay,0ms)}
#homeView.page-enter .hero-card{--enter-delay:55ms}
#homeView.page-enter .stats-grid .stat-card:nth-child(1){--enter-delay:100ms}
#homeView.page-enter .stats-grid .stat-card:nth-child(2){--enter-delay:140ms}
#homeView.page-enter .block-title:nth-child(4){--enter-delay:180ms}
#homeView.page-enter .tool-grid .tool-card:nth-child(1){--enter-delay:210ms}
#homeView.page-enter .tool-grid .tool-card:nth-child(2){--enter-delay:240ms}
#homeView.page-enter .tool-grid .tool-card:nth-child(3){--enter-delay:270ms}
#homeView.page-enter .tool-grid .tool-card:nth-child(4){--enter-delay:300ms}
#homeView.page-enter .tool-grid .tool-card:nth-child(5){--enter-delay:330ms}
#homeView.page-enter .tool-grid .tool-card:nth-child(6){--enter-delay:360ms}
#homeView.page-enter .block-title:nth-child(6){--enter-delay:380ms}
#homeView.page-enter #recentActions .action-row{--enter-delay:390ms}
#publishView.page-enter .form-card,#lotteryView.page-enter .form-card{--enter-delay:65ms}
#publishView.page-enter .side-panel{--enter-delay:130ms}
#lotteryView.page-enter .lottery-summary{--enter-delay:130ms}
#lotteryView.page-enter .hint-box{--enter-delay:175ms}
#historyView.page-enter .action-row,#lotteryView.page-enter .action-row{--enter-delay:95ms}
#historyView.page-enter .action-row:nth-child(2),#lotteryView.page-enter .action-row:nth-child(2){--enter-delay:125ms}
#historyView.page-enter .action-row:nth-child(3),#lotteryView.page-enter .action-row:nth-child(3){--enter-delay:155ms}
#historyView.page-enter .action-row:nth-child(4),#lotteryView.page-enter .action-row:nth-child(4){--enter-delay:185ms}
#historyView.page-enter .action-row:nth-child(5),#lotteryView.page-enter .action-row:nth-child(5){--enter-delay:215ms}
#historyView.page-enter .action-row:nth-child(6),#lotteryView.page-enter .action-row:nth-child(6){--enter-delay:245ms}
#historyView.page-enter .action-row:nth-child(7),#lotteryView.page-enter .action-row:nth-child(7){--enter-delay:275ms}
#historyView.page-enter .action-row:nth-child(8),#lotteryView.page-enter .action-row:nth-child(8){--enter-delay:305ms}
#historyView.page-enter .action-row:nth-child(9),#lotteryView.page-enter .action-row:nth-child(9){--enter-delay:335ms}
#historyView.page-enter .action-row:nth-child(n+10),#lotteryView.page-enter .action-row:nth-child(n+10){--enter-delay:365ms}
#historyView.page-enter .history-pagination{--enter-delay:390ms}
@keyframes page-content-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.view.page-enter :is(.section-top,.hero-card,.stat-card,.block-title,.tool-card,.form-card,.side-panel,.action-row,.history-pagination,.lottery-summary,.hint-box,.action-list.empty-list){animation:none}}

/* Keep the centered workspace fixed when views gain or lose a vertical scrollbar. */
html{scrollbar-gutter:stable}

.lottery-stats-panel{margin-top:0}
.lottery-stats-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.lottery-stats-header h2{font-size:20px;margin:0 0 7px;color:#253d30}
.lottery-stats-header .muted{font-size:12px;line-height:1.6;margin:0;max-width:540px}
#lotteryStatsSearch{width:260px;flex:none}
.lottery-stats-layout{display:grid;grid-template-columns:minmax(260px,300px) minmax(0,1fr);gap:16px;align-items:stretch}
.lottery-stats-users{max-height:445px;min-height:260px;overflow:auto;border:1px solid #e8eee8;border-radius:13px;background:#fff}
.lottery-stats-users.empty-list{display:grid;place-items:center;color:#94a098;font-size:13px;padding:20px;text-align:center}
.lottery-stats-user{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;width:100%;padding:13px 12px;border:0;border-bottom:1px solid #edf1ec;background:#fff;text-align:left;color:#2c3d32}
.lottery-stats-user:last-child{border-bottom:0}
.lottery-stats-user:hover,.lottery-stats-user:focus-visible{background:#f4f9f4;outline:none}
.lottery-stats-user.selected{background:#eaf5ec;box-shadow:inset 3px 0 #4d9a69}
.lottery-stats-identity,.lottery-stats-count{min-width:0}
.lottery-stats-identity strong,.lottery-stats-identity small,.lottery-stats-count strong,.lottery-stats-count small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lottery-stats-identity strong,.lottery-stats-count strong{font-size:12px}
.lottery-stats-identity small,.lottery-stats-count small{font-size:10px;color:#96a39a;margin-top:4px}
.lottery-stats-count{text-align:right}
.lottery-stats-rate{font-size:12px;font-weight:800;color:#28764b;white-space:nowrap}
.lottery-trend-panel{min-width:0;min-height:360px;padding:17px;border:1px solid #e8eee8;border-radius:13px;background:#fbfdfb}
.lottery-trend-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.lottery-trend-head .eyebrow{margin-bottom:6px}
.lottery-trend-head h3{font-size:17px;margin:0;color:#293d32;overflow-wrap:anywhere}
.lottery-trend-head>strong{font-size:22px;color:#2d8556;white-space:nowrap}
.lottery-trend-summary{display:flex;gap:16px;flex-wrap:wrap;margin-top:13px;color:#7d8e81;font-size:11px}
.lottery-trend-summary strong{color:#2d6d4a}
.lottery-trend-chart{min-height:240px;margin-top:10px;overflow-x:auto;color:#98a69b;font-size:12px;text-align:center}
.lottery-trend-chart svg{display:block;width:100%;min-width:420px;height:auto}
.lottery-chart-grid{stroke:#e7eee8;stroke-width:1}
.lottery-chart-label{fill:#98a69b;font-size:11px;font-family:inherit}
.lottery-chart-line{fill:none;stroke:#398a5c;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.lottery-chart-dot{stroke:#fff;stroke-width:2}
.lottery-chart-dot.win{fill:#3aab6a}
.lottery-chart-dot.lose{fill:#9aa9a0}
.lottery-trend-note{font-size:10px;line-height:1.5;color:#9aa79d;margin:4px 0 0}
.lottery-trend-mobile-hint{display:none}
@media(max-width:1050px){.lottery-stats-layout{grid-template-columns:1fr}.lottery-stats-users{max-height:340px}}
@media(max-width:640px){.lottery-trend-mobile-hint{display:block;margin-top:3px}.lottery-stats-header{display:block}#lotteryStatsSearch{width:100%;margin-top:15px}.lottery-stats-user{gap:7px;padding:11px 9px}.lottery-trend-panel{padding:13px}}

/* Five navigation items and animated win-rate trend. */
@media(max-width:640px){.bottom-nav{gap:2px;padding-left:7px;padding-right:7px}.bottom-nav button{min-width:0;flex:1}}
.lottery-chart-area{fill:url(#lotteryTrendFill);opacity:0;animation:lottery-area-in .75s ease .55s forwards}
.lottery-chart-line{stroke-width:3.5;filter:drop-shadow(0 2px 3px #398a5c30)}
.lottery-chart-line.is-drawing{stroke-dasharray:var(--draw-length);stroke-dashoffset:var(--draw-length);animation:lottery-line-draw 1.15s cubic-bezier(.22,.8,.28,1) forwards}
.lottery-chart-dot{opacity:0;transform-box:fill-box;transform-origin:center;animation:lottery-dot-in .38s cubic-bezier(.18,1.55,.4,1) both}
@keyframes lottery-line-draw{to{stroke-dashoffset:0}}
@keyframes lottery-area-in{to{opacity:1}}
@keyframes lottery-dot-in{from{opacity:0;transform:scale(.25)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.lottery-chart-area,.lottery-chart-line.is-drawing,.lottery-chart-dot{animation:none;opacity:1;transform:none}.lottery-chart-line.is-drawing{stroke-dasharray:none;stroke-dashoffset:0}}

/* Gentle, repeating rings around the login mark. */
.login-art .art-orbit{left:50%;top:50%;width:500px;height:500px;border-color:#ffffff8c;opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.22);animation:login-orbit-expand 10.8s linear infinite;will-change:transform,opacity}
.login-art .orbit-one{animation-delay:-7.2s}
.login-art .orbit-two{animation-delay:-3.6s}
.login-art .orbit-three{animation-delay:0s}
@keyframes login-orbit-expand{
  0%{transform:translate(-50%,-50%) scale(.22);opacity:0}
  12%{opacity:.5}
  55%{opacity:.27}
  100%{transform:translate(-50%,-50%) scale(1.85);opacity:0}
}
@media(max-width:640px){.login-art .art-orbit{width:320px;height:320px}}
@media(prefers-reduced-motion:reduce){.login-art .art-orbit{animation:none;will-change:auto;opacity:.2;transform:translate(-50%,-50%) scale(1)}.login-art .orbit-two{transform:translate(-50%,-50%) scale(1.5)}.login-art .orbit-three{display:none}}

/* Login title and description print one character at a time. */
.login-panel h1{height:1.45em;white-space:nowrap}
.login-panel p.muted{min-height:1.6em}
.login-panel .typewriter-text.is-typing::after{content:"";display:inline-block;width:2px;height:.86em;margin-left:3px;vertical-align:-.08em;background:currentColor;animation:login-caret-blink .72s steps(1,end) infinite}
@keyframes login-caret-blink{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.login-panel .typewriter-text.is-typing::after{animation:none}}

/* Supplied PickT artwork is the login brand image and header mark. */
.login-art{background:linear-gradient(180deg,#1234271a,#12342724),url("/pickt-logo-scene.png") center center/cover no-repeat}
.brand-mark.small.photo-logo{width:44px;height:44px;flex:none;border-radius:12px;background:#7aa948 url("/pickt-logo-square.jpg") center center/cover no-repeat;box-shadow:none}

/* Stable user directory dialog with a visible loading state. */
.users-card{height:min(82vh,660px)}
.user-directory.is-loading{display:flex;align-items:center;justify-content:center;border:1px solid #eef1ec}
.user-directory.is-ready{animation:action-detail-content-in .2s ease-out both}
@media(prefers-reduced-motion:reduce){.user-directory.is-ready{animation:none}}

/* Compact language switch in the workspace header. */
.language-toggle{position:relative;display:inline-flex;align-items:center;justify-content:space-around;width:67px;height:35px;padding:3px;border:1px solid #dfe8df;border-radius:999px;background:#f4f7f3;color:#7d8d82;font-size:11px;font-weight:800;line-height:1;isolation:isolate;flex:none}
.language-toggle::before{content:"";position:absolute;z-index:-1;top:3px;left:3px;width:28px;height:27px;border-radius:999px;background:#285f47;box-shadow:0 2px 5px #244e3429;transition:transform .24s ease}
.language-toggle[data-language="en"]::before{transform:translateX(32px)}
.language-toggle span{flex:1;text-align:center;transition:color .2s ease}
.language-toggle[data-language="zh"] span:first-child,.language-toggle[data-language="en"] span:last-child{color:#fff}
.language-toggle:focus-visible{outline:3px solid #80ae9155;outline-offset:2px}
@media(max-width:640px){.topbar{padding-left:14px;padding-right:14px}.brand small{display:none}.header-actions{gap:6px}}
@media(max-width:360px){.brand{gap:7px}.header-actions{gap:4px}.language-toggle{width:61px}.language-toggle[data-language="en"]::before{transform:translateX(26px)}.header-actions .compact-button{max-width:64px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.language-toggle::before,.language-toggle span{transition:none}}

.login-page{position:relative}
.login-language-toggle{position:absolute;top:24px;right:24px;z-index:4;background:#ffffffdf}
@media(max-width:640px){.login-language-toggle{top:18px;right:18px}.login-panel p.muted{height:3.2em;min-height:3.2em;overflow:hidden}}
@media(max-width:640px){html[lang="en"] #homeView>.section-top{display:block}html[lang="en"] #homeView>.section-top h1{font-size:26px;white-space:nowrap}html[lang="en"] #homeView .today-badge{display:inline-block;margin-top:14px}}
@media(max-width:360px){.topbar .brand>div:last-child{display:none}}
