:root{color-scheme:dark;--bg:#111111;--surface:#1c1c1c;--line:#383838;--ink:#f3f5f8;--muted:#aeb9c8;--gold:#c4ff35;--accent:#c4ff35;--danger:#ff9b9b;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border-radius:11px;min-height:44px;font-weight:700}button:disabled{opacity:.5;cursor:wait}a{color:var(--accent)}header{position:sticky;top:0;z-index:5;background:#111111f5;border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top)}.head{max-width:900px;margin:auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.brand small{display:block;font-size:9px;letter-spacing:.16em;color:var(--gold);line-height:1.3}.brand strong{font-size:17px}.logo{background:var(--gold);color:#161a20;border-radius:10px;width:40px;height:40px;display:grid;place-items:center;font-size:24px;font-weight:900}.outline,.close{border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:8px 12px}.primary{background:var(--gold);color:#171a20;border:0;padding:10px 16px}.textBtn{background:none;border:none;color:var(--muted);text-decoration:underline}main{max-width:900px;margin:auto;padding:20px 16px 36px}.intro{padding:24px 20px;background:linear-gradient(125deg,#222222,#202020 70%);border:1px solid #383838;border-radius:18px;margin-bottom:25px}.eyebrow{letter-spacing:.18em;color:var(--gold);font-size:10px;font-weight:800;margin:0 0 12px}h1{font-size:clamp(25px,5vw,36px);line-height:1.35;margin:0 0 8px;letter-spacing:.02em}h2{font-size:18px;margin:0}h3{font-size:16px;margin:12px 0 4px}.muted{color:var(--muted);font-size:13px;margin:0}.sectionHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}.machines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.machine{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:12px 10px;background:var(--surface);border:1px solid var(--line);color:var(--ink);text-align:left;min-height:90px;line-height:1.4;font-size:13px;overflow-wrap:anywhere}.machine .num{font-size:10px;color:var(--muted);letter-spacing:.13em}.machine.active{border:1px solid var(--gold);background:#29331b;color:var(--accent)}.filters{margin:24px 0}.search{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;gap:8px;padding:0 12px}.search span{font-size:25px;color:var(--muted)}input,select,textarea{color:var(--ink);background:#141a22;border:1px solid var(--line);border-radius:9px;padding:11px 12px;width:100%;min-width:0;font-size:16px}.search input{background:transparent;border:0;padding:12px 0;outline:none}.search:focus-within{border-color:var(--gold)}.filterRow{display:flex;gap:8px;margin-top:10px}.filterRow select{flex:1}.filterRow button{white-space:nowrap;font-size:13px}.filterRow button[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}.hint{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}.hintImage{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#0d1117;cursor:pointer}.placeholder{aspect-ratio:16/7;background:repeating-linear-gradient(135deg,#1a202a,#1a202a 10px,#202020 10px,#202020 20px);display:grid;place-items:center;color:var(--muted);font-size:13px}.cardBody{padding:14px}.tag{color:var(--gold);font-size:12px;font-weight:bold}.cardTitle{font-weight:800;font-size:18px;margin:4px 0}.description{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 12px}.cardDesc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions>*{flex:1}.fav{font-size:20px;min-width:44px;flex:0!important}.fav[aria-pressed=true]{color:var(--gold)}.empty{padding:30px 16px;border:1px dashed var(--line);border-radius:14px;text-align:center;color:var(--muted);margin:8px 0}.error{color:var(--danger)}.adminPanel{margin-top:28px;padding:16px;border:1px solid var(--gold);border-radius:14px;background:var(--surface)}.adminPanel p{margin-bottom:12px}footer{max-width:900px;margin:0 auto;padding:20px 16px calc(24px + env(safe-area-inset-bottom));border-top:1px solid var(--line);font-size:12px;color:var(--muted)}footer p{margin:0 0 7px}dialog{width:min(94%,520px);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:17px;padding:20px;background:var(--surface);color:var(--ink)}dialog::backdrop{background:#000b}dialog form{display:grid;gap:13px}dialog label{display:grid;gap:5px;font-size:13px;font-weight:700}dialog .check{display:flex;align-items:center;gap:9px}dialog .check input{width:20px;min-height:20px}dialog .close{min-width:44px;padding:0;font-size:24px}dialog .preview{max-width:100%;max-height:220px;object-fit:contain;background:#10141b}dialog .message{margin:0;color:var(--danger);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}dialog .detailImage{width:100%;max-height:60vh;object-fit:contain;background:#0d1117;border-radius:8px}.detailMeta{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.danger{color:var(--danger)}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}@media(max-width:370px){.machine{padding:10px 6px;font-size:12px}.brand strong{font-size:15px}}

.endingGroup{grid-column:1/-1}.endingGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.endingCell{min-width:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}.endingView{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.endingView .placeholder{aspect-ratio:16/9;min-height:0;font-size:11px}.endingName{display:block;padding:6px;font-size:12px;overflow-wrap:anywhere}.endingActions{display:flex;flex-wrap:wrap;gap:4px;padding:4px}.endingActions button{font-size:11px;padding:5px;min-width:0}
.bulkRow{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;padding:12px 0;border-bottom:1px solid #39404a}.bulkRow img{width:84px;height:72px;object-fit:contain;background:#161a21}.bulkRow select{width:100%;min-width:0}.bulkRow p{overflow-wrap:anywhere;margin:4px 0}.bulkList{max-height:48vh;overflow:auto}.bulkRow small{display:block;overflow-wrap:anywhere}

.regGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px;align-items:start}.regCell{display:flex;flex-direction:column;gap:4px;min-width:0;text-align:center}.regOrder,.regName{font-size:11px;overflow-wrap:anywhere}.regImage,.regMissing{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:4px;background:#20242c}.regMissing{display:grid;place-items:center;font-size:9px;color:#ddd}.regImage{display:block}

.machines{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.machineCard{position:relative;min-width:0}.machineCard .machine{width:100%;height:100%;padding:8px;gap:5px;border-radius:12px;align-items:stretch}.machineLogo{aspect-ratio:16/9;background:#101010;border-radius:7px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:8px}.machineLogo img{width:100%;height:100%;object-fit:contain}.machineName{font-weight:700;font-size:14px}.machineStar{position:absolute;top:5px;right:5px;min-width:36px;min-height:36px;padding:4px;border:1px solid #777;background:#20242c;color:#fff;font-size:22px;border-radius:50%}.machineStar[aria-pressed=true]{color:#c4ff35}.machineTabs{display:flex;gap:8px;margin:10px 0}.machineTabs button[aria-pressed=true]{border-color:var(--gold);color:var(--accent)}#listTitle{scroll-margin-top:80px}

#backMachines{margin-bottom:16px} #homeStatus:not(:empty){padding:12px 0}

.categoryLogo{max-width:300px;margin:16px auto 8px;}.categoryLogo img{width:100%;max-height:125px;object-fit:contain}.categoryMenu{display:grid;gap:10px;margin:14px 0 24px}.categoryChoice{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:58px;padding:14px 16px;background:#20242c;color:#fff;border:1px solid #424955;border-radius:10px;font-size:16px;font-weight:700}.categoryArrow{font-size:24px;color:#c4ff35}#categoryMachine{text-align:center} [hidden]{display:none!important}
.menuIcon{margin-left:auto;min-width:42px;font-size:22px;padding:5px 10px}.menuItems{display:grid;gap:9px}.menuItems button{text-align:left}#menuDialog{margin:0 0 0 auto;height:100%;max-height:100%;width:min(85vw,360px);border-radius:0;padding:20px}#accountInfo{display:grid;gap:10px}#accountInfo[hidden]{display:none}

.profileAvatar{width:88px;height:88px;border-radius:50%;overflow:hidden;background:#303746;display:grid;place-items:center;margin:12px auto;font-size:38px}.profileAvatar img{width:100%;height:100%;object-fit:cover}#profileForm{display:grid;gap:10px}#deleteAccount{color:#ff9090}
#pullStatus{position:fixed;top:env(safe-area-inset-top,0px);left:50%;transform:translateX(-50%);z-index:100;background:#202632;color:#c4ff35;padding:10px 18px;border-radius:24px;pointer-events:none}#serviceBody{display:grid;gap:12px}#serviceBody article{border:1px solid #555;border-radius:10px;padding:12px;overflow-wrap:anywhere}#serviceBody form{display:grid;gap:8px}#serviceBody p{white-space:pre-wrap;overflow-wrap:anywhere}html{overscroll-behavior-y:contain}

.chatCard{padding:12px;border-bottom:1px solid #444;overflow-wrap:anywhere}.chatHead,.chatActions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.chatAvatar{width:32px;height:32px;border-radius:50%}.chatPhoto{max-width:100%;max-height:320px;object-fit:contain}.chatCard p{white-space:pre-wrap}#chatList{max-height:48vh;overflow:auto}#chatDialog textarea{width:100%}
#snsNav{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;background:#181c25;border-top:1px solid #424654;padding:6px 4px calc(6px + env(safe-area-inset-bottom));justify-content:space-around}#snsNav button{background:none;border:0;color:#b9bdca;min-width:0;flex:1;font-size:23px;padding:4px}#snsNav small{display:block;font-size:10px}#snsNav button.active{color:#c4ff35}body:has(#snsNav){padding-bottom:85px}#snsView .chatCard{border-radius:0;border-width:0 0 1px;padding:16px 4px;background:transparent}#snsView .chatHead{display:flex;align-items:center;gap:8px}#snsView .chatAvatar{width:42px;height:42px;border-radius:50%;object-fit:cover}#snsView .chatPhoto{max-width:100%;max-height:420px;border-radius:12px}#snsView .chatActions{display:flex;gap:8px;flex-wrap:wrap}#snsCompose{position:sticky;bottom:85px;display:block;margin:12px 0 12px auto;background:#c4ff35;color:white}#snsRooms button{display:block;width:100%;margin:8px 0;text-align:left}#snsView[hidden],#snsRooms[hidden],#snsTabs[hidden]{display:none!important}

#snsNav{z-index:100;position:fixed;bottom:0;display:flex!important} #snsNav button{display:block!important} body{padding-bottom:95px}

.logo{background:#111;color:#fff;border:1px solid #383838;display:flex;align-items:center;justify-content:center;font-style:italic}.logo span{color:#c4ff35}.brand strong{font-size:22px;font-weight:900;letter-spacing:-.06em}#snsCompose{color:#111}#snsNav button.active{color:#c4ff35}
.dmPage{padding:12px 0 24px}.dmSearch{display:flex;gap:8px;align-items:center;margin:12px 0}.dmSearch input{flex:1;min-width:0}.dmPerson{display:flex;align-items:center;text-align:left;gap:12px;width:100%;border:0;border-bottom:1px solid #333;border-radius:0;background:transparent;padding:14px 4px;color:inherit}.dmAvatar{width:48px;height:48px;flex:none;border-radius:50%;background:#333;display:grid;place-items:center;overflow:hidden}.dmAvatar img{width:100%;height:100%;object-fit:cover}.dmInfo{flex:1;min-width:0;display:grid;gap:5px}.dmInfo small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dmThread{display:flex;flex-direction:column;gap:10px;max-height:55vh;overflow:auto;padding:10px 0}.dmBubble{align-self:flex-start;background:#252525;border-radius:14px;padding:10px;max-width:85%;overflow-wrap:anywhere}.dmBubble.mine{align-self:flex-end;background:#33451b}.dmBubble p{white-space:pre-wrap;margin:6px 0}.dmBubble img{max-width:100%}.dmPage .dmBadge{position:static;background:#c4ff35;color:#111;border-radius:20px;padding:3px 8px}.dmPage h2{margin:8px 0}.dmPage textarea{width:100%}

#snsRefresh{display:none!important}#pullStatus{background:transparent;padding:0;top:calc(env(safe-area-inset-top,0px) + 8px);width:42px;height:42px}#pullStatus img{width:42px;height:42px;border-radius:12px;transform:rotate(var(--turn,0deg))}#pullStatus.spinning img{animation:hikiSpin .75s linear infinite}@keyframes hikiSpin{to{transform:rotate(360deg)}}.profileClean{padding:12px 0;border:0;background:none}.profileTop{display:flex;align-items:center;gap:8px}.profileTop .chatAvatar,.profileTop .dmAvatar{flex-shrink:0;width:68px;height:68px}.profileStat{flex:1;min-width:0;background:none!important;border:0!important;padding:4px 0!important;display:flex;flex-direction:column;align-items:center;gap:4px}.profileStat strong{font-size:20px}.profileStat small{font-size:11px;white-space:nowrap}.navAvatar{width:26px;height:26px;border-radius:50%;object-fit:cover}.hikiNotes{display:flex;overflow-x:auto;gap:12px;padding:12px 0;touch-action:pan-x}.noteTile{flex:0 0 92px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;padding:0;min-width:0}.noteBubble{background:#292929;border-radius:14px;padding:7px;font-size:11px;min-height:44px;width:100%;overflow-wrap:anywhere}.noteTile small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.noteTile .dmAvatar{width:56px;height:56px}body:has(#snsView:not([hidden])) footer,body:has(.dmPage:not([hidden])) footer{display:none}header .brand small{display:none}
/* 14.4.3 timeline */
body[data-hiki-tab=feed] #snsView>.sectionHead{display:none}body[data-hiki-tab=feed] #snsTabs{display:flex;gap:0;border-bottom:1px solid #303030;margin:0 0 8px;touch-action:pan-y}#snsTabs button{flex:1;background:none!important;border:0!important;border-radius:0!important;color:#999;padding:14px 4px;position:relative}#snsTabs button.selected{color:#fff}#snsTabs button.selected:after{content:'';position:absolute;bottom:0;left:22%;right:22%;height:3px;background:#c4ff35;border-radius:4px}#snsView{touch-action:pan-y}#snsView .chatCard{border:0;border-bottom:1px solid #303030;border-radius:0;background:transparent;margin:0;padding:14px 0}#snsView .chatHead button,#snsView .chatActions button{background:transparent;border:0;padding:6px 2px;color:inherit;min-height:32px}#snsView .chatActions button{color:#aaa;font-size:13px}#snsView .chatHead small{color:#999;font-size:11px}#snsView .chatHead{flex-wrap:wrap}#snsView .chatCard p{white-space:pre-wrap;overflow-wrap:anywhere}#snsView .chatPhoto{display:block;max-width:100%;object-fit:contain}.feedAvatar{width:42px;height:42px;border-radius:50%;background:#333;display:grid;place-items:center;color:#aaa;flex:none}#snsCompose{position:fixed;right:18px;bottom:calc(88px + env(safe-area-inset-bottom,0px));width:56px;height:56px;min-width:0;padding:0;margin:0;border-radius:50%;font-size:32px;line-height:1;z-index:90;box-shadow:0 3px 12px #0005}#snsCompose[hidden]{display:none!important}.hikiComposer{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;background:#111;padding:calc(14px + env(safe-area-inset-top,0px)) 16px calc(16px + env(safe-area-inset-bottom,0px));box-sizing:border-box}.hikiComposer form{display:flex;flex-direction:column;min-height:100%;gap:16px}.composerHead{display:flex;justify-content:space-between;align-items:center}.composerClose{border:0;background:none;font-size:30px;padding:0 10px;color:white}.composerSend{border-radius:99px;color:#111;background:#c4ff35;padding:10px 18px}.composerMain{display:flex;gap:12px;flex:1}.composerAvatar{width:42px;height:42px;border-radius:50%;background:#333;display:grid;place-items:center;overflow:hidden;flex:none}.composerAvatar img{width:100%;height:100%;object-fit:cover}.composerFields{flex:1;min-width:0}.composerAudience{color:#c4ff35;font-size:13px;margin:6px 0 12px}.composerFields textarea{background:transparent;border:0;padding:0;min-height:150px;width:100%;font-size:18px;resize:vertical;outline:none}.composerPreview{width:100%;max-height:40vh;object-fit:contain;border-radius:12px}.composerPreview[hidden],.composerRemove[hidden]{display:none}.composerTools{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #333;padding-top:12px;color:#c4ff35}.composerPhoto{position:relative;display:block!important;width:44px;height:44px;padding:8px}.composerPhoto svg{width:26px;height:26px}.composerPhoto input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.composerCount{font-size:13px;color:#999}.composerStatus{color:#ffb0a0;margin:0}.composerRemove{font-size:12px}.hikiComposer button:disabled{opacity:.5}
#menuDialog{background:#111;color:#f5f5f5;padding:20px 18px max(20px,env(safe-area-inset-bottom));border:0;overflow:auto}#menuDialog[open]{display:flex;flex-direction:column;gap:14px}#menuDialog [hidden]{display:none!important}#menuDialog .menuItems{display:flex;flex-direction:column;gap:4px}#menuDialog .menuLine,#menuDialog .menuProfile,#menuDialog #menuSettings,#menuDialog #menuClose{background:transparent;border:0;box-shadow:none;color:inherit;outline-offset:2px}#menuDialog button:focus:not(:focus-visible){outline:none}#menuDialog .menuLine,#menuDialog .menuProfile{display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:10px 4px;text-align:left;font-size:15px}#menuDialog svg{width:23px;height:23px;flex:none}#menuDialog .menuChevron{margin-left:auto;color:#888;font-size:23px}#menuDialog .menuProfile{border-bottom:1px solid #333;padding-bottom:16px}#menuDialog .menuProfile img{width:44px;height:44px;border-radius:50%;object-fit:cover}#menuDialog .menuFoot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #333;padding-top:12px;color:#888}#menuSettings{min-width:44px;min-height:44px}#userMenu.hasNotice{position:relative}#userMenu.hasNotice:after{content:'';position:absolute;right:5px;top:5px;width:8px;height:8px;border-radius:50%;background:#c4ff35}.settings444 button.outline{display:block;width:100%;text-align:left;margin:8px 0;border:0;background:transparent}.settings444 .sectionHead button{width:auto}
.profileStat,.profileStat strong,.profileStat small{color:#f5f5f5!important}.postMore{float:right;border:0!important;background:transparent!important;font-size:24px!important;padding:0 10px!important;color:inherit!important}.postMenu button{display:block;width:100%;margin:8px 0}.postMenu button:first-child{color:#ff7777}.circleBar{display:flex;gap:8px;margin-bottom:12px}.circlePlain{background:none!important;border:0!important;color:inherit!important}.circleBar button{flex:1;border-radius:0!important}.circleBar button.selected{border-bottom:3px solid #c4ff35!important}.circleRow{display:flex!important;align-items:center;text-align:left;gap:12px;width:100%;border:0!important;border-bottom:1px solid #333!important;background:none!important;color:inherit!important;padding:14px 0!important;border-radius:0!important}.circleIcon{display:grid;place-items:center;width:48px;height:48px;background:#292929;border-radius:12px;flex-shrink:0}.circleText{display:flex;flex-direction:column;flex:1;min-width:0;gap:5px}.circleText small{overflow-wrap:anywhere}.circleBack{margin:8px 0}.circleList h3{margin-top:18px}
.circleFab{position:fixed;right:16px;bottom:calc(86px + env(safe-area-inset-bottom));width:56px;height:56px;border-radius:50%;background:#c4ff35;color:#111;border:0;font-size:32px;z-index:10}.circleSettings,.circleComposer{width:min(92vw,480px)}.circleComposer textarea{min-height:140px}.circleSettings button,.circleComposer button{margin-top:8px}.circleSettings button{display:block;width:100%}.circlePlain[aria-label="サークル設定"]{float:right;font-size:24px}
#chatDialog.modernChat,dialog.modernReplies{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;background:#111;padding: max(14px,env(safe-area-inset-top)) 16px max(14px,env(safe-area-inset-bottom));box-sizing:border-box;overflow:hidden}#chatDialog.modernChat[open],dialog.modernReplies[open]{display:flex;flex-direction:column;gap:10px}.modernChat #chatList,.modernReplies .replyThread{flex:1;min-height:0;overflow-y:auto}.modernChat .chatCard,.modernReplies .chatCard{padding:12px 0;border-bottom:1px solid #292929}.chatHead{display:flex;align-items:center;gap:8px}.replyMore{margin-left:auto;position:relative;width:max-content}.replyMore summary{list-style:none;cursor:pointer;font-size:24px;padding:4px 10px;line-height:1.2}.replyMore summary::-webkit-details-marker{display:none}.replyMenu{position:absolute;right:0;top:100%;z-index:8;background:#252525;border:1px solid #444;border-radius:12px;min-width:130px;padding:5px}.replyMenu button{display:block;width:100%;text-align:left;border:0!important;background:transparent!important;padding:10px!important}.modernChat .chatActions button{border:0;background:transparent;color:#aaa;padding:4px 0;min-height:32px;font-size:13px}.modernChat #chatForm{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;margin:0}.modernChat #chatForm[hidden]{display:none}.modernChat #chatReply{grid-column:1/-1;margin:0;font-size:13px}.modernChat #chatReply:empty{display:none}.modernChat #chatText,.replyComposer textarea{min-height:44px;height:44px;border-radius:24px;padding:10px 14px;resize:none}.modernChat #chatForm label{font-size:0;margin:0;width:40px;height:44px;position:relative;display:grid;place-items:center}.modernChat #chatForm label:before{content:'▧';font-size:24px;color:#aaa}.modernChat #chatFile{position:absolute;inset:0;opacity:0;width:100%;padding:0}.modernChat #chatForm button[type=submit],.replyComposer button{border-radius:50%;width:44px;height:44px;padding:0}.replyHeader,.replyComposer{display:flex;align-items:center;gap:10px}.replyComposer textarea{flex:1;min-width:0}.replyHeader h2{margin:0}.modernChat #chatStatus{margin:0;font-size:12px}

.hikiReplyIcon{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px!important;border:0!important;background:transparent!important;color:#aaa!important;vertical-align:middle}.modernChat #chatReply:not(:empty){display:flex;align-items:center;gap:8px;color:#aaa}.modernChat #chatReply span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modernChat #chatReply .replyCancel{border:0;background:transparent;color:#aaa;padding:4px;min-width:44px;min-height:44px;font-size:20px;box-shadow:none}.modernChat #chatText:focus{outline:2px solid #c4ff35;outline-offset:1px}

/* Circle detail layout: override generic room button rules. */
.circleDetailToolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px}.circleDetailToolbar button.circleDetailBack,.circleDetailToolbar button.circleDetailSettings{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;margin:0!important;float:none!important;padding:8px!important;min-height:44px}.circleDetailToolbar button.circleDetailSettings{width:44px!important;flex:0 0 44px}.circleDetailMeta{padding:0 0 14px;border-bottom:1px solid #333;margin-bottom:14px}.circleDetailMeta h2{margin:0 0 6px}.circleDetailMeta p{margin:4px 0}.circleFab, #snsRooms button.circleFab{position:fixed!important;left:auto!important;right:18px!important;bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;display:grid!important;place-items:center!important;width:56px!important;min-width:56px!important;max-width:56px!important;height:56px!important;min-height:56px!important;max-height:56px!important;aspect-ratio:1;border-radius:50%!important;margin:0!important;padding:0!important;background:#c4ff35!important;color:#111!important;border:0!important;z-index:90;box-shadow:0 3px 12px #0005;box-sizing:border-box}.circleFab svg{display:block;pointer-events:none}

.hikiComposer .composerPhoto[hidden]{display:none!important}.hikiComposer textarea:focus,.modernReplies textarea:focus{outline:none!important;box-shadow:none!important;border-color:transparent}.hikiComposer .composerHead button{width:auto;flex:none}.hikiComposer .composerFields textarea{resize:none}.hikiComposer .composerTools{min-height:44px}.hikiComposer .composerHead{flex-shrink:0}.hikiComposer .composerMain{min-height:0}.modernReplies .replyComposer textarea{min-height:44px;max-height:100px}.hikiComposer .composerStatus{overflow-wrap:anywhere}

.adminDashboard{margin-top:0}.adminDashboard h3{margin:22px 0 10px;font-size:15px;color:var(--muted)}.adminGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.adminGrid button{width:100%;min-width:0;min-height:64px;white-space:normal;overflow-wrap:anywhere;line-height:1.45;padding:12px 8px;font-size:14px}.adminGrid #adminChatSlot{display:contents}.adminDashboard .sectionHead{flex-wrap:wrap}.adminDashboard .sectionHead h2{font-size:19px}.adminDashboard .sectionHead button{font-size:13px}.adminDashboard + #homeView{margin-top:24px}

#snsNav button[hidden]{display:none!important} #snsNav[data-auth="pending"]{visibility:hidden}

#guestSnsBanner[hidden],#guestSnsView[hidden]{display:none!important}.guestSnsBanner{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;background:#202619;border:1px solid #53682a;color:#c5ff38;border-radius:12px;padding:12px 14px;margin:0 0 14px}.guestSnsBanner small{display:block;color:#ddd;margin-top:4px;font-size:12px}.guestSnsBanner>span:last-child{font-size:24px}#guestSnsView{max-width:560px;margin:auto;text-align:center;padding:12px 0 24px}#guestSnsView>button{display:block;width:100%;margin-top:10px}.guestSnsHero{padding:20px 8px}.guestSnsHero h2{font-size:24px;margin:12px 0}.guestSnsHero p{color:#aaa}.guestSnsHero .eyebrow{color:#c5ff38}.guestSnsFeatures{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px;text-align:left}.guestSnsFeatures article{background:#1c1c1c;border:1px solid #333;border-radius:12px;padding:14px}.guestSnsFeatures strong{color:#c5ff38}.guestSnsFeatures p{font-size:13px;color:#ddd;margin:8px 0 0}

.favoriteIntro{text-align:center;max-width:380px;width:calc(100% - 32px);box-sizing:border-box}.favoriteIntro .sectionHead{justify-content:space-between}.favoriteIntroIcon{font-size:52px;color:#c5ff38;line-height:1.2}.favoriteIntro h2{margin:10px 0}.favoriteIntro p{line-height:1.6}.favoriteIntroAccent{color:#c5ff38}.favoriteIntro>button{display:block;width:100%;margin-top:10px}

.hikiTutorial{width:calc(100% - 32px);max-width:380px;box-sizing:border-box;text-align:center;padding:20px}.hikiTutorial .sectionHead{justify-content:space-between}.hikiTutorial #tutorialIcon{font-size:64px;color:#c5ff38;line-height:1.3;margin:12px 0}.hikiTutorial h2{font-size:23px;margin:12px 0}.hikiTutorial p{color:#ccc;line-height:1.65;min-height:76px}.hikiTutorial>button{display:block;width:100%;margin-top:10px}.hikiTutorial [hidden],#menuTutorial[hidden]{display:none!important}#tutorialDots{display:flex;justify-content:center;gap:8px;margin:16px 0}#tutorialDots span{width:7px;height:7px;border-radius:50%;background:#555}#tutorialDots span.active{background:#c5ff38}
.dmActive{height:calc(100dvh - 170px);min-height:260px;display:flex;flex-direction:column;padding:0!important}.dmActive[hidden]{display:none}.dmActive>div{flex:1;min-height:0;display:flex;flex-direction:column}.dmActive .dmThread{flex:1;max-height:none;min-height:0}.dmTop,.dmComposer{display:flex;align-items:center;gap:8px;padding:8px 0}.dmComposer{border-top:1px solid #333}.dmComposer textarea{flex:1;min-width:0;height:44px;min-height:44px;resize:none;border-radius:22px;padding:10px 14px;font-size:16px}.dmComposer button{flex:none;border-radius:50%;min-width:42px;height:42px}.dmComposer button:last-child{background:#c4ff35;color:#111}.chatHead .postMore{margin-left:auto;float:none}.chatHead{flex-wrap:wrap}.profileReport[hidden]{display:none!important}

.chatHead .feedProfileAvatar{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;border:0;background:transparent;cursor:pointer;min-width:0;min-height:0;border-radius:50%;touch-action:manipulation}.chatHead .feedProfileAvatar:focus-visible{outline:2px solid #c5ff38;outline-offset:3px}.chatHead .feedProfileAvatar img{display:block;pointer-events:none}

#pushFields .pushOption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #7775}#pushFields input[type=checkbox]{appearance:none;width:44px;height:26px;border-radius:20px;background:#777;position:relative;flex:none;margin:0;cursor:pointer}#pushFields input[type=checkbox]:checked{background:#16834a}#pushFields input[type=checkbox]::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white}#pushFields input[type=checkbox]:checked::after{left:21px}#pushFields input:disabled{opacity:.5}

#pushStatus.pushSuccess{color:#22c55e;}
/* HIKI image viewer */
.chatPhoto,.detailImage{cursor:zoom-in}.hikiMediaViewer{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;padding:0;background:#090909;color:#fff;overflow:hidden;box-sizing:border-box}.hikiMediaViewer[open]{display:flex;flex-direction:column}.hikiMediaViewer::backdrop{background:#090909}.mediaBar{display:flex;justify-content:flex-end;gap:8px;padding:calc(12px + env(safe-area-inset-top)) 12px 12px;flex-shrink:0}.mediaBar button{min-height:44px;min-width:44px;background:#262626;color:#fff;border:1px solid #555;border-radius:10px;padding:8px 12px}.mediaStage{flex:1;min-height:0;display:grid;place-items:center;overflow:hidden;touch-action:none;user-select:none;margin-bottom:env(safe-area-inset-bottom)}.mediaStage img{max-width:none;max-height:none;object-fit:contain;pointer-events:none;transform-origin:center;grid-area:1/1}.hikiTutorial #tutorialSkip{display:none}.hikiTutorial #tutorialIcon{background:#20271a;border:1px solid #43532a;border-radius:24px;padding:22px;margin:18px auto;width:120px}.hikiTutorial #tutorialText{min-height:90px}.hikiTutorial #tutorialNext,.hikiTutorial #tutorialBack,.hikiTutorial #tutorialGuide{min-height:48px}

/* Minimal full-screen photo viewer */
.hikiMediaViewer{background:#000}.hikiMediaViewer::backdrop{background:#000}.mediaBar{position:absolute;z-index:2;top:0;left:0;right:0;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;background:linear-gradient(#000b,transparent);pointer-events:none}.mediaBar button{pointer-events:auto;background:#1119;border:0;border-radius:50%;width:44px;height:44px;padding:0;font-size:28px;font-weight:400;line-height:1;margin:0}.mediaBar button[hidden]{display:none}.mediaCount{text-align:center;font-size:13px;color:#ddd;grid-column:2}.mediaStage{margin:0;width:100%;height:100%;flex:1}.mediaHint{position:absolute;bottom:calc(22px + env(safe-area-inset-bottom));left:0;right:0;text-align:center;color:#ddd;font-size:12px;pointer-events:none;text-shadow:0 1px 4px #000;background:transparent;transition:opacity .3s}.mediaHint.fade{opacity:0}@media(prefers-reduced-motion:reduce){.mediaHint{transition:none}}

/* DM conversation layout */
.dmTop{border-bottom:1px solid #333;min-height:52px}.dmTop .dmBack,.dmTop .dmPeerName{background:transparent;border:0;color:inherit}.dmTop .dmBack{font-size:32px;line-height:1;padding:4px 12px}.dmTop .dmPeerName{font-size:17px;font-weight:700;text-align:left;flex:1}.dmDate{align-self:center;color:#aaa;font-size:11px;background:#252525;border-radius:20px;padding:4px 12px;margin:8px 0}.dmMessageRow{display:flex;align-items:flex-end;gap:6px;max-width:100%;align-self:flex-start}.dmMessageRow.mine{align-self:flex-end;flex-direction:row-reverse}.dmMessageRow .dmBubble{max-width:min(65vw,420px);min-width:0;padding:9px 12px;border-radius:16px 16px 16px 4px}.dmMessageRow.mine .dmBubble{border-radius:16px 16px 4px 16px}.dmMessageRow .dmBubble p{margin:0}.dmMessageMeta{display:flex;flex-direction:column;align-items:flex-start;color:#aaa;font-size:10px;white-space:nowrap;position:relative}.dmMessageRow.mine .dmMessageMeta{align-items:flex-end}.dmMessageAvatar{width:32px;height:32px;flex:none;padding:0;border:0;border-radius:50%;background:#333;color:#aaa;overflow:hidden}.dmMessageAvatar img{width:100%;height:100%;object-fit:cover}.dmMessageMeta .replyMore{position:relative;top:auto;right:auto}.dmMessageMeta .replyMenu{left:0;right:auto}.dmThread{padding:12px 4px 20px}

.dmMessageAvatar{box-sizing:border-box!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;flex:0 0 36px!important;aspect-ratio:1;border-radius:50%!important;padding:0!important;display:grid;place-items:center;overflow:hidden}.dmMessageAvatar img,.dmAvatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.dmAvatarSilhouette{position:relative;display:block;width:22px;height:24px;overflow:hidden}.dmAvatarSilhouette:before,.dmAvatarSilhouette:after{content:"";position:absolute;background:#aaa;left:50%;transform:translateX(-50%)}.dmAvatarSilhouette:before{width:9px;height:9px;border-radius:50%;top:2px}.dmAvatarSilhouette:after{width:19px;height:12px;border-radius:10px 10px 3px 3px;bottom:0}

/* Circle UI v14.5.23 */
.circleBar{gap:6px;padding:4px;background:#1c1c1c;border-radius:14px}.circleBar button{border:0!important;border-radius:10px!important;min-height:44px}.circleBar button.selected{background:#303b20!important;color:#c5ff39!important;border:0!important}.circleBar button:last-child{flex:0 0 48px;color:#c5ff39}.circleList{display:grid;gap:8px;margin-top:12px}.circleList h3{font-size:13px;color:#aaa;margin:12px 4px 2px}.circleRow{background:#1b1b1b!important;border:1px solid #303030!important;border-radius:14px!important;padding:12px!important;min-height:76px}.circleIcon{color:#c5ff39;background:#29341d}.circleText strong{font-size:15px}.circleDetailToolbar{position:sticky;top:0;z-index:3;background:#121212;padding:6px 0}.circleDetailMeta{padding:14px;background:#1b1b1b;border:1px solid #303030;border-radius:14px;margin-bottom:12px}.circlePost{position:relative;padding:14px!important}.circleAuthor{display:flex;align-items:center;gap:10px;min-width:0;padding-right:28px}.circleAuthorAvatar{display:grid!important;place-items:center;width:40px!important;height:40px!important;min-width:40px!important;flex:0 0 40px;border-radius:50%!important;padding:0!important;margin:0!important;overflow:hidden;background:#303030!important;color:#aaa!important;border:0!important}.circleAuthorAvatar img{width:100%;height:100%;object-fit:cover}.circleAuthorText{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:3px}.circleAuthorText button{padding:0!important;margin:0!important;border:0!important;background:none!important;text-align:left;overflow-wrap:anywhere;font-weight:700}.circleAuthorText small{font-size:11px}.circleActions{display:flex;align-items:center;gap:16px;margin-top:8px}.circleActions button{display:inline-flex!important;align-items:center;gap:5px;width:auto!important;min-height:44px;border:0!important;background:none!important;padding:6px!important}.circleActions .circleLiked{color:#ff6985!important}

#accountDialog.accountFull{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0;padding: max(16px,env(safe-area-inset-top)) 18px max(20px,env(safe-area-inset-bottom));box-sizing:border-box;overflow:auto}#accountDialog .sectionHead{position:sticky;top:0;background:var(--bg,#121212);z-index:2;padding:8px 0}#accountSettings:not([hidden]){display:grid;gap:12px}#favoriteMachineSelected{display:flex;flex-wrap:wrap;gap:6px}#favoriteMachineOptions{display:grid;gap:6px;max-height:240px;overflow:auto}#favoriteMachineOptions button{text-align:left}#accountDialog [hidden]{display:none!important}

.socialFull{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;box-sizing:border-box;padding: max(12px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom));background:#121212;overflow:auto}.socialHeader{display:flex;align-items:center;justify-content:flex-start;gap:12px}.socialHeader h2{margin:0;font-size:18px}.socialFull .socialHeader{position:sticky;top:0;z-index:3;background:#121212;padding:8px 0;border-bottom:1px solid #333}.socialBack,.guideQuickBack{width:44px;min-width:44px;height:44px;padding:0!important;font-size:30px!important;border:0!important;background:transparent!important}.socialProfileCard{padding:20px 0 12px}.socialProfileAvatar{width:76px;height:76px;flex:none;border-radius:50%;background:#303030;display:grid;place-items:center;overflow:hidden}.socialProfileAvatar img{width:100%;height:100%;object-fit:cover}.socialProfileCard h2{margin:14px 0 6px}.socialPostsTitle{border-bottom:1px solid #333;padding:12px 0;color:var(--accent)}body:not([data-hiki-tab="guide"]) .guideQuickBack{display:none!important}.guideQuickBack[hidden]{display:none!important}

/* v14.5.27: borderless touch controls, preserve keyboard focus and input boundaries */
button{border:0!important;-webkit-appearance:none;appearance:none;color:var(--ink);touch-action:manipulation}
button.primary,button.hikiFollow{background:var(--accent)!important;color:#111!important}
button.outline{background:var(--surface)}
button.close,button.menuIcon,button.socialBack,button.guideQuickBack,button.dmBack,button.postMore,button.hikiSettingsIcon{background:transparent!important;color:var(--ink)!important;min-width:44px;min-height:44px}
button.hikiSettingsIcon{font-size:22px;vertical-align:middle}
button.machine.active,button[aria-pressed=true].outline{background:#29331b;color:var(--accent)}
button:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (hover:none) and (pointer:coarse){html:not(.hikiKeyboardNav) button:focus{outline:none!important;box-shadow:none!important}}

#accountSettings:not([hidden]){gap:22px}.settingGroup h3{font-size:13px;color:#aab0ba;margin:0 0 8px 8px;font-weight:600}.settingCard{background:#232323;border-radius:12px;padding:0 12px}.settingCard .settingRow{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:12px 0;background:transparent;border:0;border-radius:0;text-align:left;color:inherit;text-decoration:none;font-size:15px;font-weight:500;box-shadow:none}.settingRow+.settingRow{border-top:1px solid #363636}.settingRow svg,.hikiIconButton svg{width:22px;height:22px;flex:none}.settingChevron{margin-left:auto;color:#999;font-size:22px}.settingRow small{color:#aaa}.settingRow #accountEmail{margin:4px 0;overflow-wrap:anywhere}.settingCard #accountCounts{margin:0;padding:0 0 12px 34px;color:#aaa;font-size:12px}.settingVersion{text-align:center;color:#999;font-size:12px}.settingCard #deleteAccount{color:#ff7777}.hikiIconButton{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:inherit;background:transparent!important;border:0!important}.hikiIconButton svg{pointer-events:none}

.threadHeading{font-size:15px;margin:12px 0}.threadReply{margin-left:20px;border-left:2px solid #343434;padding-left:12px}.hikiReplyIcon{display:inline-flex;align-items:center;gap:5px}

/* Compact public guide; admin layout remains unchanged. */
body:not(.adminMode) #hintView .filters select[hidden]{display:none!important}
body.publicGuide #hintView .filters select[hidden]{display:none!important}
@media(max-width:600px){
body.publicGuide #hintView .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.publicGuide #hintView .hint{min-width:0;border-radius:9px}
body.publicGuide #hintView .cardBody{padding:8px}
body.publicGuide #hintView .cardTitle{font-size:14px;overflow-wrap:anywhere;line-height:1.4}
body.publicGuide #hintView .cardDesc{font-size:12px;line-height:1.45;margin:5px 0}
body.publicGuide #hintView .cardDate{display:none}
body.publicGuide #hintView .tag{font-size:10px;white-space:normal;overflow-wrap:anywhere}
body.publicGuide #hintView .actions{gap:4px;flex-wrap:nowrap}
body.publicGuide #hintView .actions button{font-size:11px;padding:7px 3px;min-width:0}
body.publicGuide #hintView .actions .fav{flex:0 0 34px;font-size:18px}
body.publicGuide #hintView .endingGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.publicGuide #hintView .sequenceCard{grid-column:1/-1}
body.publicGuide #hintView .endingName{overflow-wrap:anywhere}
}

/* Public guide: one consistent section per meaning, including single-image sections. */
#hintView .uniformHintGroup{grid-column:1/-1;min-width:0}
#hintView .uniformHintGroup .endingGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
#hintView .uniformHintGroup .cardBody{padding:10px}
#hintView .uniformHintGroup .endingName{font-size:12px;line-height:1.4;min-height:2.8em}
#hintView .uniformHintGroup .hintImage{aspect-ratio:16/9;object-fit:contain}
#hintView .uniformHintGroup .endingActions{min-height:36px}
#hintView .uniformHintGroup .cardTitle{font-size:15px;margin:5px 0}

/* Full-width REG sequences on the public guide only. */
body.publicGuide #cards > article.sequenceCard{grid-column:1 / -1 !important;width:100%;min-width:0;}
body.publicGuide #cards > .sequenceCard .regGrid{grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 0;gap:6px;}
body.publicGuide #cards > .sequenceCard .regName,body.publicGuide #detail .regName{font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;}
body.publicGuide #cards > .sequenceCard .regOrder,body.publicGuide #detail .regOrder{font-size:12px;}
body.publicGuide #cards > .sequenceCard .sequenceHint{font-size:18px;font-weight:700;margin:6px 0;color:var(--text,#eee);}

.templateView{display:grid;gap:8px;padding:10px;min-width:0}.templateItem{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.templateItem p{margin:0}.templateValue{font-size:1.15rem;font-weight:bold}.templateImage,.templateItem video,.templateItem audio{max-width:100%;width:100%}.templateSwatch{width:30px;height:30px;border:1px solid #888;border-radius:50%}.templateItem progress{width:100%;accent-color:#b9ef38}.template-scenario,.template-history{grid-template-columns:repeat(auto-fit,minmax(65px,1fr))}.templateTable{width:100%;border-collapse:collapse;table-layout:fixed}.templateTable td{border:1px solid #777;padding:6px;overflow-wrap:anywhere}.templateEditorRow{border:1px solid #555;padding:10px;margin:8px 0;border-radius:8px}.templateEditorRow label{display:block}body.publicGuide #cards>.templateWide{grid-column:1/-1!important}.templateCard{min-width:0}

#editDialog{box-sizing:border-box;width:min(100%,720px)!important;max-width:100%!important;margin:auto!important;inset:0!important}#editDialog [hidden]{display:none!important}.templateEditorRow input,.templateEditorRow select{max-width:100%;box-sizing:border-box}.templateEditorRow button{margin:4px}.templateEditorRow input[type=color]{height:40px;padding:3px}#templatePreview{border:1px solid #555;padding:10px;margin-top:10px;border-radius:8px}@media(max-width:600px){#editDialog{width:100%!important;height:100dvh;max-height:100dvh!important;border-radius:0!important}}
#editDialog,#editForm,#templateFields,#templateItems,.templateEditorRow,.templateRowContent{min-width:0;max-width:100%;box-sizing:border-box}#editForm{grid-template-columns:minmax(0,1fr)}#editDialog input,#editDialog select,#editDialog textarea{min-width:0;max-width:100%;width:100%;box-sizing:border-box}#editDialog{overflow-x:hidden}.templateFold{display:flex;align-items:center;gap:8px;width:100%;text-align:left;min-width:0}.templateFold span:nth-child(2){flex:1;overflow-wrap:anywhere}.templateThumb{width:48px;height:36px;object-fit:contain}.templateGallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.templateTile{min-width:0;display:flex;flex-direction:column;align-items:center;overflow-wrap:anywhere;font-size:11px;padding:4px!important}.templateTile img{width:100%;aspect-ratio:4/3;object-fit:contain}.templateRowContent{padding-top:8px}#templatePreview .hint{width:100%;min-width:0}#templatePreview .templateImage{object-fit:contain}#templatePreview .cardTitle{font-size:14px}#templatePreview .cardDesc{font-size:12px}

/* Admin responsive sizing and five-item scenario layout. */
body.adminPage main,body.adminPage footer,body.adminPage .adminPanel,body.adminPage .adminGrid,body.adminPage .sectionHead{min-width:0;max-width:100%;box-sizing:border-box}body.adminPage .adminGrid{grid-template-columns:repeat(2,minmax(0,1fr))}body.adminPage .adminGrid>*{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}body.adminPage .sectionHead{flex-wrap:wrap}body.adminPage footer{overflow-wrap:anywhere} .template-scenario:has(>.templateItem:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.template-scenario .templateItem strong{font-size:12px}.template-scenario .templateImage{aspect-ratio:16/9;object-fit:contain}

/* Detail close uses native dialog submission; constrain editor intrinsic widths. */
#detailDialog{width:min(calc(100% - 24px),520px);max-width:calc(100% - 24px);box-sizing:border-box;overflow-x:hidden}#detailDialog>.sectionHead{position:relative;z-index:1;flex-wrap:nowrap}#detailDialog .detailCloseForm{display:block;flex:0 0 48px;margin:0;padding:0}#detailDialog .detailCloseForm button{display:grid;place-items:center;width:48px;height:48px;padding:0;touch-action:manipulation;pointer-events:auto}#editDialog{width:min(calc(100% - 16px),720px)!important;max-width:calc(100% - 16px)!important;padding:12px;overflow-x:hidden}#editForm,#editForm label,#templateFields,#templateItems,#templatePreview,#templatePreview .cardBody,.templateEditorRow,.templateRowContent{min-width:0;max-width:100%;width:100%;box-sizing:border-box;overflow-wrap:anywhere}#editForm label{grid-template-columns:minmax(0,1fr)}#editForm input[type=date]{display:block;min-width:0;max-width:100%;width:100%;-webkit-min-logical-width:0}#editForm input[type=file]{overflow:hidden}#editForm .check{width:100%}#editForm .check input{width:20px;flex:none}#editDialog .templateFold>*{min-width:0}#templatePreview .sequenceHint,#detailDialog .sequenceHint{font-weight:700;font-size:18px;overflow-wrap:anywhere}#templatePreview .regGrid{padding:8px 0;gap:4px;min-width:0}#templatePreview .regName{font-weight:600} @media(max-width:600px){#editDialog{height:auto;max-height:calc(100dvh - 24px)!important;border-radius:12px!important}}
.importHistoryCard{margin:12px 0;overflow-wrap:anywhere;min-width:0}.importHistoryCard p{margin:6px 0}.importRollbackButton{color:#d34b4b!important}#importHistoryDialog{max-width:min(92vw,620px)}#importHistoryStatus{overflow-wrap:anywhere}#importHistoryMore[hidden]{display:none!important}

.importFilters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.importFilters input,.importFilters select{width:100%;min-width:0}.importPageNav{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:12px 0}.importPreviewRow{overflow-wrap:anywhere;margin:6px 0}.importPreviewRow summary{cursor:pointer;font-weight:700;padding:8px 0}

.contributionButtons:empty{display:none}.contributionButtons{display:grid;gap:4px;margin-top:8px}.contributionButton{font-size:12px;color:#c5ff35;white-space:normal;overflow-wrap:anywhere}.contributionDialog{width:min(94vw,520px);max-height:85dvh;overflow:auto}.contributionDialog form{display:grid;gap:12px}.contributionPreview{max-width:100%;max-height:240px;object-fit:contain}.contributionConsent{display:flex;align-items:flex-start;gap:8px;font-size:13px}.contributionConsent input{width:auto;flex:none}.contributionHistoryCard{border:1px solid #444;border-radius:10px;padding:12px;margin:10px 0}.contributionStatus{overflow-wrap:anywhere}

.contributionButton{font-size:14px;min-height:44px;padding:8px}.contributionReviewImage{display:block;width:100%;max-height:65dvh;object-fit:contain;margin:8px 0}.contributionReviewImage[hidden]{display:none}

header .guideQuickBack{position:relative;z-index:2;flex:0 0 44px;pointer-events:auto;touch-action:manipulation;cursor:pointer}

/* Public guide startup / refresh state */
body.publicGuide #homeStatus.guideLoading:not([hidden]){display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:128px;padding:20px 12px;margin:12px 0;color:#e7e7e7;text-align:center;font-size:13px;line-height:1.5}
body.publicGuide #homeStatus.guideLoading[hidden]{display:none!important}
body.publicGuide #homeStatus.guideLoading .guideLoadLogo{width:48px;height:48px;border-radius:12px;animation:hikiGuidePulse 1.25s ease-in-out infinite}
body.publicGuide #homeStatus.guideLoading[data-state="error"]{min-height:90px;color:#d4d4d4;gap:8px}
body.publicGuide #homeStatus.guideLoading[data-state="error"] button{min-height:40px}
@keyframes hikiGuidePulse{0%,100%{opacity:.65;transform:scale(.94)}50%{opacity:1;transform:scale(1.05)}}
@media(prefers-reduced-motion:reduce){body.publicGuide #homeStatus.guideLoading .guideLoadLogo{animation:none}}

/* Photo review system notifications */
.hikiReviewNotice{display:flex;align-items:center;gap:12px;width:100%;min-width:0;text-align:left;padding:12px;margin:8px 0;border:1px solid #383838;border-radius:12px;background:#202020;color:#f5f5f5;white-space:normal;box-sizing:border-box;cursor:pointer}
.hikiReviewNoticeMark{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#303030;color:#c5ff35;font-size:22px;font-weight:700}
.hikiReviewNoticeCopy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;overflow-wrap:anywhere;line-height:1.45}
.hikiReviewNoticeCopy strong{font-size:14px}.hikiReviewNoticeCopy small{font-size:11px;color:#aaa}.hikiReviewNoticeLink{font-size:12px;color:#c5ff35}
.hikiReviewNotice:focus-visible{outline:2px solid #c5ff35;outline-offset:2px}

/* v14.5.56 notification center */
.publicGuide .head .brand{margin-right:auto;min-width:0}.publicGuide .head #userMenu{margin-left:0;flex-shrink:0}.notice51Bell{position:relative;display:grid;place-items:center;flex:0 0 44px;min-height:44px;min-width:44px;padding:0!important;border:0!important;background:transparent!important;color:var(--ink)!important}.notice51Bell svg,.notice51Icon svg{width:24px;height:24px}.notice51Badge{position:absolute;top:1px;right:0;min-width:17px;height:17px;padding:0 3px;border-radius:12px;display:grid;place-items:center;background:#c4ff35;color:#141414;font-size:10px;font-weight:800;border:1px solid #111;box-sizing:border-box}.notice51Dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;box-sizing:border-box;border:0;border-radius:0;padding:0 0 max(20px,env(safe-area-inset-bottom));background:#121212;color:#eee;overflow:auto;overscroll-behavior:contain}.notice51Header{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:6px;padding:max(8px,env(safe-area-inset-top)) 12px 8px;background:#121212;border-bottom:1px solid #2b2b2b}.notice51Header h2{font-size:19px;margin:0;flex:1}.notice51Icon{border:0!important;background:transparent!important;color:#eee!important;min-width:44px;min-height:44px;display:grid;place-items:center;padding:0!important}.notice51Tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #303030}.notice51Tab{border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;color:#aaa!important;border-radius:0!important;padding:13px 4px!important;font-size:14px}.notice51Tab[aria-pressed=true]{color:#c4ff35!important;border-bottom-color:#c4ff35!important;font-weight:800}.notice51Tools{display:flex;justify-content:space-between;gap:8px;padding:9px 16px}.notice51Action,.notice51More{background:transparent!important;color:#c4ff35!important;border:0!important;padding:9px 4px!important;font-size:12px;min-height:40px}.notice51Action:disabled,.notice51More:disabled{opacity:.4}.notice51More{display:block;margin:12px auto}.notice51Message{font-size:13px;color:#aaa;margin:0;padding:0 16px;overflow-wrap:anywhere}.notice51Message:empty{display:none}.notice51List{max-width:760px;margin:auto}.notice51Day{font-size:12px;color:#999;margin:0;padding:12px 16px 5px;font-weight:600}.notice51Row{display:flex!important;align-items:center;text-align:left;gap:12px;width:100%;min-height:83px;padding:13px 16px!important;border:0!important;border-bottom:1px solid #272727!important;border-radius:0!important;background:transparent!important;color:#eee!important;white-space:normal;box-sizing:border-box}.notice51Row.isUnread{background:#1c2018!important}.notice51Avatar{position:relative;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#292929;color:#c4ff35;display:grid;place-items:center}.notice51Avatar>img{width:44px;height:44px;border-radius:50%;object-fit:cover}.notice51Avatar svg{width:23px;height:23px}.notice51Mini{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;background:#242424;border:2px solid #121212;display:grid;place-items:center;box-sizing:border-box}.notice51Mini svg{width:12px;height:12px}.kind-heart .notice51Avatar{color:#f47298}.kind-follow .notice51Avatar{color:#79b6ff}.kind-reply .notice51Avatar{color:#c4c9d5}.kind-review .notice51Avatar{color:#b6b6b6}.notice51Copy{min-width:0;flex:1;display:grid;gap:4px;overflow-wrap:anywhere}.notice51Who{font-size:12px;color:#aaa}.notice51Text{font-size:14px;font-weight:650;line-height:1.5}.notice51Preview{font-size:12px;font-weight:400;color:#aaa;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.notice51Time{font-size:11px;color:#999;font-weight:400}.notice51Tail{display:flex;gap:5px;align-items:center;flex-shrink:0}.notice51Tail svg{width:15px;height:15px;color:#888}.notice51Dot{width:7px;height:7px;border-radius:50%;background:#c4ff35}.notice51Empty{color:#aaa;text-align:center;padding:45px 16px;font-size:14px}.notice51Detail{padding:20px 16px;overflow-wrap:anywhere}.notice51Detail h2{font-size:21px;line-height:1.5}.notice51Body{white-space:pre-wrap;line-height:1.8;font-size:15px}.notice51PostAuthor{display:flex;gap:10px;align-items:center;text-align:left;width:100%;border:0!important;background:transparent!important;color:#eee!important;padding:0!important}.notice51Dialog [hidden],.notice51Bell [hidden]{display:none!important}

.correctionButton{color:var(--accent,#c4ff35);border:1px solid var(--line,#383838);touch-action:manipulation;cursor:pointer}.correctionDialog .correctionText{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.correctionDialog .contributionHistoryCard{min-width:0;overflow-wrap:anywhere}.correctionDialog .contributionHistoryCard>button{min-height:44px;white-space:normal}.correctionDialog .correctionSnapshot{border:1px solid #3b3b3b;border-radius:8px;padding:10px;margin:6px 0}.correctionDialog .correctionSnapshot pre{font-size:12px;max-height:35dvh;overflow:auto}.correctionDialog .contributionHistoryCard label{display:grid;gap:5px;margin:8px 0}.correctionDialog .contributionPreview[hidden]{display:none}.correctionDialog select,.correctionDialog textarea,.correctionDialog input{max-width:100%;min-width:0}.correctionDialog .contributionReviewImage{max-height:50dvh;object-fit:contain}

.hikiOfficialBadge{display:inline-flex;align-items:center;vertical-align:middle;width:17px;height:17px;margin-left:4px;color:#91b82d;flex:none}.hikiOfficialBadge svg{width:100%;height:100%;display:block}.hikiPinnedPost{display:block;color:#91b82d;font-weight:700;margin:0 0 6px} #officialUsers .chatCard{overflow-wrap:anywhere} #officialDialog #officialSearch{margin-top:12px}

/* v14.5.58 machine reviews */
.machineReviewOpen{width:100%;margin:12px 0;color:var(--accent)}.reviewDialog{width:min(94vw,620px);max-height:88dvh;overflow:auto}.reviewDialog .sectionHead{gap:8px}.reviewSummary,.reviewEditor,.reviewCard{border:1px solid var(--line);border-radius:13px;padding:13px;margin:12px 0;background:var(--surface)}.reviewSummaryTop{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.reviewAverage{font-size:30px;font-variant-numeric:tabular-nums}.reviewStarText{color:var(--accent);letter-spacing:.06em;margin:6px 0;font-weight:700}.reviewMetrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.reviewMetric{display:flex;flex-direction:column;text-align:center;font-size:12px;color:var(--muted)}.reviewMetric strong{color:var(--ink);font-size:19px}.reviewRating{border:0;padding:0;margin:0 0 12px;min-width:0}.reviewRating legend{font-weight:700}.reviewStarPicker{display:flex;gap:4px;justify-content:center}.reviewStarButton{border:0;background:transparent;color:var(--accent);font-size:32px;flex:1;min-width:0;max-width:60px;padding:0}.reviewField{margin:8px 0;display:block}.reviewField select,.reviewField textarea{width:100%;margin-top:4px}.reviewForm .reviewActions{margin-top:12px}.reviewActions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.reviewRowHead{display:flex;justify-content:space-between;align-items:center;gap:10px;overflow-wrap:anywhere}.reviewBody{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.reviewSort{max-width:48%;font-size:14px}.reviewCard h3{margin:6px 0}.reviewDialog .message{overflow-wrap:anywhere}

/* v14.5.58 public SEO links */
.seoHomeIntro{margin:0 0 12px}.seoHomeIntro h1{font-size:17px;line-height:1.5;margin:0 0 4px}.seoHomeIntro p,.seoMachineLinks p{font-size:12px;color:var(--muted);margin:0 0 8px}.seoMachineLinks{margin:20px 0 12px;padding-top:12px;border-top:1px solid var(--line)}.seoMachineLinks h2{font-size:15px;margin:0 0 8px}.seoMachineLinks ul{margin:0 0 8px;padding-left:20px}.seoMachineLinks li{margin:5px 0}.seoMachineLinks a{color:var(--accent);font-size:13px}

/* v14.5.66: distinct guest account screens and consistent back navigation. */
dialog button.close,button.composerClose{font-size:14px!important;font-weight:600;white-space:nowrap;min-width:76px;min-height:44px;padding:6px 10px!important;border-radius:8px;line-height:1.25}
dialog .sectionHead>button.close{flex:none}
#accountDialog:not(.accountFull){width:min(92vw,440px);max-height:90dvh;box-sizing:border-box;padding:18px 20px 22px;border-radius:16px}
#accountDialog:not(.accountFull)>.sectionHead{position:relative;top:auto;background:transparent;border-bottom:1px solid var(--line);padding:0 0 10px;margin-bottom:18px}
#accountDialog .authChoice,#accountDialog .authForm{display:grid;gap:14px}
#accountDialog .authIntro{margin-bottom:4px}
#accountDialog .authEyebrow{font-size:11px;letter-spacing:.18em;font-weight:700;color:#b9ef33;margin:0 0 8px}
#accountDialog .authChoice h3,#accountDialog .authIntro h3{font-size:23px;line-height:1.35;margin:0 0 6px}
#accountDialog .authChoice p,#accountDialog .authIntro p,#accountDialog #authTerms{line-height:1.6;margin:0}
#accountDialog .authForm label{margin:0;font-size:14px;font-weight:600}
#accountDialog .authForm input{margin-top:6px;min-height:46px;font-size:16px}
#accountDialog .authForm .primary,#accountDialog .authChoice .primary,#accountDialog .authChoice .outline{min-height:48px;width:100%;font-size:15px}
#accountDialog #authSwitch{min-height:44px;font-size:13px;white-space:normal;text-align:center}
#accountDialog #accountMessage:empty{display:none}
#menuDialog{touch-action:pan-y;transform:translateX(var(--drawer-shift,0px));transition:transform 200ms ease-out;overscroll-behavior:contain}
#menuDialog[open]{animation:hikiDrawerIn 200ms ease-out}
#menuDialog.drawerDragging{animation:none;transition:none}
#menuDialog.drawerClosing{animation:none;pointer-events:none}
@keyframes hikiDrawerIn{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#menuDialog,#menuDialog[open]{animation:none;transition:none}}
