:root{--ink:#1B1D2A;--ink2:#565A6B;--ink3:#868B9C;--line:#E4E6EE;--bg:#fff;--fill:#F2F3F8;--blue:#2F62E0;--blue-d:#2450BF;--blue-s:#ECF1FF;--green:#157F56;--green-s:#ECF8F2;--orange:#BF540A;--orange-s:#FFF4E8;--red:#CF3347;--red-s:#FFF0F1;--cream:#FFF8E3}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{font:16px/1.45 -apple-system,'Segoe UI',Roboto,system-ui,sans-serif;color:var(--ink);background:#E4E7F0;display:flex;justify-content:center}
#app{width:100%;max-width:460px;height:100%;background:var(--bg);display:flex;flex-direction:column;position:relative;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:left}
input,textarea,select{font:inherit;color:inherit;width:100%;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
input:focus,textarea:focus,select:focus{outline:3px solid #CCDAFB;border-color:var(--blue)}
textarea{min-height:96px;resize:vertical}
h1,h2,h3{line-height:1.2}
h1{font-size:1.6rem}h2{font-size:1.25rem}h3{font-size:1.05rem}
.scroll{flex:1;overflow-y:auto;padding:18px 18px 28px;display:flex;flex-direction:column;gap:14px}
.top{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);min-height:56px}
.top h2{flex:1}
.back{padding:8px 10px;border-radius:10px;color:var(--blue);font-weight:600}
.btn{display:block;width:100%;text-align:center;background:var(--blue);color:#fff;font-weight:700;padding:14px 16px;border-radius:14px}
.btn:active{background:var(--blue-d)}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn.sec{background:var(--blue-s);color:var(--blue)}
.btn.ghost{background:none;color:var(--ink2);font-weight:600}
.btn.danger{background:var(--red-s);color:var(--red)}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:600;font-size:.92rem}
.hint{color:var(--ink2);font-size:.9rem}
.why{color:var(--ink3);font-size:.85rem;text-align:center;margin-top:-6px}
.card{border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px;background:#fff}
.card.tap{cursor:pointer}
.row{display:flex;gap:12px;align-items:center}
.grow{flex:1;min-width:0}
.av{width:44px;height:44px;border-radius:50%;background:var(--fill);object-fit:cover;flex:none;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--ink2)}
.av.big{width:96px;height:96px;font-size:2rem}
.pill{display:inline-block;font-size:.8rem;font-weight:700;padding:3px 10px;border-radius:99px;background:var(--fill);color:var(--ink2)}
.pill.g{background:var(--green-s);color:var(--green)}.pill.o{background:var(--orange-s);color:var(--orange)}.pill.b{background:var(--blue-s);color:var(--blue)}
.tabs{display:flex;border-top:1px solid var(--line);background:#fff;padding-bottom:env(safe-area-inset-bottom)}
.tabs button{flex:1;text-align:center;padding:12px 4px;font-size:.82rem;font-weight:600;color:var(--ink3)}
.tabs button.on{color:var(--blue)}
.tabs .ico{display:block;font-size:1.3rem;line-height:1.2}
.empty{text-align:center;color:var(--ink2);padding:36px 12px;display:flex;flex-direction:column;gap:12px;align-items:center}
.toast{position:absolute;top:12px;left:12px;right:12px;background:var(--ink);color:#fff;padding:12px 14px;border-radius:12px;z-index:9;font-size:.95rem}
.toast.err{background:var(--red)}
.banner{background:var(--cream);border:1px solid #F1E1AE;border-radius:12px;padding:10px 12px;font-size:.88rem}
.msgs{display:flex;flex-direction:column;gap:8px}
.m{max-width:82%;padding:10px 12px;border-radius:16px;background:var(--fill);align-self:flex-start;white-space:pre-wrap;word-wrap:break-word}
.m.me{background:var(--blue);color:#fff;align-self:flex-end}
.compose{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line)}
.compose textarea{min-height:44px;height:44px;resize:none}
.compose .btn{width:auto;padding:0 16px}
.check{display:flex;gap:10px;align-items:flex-start}
.check input{width:22px;height:22px;margin-top:2px;flex:none;accent-color:var(--blue)}
.sp{height:6px}
.logo{font-weight:800;font-size:1.5rem;color:var(--blue);letter-spacing:-.02em}
.seg{display:flex;background:var(--fill);border-radius:12px;padding:4px}
.seg button{flex:1;text-align:center;padding:9px;border-radius:9px;font-weight:600;color:var(--ink2)}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
