:root{color-scheme:light;--ink:#19372f;--muted:#62766f;--line:#dce7e0;--green:#12604d;--green-dark:#0c493a;--soft:#eaf5ed;--bg:#f4f8f4;--white:#fff;--red:#b03d3d;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.6}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:#17614e}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #68af85;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.35;letter-spacing:.01em}h1{font-size:clamp(1.6rem,3vw,2.2rem)}h2{font-size:1.35rem}h3{font-size:1.05rem}small,.small{font-size:.875rem}#app{min-height:100dvh}.loading{min-height:100dvh;display:grid;place-content:center;text-align:center;color:var(--muted);gap:12px}.brand-icon{width:38px;height:38px;display:inline-grid;place-items:center;border-radius:12px;background:var(--green);color:#c6ebc5;font-size:1.7rem;line-height:1}.loading .brand-icon{margin:auto}.shell{max-width:1380px;margin:auto;padding:24px 32px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:54px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-weight:750;letter-spacing:.04em}.brand-text{font-size:1.08rem}.top-actions{display:flex;align-items:center;gap:12px}.top-user{color:var(--muted);font-size:.875rem}.btn{border:1px solid transparent;border-radius:11px;padding:10px 16px;min-height:44px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none;line-height:1.3;transition:background .15s,border-color .15s}.btn-primary{background:var(--green);color:white}.btn-primary:hover{background:var(--green-dark)}.btn-outline{background:white;border-color:#cbded1;color:var(--ink)}.btn-outline:hover{background:#f0f7f1}.btn-ghost{background:transparent;color:var(--muted);padding-inline:10px}.btn-ghost:hover{background:#e8f1e9}.btn-small{min-height:36px;padding:7px 11px;font-size:.875rem}.btn-danger{color:var(--red);background:#fff;border-color:#efcdcd}.btn-line{background:#06c755;color:white;width:100%;padding:15px}.btn-line:hover{background:#05b54e}.surface{background:white;border:1px solid var(--line);border-radius:20px;box-shadow:0 6px 20px rgba(24,65,43,.035)}.welcome-wrap{max-width:1120px;margin:36px auto;min-height:calc(100dvh - 150px);display:grid;grid-template-columns:1fr 430px;align-items:center;gap:70px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;color:#58876b;font-size:.75rem;font-weight:800;margin-bottom:18px}.hero h1{font-size:clamp(2.1rem,5vw,3.5rem);line-height:1.35;letter-spacing:.06em}.hero p{max-width:500px;color:var(--muted);margin-top:23px;line-height:1.95}.hero-art{margin-top:38px;display:flex;gap:12px;align-items:center}.hero-bubble{background:#e5f2e8;border:1px solid #d2e7d8;border-radius:16px;padding:12px 16px;font-size:.9rem;color:#386451}.hero-dot{width:46px;height:46px;background:#d5ead8;border-radius:50%;display:grid;place-items:center;color:var(--green);font-weight:800}.auth-card{padding:34px}.auth-card h2{font-size:1.42rem}.auth-card p{color:var(--muted);margin-top:10px;line-height:1.8}.auth-card .btn-line{margin-top:26px}.notice{background:#f3f8f3;border:1px solid #e0ebe0;border-radius:12px;padding:14px 16px;color:#5d7365;font-size:.875rem;line-height:1.75}.auth-card .notice{margin-top:20px}.field{display:grid;gap:7px;margin-top:18px}.field label{font-size:.9rem;font-weight:700}.field input,.field textarea,.input{width:100%;border:1px solid #cfddd3;border-radius:10px;padding:11px 12px;background:white;color:var(--ink)}.field textarea{min-height:95px;resize:vertical}.field-help{color:var(--muted);font-size:.8rem}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:23px}.main-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;margin-top:32px;align-items:start}.sidebar{position:sticky;top:20px}.nav-label{font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#81948a;margin:0 0 10px 12px}.nav{display:grid;gap:5px}.nav-button{border:0;text-align:left;background:transparent;color:#526b5e;padding:11px 13px;border-radius:11px;font-weight:700;display:flex;gap:11px;align-items:center;width:100%}.nav-button:hover{background:#e9f2e9}.nav-button.active{background:#dfeee2;color:var(--green)}.nav-icon{font-size:1.1rem;width:22px;text-align:center}.side-note{border-top:1px solid var(--line);margin-top:26px;padding:18px 12px;color:var(--muted);font-size:.8rem}.content{min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}.page-heading p{color:var(--muted);margin-top:7px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-top p{color:var(--muted);font-size:.875rem}.group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.group-card{padding:20px;display:flex;flex-direction:column;gap:15px;min-height:170px}.group-card h3{margin-top:4px}.group-card p{color:var(--muted);font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere}.card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}.group-symbol{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:#e9f4e9;color:var(--green);font-size:1.15rem;font-weight:800}.chip{font-size:.75rem;font-weight:700;padding:4px 9px;border-radius:999px;color:#3b7555;background:#eaf5eb}.chip.pending{color:#946321;background:#fdf4de}.chip.off{color:#757d79;background:#eff2ef}.empty{padding:40px 24px;text-align:center;color:var(--muted)}.empty strong{display:block;color:var(--ink);font-size:1rem;margin-bottom:6px}.banner{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:18px 20px;margin-bottom:22px;background:#e9f4ea;border:1px solid #d6eadb;border-radius:16px}.banner strong{display:block}.banner p{font-size:.85rem;color:var(--muted);margin-top:2px}.chat-surface{overflow:hidden;min-height:70vh;display:flex;flex-direction:column}.chat-header{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px}.chat-heading{flex:1;min-width:0}.chat-heading p{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}.messages{padding:22px;display:flex;flex-direction:column;gap:16px;min-height:360px;max-height:57vh;overflow:auto;background:#f9fbf9}.message{max-width:min(82%,620px);align-self:flex-start}.message.mine{align-self:flex-end}.message-meta{font-size:.76rem;color:#70847a;display:flex;gap:8px;align-items:center;margin:0 5px 5px;flex-wrap:wrap}.message.mine .message-meta{justify-content:flex-end}.bubble{padding:12px 15px;background:#fff;border:1px solid #e2ebe3;border-radius:4px 15px 15px 15px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}.mine .bubble{background:#e2f1e4;border-color:#d4e9d7;border-radius:15px 4px 15px 15px}.message-delete{border:0;background:none;padding:0;color:#8c9c92;text-decoration:underline;font-size:.75rem}.attach{display:block;background:#f3f7f3;border-radius:9px;padding:9px 11px;margin-top:8px;font-size:.85rem;white-space:normal;overflow-wrap:anywhere}.attach img{max-width:100%;max-height:250px;border-radius:8px;display:block;margin-bottom:7px}.composer{padding:15px 18px;border-top:1px solid var(--line);display:grid;gap:10px}.composer textarea{width:100%;min-height:72px;resize:vertical;border:1px solid #d5e1d8;border-radius:11px;padding:10px 12px}.composer-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.file-label{font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}.file-input{max-width:235px;font-size:.8rem}.admin-panel{padding:22px}.admin-panel+.admin-panel{margin-top:16px}.admin-row{border-top:1px solid #e7eee8;padding:16px 0;display:flex;gap:14px;justify-content:space-between;align-items:center}.admin-row:first-of-type{border-top:0}.admin-row .muted{font-size:.85rem}.row-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.muted{color:var(--muted)}.stack{display:grid;gap:12px}.section-gap{margin-top:28px}.settings-card{padding:24px}.status-card{text-align:center;max-width:550px;margin:80px auto;padding:36px}.status-card .group-symbol{margin:0 auto 18px;width:54px;height:54px}.status-card p{color:var(--muted);margin:12px 0 22px}.toast{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:20;background:#193a2d;color:#fff;border-radius:12px;padding:11px 17px;max-width:90vw;box-shadow:0 8px 20px #0002}.toast.error{background:#913838}.dialog-overlay{position:fixed;inset:0;background:#10281c80;display:grid;place-items:center;padding:20px;z-index:10}.dialog{width:min(100%,500px);padding:25px;max-height:90vh;overflow:auto}.dialog p{margin-top:8px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:750px){.shell{padding:16px 16px 30px}.top-user{display:none}.welcome-wrap{display:flex;flex-direction:column;align-items:stretch;gap:30px;margin:42px auto;min-height:0}.hero h1{font-size:2.2rem}.hero-art{margin-top:25px}.auth-card{padding:25px}.main-layout{display:block;margin-top:24px}.sidebar{position:static;overflow:auto;margin:0 -16px 22px;padding:0 16px}.nav{display:flex;min-width:max-content}.nav-label,.side-note{display:none}.nav-button{width:auto;white-space:nowrap;padding:9px 13px}.page-heading{align-items:flex-start;flex-direction:column;gap:12px}.page-heading h1{font-size:1.65rem}.group-grid{grid-template-columns:1fr}.group-card{min-height:0}.chat-surface{min-height:70dvh}.chat-header{padding:14px}.messages{padding:16px;max-height:55dvh;min-height:42dvh}.message{max-width:90%}.admin-row{align-items:flex-start;flex-direction:column}.row-actions{justify-content:flex-start}.banner{align-items:flex-start;flex-direction:column}.status-card{margin:45px auto}.composer-actions{align-items:flex-end}.file-input{max-width:190px}}
.wide-form-button{width:100%;margin-top:24px}.actions-left{justify-content:flex-start}.note-spaced{margin-top:18px}
.history-load{text-align:center;margin-bottom:6px}
@media(max-width:750px){.chat-header{flex-wrap:wrap}.chat-heading{flex:1 1 calc(100% - 135px)}.chat-header .chat-heading~.btn{margin-left:auto}.chat-header .chat-heading~.btn+.btn{margin-left:0}}
