:root{--ink:#50534f;--muted:#81857f;--line:#e9eae5;--paper:#fff;--soft:#fafaf8;--orange:#a66642;--apricot:#fbefe3;--sage:#eef2e7;--purple:#f2ebf6;--radius:16px;--danger:#a84949}*{box-sizing:border-box}body{margin:0;background:#f7f8f5;color:var(--ink);font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-weight:400}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button,a,input,textarea,select{outline-offset:4px}a{color:inherit;text-decoration:none}button{cursor:pointer;background:white;border:1px solid #dedfd9;border-radius:12px;padding:9px 16px;min-height:44px}button:hover,a.row:hover{background:var(--soft)}button:disabled{opacity:.5;cursor:wait}button.primary,.primary{background:var(--apricot);border-color:transparent;color:#925b39}button.danger{color:var(--danger)}input,textarea,select{width:100%;border:1px solid #dddfd8;border-radius:12px;background:white;padding:12px 13px;min-height:46px;font-size:16px}textarea{resize:vertical;min-height:110px}input[type=checkbox]{width:auto;min-height:0}label{display:block;font-size:13px;margin:17px 0 5px;color:#777c74}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1.4;font-weight:450}h2{font-size:18px;font-weight:450}h3{font-size:16px;font-weight:450}small,.small{font-size:12px}.muted{color:var(--muted)}.light{color:#9a9d97}.flex{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.gap{height:20px}.tag{display:inline-block;border-radius:8px;background:var(--sage);padding:2px 8px;font-size:12px;white-space:nowrap}.tag.purple{background:var(--purple)}.tag.orange{background:var(--apricot)}.tag.grey{background:#f1f2ee}.tag.red{background:#faeeee;color:var(--danger)}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.icon.big{width:28px;height:28px}.phone{max-width:440px;min-height:100dvh;margin:auto;background:white;padding:24px 20px calc(96px + env(safe-area-inset-bottom))}.phone.secondary{padding-bottom:110px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:10px}.topbar h1{font-size:22px}.iconbutton{border:0;padding:6px;background:transparent;min-width:40px}.hero{margin:34px 0 22px;font-size:27px;line-height:1.55;font-weight:400}.composer{border:1px solid #e0e1dc;border-radius:18px;padding:14px}.composer textarea{border:0;padding:0;min-height:66px;background:transparent}.composer .send{border:0;border-radius:50%;height:40px;min-height:40px;width:40px;padding:8px;background:var(--apricot);color:var(--orange)}.chips{display:flex;gap:8px;overflow:auto;padding:4px 0 10px;scrollbar-width:none}.chip{border:1px solid var(--line);border-radius:24px;padding:7px 13px;white-space:nowrap;font-size:13px;min-height:36px}.chip.active,.chip.apricot{background:var(--apricot);border-color:transparent}.chip.sage{background:var(--sage);border-color:transparent}.chip.purple{background:var(--purple);border-color:transparent}.section{margin-top:26px}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.sectionhead a{font-size:12px;color:var(--muted)}.row{display:flex;align-items:center;gap:12px;padding:17px 2px;border-bottom:1px solid var(--line)}.row p{font-size:13px;color:var(--muted);margin-top:4px}.row .chevron{margin-left:auto;color:#93978e}.card{border:1px solid var(--line);border-radius:var(--radius);padding:17px;margin:12px 0}.card.tint{border:0;background:#fbf8f3}.card.lavender{background:#faf7fc}.card.sage{background:#f7f9f3}.card p{margin-top:8px}.toolbar{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.toolbar button{flex:1;white-space:nowrap}.bottomnav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:440px;width:100%;display:flex;justify-content:space-around;background:#ffffffed;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:10px 5px calc(10px + env(safe-area-inset-bottom));z-index:10}.bottomnav a{display:flex;flex-direction:column;align-items:center;font-size:12px;gap:3px;min-width:64px;color:#898d85}.bottomnav a.active{color:var(--orange)}.stickyactions{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:440px;background:#fffffff5;border-top:1px solid var(--line);padding:12px 20px calc(12px + env(safe-area-inset-bottom));display:flex;gap:10px;z-index:10}.stickyactions>*{flex:1;text-align:center}.stats{display:flex;gap:10px;margin:14px 0}.stat{flex:1;text-align:center;padding:12px 6px}.stat strong{display:block;font-size:25px;font-weight:450;margin-top:4px}.avatar{height:56px;width:56px;background:var(--apricot);border-radius:50%;display:grid;place-items:center;font-size:24px}.date{background:var(--apricot);border-radius:12px;min-width:57px;text-align:center;padding:9px 6px;font-size:13px}.date strong{display:block;font-size:23px;font-weight:400}.line{border-top:1px solid var(--line);margin:18px 0}.stage{display:flex;margin:23px 0;gap:4px}.stage span{flex:1;font-size:11px;text-align:center;border-top:2px solid var(--line);padding-top:8px;color:var(--muted)}.stage span.current{border-color:#b5c497;color:#677b4c}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:20px 0}.tabs a{padding:8px 2px}.tabs a.active{border-bottom:2px solid #b48161}.message{white-space:pre-wrap;padding:14px;background:var(--soft);border-radius:14px;margin:12px 0}.message.user{background:var(--apricot);margin-left:35px}.statusline{font-size:13px;padding:10px;border-left:2px solid #c4cfb2;margin:10px 0}.empty{text-align:center;padding:40px 15px;color:var(--muted)}.errorbox{background:#faf0ed;color:#934e3e;padding:14px;border-radius:12px;margin:15px 0}.notice{background:#f7f7f2;font-size:12px;padding:9px 12px;border-radius:9px;color:#7a7e73;margin:10px 0}.rich{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.progress{height:4px;border-radius:3px;background:#eceee8;margin:12px 0}.progress i{display:block;height:100%;background:#bacda5}.course-hero{height:120px;background:var(--purple);border-radius:16px;display:grid;place-items:center;font-size:22px;color:#84728e}.field-error{color:var(--danger);font-size:13px}.loading{text-align:center;padding:70px 0;color:var(--muted)}.admin{display:flex;min-height:100dvh;background:#fcfcfa}.sidebar{width:220px;position:fixed;inset:0 auto 0 0;padding:25px 16px;border-right:1px solid var(--line);background:#fff;overflow:auto}.sidebar h2{font-size:20px;padding:0 12px 26px}.sidebar a{display:flex;align-items:center;gap:10px;padding:11px 13px;margin:3px 0;border-radius:11px;font-size:14px}.sidebar a.active{background:var(--apricot);color:#9a6645}.adminmain{margin-left:220px;padding:30px 36px;width:calc(100% - 220px)}.adminhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.admin .card{background:white;margin:0}.admin .stat{text-align:left}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff;margin-top:18px}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-weight:450;color:#83877e;background:#fafbf7}td,th{padding:15px;border-bottom:1px solid var(--line);vertical-align:top}td button{font-size:12px;min-height:32px;padding:5px 10px}.adminform{max-width:850px}.adminform .grid{gap:0 20px}.adminform textarea{min-height:150px}.span2{grid-column:1/-1}.admin .rich{max-width:900px}.admin .stats{margin:0}.badgecount{font-size:12px;background:var(--purple);border-radius:6px;padding:1px 6px}.gallery{padding:30px;max-width:1300px;margin:auto}.gallerygrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:15px}.gallery a{display:block;border:1px solid var(--line);background:white;border-radius:14px;padding:18px}.gallery .num{font-size:12px;color:var(--orange)}.previewbar{position:sticky;top:0;background:#fbefe3;padding:5px 10px;font-size:11px;z-index:30;text-align:center}.login{max-width:440px;margin:10vh auto;background:white;padding:30px;border-radius:18px}.upload{border:1px dashed #d9ddd0;padding:20px;border-radius:14px}.w100{width:100%}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#53594f;color:white;padding:10px 20px;border-radius:12px;z-index:100;display:none;max-width:90%}video{width:100%;max-height:400px;background:#f4f4ef}.check{display:flex;align-items:flex-start;gap:10px;font-size:13px}.check input{margin-top:6px}.markdown h2{margin-top:20px}.pilllink{font-size:12px;border:1px solid var(--line);padding:6px 10px;border-radius:9px}.qrlink{word-break:break-all;padding:12px;background:var(--soft);border-radius:10px;font-size:12px}@media(max-width:800px){.sidebar{width:160px;padding:16px 8px}.sidebar h2{font-size:16px}.sidebar a{font-size:12px;padding:10px 8px}.adminmain{margin-left:160px;width:calc(100% - 160px);padding:20px 16px}.grid.four,.grid{grid-template-columns:1fr}.adminhead{align-items:flex-start;gap:10px}.adminhead .toolbar{margin:0}}@media print{.bottomnav,.stickyactions,.sidebar,.previewbar,.toolbar,button{display:none!important}.adminmain{margin:0;width:100%}.phone{max-width:none}.rich{white-space:pre-wrap}}
