:root{--bg: #f3f5fb;--surface: #ffffff;--ink: #0f172a;--muted: #64748b;--line: #e2e8f0;--accent: #4f46e5;--accent-press: #4338ca;--accent-soft: #eef2ff;--danger: #9f1239;--danger-bg: #fff1f2;--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .06);color:var(--ink);background:var(--bg);font-family:Segoe UI,PingFang HK,Noto Sans TC,ui-sans-serif,system-ui,sans-serif;line-height:1.5}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(900px 420px at 50% -80px,#e0e7ff 0%,transparent 70%),var(--bg)}button,input,select,textarea{font:inherit;color:inherit}button,.button{border:1px solid transparent;background:var(--accent);color:#fff;border-radius:10px;padding:.5rem .9rem;min-height:40px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-weight:600;box-shadow:0 1px 1px #4f46e533}button:hover,.button:hover{background:var(--accent-press)}button.secondary,a.secondary,.button.secondary{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:none}button.secondary:hover,a.secondary:hover,.button.secondary:hover{background:#f8fafc;border-color:#cbd5e1}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #a5b4fc;outline-offset:2px}a{color:var(--accent)}.app{max-width:980px;margin:0 auto;padding:1.25rem 1rem 3rem}.top{position:sticky;top:.75rem;z-index:5;display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1.25rem;padding:.55rem .7rem .55rem .85rem;background:#ffffffdb;border:1px solid rgba(226,232,240,.9);border-radius:16px;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:.7rem;color:var(--ink);font-weight:700;text-decoration:none;min-width:0}.mark{width:2.5rem;height:2.5rem;border-radius:50%;object-fit:cover;display:block;flex:none;background:transparent}.logo{width:5.75rem;height:5.75rem;border-radius:50%;object-fit:cover;display:block;margin-inline:auto;background:transparent}.brand>span{min-width:0}.brand-name{display:block;line-height:1.15;overflow-wrap:anywhere}.brand-sub{display:block;color:var(--muted);font-size:.82rem;font-weight:500}.nav{display:flex;gap:.2rem;flex-wrap:wrap;align-items:center;background:#f8fafc;border-radius:999px;padding:.2rem}.nav a,.nav button{text-decoration:none;color:var(--muted);background:transparent;border:0;box-shadow:none;border-radius:999px;min-height:34px;padding:.25rem .75rem;font-weight:600}.nav a:hover,.nav button:hover{color:var(--ink);background:#fff}.nav a.active{background:var(--ink);color:#fff}.stack{display:grid;gap:.9rem}.stack>button.secondary,.stack>a.secondary,.row>button,.row>.button{justify-self:start;width:auto}.stack>button.stretch,.stack>a.stretch{width:100%;justify-self:stretch}.section-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.section-head h2{min-width:0}.guide{margin:0;overflow-wrap:anywhere}.danger-zone{border:1px solid #fecdd3;background:var(--danger-bg);border-radius:12px;padding:.85rem .9rem}.danger-zone h3{color:var(--danger);font-size:1rem}.danger-zone p{overflow-wrap:anywhere}button.danger{background:#fff;color:var(--danger);border:1px solid #fda4af;box-shadow:none}button.danger:hover{background:#ffe4e6;color:var(--danger)}.subhead{margin:.35rem 0 0;font-size:1rem}.pair{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.pair>button{width:100%}.field-hint{margin:.35rem 0 0}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:1.05rem 1.1rem;box-shadow:var(--shadow)}.row{display:flex;gap:.6rem;flex-wrap:wrap;align-items:end}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;min-width:0}.grid .subhead{grid-column:1 / -1}.when{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem .6rem;align-items:end}label{display:grid;gap:.35rem;font-size:.9rem;font-weight:600;color:#334155;min-width:0}input,select,textarea{width:100%;max-width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:.5rem .7rem;background:#fff;min-height:42px;font-weight:500}input[type=date],input[type=time],input[type=datetime-local]{height:42px;min-height:42px;max-height:42px;line-height:normal;padding-top:0;padding-bottom:0;text-align:left}input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value,input[type=datetime-local]::-webkit-date-and-time-value{text-align:left;margin:0;min-height:0}input[type=date]::-webkit-datetime-edit,input[type=time]::-webkit-datetime-edit,input[type=datetime-local]::-webkit-datetime-edit{min-width:0;padding:0}@supports (-webkit-touch-callout: none){input[type=date],input[type=time]{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:42px;min-height:42px;max-height:42px;line-height:42px;padding:0 2.2rem 0 .7rem;background-color:#fff;background-repeat:no-repeat;background-position:right .65rem center;background-size:1.05rem}input[type=date]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E")}input[type=time]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E")}}input:focus,select:focus,textarea:focus{border-color:#818cf8;outline:none;box-shadow:0 0 0 3px #6366f126}textarea{min-height:7rem;resize:vertical}.muted{color:var(--muted);font-size:.92rem;font-weight:500}.card.stack>.muted{margin:0}.banner{border:1px solid #fecdd3;background:var(--danger-bg);color:var(--danger);border-radius:12px;padding:.7rem .85rem;margin:0}.banner.working{position:sticky;top:.4rem;z-index:6;border-color:#c7d2fe;background:#eef2ff;color:#3730a3}.app.busy button,.app.busy input,.app.busy select,.app.busy textarea{pointer-events:none}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:.15rem .6rem;font-size:.78rem;font-weight:700;letter-spacing:.01em;background:#f1f5f9;color:#475569;white-space:nowrap}.pill.proposed,.pill.pending,.pill.pending.payment{background:#fef3c7;color:#92400e}.pill.confirmed,.pill.paid{background:#dcfce7;color:#166534}.pill.cancelled,.pill.expired{background:#f1f5f9;color:#64748b}.pill.cancelled.mark{background:#fee2e2;color:#b91c1c}h1,h2,h3{font-weight:720;margin:0;letter-spacing:-.02em}h1{font-size:2rem}h2{font-size:1.05rem}.spread{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start}.check{display:flex;gap:.45rem;align-items:center;font-weight:550}.check input{width:1rem;min-width:1rem;min-height:0;accent-color:var(--accent)}.home,.auth{min-height:100vh;display:grid;align-content:center;max-width:520px}.eyebrow{margin:0;color:var(--accent);font-size:.78rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.hero{text-align:center}.hero h1{font-size:2.4rem}.hero p{margin:0}.hero form,.auth form{text-align:left}.auth h1{text-align:center}.product{margin:0;text-align:center;font-weight:750;letter-spacing:-.03em}.loading{min-height:40vh;display:grid;place-items:center;color:var(--muted);font-weight:600}.tool-row{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.tool-row button{width:100%}.class-list{gap:.55rem}.class-card{padding:.7rem .8rem;display:grid;gap:.35rem}.class-card.selected,.student-card.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.student-card{display:grid;gap:.55rem;cursor:pointer}.student-rule{display:block;width:100%;height:0;border:0;border-top:1px solid var(--line);margin:.35rem 0}.contact-line{display:flex;align-items:center;gap:.35rem;min-width:0}.contact-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-email{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;text-decoration:none}button.text-link{background:none;color:var(--accent);border:0;box-shadow:none;min-height:0;padding:0;font-weight:600;text-decoration:underline;display:inline}button.text-link:hover{background:none;color:var(--accent-press)}.site-url{min-width:0;overflow-wrap:anywhere}.site-preview{gap:.45rem}.site-kicker{margin:0;color:var(--muted);font-size:.78rem;font-weight:650}.site-title{margin:0;font-weight:700;line-height:1.3;overflow-wrap:anywhere}.storage-line{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .8rem;margin:0}.storage-line a{font-weight:650}.student-actions{display:grid;gap:.4rem}.student-actions>button{width:100%}button.icon-quiet,a.icon-quiet{width:2rem;min-width:2rem;height:2rem;min-height:2rem;padding:0;border-radius:999px;background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none;flex:none;text-decoration:none}button.icon-quiet:hover,a.icon-quiet:hover{background:#f8fafc;color:var(--ink);border-color:#cbd5e1}button.icon-quiet.copied,button.icon-quiet.copied:hover{color:#15803d;border-color:#86efac}a.icon-quiet.whatsapp,a.icon-quiet.whatsapp:hover{color:#128c7e}.card-preview{cursor:pointer}.card-actions{display:grid;gap:.4rem}.card-actions>button,.card-actions>a.button{width:100%}.card-actions p{margin:0;overflow-wrap:anywhere}.member-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.member-row>button{width:auto;flex:none}.class-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}.seat-label{display:inline-flex;align-items:center;border-radius:999px;padding:.15rem .6rem;font-size:.78rem;font-weight:700;background:#cffafe;color:#0e7490;white-space:nowrap}.tag.quiet{background:#f1f5f9;color:#475569;margin:0;font-size:.78rem;font-weight:700}.pay-choices{display:grid;gap:.4rem}button.pay-choice{width:100%;justify-content:flex-start;text-align:left;background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none;font-weight:650}button.pay-choice:hover{background:#f8fafc;color:var(--ink)}button.pay-choice[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--ink);box-shadow:0 0 0 1px var(--accent)}.pay-note{margin:0;font-size:.92rem;line-height:1.45}.class-line{display:flex;justify-content:space-between;align-items:center;gap:.6rem}.class-when,.class-seats{color:var(--muted);font-size:.78rem;font-weight:700;white-space:nowrap}.class-time{font-size:1.28rem;font-weight:750;letter-spacing:-.03em;line-height:1.1}.class-name{font-weight:700}.class-name .tag{margin-left:.4rem;font-weight:550}.class-desc{margin:0;color:var(--muted);font-size:.8rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.class-actions{display:flex;align-items:center;gap:.35rem;flex:none}.class-go,a.class-go{min-height:32px;padding:.15rem .7rem;font-size:.82rem;border-radius:8px;white-space:nowrap}button.thin{width:100%;min-height:30px;padding:.1rem .5rem;background:transparent;color:var(--muted);border:1px dashed #cbd5e1;box-shadow:none;font-size:.8rem;font-weight:650}button.thin:hover{background:#fff;color:var(--ink)}button.fav{width:100%;justify-content:space-between;background:var(--accent-soft);color:var(--ink);box-shadow:none;font-weight:650}button.fav:hover{background:#e0e7ff}.copy-corner{display:flex;align-items:flex-start;justify-content:flex-start;gap:.6rem}.copy-corner .copy-help{flex:1;min-width:0;margin:0}.copy-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.45rem;align-items:end;min-width:0}.copy-range input[type=date]{width:100%;min-width:0;font-size:.78rem;padding-left:.3rem;padding-right:.15rem}.inset{background:var(--bg);border-radius:10px;padding:.55rem .65rem;display:grid;gap:.2rem;min-width:0}.inset p{margin:0;overflow-wrap:break-word}.inset-next{display:grid;gap:.15rem;margin-top:.45rem}.tag-field{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;min-height:40px;padding:.35rem;border:1px solid var(--line);border-radius:10px;background:#fff}.tag-field input{border:0;width:auto;min-width:6rem;min-height:0;flex:1;padding:.15rem .2rem;background:transparent;box-shadow:none}.tag-field input:focus{outline:none;border-color:transparent;box-shadow:none}.tags{display:flex;flex-wrap:wrap;gap:.35rem}.tag{display:inline-flex;align-items:center;gap:.1rem;background:var(--accent-soft);border-radius:999px;padding:.05rem .55rem;font-size:.85rem;line-height:1.6}.tag button{min-height:0;width:1.3rem;height:1.3rem;padding:0;background:transparent;color:var(--muted);box-shadow:none;border-radius:999px}.tag button:hover{background:#e0e7ff;color:var(--ink)}.tag-suggest{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.35rem}.tag-suggest button{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none;min-height:32px;padding:.15rem .65rem}.copy-keep{white-space:nowrap}.copy-day{display:grid;gap:.1rem}.copy-day+.copy-day{margin-top:.55rem}.copy-day-date{font-weight:700}.copy-existing{color:#1d4ed8}.copy-overlap{color:#b91c1c;text-decoration:line-through}.editor>button,.copy-block>button[type=submit],.copy-block>button.wide{width:100%}button.help{width:1.7rem;min-width:1.7rem;height:1.7rem;min-height:1.7rem;padding:0;border-radius:999px;background:#eef2ff;color:#3730a3;border-color:#c7d2fe;box-shadow:none;font-weight:750;flex:none}button.help:hover{background:#e0e7ff;color:#312e81}.copy-help{margin:0}.notice-body{margin:0;white-space:pre-wrap}.editor textarea{min-height:4.5rem}.class-card>.editor{margin-top:0}.class-credit{color:var(--ink);font-size:.82rem;font-weight:750;white-space:nowrap}.card-edit{display:flex;justify-content:flex-end}button.icon-btn{width:2rem;min-width:2rem;height:2rem;min-height:2rem;padding:0;border-radius:999px;background:#fff;color:#4338ca;border:1px solid #c7d2fe;box-shadow:none}button.icon-btn:hover{background:#eef2ff;color:#312e81}.person-list{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:.35rem;width:100%;min-width:0}.person-label{flex:0 0 auto;max-width:100%;padding:.12rem .55rem;border-radius:999px;background:var(--accent-soft);color:#312e81;font-size:.82rem;font-weight:650;line-height:1.35;overflow-wrap:anywhere}.profile-meta{margin:0;color:var(--muted);font-size:.82rem;line-height:1.25;overflow-wrap:anywhere}.logout-block{display:grid;gap:.45rem}.site-footer{margin-top:1.5rem;color:var(--muted);font-size:.82rem;text-align:center}.site-footer p{margin:.15rem 0}.legal-links{display:flex;justify-content:center;gap:.9rem;margin:0;font-size:.78rem}.legal-links a{color:var(--muted);font-weight:500;text-decoration:underline;text-underline-offset:.15em}.legal{max-width:720px}.legal-home{margin:0}.legal-copy h1{font-size:1.7rem}.legal-copy h2{font-size:1.02rem;margin-top:.35rem}.legal-copy p{margin:0}.legal-copy .en{color:var(--muted);font-size:.92rem}@media(max-width:700px){.grid{grid-template-columns:minmax(0,1fr)}.top{align-items:stretch;flex-direction:column;top:0;border-radius:14px}.nav{width:100%}h1,.hero h1{font-size:1.8rem}}
