@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root{
  color-scheme:light;
  --held-a:var(--hb-light,#DEE9F5);
  --held-m:var(--hb-light,#DEE9F5);
  --held-b:var(--hb-light,#DEE9F5);
  --held-page:var(--hb-light,#DEE9F5);
  --held-win:#fff;
  --held-line:var(--hb-point,#D0DFF0);
  --held-ink:var(--hb-deep,#3E4360);
  --held-mute:#788da2;
  --held-h:var(--hb-deep,#3E4360);
  --held-acc:var(--hb-soft,#A9B8D6);
  --held-acc1:var(--hb-deep,#3E4360);
  --held-chip:var(--hb-light,#DEE9F5);
  --held-ok:var(--hb-deep,#3E4360);
  --shadow:0 22px 60px rgba(var(--hb-deep-rgb,62,67,96),.15);
  --sans:'Pretendard Variable','Pretendard','Noto Sans KR',system-ui,sans-serif;
}

*{box-sizing:border-box}
html,body{min-width:320px;min-height:100%;margin:0}
body{font-family:var(--sans);color:var(--held-ink);background:linear-gradient(145deg,var(--held-a),var(--held-m) 48%,var(--held-b));overflow-x:hidden}
button,input,textarea{font:inherit}
button{color:inherit}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(var(--hb-mid-rgb,107,114,144),.25);outline-offset:2px}
[hidden]{display:none!important}

.app-shell{width:100%;min-height:100dvh}
.browser-bar{height:48px;display:grid;grid-template-columns:auto auto minmax(120px,1fr) auto;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid rgba(var(--hb-soft-rgb,169,184,214),.75);background:rgba(var(--hb-light-rgb,222,233,245),.82);backdrop-filter:blur(18px);position:sticky;top:0;z-index:30}
.traffic{display:flex;gap:6px}.traffic i{display:block;width:11px;height:11px;border-radius:50%;background:#ff6c66}.traffic i:nth-child(2){background:#f5c64e}.traffic i:nth-child(3){background:var(--hb-soft,#A9B8D6)}
.heldom-browser-tabs{height:100%;display:flex;align-items:end;gap:3px;overflow-x:auto;scrollbar-width:none}.heldom-browser-tabs::-webkit-scrollbar{display:none}.heldom-browser-tabs button{height:34px;min-width:76px;padding:0 12px;border:1px solid var(--hb-point,#D0DFF0);border-bottom:0;border-radius:10px 10px 0 0;background:var(--hb-light,#DEE9F5);color:#667d90;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer}.heldom-browser-tabs button[aria-current=page]{background:#fff;color:var(--held-h)}
.browser-title{min-width:0;height:32px;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 14px;border:1px solid var(--hb-point,#D0DFF0);border-radius:10px;background:#fff;color:var(--held-mute)}
.browser-title b{color:var(--held-h);font-size:12px}.browser-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.icon-button{width:40px;height:40px;border:0;border-radius:12px;background:transparent;cursor:pointer;font-size:20px}.icon-button:hover{background:var(--hb-light,#DEE9F5)}

.heldom{width:100%;max-width:1180px;margin:0 auto;padding:18px clamp(12px,3vw,28px) 28px}
.heldom-head{min-height:76px;display:flex;align-items:center;gap:18px;padding:8px 4px 15px}
.heldom-brand{margin-right:auto}.heldom-brand span{display:block;color:var(--held-acc1);font-size:10px;font-weight:800;letter-spacing:.22em}.heldom-brand h1{margin:2px 0 0;font-size:27px;line-height:1;color:var(--held-h)}
.head-actions{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}.head-actions::-webkit-scrollbar{display:none}
.soft-button{min-height:40px;flex:none;padding:0 14px;border:1px solid var(--held-line);border-radius:999px;background:rgba(255,255,255,.78);font-size:12px;font-weight:700;cursor:pointer}.soft-button:hover{border-color:var(--hb-soft,#A9B8D6);background:#fff}
.mobile-back{display:none}

.status-panel{min-height:430px;display:grid;place-items:center;align-content:center;gap:14px;border:1px solid rgba(var(--hb-point-rgb,208,223,240),.9);border-radius:28px;background:rgba(255,255,255,.8);box-shadow:var(--shadow);text-align:center;padding:32px}
.status-panel p{max-width:420px;margin:0;color:var(--held-mute);font-size:14px;line-height:1.75;white-space:pre-line}
.status-panel h2{margin:0;color:var(--held-h);font-size:22px}
.status-panel .primary-action{min-height:44px;margin-top:8px;padding:0 18px;border:0;border-radius:14px;background:linear-gradient(180deg,var(--held-acc),var(--held-acc1));color:#fff;font-weight:800;cursor:pointer}
.spinner{width:34px;height:34px;border:3px solid var(--hb-point,#D0DFF0);border-top-color:var(--held-acc1);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

.messenger{min-height:620px;height:calc(100dvh - 166px);display:grid;grid-template-columns:76px minmax(280px,340px) minmax(0,1fr);overflow:hidden;border:1px solid rgba(var(--hb-soft-rgb,169,184,214),.92);border-radius:28px;background:var(--held-win);box-shadow:var(--shadow)}
.rail{display:flex;flex-direction:column;gap:5px;padding:18px 8px;border-right:1px solid var(--held-line);background:linear-gradient(180deg,var(--hb-light,#DEE9F5),var(--hb-light,#DEE9F5))}
.rail button{position:relative;min-height:58px;display:grid;place-items:center;align-content:center;gap:2px;border:0;border-radius:16px;background:transparent;color:#6b7490;cursor:pointer}.rail button:hover{background:rgba(255,255,255,.72)}.rail button[aria-current=page]{background:#fff;color:var(--held-h);box-shadow:0 6px 18px rgba(var(--hb-deep-rgb,62,67,96),.1)}
.rail button i{font-style:normal;font-size:19px}.rail button span{font-size:10px;font-weight:700}.rail button b{position:absolute;right:6px;top:6px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#ff6b6b;color:#fff;font-size:10px;line-height:19px}

.list-pane{min-width:0;overflow-y:auto;border-right:1px solid var(--held-line);background:var(--hb-light,#DEE9F5)}
.pane-head{min-height:80px;display:flex;align-items:center;justify-content:space-between;padding:18px 18px 10px;position:sticky;top:0;z-index:5;background:rgba(var(--hb-light-rgb,222,233,245),.94);backdrop-filter:blur(12px)}
.pane-head span{display:block;color:var(--held-acc1);font-size:9px;font-weight:800;letter-spacing:.18em}.pane-head h2{margin:3px 0 0;color:var(--held-h);font-size:22px}
.pane-actions{display:flex;align-items:center;gap:2px}
.search-box{height:44px;display:flex;align-items:center;gap:7px;margin:0 14px 10px;padding:0 12px;border:1px solid var(--held-line);border-radius:13px;background:#fff;color:var(--held-mute)}.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--held-ink);font-size:13px}
.tab-view{padding:0 12px 22px}.section-title{min-height:40px;display:flex;align-items:center;justify-content:space-between;padding:5px 8px;color:var(--held-mute);font-size:11px}.section-title b{color:var(--held-h);font-size:12px}
.item-list{display:grid;gap:7px}
.list-item{width:100%;min-height:68px;display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid transparent;border-radius:17px;background:transparent;text-align:left;cursor:pointer}.list-item:hover,.list-item[aria-current=page]{border-color:var(--hb-point,#D0DFF0);background:#fff;box-shadow:0 7px 20px rgba(var(--hb-deep-rgb,62,67,96),.08)}
.list-item .copy{min-width:0}.list-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--held-ink);font-size:13px}.list-item small{display:block;max-width:100%;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--held-mute);font-size:11px}.list-item time{align-self:start;padding-top:4px;color:#8b95a7;font-size:9px}.list-item .unread{min-width:20px;height:20px;margin-left:auto;border-radius:10px;background:var(--held-acc1);color:#fff;font-size:10px;font-weight:800;line-height:20px;text-align:center}
.avatar{width:44px;height:44px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--hb-point,#D0DFF0);border-radius:16px;background:linear-gradient(145deg,var(--hb-point,#D0DFF0),var(--hb-light,#DEE9F5));color:var(--held-h);font-size:14px;font-weight:800}.avatar img,.avatar canvas.five-look-avatar{width:100%;height:100%;object-fit:contain}.avatar canvas.five-look-avatar{display:block}
.empty-list{padding:34px 16px;text-align:center;color:var(--held-mute);font-size:12px;line-height:1.7}.empty-list b{display:block;margin-bottom:4px;color:var(--held-h);font-size:14px}

.my-card{width:100%;margin:4px 2px 12px;padding:14px;border:1px solid var(--hb-point,#D0DFF0);border-radius:18px;background:linear-gradient(145deg,#fff,var(--hb-light,#DEE9F5));text-align:left;cursor:pointer}.my-card .my-row{display:flex;align-items:center;gap:11px}.my-card .avatar{width:56px;height:56px;border-radius:20px}.my-card .my-copy{min-width:0;flex:1}.my-card h3{display:flex;align-items:center;gap:6px;margin:0;color:var(--held-h);font-size:16px}.my-card p{margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--held-mute);font-size:11px}.my-card .heldom-number{color:var(--held-acc1);font-size:12px;font-weight:800;letter-spacing:.035em}.language-badge{display:inline-flex;align-items:center;min-height:18px;padding:0 6px;border-radius:7px;background:var(--hb-light,#DEE9F5);color:var(--held-acc1);font-size:9px;font-weight:900}
.partner-door{width:calc(100% - 4px);min-height:54px;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:7px;margin:8px 2px 0;padding:10px 12px;border:1.5px solid var(--hb-soft,#A9B8D6);border-radius:16px;background:#fff;color:var(--held-ink);text-align:left;cursor:pointer}.partner-door b{color:var(--held-acc1);font-size:13px}.partner-door small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--held-mute);font-size:10px}.partner-door i{color:var(--held-mute);font-size:16px;font-style:normal}.partner-note{margin:5px 7px 4px;color:var(--held-mute);font-size:9px;line-height:1.5}
.list-item .item-tail{display:grid;justify-items:end;gap:4px}.favorite-button{width:32px;height:32px;border:0;border-radius:11px;background:transparent;color:#a9b5bd;font-size:17px;cursor:pointer}.favorite-button[aria-pressed=true]{color:#d0aa50;background:#fff8e4}.favorite-button:hover{background:var(--hb-light,#DEE9F5)}

.chat-pane{min-width:0;min-height:0;background:linear-gradient(180deg,var(--hb-light,#DEE9F5),var(--hb-light,#DEE9F5))}
.empty-chat{height:100%;display:grid;place-items:center;align-content:center;text-align:center}.heldom-mark{width:72px;height:72px;display:grid;place-items:center;border:1px solid var(--hb-soft,#A9B8D6);border-radius:26px;background:linear-gradient(145deg,var(--hb-point,#D0DFF0),#fff);color:var(--held-acc1);font-size:28px;font-weight:800;box-shadow:0 16px 34px rgba(var(--hb-mid-rgb,107,114,144),.13)}.empty-chat h2{margin:18px 0 5px;color:var(--held-h);font-size:18px}.empty-chat p{margin:0;color:var(--held-mute);font-size:12px;line-height:1.7}
.active-chat{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.chat-head{min-height:76px;display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--held-line);background:rgba(255,255,255,.88);backdrop-filter:blur(12px)}.chat-head h2{margin:0;color:var(--held-h);font-size:15px}.chat-head p{margin:3px 0 0;color:var(--held-mute);font-size:10px}.mobile-chat-back{display:none}
.message-list{min-height:0;overflow-y:auto;padding:22px clamp(14px,3vw,30px);scroll-behavior:smooth}
.message{display:flex;align-items:flex-end;gap:8px;margin:0 0 13px}.message.mine{justify-content:flex-end}.message .message-avatar{width:30px;height:30px;flex:none;border-radius:11px}.message .message-stack{max-width:min(72%,560px)}.message .sender{margin:0 0 4px 2px;color:var(--held-mute);font-size:10px}.bubble{padding:10px 13px;border:1px solid var(--held-bubbleLine,var(--hb-point,#D0DFF0));border-radius:7px 17px 17px 17px;background:var(--held-bubbleThem,#fff);color:var(--held-bubbleThemInk,var(--held-ink));font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 5px 16px rgba(var(--hb-deep-rgb,62,67,96),.05)}.mine .bubble{border-color:var(--held-bubbleLine,var(--hb-point,#D0DFF0));border-radius:17px 7px 17px 17px;background:var(--held-bubbleMe,linear-gradient(145deg,var(--hb-light,#DEE9F5),var(--hb-point,#D0DFF0)));color:var(--held-bubbleMeInk,var(--held-ink))}.bubble.sticker{min-width:58px;padding:8px 12px;background:transparent;border:0;box-shadow:none;font-size:36px}.message-meta{display:flex;justify-content:flex-end;gap:5px;margin-top:3px;color:#8b95a7;font-size:9px}.message-meta .read{color:var(--held-acc1)}
.day-divider{display:flex;align-items:center;gap:10px;margin:8px 0 18px;color:#96a7b5;font-size:9px}.day-divider::before,.day-divider::after{content:'';height:1px;flex:1;background:var(--hb-point,#D0DFF0)}
.sticker-drawer{display:flex;gap:8px;overflow-x:auto;padding:10px 14px;border-top:1px solid var(--held-line);background:#fff;scrollbar-width:none}.sticker-drawer button{width:44px;height:44px;flex:none;border:1px solid var(--hb-point,#D0DFF0);border-radius:14px;background:var(--hb-light,#DEE9F5);font-size:23px;cursor:pointer}
.composer{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:end;gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--held-line);background:#fff}.composer-tool{width:42px;height:42px;border:1px solid var(--held-line);border-radius:13px;background:var(--hb-light,#DEE9F5);color:var(--held-h);font-size:20px;cursor:pointer}.composer textarea{width:100%;min-height:42px;max-height:120px;resize:none;padding:10px 12px;border:1px solid var(--held-line);border-radius:14px;background:var(--hb-light,#DEE9F5);color:var(--held-ink);outline:0;font-size:13px;line-height:1.5}.send-button{min-height:42px;padding:0 15px;border:0;border-radius:13px;background:linear-gradient(180deg,var(--held-acc),var(--held-acc1));color:#fff;font-size:12px;font-weight:800;cursor:pointer}.send-button:disabled{opacity:.45;cursor:wait}

.settings-view{display:grid;gap:10px;padding-top:5px}.setting-card{padding:16px;border:1px solid var(--held-line);border-radius:18px;background:#fff}.setting-kicker{color:var(--held-acc1);font-size:9px;font-weight:800;letter-spacing:.14em}.setting-card h3{margin:5px 0 7px;color:var(--held-h);font-size:14px}.setting-card p{margin:0;color:var(--held-mute);font-size:11px;line-height:1.7}.number-value{display:block;margin:10px 0 3px;color:var(--held-h);font-size:20px;letter-spacing:.05em}.number-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.number-actions button,.number-option{min-height:40px;padding:0 12px;border:1px solid var(--hb-point,#D0DFF0);border-radius:13px;background:var(--hb-light,#DEE9F5);color:var(--held-h);font-size:11px;font-weight:800;cursor:pointer}.number-form{display:grid;gap:9px;margin-top:12px}.number-form label{color:var(--held-mute);font-size:10px}.number-form input{width:100%;height:42px;padding:0 12px;border:1px solid var(--held-line);border-radius:13px;background:var(--hb-light,#DEE9F5);color:var(--held-ink);font-size:15px;letter-spacing:.12em}.number-options{display:grid;gap:7px}.number-option{text-align:left}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--hb-light,#DEE9F5)}.switch{width:48px;height:28px;padding:3px;border:0;border-radius:14px;background:var(--hb-point,#D0DFF0);cursor:pointer}.switch::after{content:'';display:block;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.16);transition:.2s}.switch[aria-pressed=true]{background:var(--held-acc1)}.switch[aria-pressed=true]::after{transform:translateX(20px)}
.next-card{background:var(--hb-light,#DEE9F5)}

.heldom-dialog{width:min(92vw,420px);padding:0;border:0;border-radius:24px;background:transparent;box-shadow:0 22px 70px rgba(var(--hb-deep-rgb,62,67,96),.28)}.heldom-dialog::backdrop{background:rgba(var(--hb-deep-rgb,62,67,96),.38);backdrop-filter:blur(3px)}.dialog-card{display:grid;gap:10px;padding:20px;border:1px solid var(--hb-point,#D0DFF0);border-radius:24px;background:#fff}.dialog-card header{display:flex;align-items:start;gap:12px}.dialog-card header div{flex:1}.dialog-card header span{color:var(--held-acc1);font-size:9px;font-weight:900;letter-spacing:.13em}.dialog-card h2{margin:4px 0 0;color:var(--held-h);font-size:18px}.dialog-card header button{width:36px;height:36px;border:0;border-radius:12px;background:var(--hb-light,#DEE9F5);color:var(--held-h);font-size:22px;cursor:pointer}.dialog-card p{margin:2px 0 4px;color:var(--held-mute);font-size:11px;line-height:1.65}.dialog-card label{color:var(--held-h);font-size:11px;font-weight:800}.dialog-card input{width:100%;height:46px;padding:0 13px;border:1px solid var(--held-line);border-radius:14px;background:var(--hb-light,#DEE9F5);color:var(--held-ink);font-size:16px;letter-spacing:.08em;outline:0}.dialog-card input:focus{border-color:var(--held-acc1);box-shadow:0 0 0 3px rgba(var(--hb-mid-rgb,107,114,144),.13)}.dialog-primary{min-height:44px;border:0;border-radius:14px;background:var(--held-acc1);color:#fff;font-size:12px;font-weight:900;cursor:pointer}.friend-lookup:empty{display:none}.friend-lookup{display:grid;gap:9px;margin-top:4px;padding-top:12px;border-top:1px solid var(--held-line)}.lookup-person{display:flex;align-items:center;gap:10px}.lookup-person .lookup-copy{min-width:0;flex:1}.lookup-person strong{display:flex;align-items:center;gap:5px;color:var(--held-h);font-size:13px}.lookup-person small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--held-mute);font-size:10px}.lookup-person button{min-height:38px;padding:0 11px;border:1px solid var(--hb-point,#D0DFF0);border-radius:12px;background:var(--hb-light,#DEE9F5);color:var(--held-h);font-size:10px;font-weight:900;cursor:pointer}.lookup-status{color:var(--held-mute);font-size:11px;line-height:1.6}

.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));z-index:100;max-width:min(90vw,430px);padding:11px 16px;border-radius:999px;background:var(--hb-deep,#3E4360);color:#fff;font-size:11px;opacity:0;pointer-events:none;transform:translate(-50%,12px);transition:.2s}.toast.on{opacity:1;transform:translate(-50%,0)}

@media(max-width:699px){
  body{overflow:hidden;background:#fff}.browser-bar,.heldom-head{display:none}
  .heldom{padding:0;max-width:none}.status-panel{min-height:100dvh;border:0;border-radius:0;box-shadow:none}
  .messenger{height:100dvh;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;border:0;border-radius:0;box-shadow:none}
  .rail{grid-row:2;grid-column:1;z-index:15;display:flex;flex-direction:row;gap:2px;padding:6px 4px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--held-line);background:#fff}.rail button{min-height:54px;flex:1;border-radius:13px}.rail button[aria-current=page]{box-shadow:none;background:transparent;color:var(--held-acc1)}.rail button i{font-size:19px}.rail button b{right:calc(50% - 24px);top:1px}
  .list-pane{grid-row:1;grid-column:1;min-height:0;border:0}.pane-head{min-height:64px;padding:10px 14px 8px}.pane-head>div:first-child>span{display:none}.pane-head h2{margin:0;font-size:21px}.pane-actions .icon-button{width:38px;height:38px;font-size:19px}.tab-view{padding:0 14px 24px}.search-box{margin-inline:14px}.list-item{min-height:68px;padding:8px 2px;border-radius:14px}.list-item .avatar{width:46px;height:46px}.section-title{padding-inline:4px}.my-card{margin:0 -14px 12px;width:calc(100% + 28px);padding:14px 20px;border:0;border-bottom:8px solid var(--held-page);border-radius:0;background:#fff}.partner-door{margin-top:10px}
  .chat-pane{display:none;grid-column:1/-1}.mobile-chat-back{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:12px;background:var(--hb-light,#DEE9F5);font-size:24px;cursor:pointer}
  body.room-open .messenger{height:100dvh;display:block}body.room-open .rail,body.room-open .list-pane{display:none}body.room-open .chat-pane{display:block;height:100%}body.room-open .active-chat{height:100%}
  .message .message-stack{max-width:82%}.message-list{padding:16px 12px}.composer{padding-inline:10px}.send-button{padding-inline:12px}
  .heldom-dialog{max-height:calc(100dvh - 24px)}
}

@media(min-width:700px) and (max-width:1023px){
  .heldom{padding-inline:18px}.messenger{grid-template-columns:70px 300px minmax(0,1fr)}.head-actions{max-width:52vw}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Heldom v2.2: profile, friend news, room filters and the real three-set translator. */
:root{--heldom-profile-aqua:var(--hb-light,#DEE9F5);--heldom-profile-mist:var(--hb-light,#DEE9F5);--heldom-profile-night:var(--hb-deep,#3E4360);--heldom-profile-verse:#f5efe2}
.friend-news{margin:0 2px 8px}.friend-news-row{display:flex;gap:9px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}.friend-news-row::-webkit-scrollbar{display:none}.news-person{width:64px;flex:none;border:0;background:transparent;text-align:center;cursor:pointer}.news-person .avatar{width:52px;height:52px;margin:auto;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--held-acc)}.news-person b,.news-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.news-person b{margin-top:6px;color:var(--held-h);font-size:10px}.news-person small{margin-top:2px;color:var(--held-mute);font-size:8px}
.helper-door{width:100%;min-height:56px;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:8px;margin:2px 0 8px;padding:10px 12px;border:1px solid var(--hb-point,#D0DFF0);border-radius:16px;background:linear-gradient(135deg,var(--hb-light,#DEE9F5),var(--hb-light,#DEE9F5));text-align:left;cursor:pointer}.helper-door>span{color:var(--hb-mid,#6B7290);font-size:20px}.helper-door b{color:var(--held-h);font-size:12px}.helper-door small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--held-mute);font-size:9px}.helper-door i{font-style:normal}.room-filters{display:flex;gap:6px;overflow-x:auto;padding:3px 1px 7px;scrollbar-width:none}.room-filters button{min-height:34px;flex:none;padding:0 11px;border:1px solid var(--held-line);border-radius:999px;background:#fff;color:var(--held-mute);font-size:10px;cursor:pointer}.room-filters button[aria-pressed=true]{border-color:var(--held-acc1);background:var(--held-chip);color:var(--held-h);font-weight:800}
.active-chat{grid-template-rows:auto minmax(0,1fr) auto auto auto auto}.room-translate{width:40px;height:40px;margin-left:auto;border:1px solid var(--held-line);border-radius:13px;background:var(--hb-light,#DEE9F5);cursor:pointer}.composer{grid-template-columns:42px minmax(0,1fr) 42px auto}.composer-translation{max-height:180px;overflow:auto;padding:10px 14px;border-top:1px dashed var(--hb-point,#D0DFF0);background:var(--hb-light,#DEE9F5);color:var(--held-ink);font-size:11px;line-height:1.55}.composer-translation b,.composer-translation span{display:block}.composer-translation span{margin-top:3px;color:var(--held-mute)}.composer-translation .translation-actions{margin-top:8px}
.setting-toggle{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--hb-light,#DEE9F5)}.setting-toggle:first-of-type{margin-top:7px}.setting-toggle span{min-width:0}.setting-toggle b,.setting-toggle small{display:block}.setting-toggle b{color:var(--held-h);font-size:11px}.setting-toggle small{margin-top:3px;color:var(--held-mute);font-size:9px}.setting-toggle input{width:44px;height:24px;accent-color:var(--held-acc1)}
.dialog-card textarea,.dialog-card select{width:100%;padding:0 13px;border:1px solid var(--held-line);border-radius:14px;background:var(--hb-light,#DEE9F5);color:var(--held-ink);font-size:13px;outline:0}.dialog-card select{height:46px}.dialog-card textarea{padding-block:11px;resize:vertical;line-height:1.55}.dialog-card textarea:focus,.dialog-card select:focus{border-color:var(--held-acc1);box-shadow:0 0 0 3px rgba(var(--hb-mid-rgb,107,114,144),.13)}.translation-result{display:grid;gap:7px}.translation-result:empty{display:none}.translation-line{padding:9px 11px;border:1px solid var(--hb-point,#D0DFF0);border-radius:12px;background:var(--hb-light,#DEE9F5)}.translation-line b,.translation-line span{display:block}.translation-line b{color:var(--held-acc1);font-size:9px;letter-spacing:.08em}.translation-line span{margin-top:3px;color:var(--held-ink);font-size:11px;line-height:1.55;white-space:pre-wrap}.translation-actions{display:flex;gap:7px}.translation-actions button{min-height:40px;flex:1;border:1px solid var(--held-line);border-radius:12px;background:#fff;color:var(--held-h);font-size:10px;font-weight:800;cursor:pointer}
.profile-dialog{width:min(100vw,430px);height:min(100dvh,820px);max-width:none;max-height:none;padding:0;border:0;border-radius:28px;background:#fff;overflow:hidden;box-shadow:0 28px 80px rgba(var(--hb-deep-rgb,62,67,96),.35)}.profile-dialog::backdrop{background:rgba(var(--hb-deep-rgb,62,67,96),.46);backdrop-filter:blur(4px)}.profile-stage{position:relative;min-height:100%;overflow:hidden;background:var(--heldom-profile-aqua);transition:background .2s}.profile-stage[data-background=mist]{background:linear-gradient(160deg,var(--heldom-profile-mist),var(--hb-point,#D0DFF0))}.profile-stage[data-background=night]{background:radial-gradient(circle at 24% 14%,var(--hb-deep,#3E4360),var(--heldom-profile-night) 58%,var(--hb-deep,#3E4360));color:#fff}.profile-stage[data-background=verse]{background:repeating-linear-gradient(#0000 0 31px,rgba(92,132,153,.14) 32px),var(--heldom-profile-verse)}.profile-topbar{position:absolute;inset:0 0 auto;z-index:5;min-height:56px;display:flex;align-items:center;justify-content:space-between;padding:8px 13px}.profile-topbar button{min-height:38px;padding:0 10px;border:0;border-radius:12px;background:rgba(255,255,255,.82);color:var(--held-h);font-size:11px;font-weight:800;cursor:pointer}.profile-topbar b{font-size:12px}.profile-widget{position:absolute;z-index:2;padding:11px 13px;border-radius:15px;background:rgba(255,255,255,.86);box-shadow:0 8px 22px rgba(var(--hb-deep-rgb,62,67,96),.08);color:var(--held-h)}.dday-widget{left:18px;top:76px;font-size:18px;font-weight:900}.dday-widget span{display:block;color:var(--held-mute);font-size:9px;font-weight:700}.verse-widget{left:18px;right:18px;top:150px;font-size:11px;line-height:1.55}.verse-widget b{display:block;color:var(--held-acc1);font-size:9px}.profile-sticker{position:absolute;right:25px;top:125px;z-index:2;display:grid;place-items:center;width:55px;height:55px;border-radius:18px;background:rgba(255,255,255,.86);font-size:28px}.profile-person{position:absolute;inset:auto 20px 44px;z-index:3;display:grid;justify-items:center;text-align:center}.profile-person>.avatar{width:92px;height:92px;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #d1a64b}.profile-person h2{margin:10px 0 0;font-size:23px}.profile-person p{min-height:21px;margin:3px 0 0;font-size:12px;opacity:.78}.profile-music{min-height:35px;margin-top:8px;padding:0 15px;border:0;border-radius:999px;background:rgba(255,255,255,.84);color:var(--held-h);font-size:10px;cursor:pointer}.profile-actions{display:flex;gap:36px;margin-top:18px}.profile-actions button{display:grid;gap:4px;border:0;background:transparent;color:inherit;font-size:22px;cursor:pointer}.profile-actions span{font-size:10px}.profile-editor{height:100%;display:grid;align-content:start;gap:10px;padding:70px 20px 22px;overflow-y:auto;background:var(--hb-light,#DEE9F5)}.profile-editor label{display:grid;gap:5px;color:var(--held-h);font-size:10px;font-weight:800}.profile-editor input,.profile-editor select,.profile-editor textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--held-line);border-radius:12px;background:#fff;color:var(--held-ink);font:inherit}.profile-editor textarea{resize:vertical}.profile-editor p{margin:0;color:var(--held-mute);font-size:9px;line-height:1.6}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}

@media(max-width:699px){
  body{overflow:hidden;background:#fff}.browser-bar,.heldom-head{display:none}.heldom{padding:0;max-width:none}.status-panel{min-height:100dvh;border:0;border-radius:0;box-shadow:none}.messenger{height:100dvh;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;border:0;border-radius:0;box-shadow:none}.rail{grid-row:2;grid-column:1;z-index:15;display:flex;flex-direction:row;gap:2px;padding:6px 4px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--held-line);background:#fff}.rail button{min-height:54px;flex:1;border-radius:13px}.rail button[aria-current=page]{box-shadow:none;background:transparent;color:var(--held-acc1)}.rail button i{font-size:19px}.rail button b{right:calc(50% - 24px);top:1px}.list-pane{grid-row:1;grid-column:1;min-height:0;border:0}.pane-head{min-height:64px;padding:10px 14px 8px}.pane-head>div:first-child>span{display:none}.pane-head h2{margin:0;font-size:21px}.pane-actions .icon-button{width:38px;height:38px;font-size:19px}.tab-view{padding:0 14px 24px}.search-box{margin-inline:14px}.list-item{min-height:68px;padding:8px 2px;border-radius:14px}.list-item .avatar{width:46px;height:46px}.section-title{padding-inline:4px}.my-card{margin:0 -14px 12px;width:calc(100% + 28px);padding:14px 20px;border:0;border-bottom:8px solid var(--held-page);border-radius:0;background:#fff}.partner-door{margin-top:10px}.chat-pane{display:none;grid-column:1/-1}.mobile-chat-back{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:12px;background:var(--hb-light,#DEE9F5);font-size:24px;cursor:pointer}body.room-open .messenger{height:100dvh;display:block}body.room-open .rail,body.room-open .list-pane{display:none}body.room-open .chat-pane{display:block;height:100%}body.room-open .active-chat{height:100%}.message .message-stack{max-width:82%}.message-list{padding:16px 12px}.composer{grid-template-columns:38px 38px minmax(0,1fr) auto;padding-inline:8px;gap:5px}.composer-tool{width:38px;height:42px}.send-button{padding-inline:10px}.heldom-dialog{max-height:calc(100dvh - 24px)}.profile-dialog{width:100vw;height:100dvh;border-radius:0}
}
.editor-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin:-56px 0 10px}.editor-head button{justify-self:start;min-height:38px;padding:0 10px;border:0;border-radius:12px;background:#fff;color:var(--held-h);font-size:11px;font-weight:800;cursor:pointer}.editor-head b{font-size:12px}
.bubble-translate{padding:0;border:0;background:transparent;color:var(--held-acc1);font-size:9px;cursor:pointer}.bubble-translation{display:grid;gap:5px;margin-top:6px}.bubble-translation .translation-line{padding:7px 9px}
#profileAvatar .avatar{width:92px;height:92px;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #d1a64b}

/* ═══════════════════════════════════════════════════════════════════════════════
   Heldom v0.4 폰 문법 — Heldom-폰-시안-v0.4.html (2026-09-16 · 명세 v2.2) CSS 그대로 이식
   폰(≤699 · 10-21 슈아 「패드도 기기별」 전엔 ≤899) = 카톡 문법(하단 탭 4 · 목록 · 말풍선 주인공 · 배경 단색 · Aqua 변수) · 패드·PC(≥700) = 창 문법 3단(패드는 700~1023 좁은 칸)(명세 §PC).
   동작·저장은 런타임(/api/heldom*) 그대로 — 아래는 옷만. 런타임이 만드는 요소(.list-item .avatar .message .bubble …)에 시안 값을 그대로 입힘.
   ═══════════════════════════════════════════════════════════════════════════════ */
.heldom,.profile-dialog,.heldom-dialog,.press-menu,.status-panel{--bg:var(--hb-light,#DEE9F5);--aqua:var(--hb-soft,#A9B8D6);--aqua-d:var(--hb-deep,#3E4360);--aqua-l:var(--hb-point,#D0DFF0);--aqua-x:var(--hb-light,#DEE9F5);--ink:var(--hb-deep,#3E4360);--ink-2:#55627a;--ink-3:#8b95a7;--paper:#fff;--line:var(--hb-point,#D0DFF0);--gold:#C9A961;--night:var(--hb-deep,#3E4360);--live:#E4636B;--r:18px}
/* ── 시안 부품(정적 마크업용) · v0.4 원문 ── */
.top{display:flex;align-items:center;gap:10px;padding:8px 16px 10px;border-bottom:1px solid var(--line)}
.top h2{font-size:19px;font-weight:800;margin:0;flex:1}
.top .ic{font-size:17px;color:var(--ink-2)}
.tabs{display:flex;border-top:1px solid var(--line);padding:6px 4px 14px;background:var(--paper)}
.tabs div{flex:1;text-align:center;font-size:10px;color:var(--ink-3);display:flex;flex-direction:column;gap:3px;align-items:center}
.tabs div i{font-style:normal;font-size:20px}
.tabs div.on{color:var(--aqua-d);font-weight:700}
.cap{font-size:10.5px;color:var(--ink-3);padding:12px 16px 4px;letter-spacing:.04em}
.item{display:flex;align-items:center;gap:12px;padding:9px 16px}
.item .av{width:44px;height:44px;border-radius:16px;flex:none;background:var(--aqua-x);display:grid;place-items:center;font-size:20px;overflow:hidden}
.item .t{flex:1}
.item b{font-size:14px;display:flex;align-items:center;gap:6px}
.item .s{font-size:12px;color:var(--ink-3);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item .m{text-align:right;font-size:10.5px;color:var(--ink-3);display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.bdg{background:var(--live);color:#fff;font-size:10px;font-weight:700;border-radius:999px;padding:1px 6px;min-width:18px;text-align:center}
.lang{font-size:9.5px;color:var(--aqua-d);background:var(--aqua-x);border-radius:6px;padding:1px 5px;font-weight:700}
.me{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:8px solid var(--bg)}
.me .av{width:56px;height:56px;border-radius:20px;background:var(--aqua-x);display:grid;place-items:center;overflow:hidden}
.me b{font-size:16px}
.me .s{font-size:12px;color:var(--ink-3);margin-top:3px}
.me .no{font-size:11px;color:var(--aqua-d);font-weight:700;margin-top:3px}
.req{margin:8px 16px 0;padding:10px 12px;border-radius:14px;background:var(--aqua-x);font-size:12px;color:var(--ink-2);display:flex;align-items:center;gap:8px}
.req b{color:var(--aqua-d)}
.req .n{margin-left:auto;font-size:11px;color:var(--ink-3)}
.day{align-self:center;font-size:10.5px;color:var(--ink-3);background:var(--paper);border-radius:999px;padding:3px 10px;border:1px solid var(--line)}
.msg{display:flex;gap:8px;align-items:flex-end;max-width:82%}
.msg .av{width:34px;height:34px;border-radius:12px;background:#E9E4D6;flex:none;display:grid;place-items:center;font-size:16px;align-self:flex-start}
.msg .bub{background:var(--paper);border-radius:4px 16px 16px 16px;padding:9px 12px;font-size:13.5px;line-height:1.5;border:1px solid var(--line)}
.msg .who{font-size:11px;color:var(--ink-2);margin-bottom:3px}
.msg .meta{font-size:9.5px;color:var(--ink-3);align-self:flex-end;white-space:nowrap}
.msg.me{align-self:flex-end;flex-direction:row-reverse}
.msg.me .bub{background:var(--aqua-d);color:#fff;border-radius:16px 4px 16px 16px;border:0}
.bub .tr{margin-top:6px;padding-top:6px;border-top:1px dashed var(--line);font-size:12px;color:var(--ink-2)}
.stk{font-size:42px;line-height:1;padding:2px 4px}
.inp{display:flex;align-items:center;gap:8px;padding:8px 10px 6px;border-top:1px solid var(--line);background:var(--paper)}
.inp .plus{width:34px;height:34px;border-radius:50%;background:var(--aqua-x);color:var(--aqua-d);display:grid;place-items:center;font-size:20px;font-weight:700}
.inp .box{flex:1;background:var(--bg);border-radius:18px;padding:9px 12px;font-size:13px;color:var(--ink-3)}
.inp .send{width:34px;height:34px;border-radius:50%;background:var(--aqua-d);color:#fff;display:grid;place-items:center;font-size:15px}
.inp .g{width:34px;height:34px;border-radius:50%;background:var(--paper);border:1.5px solid var(--aqua-l);color:var(--aqua-d);display:grid;place-items:center;font-size:16px}
.drawer{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px 12px 14px;background:var(--paper)}
.drawer div{text-align:center;font-size:10px;color:var(--ink-2);padding:6px 0}
.drawer div i{font-style:normal;display:block;font-size:22px;margin-bottom:3px}
.ctop{display:flex;align-items:center;gap:10px;padding:8px 14px 10px;border-bottom:1px solid var(--line);background:var(--paper)}
.ctop .back{font-size:20px;color:var(--ink-2)}
.ctop .mm{width:40px;height:40px;border-radius:14px;background:var(--aqua-x);overflow:hidden;display:grid;place-items:center}
.ctop .nm{flex:1}
.ctop .nm b{font-size:15px;display:block}
.ctop .nm small{font-size:11px;color:var(--ink-3)}
.ctop .ic{font-size:18px;color:var(--ink-2);margin-left:6px}
.dd{display:inline-block;font-size:10.5px;font-weight:700;color:var(--aqua-d);background:var(--paper);border:1px solid var(--aqua-l);border-radius:999px;padding:2px 8px;margin-top:5px;margin-right:4px}
.row2{display:flex;align-items:center;gap:10px;padding:11px 16px;border-bottom:1px solid var(--line);font-size:13px}
.row2 .k{width:64px;color:var(--ink-3);font-size:11.5px;flex:none}
.row2 .v{flex:1;color:var(--ink)}
.row2 .v small{display:block;color:var(--ink-3);font-size:11px;margin-top:2px}
.tg{width:36px;height:20px;border-radius:999px;background:var(--aqua-d);position:relative;flex:none}
.tg::after{content:"";position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:#fff}
.tg.off{background:var(--line)}.tg.off::after{right:auto;left:2px}
.news{display:flex;gap:10px;padding:8px 16px 10px;overflow:hidden}
.news .nc{flex:none;width:84px;text-align:center}
.news .nc .na{width:52px;height:52px;border-radius:18px;margin:0 auto 4px;display:grid;place-items:center;font-size:22px;background:var(--aqua-x);box-shadow:0 0 0 2px var(--aqua-l);overflow:hidden}
.news .nc b{font-size:11px;display:block}
.news .nc span{font-size:10px;color:var(--ink-3);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip{display:inline-block;font-size:10.5px;padding:3px 8px;border-radius:999px;border:1px solid var(--aqua-l);color:var(--aqua-d);font-weight:700;background:var(--paper)}
.prof{flex:1;position:relative;background:var(--aqua-l);overflow:hidden}
.prof::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.28)}
.wg{position:absolute;z-index:2;background:rgba(255,255,255,.88);border-radius:14px;padding:8px 11px;font-size:12px;color:var(--ink);box-shadow:0 2px 10px rgba(var(--hb-deep-rgb,62,67,96),.08)}
.wg b{display:block;font-size:17px;color:var(--aqua-d);letter-spacing:.02em}
.wg small{color:var(--ink-3);font-size:10px}
.wg.v{max-width:200px;font-size:11.5px;line-height:1.5}
.wg.v i{font-style:normal;font-size:10px;color:var(--aqua-d);font-weight:700;display:block}
.pf{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:0 16px 14px;text-align:center}
.pf .pav{width:84px;height:84px;border-radius:28px;margin:0 auto 8px;background:var(--paper);border:3px solid var(--paper);box-shadow:0 0 0 2px var(--gold);overflow:hidden;display:grid;place-items:center}
.pf .nm{font-size:18px;font-weight:700}
.pf .st{font-size:12.5px;color:var(--ink-2);margin-top:3px}
.pf .mu{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:11.5px;background:rgba(255,255,255,.88);border-radius:999px;padding:5px 12px;color:var(--ink)}
.pf .bts{display:flex;justify-content:center;gap:22px;margin-top:14px;font-size:11px;color:var(--ink-2)}
.pf .bts div i{display:block;font-style:normal;font-size:20px;margin-bottom:3px}
.edit-tools{display:flex;background:var(--paper);border-top:1px solid var(--line);padding:8px 4px 10px} /* 시안 .tb — 공통 껍데기 .tb(줄무늬 제목줄)와 이름이 겹쳐 edit-tools 로 */
.edit-tools div,.edit-tools button{flex:1;text-align:center;font-size:10px;color:var(--ink-2);border:0;background:transparent;cursor:pointer;padding:0}
.edit-tools div i,.edit-tools button i{display:block;font-style:normal;font-size:19px;margin-bottom:2px}
.edit-tools div.on,.edit-tools button[aria-current=page]{color:var(--aqua-d);font-weight:700}
.tray{background:var(--paper);padding:8px 12px 4px}
.tray .cats{display:flex;gap:12px;font-size:11px;color:var(--ink-3);padding-bottom:6px}
.tray .cats b{color:var(--aqua-d);border-bottom:2px solid var(--aqua-d);padding-bottom:3px}
.tray .grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.tray .grid div,.tray .grid button{aspect-ratio:1;display:grid;place-items:center;font-size:22px;background:var(--bg);border-radius:12px;border:0;cursor:pointer;padding:0;color:var(--ink)}
.tray .grid div.hw,.tray .grid button.hw{font-size:9px;color:var(--ink-2);text-align:center;line-height:1.2;background:var(--aqua-x)}
.tray .grid button[aria-pressed=true]{outline:2px solid var(--aqua-d);outline-offset:1px}

/* ── [+] 서랍 · 길게 누르기 메뉴 (새 부품 · 시안 .drawer 값) ── */
.plus-drawer{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px 12px calc(14px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}
.plus-drawer button{text-align:center;font-size:10px;color:var(--ink-2);padding:6px 0;border:0;background:transparent;cursor:pointer}
.plus-drawer button i{font-style:normal;display:block;font-size:22px;margin-bottom:3px}
.press-menu{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;background:rgba(var(--hb-deep-rgb,62,67,96),.22)}
.press-menu .sheet{width:100%;display:grid;gap:4px;padding:12px 12px calc(14px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:var(--paper)}
.press-menu .sheet p{margin:0 0 6px;padding:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-3);font-size:11px}
.press-menu .sheet button{min-height:44px;padding:0 12px;border:0;border-radius:12px;background:var(--bg);color:var(--ink);font-size:13.5px;text-align:left;cursor:pointer}

/* ── ⑤ 내 프로필 (카톡 프로필 문법 · 배경 위 위젯) — 대화상자 안 요소에 .prof/.wg/.pf 값 ── */
.profile-dialog[open]{display:flex;flex-direction:column}
.profile-stage{flex:1;min-height:0;background:var(--aqua-l)}
.profile-stage::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.28);pointer-events:none}
.profile-stage[data-background=night]::before{background:rgba(255,255,255,.06)}
.profile-topbar button{min-height:0;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.85);color:var(--ink);font-size:11.5px;font-weight:700}
.profile-topbar b{font-size:12px;font-weight:700}
.profile-widget{padding:8px 11px;border-radius:14px;background:rgba(255,255,255,.88);box-shadow:0 2px 10px rgba(var(--hb-deep-rgb,62,67,96),.08);color:var(--ink);font-size:12px}
.dday-widget{left:16px;top:64px;color:var(--aqua-d);font-size:17px;font-weight:700;letter-spacing:.02em}.dday-widget span{color:var(--ink-3);font-size:10px;font-weight:400}
.verse-widget{left:16px;right:auto;top:142px;max-width:200px;font-size:11.5px;line-height:1.5}.verse-widget b{color:var(--aqua-d);font-size:10px;font-weight:700}
.profile-sticker{right:22px;top:150px;width:auto;height:auto;padding:6px 9px;border-radius:14px;background:rgba(255,255,255,.88);font-size:22px}
.profile-person{inset:auto 16px 14px}
.profile-person>.avatar,#profileAvatar .avatar{width:84px;height:84px;border:3px solid var(--paper);border-radius:28px;background:var(--paper);box-shadow:0 0 0 2px var(--gold)}
.profile-person h2{margin-top:8px;font-size:18px;font-weight:700}
.profile-person p{margin-top:3px;color:var(--ink-2);font-size:12.5px;opacity:1}
.profile-stage[data-background=night] .profile-person p{color:var(--hb-point,#D0DFF0)}
.profile-music{margin-top:8px;padding:5px 12px;background:rgba(255,255,255,.88);color:var(--ink);font-size:11.5px}
.profile-actions{gap:22px;margin-top:14px}.profile-actions button{color:var(--ink-2);font-size:20px}.profile-actions span{font-size:11px}
.profile-stage[data-background=night] .profile-actions button{color:var(--hb-point,#D0DFF0)}
/* ⑤-2 꾸미기 모드 — 무대 위 그대로 + 도구줄(배경·스티커·디데이·말씀·상태명) */
.profile-dialog.editing .profile-stage{flex:none;height:46%}
.profile-dialog.editing .profile-topbar,.profile-dialog.editing .profile-music,.profile-dialog.editing .profile-actions{display:none}
.profile-dialog.editing .profile-person>.avatar,.profile-dialog.editing #profileAvatar .avatar{width:64px;height:64px;border-radius:22px}
.profile-dialog.editing .profile-person h2{font-size:15px}.profile-dialog.editing .profile-person p{font-size:11.5px}
.profile-editor{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;background:var(--paper)}
.editor-head{margin:0;min-height:44px;padding:6px 14px;border-bottom:1px solid var(--line);background:var(--paper)}
.editor-head button{min-height:0;padding:0;border-radius:0;background:transparent;color:var(--ink-2);font-size:12px;font-weight:400}
.editor-head b{font-size:12px;font-weight:700;color:var(--ink)}
.editor-head .editor-done{justify-self:end;padding:4px 10px;border-radius:999px;background:var(--aqua-d);color:#fff;font-weight:700}
.editor-panels{flex:1;min-height:0;overflow-y:auto;padding:12px 14px}
.editor-panel{display:grid;gap:10px}
.editor-panel label{display:grid;gap:5px;color:var(--ink-3);font-size:11px;font-weight:600}
.editor-panel p{margin:0;color:var(--ink-3);font-size:10.5px;line-height:1.6}
.editor-panel.tray{padding:0}
.editor-panel input,.editor-panel select,.editor-panel textarea{width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);font:inherit;font-size:13px}
.profile-editor .edit-tools{flex:none;padding-bottom:calc(10px + env(safe-area-inset-bottom))}

/* ── 폰(≤699) = 카톡 문법 · 런타임 요소에 시안 값 그대로 ── */
@media(max-width:699px){
  body{background:var(--paper,#fff)}
  .heldom{background:var(--paper)}
  /* 상단 = .top */
  .pane-head{min-height:0;display:flex;align-items:center;gap:10px;padding:8px 16px 10px;border-bottom:1px solid var(--line);background:var(--paper);backdrop-filter:none}
  .pane-head>div:first-child{flex:1}.pane-head h2{margin:0;color:var(--ink);font-size:19px;font-weight:800}
  .pane-actions{gap:10px}.pane-actions .icon-button{width:auto;height:auto;border-radius:0;background:transparent;color:var(--ink-2);font-size:17px}
  .search-box{margin:8px 16px;height:40px;border-radius:18px;background:var(--bg);border:0}
  .tab-view{padding:0 0 22px}
  /* 내 카드 = .me */
  .my-card{width:100%;margin:0;padding:12px 16px;border:0;border-bottom:8px solid var(--bg);border-radius:0;background:var(--paper)}
  .my-card .my-row{gap:12px}.my-card .avatar{width:56px;height:56px;border:0;border-radius:20px;background:var(--aqua-x)}
  .my-card h3{color:var(--ink);font-size:16px}.my-card p{margin-top:3px;color:var(--ink-3);font-size:12px}.my-card .heldom-number{color:var(--aqua-d);font-size:11px;font-weight:700}
  .language-badge{min-height:0;padding:1px 5px;border-radius:6px;background:var(--aqua-x);color:var(--aqua-d);font-size:9.5px;font-weight:700}
  /* 🌍 믿음의 동역자 줄 · ✦ HELD 도우미 칩 = .req */
  .helper-door{width:calc(100% - 32px);min-height:0;margin:10px 16px 0;padding:10px 12px;gap:8px;border:1.5px solid var(--aqua-l);border-radius:14px;background:var(--paper);color:var(--ink-2);font-size:12px}
  .helper-door>span{color:var(--ink-2);font-size:15px}.helper-door b{color:var(--aqua-d);font-size:12px}.helper-door small{color:var(--ink-3);font-size:12px}.helper-door i{color:var(--ink-3);font-size:11px}
  /* 예배이웃 소식 슬롯 = .news */
  .friend-news{margin:0}.friend-news .section-title{padding-top:12px}
  .friend-news-row{gap:10px;padding:8px 16px 10px}.news-person{width:84px}
  .news-person .avatar{width:52px;height:52px;margin:0 auto 4px;border:0;border-radius:18px;background:var(--aqua-x);box-shadow:0 0 0 2px var(--aqua-l)}
  .news-person b{margin-top:0;color:var(--ink);font-size:11px}.news-person small{color:var(--ink-3);font-size:10px}
  /* 구획 이름 = .cap */
  .section-title{min-height:0;padding:12px 16px 4px;color:var(--ink-3);font-size:10.5px;letter-spacing:.04em}.section-title b{color:var(--ink-3);font-size:10.5px;font-weight:400}
  /* 목록 = .item */
  .item-list{gap:0;grid-template-columns:minmax(0,1fr)} /* 긴 미리보기가 칸을 밀어내지 않게 */
  .list-item{min-height:0;display:flex;align-items:center;gap:12px;padding:9px 16px;border:0;border-radius:0;background:transparent;box-shadow:none}
  .list-item:hover,.list-item[aria-current=page]{border:0;background:var(--aqua-x);box-shadow:none}
  .list-item .avatar{width:44px;height:44px;border:0;border-radius:16px;background:var(--aqua-x);color:var(--ink);font-size:16px}
  .list-item .copy{flex:1;min-width:0}.list-item strong{display:flex;align-items:center;gap:6px;color:var(--ink);font-size:14px}.list-item small{margin-top:2px;color:var(--ink-3);font-size:12px}
  .list-item>div:last-child{flex:none}
  .list-item>div:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}
  .list-item time{padding:0;color:var(--ink-3);font-size:10.5px}
  .list-item .unread{min-width:18px;height:auto;margin:0;padding:1px 6px;border-radius:999px;background:var(--live);font-size:10px;font-weight:700;line-height:1.5}
  .favorite-button{width:28px;height:28px;font-size:15px}
  .room-filters{padding:6px 16px 2px}
  .empty-list{padding:28px 16px}
  /* 하단 탭 4 = .tabs */
  .rail{gap:0;padding:6px 4px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
  .rail button{min-height:0;gap:3px;border-radius:0;color:var(--ink-3)}.rail button i{font-size:20px}.rail button span{font-size:10px;font-weight:400}
  .rail button[aria-current=page]{background:transparent;color:var(--aqua-d)}.rail button[aria-current=page] span{font-weight:700}
  .rail button b{top:-2px;right:calc(50% - 20px);min-width:0;height:auto;padding:1px 5px;border-radius:999px;background:var(--live);font-size:9px;font-weight:700;line-height:1.5}
  /* 대화방 = .ctop · .chat · .msg · .inp */
  .chat-pane{background:var(--bg)}
  .chat-head{min-height:0;gap:10px;padding:8px 14px 10px;border-bottom:1px solid var(--line);background:var(--paper);backdrop-filter:none}
  .mobile-chat-back{width:auto;height:auto;padding:0 4px;background:transparent;color:var(--ink-2);font-size:20px}
  .chat-head .avatar{width:40px;height:40px;border:0;border-radius:14px;background:var(--aqua-x)}
  .chat-head>div:not(.avatar){flex:1;min-width:0}.chat-head h2{color:var(--ink);font-size:15px}.chat-head p{margin-top:2px;color:var(--ink-3);font-size:11px}
  .room-translate{width:auto;height:auto;margin-left:6px;padding:3px 7px;border:0;border-radius:999px;background:var(--aqua-x);color:var(--aqua-d);font-size:14px}
  .message-list{display:flex;flex-direction:column;gap:10px;padding:12px 12px 6px;background:var(--bg)}
  .day-divider{align-self:center;gap:0;margin:0;padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink-3);font-size:10.5px}.day-divider::before,.day-divider::after{content:none}
  .message{max-width:82%;margin:0;gap:8px;align-items:flex-end}.message.mine{align-self:flex-end}
  .message .message-avatar{width:34px;height:34px;align-self:flex-start;border:0;border-radius:12px;background:#E9E4D6;font-size:14px}
  .message .message-stack{max-width:none;min-width:0}.message .sender{margin:0 0 3px;color:var(--ink-2);font-size:11px}
  .bubble{padding:9px 12px;border:1px solid var(--held-bubbleLine,var(--line));border-radius:4px 16px 16px 16px;background:var(--held-bubbleThem,var(--paper));color:var(--held-bubbleThemInk,var(--ink));font-size:13.5px;line-height:1.5;box-shadow:none}
  .mine .bubble{border:0;border-radius:16px 4px 16px 16px;background:var(--held-bubbleMe,var(--aqua-d));color:var(--held-bubbleMeInk,#fff)}.mine .bubble{border:1px solid var(--held-bubbleLine,transparent)}/* 46c: 띠 색을 고르면 내 말에도 띠 */
  .bubble.sticker{padding:2px 4px;border:0;background:transparent;font-size:42px;line-height:1}
  .message-meta{color:var(--ink-3);font-size:9.5px}.message-meta .read{color:var(--aqua-d);font-weight:700}
  .bubble-translate{color:var(--aqua-d);font-size:9.5px}
  .composer{grid-template-columns:34px minmax(0,1fr) 34px 34px auto;align-items:center;gap:8px;padding:8px 10px 6px;border-top:1px solid var(--line);background:var(--paper)}
  .composer-tool{width:34px;height:34px;border:0;border-radius:50%;background:var(--aqua-x);color:var(--aqua-d);font-size:20px;font-weight:700}
  .composer-tool.g{border:1.5px solid var(--aqua-l);background:var(--paper);font-size:16px;font-weight:400}
  #heldyOpenHeldom{width:34px;height:34px;font-size:12px} /* 헬디 문(the-held-heldy.js 가 입력줄 끝에 붙임) */
  .composer textarea{min-height:36px;padding:9px 12px;border:0;border-radius:18px;background:var(--bg);color:var(--ink);font-size:13px}
  .send-button{width:34px;min-height:34px;padding:0;border-radius:50%;background:var(--aqua-d);font-size:15px}
  .sticker-drawer{padding:6px 12px;border-top:1px solid var(--line);background:var(--paper)}
  .composer-translation{border-top:1px dashed var(--aqua-l);background:var(--paper)}
  /* 설정 = .row2 · .tg */
  .settings-view{gap:0;padding:0}.setting-card{padding:12px 16px;border:0;border-radius:0;border-bottom:8px solid var(--bg);background:var(--paper)}
  .setting-toggle{min-height:0;padding:11px 0;border-top:1px solid var(--line);font-size:13px}.setting-toggle b{color:var(--ink);font-size:13px;font-weight:400}.setting-toggle small{color:var(--ink-3);font-size:11px}
  .setting-toggle input{appearance:none;-webkit-appearance:none;position:relative;width:36px;height:20px;margin:0;flex:none;border-radius:999px;background:var(--line);cursor:pointer}
  .setting-toggle input::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s}
  .setting-toggle input:checked{background:var(--aqua-d)}.setting-toggle input:checked::after{left:18px}
  .switch[aria-pressed=true]{background:var(--aqua-d)}
  .status-panel .primary-action,.dialog-primary{background:var(--aqua-d)}
}
/* 대화창 ☰(차단 등) = 🌐 옆 · PC 에서 margin-left:auto 가 둘로 갈라지지 않게 */
.chat-head #roomMenuButton{margin-left:6px}

/* 2026-09-25 슈아: 내 번호 QR */
.heldom-qr{margin-top:12px;display:flex;flex-direction:column;align-items:center;gap:6px}
.heldom-qr .qr{width:160px;height:160px;background:#fff;border-radius:14px;padding:8px}
.heldom-qr .qr svg{width:100%;height:100%;display:block}
.heldom-qr small{font-size:11.5px;color:var(--ink-2,#5b6b7c);text-align:center}
#profileHeldy{border:1.5px dashed rgba(var(--hb-soft-rgb,169,184,214),.6)}
