:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#183e34;background:#f2f6f3;font-synthesis:none;--ink:#183e34;--muted:#516a5d;--line:#d5e1d9;--accent:#246b54;--danger:#a03730}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #85b69a;outline-offset:3px}input,select,textarea{border:1px solid #bdcfc3;border-radius:8px;padding:10px 12px;background:white;color:var(--ink);min-width:0}input,select{height:44px}input::placeholder,textarea::placeholder{color:#586f60}input:disabled{background:#eaf0ec;color:#516a5d}h1,h2,p,dl,dd{margin:0}h1{font-size:27px;letter-spacing:-.02em;line-height:1.3}h2{font-size:16px;line-height:1.5;font-weight:600}p{max-width:85ch}.muted,.data-note{color:var(--muted);font-size:12px;line-height:1.8}.muted{margin-top:8px}.brand-mark{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #618e78;border-radius:12px;background:#efaa91;color:var(--ink);font-weight:600;font-size:20px}
.primary,.outline,.danger{min-height:44px;margin:0;padding:10px 16px;border-radius:8px;border:1px solid var(--accent);line-height:1.4;white-space:nowrap}.primary{background:var(--accent);color:#fff}.primary:hover:not(:disabled){background:#195740}.outline{background:#fff;color:#315943;border-color:#bdcfc3}.outline:hover:not(:disabled){background:#eaf3ee}.danger{background:var(--danger);color:#fff;border-color:var(--danger)}.danger:hover:not(:disabled){background:#842720}.error{color:var(--danger);font-size:13px;line-height:1.7;min-height:20px}.error:empty{min-height:0}.notice{font-size:13px;line-height:1.7;padding:12px 16px;background:#e1efe5;color:#1d5e45;border:1px solid #a8cbb5;border-radius:8px;margin-bottom:20px}
.login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 20px;background:#eaf3ee}.login-form{width:100%;max-width:380px}.login-form .brand-mark{margin-bottom:24px}.login-form h1{font-size:30px}.login-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;margin-top:22px}.login-form button{width:100%;margin-top:24px}.login-form .error{margin-top:12px}.login-form .remember-option{flex-direction:row;align-items:center;gap:10px;margin-top:20px;min-height:32px;cursor:pointer}.remember-option input,.confirm-option input{width:18px;height:18px;flex:0 0 18px;padding:0;accent-color:var(--accent)}.login-help{font-size:12px;line-height:1.7;color:var(--muted);margin-top:8px}
.dashboard{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;padding:28px 20px;display:flex;flex-direction:column;overflow-y:auto;background:#183e34;color:#edf6ef}.brand{display:flex;align-items:center;gap:10px}.brand strong{font-size:14px}.brand div>span{display:block;font-size:11px;color:#b1cdbb;margin-top:6px}.project-section{padding-top:32px}.project-section>p{font-size:12px;color:#b1cdbb;margin-bottom:12px}.project-switch{display:flex;flex-direction:column;gap:8px}.project-switch button{width:100%;min-height:44px;padding:10px;font-size:13px;text-align:left;line-height:1.5;color:#d1e4d7;background:transparent;border:1px solid #638770;border-radius:8px}.project-switch button.selected{background:#edf6ef;color:#183e34;border-color:#edf6ef}.project-switch button:hover:not(.selected){background:#315a46}.sidebar nav{margin-top:28px;display:flex;flex-direction:column;gap:6px}.nav-item{width:100%;min-height:44px;padding:11px 14px;border:1px solid transparent;border-radius:8px;text-align:left;font-size:13px;background:transparent;color:#d1e4d7}.nav-item:hover{background:#244b3c}.nav-item.selected{background:#315a46;border-color:#638770;color:#fff}.sidebar-note{margin-top:auto;padding-top:40px;font-size:12px;line-height:1.8;color:#b1cdbb}.logout{margin-top:20px;padding:12px 0;min-height:44px;text-align:left;border:0;background:transparent;color:#d1e4d7;font-size:12px}
.workspace{width:calc(100% - 224px);margin-left:224px;padding:36px 32px 24px;max-width:1920px;min-width:0}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.heading-actions{display:flex;align-items:center;gap:12px}.current-project{font-size:13px;font-weight:600;line-height:1.5;color:#315943;margin-bottom:8px}.status-badge{font-size:11px;padding:7px 10px;line-height:1.5;border:1px solid #d5c4a7;background:#f6eddc;color:#6c4e28;border-radius:6px;white-space:nowrap}.status-badge.ready{border-color:#b9d4c1;background:#dfeee3;color:#246b54}.product-info{font-size:12px;line-height:1.8;color:var(--muted);margin-top:16px}.snapshot{display:flex;flex-wrap:wrap;gap:8px 24px;margin:14px 0 24px;font-size:12px;color:var(--muted)}.snapshot b{font-weight:600;color:var(--ink);margin-left:6px;font-variant-numeric:tabular-nums}
.date-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:16px 0;border-block:1px solid var(--line);margin-bottom:24px}.date-toolbar label,.filters label,.lookup-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}.date-toolbar select{min-width:124px}.date-toolbar input{width:154px}.date-separator{align-self:flex-end;line-height:44px;color:var(--muted);font-size:12px}.timezone-note{font-size:12px;color:var(--muted);line-height:44px;margin-left:auto}#page-error:not(:empty){margin-bottom:20px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.segmented{display:flex;padding:3px;background:#e5ede7;border-radius:8px;border:1px solid #c7d7cb}.segmented button{border:0;border-radius:5px;padding:8px 16px;min-height:36px;background:transparent;color:#315943;font-size:12px}.segmented button.selected{background:#fff;color:#183e34;font-weight:600}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid var(--line);margin-bottom:16px}.metrics>div{padding:18px 16px 18px 0;border-bottom:1px solid var(--line)}.metrics dt{font-size:12px;color:var(--muted);line-height:1.5}.metrics dd{font:500 24px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:-.02em;margin-top:6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.report-block{margin-top:24px}.report-block>h2{margin-bottom:12px}.report-block>.data-note{margin-top:12px}.table-scroll{overflow-x:auto;max-width:100%}table{border-collapse:collapse;width:100%;text-align:left;background:#fff}thead{font-size:12px;background:#eaf1ec;color:#3c5b48}th{font-weight:600;padding:13px 16px;white-space:nowrap;border-block:1px solid var(--line)}td{padding:16px;border-bottom:1px solid #e2eae4;font-size:12px;vertical-align:top;line-height:1.7}td .secondary{display:block;font-size:11px;color:#516a5d;max-width:280px;overflow-wrap:anywhere;margin-top:3px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;overflow-wrap:anywhere;display:block;max-width:260px}.number{font-variant-numeric:tabular-nums;white-space:nowrap}.summary-table{min-width:560px}.summary-table td:first-child{width:24%}.summary-table td:nth-child(2){width:18%;font-variant-numeric:tabular-nums}.daily-table{min-width:1100px}.daily-table td:not(:first-child){font-variant-numeric:tabular-nums;white-space:nowrap}.records-table{min-width:1020px}
.records{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:20px}.search-label{flex:1 1 220px;max-width:420px}.filters select{min-width:112px}.records>.error{margin:0 20px}.records>.error:not(:empty){margin-bottom:12px}.records-context{padding:0 20px 12px}.badge{display:inline-block;padding:3px 8px;font-size:11px;border-radius:5px;background:#eaf1eb;color:#3d654c;white-space:nowrap}.badge.paid,.badge.member{background:#dcefe2;color:#1b6246}.badge.pending{background:#f8efd9;color:#75501b}.badge.refunded{background:#fbe5df;color:#983c29}.badge.closed{background:#edf0ee;color:#53665c}.copy-button,.text-button{background:transparent;color:#246b54;min-height:36px;border:0;padding:6px 0;font-size:12px}.copy-button{font-size:11px}.text-button{white-space:nowrap;text-decoration:underline;text-underline-offset:3px}.text-button.refund-action{color:#a03730}.empty{text-align:center;padding:44px 20px}.empty strong{font-size:14px}.empty p{font-size:12px;color:var(--muted);margin:10px auto 0;line-height:1.8}.pagination{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;gap:12px}.pagination>div{display:flex;align-items:center;gap:16px}.pagination button{padding:8px 12px;min-height:40px;font-size:12px}.loading-row td{padding:32px 20px;color:var(--muted)}.service-note{font-size:12px;color:var(--muted);line-height:1.8;margin-top:20px}
.refund-lookup{padding:20px;border-bottom:1px solid var(--line);background:#f8faf8}.lookup-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-top:16px}.lookup-form label{flex:1 1 300px;max-width:480px}.lookup-form input{width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.refund-user{margin-top:16px;font-size:12px;line-height:1.8;display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;overflow-wrap:anywhere}.refund-user strong{font-weight:600}.refund-dialog{width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:24px;border:1px solid #b7cbbd;border-radius:14px;color:var(--ink);background:#fff;overflow-y:auto}.refund-dialog::backdrop{background:rgba(13,34,24,.52)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.icon-button{width:40px;height:40px;flex:0 0 40px;display:flex;align-items:center;justify-content:center;background:#eff4f0;border:1px solid var(--line);border-radius:8px;font-size:24px;color:var(--ink)}.refund-details{margin:16px 0;border-block:1px solid var(--line);padding:10px 0}.refund-details>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;padding:6px 0;font-size:12px;line-height:1.7}.refund-details dt{color:var(--muted)}.refund-details dd{overflow-wrap:anywhere}.membership-change{display:flex;align-items:center;gap:16px;padding:14px;background:#edf4ef;border-radius:8px;font-size:12px;line-height:1.7;margin-bottom:20px}.membership-change>div{flex:1;min-width:0}.membership-change span{color:var(--muted);display:block}.membership-change strong{font-size:13px;font-weight:600;display:block;margin-top:4px}.field-label{display:flex;flex-direction:column;gap:8px;font-size:12px}.field-label textarea{resize:vertical;min-height:88px;line-height:1.7}.confirm-option{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.8;margin-top:16px}.confirm-option input{margin:2px 0 0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}#refund-error:not(:empty){margin-top:12px}
@media(max-width:1100px){.sidebar{width:196px;padding:24px 16px}.workspace{width:calc(100% - 196px);margin-left:196px;padding:28px 24px}.heading-actions{flex-direction:column;align-items:flex-end}.timezone-note{margin-left:0}.date-toolbar input{width:145px}.metrics dd{font-size:22px}}
@media(max-width:760px){.dashboard{display:block}.sidebar{position:static;width:100%;padding:18px 16px;display:block}.brand{padding-right:90px}.logout{position:absolute;top:16px;right:16px;margin:0}.sidebar-note{display:none}.project-section{padding-top:20px}.project-section>p{margin-bottom:8px}.project-switch{flex-direction:row}.project-switch button{flex:1;min-width:0;text-align:center}.sidebar nav{flex-direction:row;overflow-x:auto;gap:4px;margin-top:16px}.nav-item{width:auto;flex:0 0 auto;min-height:42px;padding:10px 12px;white-space:nowrap}.workspace{width:100%;margin:0;padding:24px 16px}.workspace-heading{align-items:flex-start;gap:12px}h1{font-size:24px}.heading-actions .outline{padding:8px 10px;min-height:40px;font-size:12px}.status-badge{font-size:10px;padding:5px 8px}.snapshot{gap:8px 16px;margin-bottom:20px}.date-toolbar{gap:8px}.date-toolbar label:first-child{flex-basis:100%}.date-toolbar label:first-child select{width:100%}.date-toolbar label:not(:first-child){flex:1;min-width:0}.date-toolbar input{width:100%;font-size:12px;padding:8px}.date-separator{display:none}.date-toolbar button{flex:1}.timezone-note{flex:1;text-align:right}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics>div{padding:16px 8px 16px 0}.metrics dd{font-size:23px}.section-heading{gap:8px}.segmented button{padding:8px 12px}.filters{padding:16px;gap:10px}.filters label{flex:1 1 calc(50% - 10px);min-width:0}.filters .search-label{flex-basis:100%;max-width:none}.filters select{width:100%;min-width:0}.filters button{width:100%}.records-context{padding:0 16px 12px}.refund-lookup{padding:16px}.lookup-form label{flex-basis:100%;max-width:none}.lookup-form button{flex:1;padding:10px 12px}.pagination{padding:16px;align-items:flex-start;flex-direction:column}.pagination>div{width:100%;justify-content:space-between}.refund-dialog{padding:18px}.membership-change{gap:10px;padding:12px}.dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1;white-space:normal}.summary-table{min-width:520px}}
.codes-tools{padding:20px;border-bottom:1px solid var(--line);background:#f8faf8}.codes-tools .section-heading{align-items:flex-start;margin-bottom:8px}.codes-tools .primary{flex:0 0 auto}.code-batch{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.code-batch textarea{width:100%;margin-top:10px;resize:vertical;font:12px/1.8 ui-monospace,Consolas,monospace}.code-project{padding:12px 14px;border:1px solid #a8cbb5;border-radius:8px;background:#edf4ef;font-size:14px;font-weight:600;margin-bottom:12px}.code-form-grid{display:grid;grid-template-columns:1fr 120px;gap:16px;margin:20px 0}.code-form-grid select,.code-form-grid input{width:100%}#code-error:not(:empty){margin-top:12px}.records-table.code-table{min-width:1330px}.code-table td:first-child{min-width:195px}.code-table td:nth-child(4),.code-table td:nth-child(5){min-width:185px}.code-table td:nth-child(7){min-width:175px}.code-table .mono{max-width:260px}.badge.unused{background:#f8efd9;color:#75501b}.badge.redeemed{background:#dcefe2;color:#1b6246}
@media(max-width:760px){.codes-tools{padding:16px}.codes-tools .section-heading{flex-wrap:wrap}.code-batch .section-heading{align-items:flex-start}.code-form-grid{grid-template-columns:minmax(0,1fr) 90px;gap:12px}.code-batch textarea{font-size:11px}}
.feedback-original{padding:16px;margin:16px 0;background:#f1f6f2;border:1px solid var(--line);border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8}.feedback-table td:nth-child(2),.feedback-table td:nth-child(3){min-width:220px;max-width:340px;white-space:pre-wrap;overflow-wrap:anywhere}#feedback-error:not(:empty){margin-top:12px}
.date-shortcuts{display:flex;gap:6px}.date-shortcuts button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}.feedback-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}.feedback-actions button{min-height:44px}
@media(max-width:760px){.date-shortcuts{flex:1 0 100%}.date-shortcuts button{flex:1 1 0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.feature-panel{max-width:820px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:12px}
.feature-panel fieldset{margin:0;padding:0;border:0;min-width:0}
.feature-option{display:flex;align-items:center;gap:14px;min-height:56px;padding:8px 0 16px;cursor:pointer}
.feature-option+.feature-option{border-top:1px solid var(--line);padding-top:16px}
.feature-option>span{flex:1;min-width:0}
.feature-option strong{display:block;font-size:15px}
.feature-option small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5}
.feature-option input{flex:0 0 22px;width:22px;height:22px;margin:0;padding:0;accent-color:var(--accent)}
.feature-option b{flex:0 0 28px;font-size:12px;font-weight:500;color:var(--muted)}
.feature-actions{display:flex;align-items:center;gap:12px;padding-top:16px;border-top:1px solid var(--line)}
.feature-actions .primary{flex:0 0 auto}
@media(max-width:760px){.feature-panel{padding:16px}.feature-option{gap:8px}.feature-actions{flex-wrap:wrap}}
