:root{--bg-base: #FAF7F2;--bg-card: #FFFFFF;--bg-subtle: #F4EFE6;--border-color: #E8E2D5;--border-active: #C5BBAA;--text-main: #2C241D;--text-muted: #8C8275;--text-light: #A3998E;--accent-brand: #52796F;--accent-hover: #354F52;--accent-warm: #DDA15E;--accent-danger: #BC4749;--shadow-sm: 0 4px 12px rgba(44, 36, 29, .03);--shadow-md: 0 8px 24px rgba(44, 36, 29, .06);--radius-lg: 20px;--radius-md: 14px;--radius-sm: 10px}html,body{margin:0;padding:0;width:100%;min-height:100%;background-color:var(--bg-base);color:var(--text-main);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}*,*:before,*:after{box-sizing:border-box}.profile-viewport{width:100%;min-height:100vh;display:flex;flex-direction:column;background-color:var(--bg-base)}.state-container{flex:1;min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;color:var(--text-muted);font-size:.95rem;padding:40px 16px}.spinner{width:36px;height:36px;border:3px solid var(--border-color);border-top-color:var(--accent-brand);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.profile-main-grid{width:100%;min-height:100vh;padding:20px;display:grid;grid-template-columns:minmax(310px,380px) minmax(0,1fr);gap:20px;align-items:start}.profile-left-col,.profile-right-col{display:flex;flex-direction:column;gap:20px;min-width:0}@media(max-width:820px){.profile-main-grid{grid-template-columns:1fr;padding:14px;gap:16px}}.card{background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow-sm)}.card-title{font-size:1.06rem;font-weight:700;margin:0 0 4px;color:var(--text-main)}.card-desc{font-size:.8rem;color:var(--text-muted);margin:0}.section-mini-title{font-size:.86rem;font-weight:700;color:var(--text-muted);margin:0 0 10px;letter-spacing:.02em}.personal-hub-card{display:flex;flex-direction:column;gap:18px}.profile-card-top{display:flex;align-items:center;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--border-color)}.avatar-wrapper{position:relative;flex-shrink:0}.profile-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--bg-subtle);border:2px solid var(--border-color)}.tier-badge{position:absolute;bottom:-6px;left:50%;transform:translate(-50%);white-space:nowrap;background:var(--bg-subtle);border:1px solid var(--border-color);padding:1px 8px;border-radius:20px;font-size:.7rem;font-weight:600;color:var(--text-main)}.profile-identity{min-width:0;flex:1}.profile-name{font-size:1.28rem;font-weight:700;margin:0 0 4px;word-break:break-word}.profile-role{font-size:.84rem;color:var(--text-muted);margin:0}.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-box{display:flex;align-items:center;gap:10px;background:var(--bg-base);border:1px solid var(--border-color);border-radius:var(--radius-md);padding:10px 12px;min-width:0}.stat-icon{width:36px;height:36px;border-radius:10px;background:#fff;border:1px solid var(--border-color);display:flex;align-items:center;justify-content:center;font-size:1.05rem;flex-shrink:0}.stat-icon.alt{background:#faf3e0}.stat-info{display:flex;flex-direction:column;min-width:0}.stat-label{font-size:.72rem;color:var(--text-muted)}.stat-value{font-size:.98rem;font-weight:700;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.info-list{list-style:none;margin:0;display:flex;flex-direction:column;gap:8px;background:var(--bg-base);border:1px solid var(--border-color);border-radius:var(--radius-md);padding:12px 14px}.info-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.84rem;padding-bottom:6px;border-bottom:1px dashed var(--border-color)}.info-list li:last-child{border-bottom:none;padding-bottom:0}.info-label{color:var(--text-muted);flex-shrink:0}.info-val{font-weight:600;color:var(--text-main);text-align:right;word-break:break-word}.three-panel-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:4px}.panel-switch-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 6px;border-radius:var(--radius-sm);border:1px solid var(--border-color);background:var(--bg-base);color:var(--text-main);font-size:.78rem;font-weight:600;cursor:pointer;transition:all .2s ease}.panel-switch-btn:hover{background:var(--bg-subtle);border-color:var(--border-active)}.panel-switch-btn.active{background:var(--accent-brand);border-color:var(--accent-brand);color:#fff}.card-logout-btn{width:100%;padding:10px 14px;border-radius:var(--radius-sm);border:1px solid #F1C4C4;background:#fdf4f4;color:var(--accent-danger);font-size:.86rem;font-weight:600;cursor:pointer;transition:all .2s ease}.card-logout-btn:hover{background:var(--accent-danger);border-color:var(--accent-danger);color:#fff}.chart-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}.chart-controls-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.granularity-switch{display:inline-flex;background:var(--bg-base);border:1px solid var(--border-color);border-radius:var(--radius-sm);padding:2px}.gran-btn{border:none;background:transparent;color:var(--text-muted);font-size:.78rem;font-weight:600;padding:5px 10px;border-radius:8px;cursor:pointer;transition:all .18s ease}.gran-btn.active{background:var(--accent-brand);color:#fff}.period-nav{display:inline-flex;align-items:center;gap:6px;background:var(--bg-base);border:1px solid var(--border-color);border-radius:var(--radius-sm);padding:2px 6px}.period-step-btn{border:none;background:transparent;color:var(--text-main);font-size:1rem;font-weight:700;padding:2px 6px;cursor:pointer;border-radius:6px}.period-step-btn:hover{background:var(--bg-subtle)}.period-label{font-size:.8rem;font-weight:700;color:var(--text-main);min-width:66px;text-align:center;font-variant-numeric:tabular-nums}.chart-summary-strip{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.selected-bar-tag{background:var(--bg-base);border:1px solid var(--border-color);padding:4px 12px;border-radius:20px;font-size:.78rem;font-weight:600;color:var(--text-main)}.period-total-tag{background:var(--bg-subtle);border:1px solid var(--border-color);padding:4px 12px;border-radius:20px;font-size:.78rem;font-weight:600;color:var(--accent-brand)}.chart-frame-wrapper{border:1px solid var(--border-color);border-radius:var(--radius-md);background:#fcfbf8;padding:16px 12px 12px}.cartesian-row{display:flex;align-items:stretch;height:220px}.y-axis-column{width:58px;height:220px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding-right:8px;font-size:.68rem;color:var(--text-muted);font-variant-numeric:tabular-nums;flex-shrink:0}.chart-scroll-viewport{flex:1;height:220px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-left:1px solid var(--border-color);border-bottom:1px solid var(--border-active);position:relative}.chart-scroll-viewport::-webkit-scrollbar{display:none}.chart-plot-inner{position:relative;height:100%;min-width:100%}.h-grid-layer{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none;z-index:0}.h-grid-line{width:100%;border-top:1px dashed rgba(140,130,117,.22)}.h-grid-line--zero{border-top:none}.v-grid-layer{position:absolute;inset:0;display:flex;pointer-events:none;z-index:0}.v-grid-cell{flex:1;border-right:1px dashed rgba(140,130,117,.22)}.v-grid-cell:last-child{border-right:none}.bar-columns-row{position:relative;z-index:1;display:flex;align-items:flex-end;gap:0;height:100%}.bar-slot{flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center;position:relative;cursor:pointer}.bar-rect{width:100%;background:var(--accent-brand);border-radius:3px 3px 0 0;transition:height .25s ease,background-color .18s ease;min-height:0}.bar-slot:hover .bar-rect,.bar-slot.active-bar .bar-rect{background:var(--accent-warm)}.bar-slot.today-slot .bar-rect{background:#6b9080}.bar-slot.today-slot:hover .bar-rect,.bar-slot.today-slot.active-bar .bar-rect{background:var(--accent-warm)}.x-axis-bottom-bar{display:flex;align-items:center;gap:6px;margin-top:8px;padding-left:58px}@media(max-width:600px){.y-axis-column{width:48px}.x-axis-bottom-bar{padding-left:48px}}.x-scroll-btn{width:26px;height:26px;border-radius:8px;border:1px solid var(--border-color);background:var(--bg-card);color:var(--text-main);font-size:.72rem;cursor:pointer;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;transition:all .18s ease}.x-scroll-btn:hover{background:var(--bg-subtle);border-color:var(--border-active)}.x-axis-scroll-track{flex:1;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--border-active) transparent}.x-axis-ticks-row{display:flex;align-items:center;gap:0}.x-day-cell{flex:1;text-align:center;font-size:.72rem;color:var(--text-muted);font-variant-numeric:tabular-nums;padding:3px 0;user-select:none}.x-day-cell.today-tick{color:var(--accent-warm);font-weight:700}.form-card{animation:fadeIn .25s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.form-group{margin-bottom:14px}.form-row{display:flex;gap:14px}@media(max-width:600px){.form-row{flex-direction:column;gap:0}}.form-row .form-group{flex:1}.form-label{display:block;font-size:.82rem;font-weight:600;margin-bottom:6px;color:var(--text-main)}.form-card input[type=text],.form-card input[type=password],.form-card select{width:100%;padding:10px 12px;border-radius:var(--radius-sm);border:1px solid var(--border-color);background:var(--bg-base);color:var(--text-main);font-size:.9rem;outline:none}.form-card input:focus,.form-card select:focus{border-color:var(--accent-brand);background:#fff}.pwd-input-wrapper{position:relative}.eye-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:.9rem}.avatar-select-grid{display:flex;gap:10px}.avatar-option-item{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;border:1px solid var(--border-color);border-radius:var(--radius-sm);background:var(--bg-base);cursor:pointer;font-size:.84rem}.avatar-option-item img{width:26px;height:26px}.avatar-option-item.selected{border-color:var(--accent-brand);background:#fff;font-weight:600}.form-actions{margin-top:16px}.primary-btn{width:100%;padding:11px;border-radius:var(--radius-sm);background:var(--accent-brand);color:#fff;border:none;font-size:.9rem;font-weight:600;cursor:pointer}.primary-btn:hover{background:var(--accent-hover)}.accent-btn{width:100%;padding:11px;border-radius:var(--radius-sm);background:var(--accent-warm);color:#fff;border:none;font-size:.9rem;font-weight:600;cursor:pointer}
