:root{
  --paper:#fffde8;
  --paper-2:#fff8c8;
  --card:#fffef4;
  --ink:#171717;
  --muted:#746f63;
  --line:#d8d1aa;
  --yellow:#f6df69;
  --red:#ff4a3d;
  --blue:#8bc3ff;
  --green:#94d8a4;
  --shadow:5px 5px 0 rgba(23,23,23,.10);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
body{overflow-x:hidden}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.muted{color:var(--muted)}
.small{font-size:13px}
.doodle-border{border:2px solid var(--ink);box-shadow:var(--shadow);border-radius:var(--radius)}
.app-shell{min-height:100vh;display:flex}
.sidebar{width:228px;flex:0 0 228px;border-right:2px solid var(--ink);background:#fffbe0;padding:20px 16px;position:sticky;top:0;height:100vh;overflow:auto}
.user-block{display:flex;align-items:center;gap:12px;padding:8px 5px 18px;border-bottom:2px dashed var(--line);margin-bottom:18px}
.avatar{width:58px;height:58px;border:2px solid var(--ink);border-radius:15px;object-fit:cover;background:var(--paper-2)}
.user-name{font-weight:700;font-size:17px;word-break:break-all}
.nav-list{display:flex;flex-direction:column;gap:9px}
.nav-item,.nav-toggle{width:100%;display:flex;align-items:center;gap:11px;padding:11px 12px;border:2px solid transparent;border-radius:14px;background:transparent;color:var(--ink);text-align:left}
.nav-item:hover,.nav-toggle:hover,.nav-item.active,.nav-toggle.active{border-color:var(--ink);background:var(--yellow)}
.nav-icon{width:27px;height:27px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 27px}
.nav-icon svg,.icon-btn svg,.inline-icon svg{width:100%;height:100%;overflow:visible}
.friend-menu{margin:3px 0 8px 23px;padding-left:13px;border-left:2px dashed var(--line);display:none}
.friend-group-title{font-weight:800;font-size:12px;color:var(--muted);margin:9px 0 4px}
.friend-link{display:block;padding:7px 8px;border-radius:9px;font-size:14px}
.friend-link:hover{background:#fff4a3}
.page-main{flex:1;min-width:0;padding:24px 30px 40px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.topbar-title{font-size:25px;font-weight:800;letter-spacing:.5px}
.top-actions{display:flex;gap:10px;align-items:center}
.icon-btn{width:48px;height:48px;border:2px solid var(--ink);border-radius:15px;background:var(--card);display:inline-flex;align-items:center;justify-content:center;box-shadow:3px 3px 0 rgba(23,23,23,.10)}
.icon-btn:hover{transform:translate(-1px,-1px);box-shadow:5px 5px 0 rgba(23,23,23,.12)}
.icon-btn.accent{background:var(--yellow)}
.icon-btn.danger{background:#ffd7d2}
.timeline-wrap{position:relative;max-width:1020px;margin:0 auto;touch-action:pan-y;user-select:none}
.day-label{text-align:center;font-size:15px;color:var(--muted);margin-bottom:12px}
.timeline{border:2px solid var(--ink);border-radius:22px;background:rgba(255,255,255,.48);overflow:hidden;box-shadow:var(--shadow)}
.hour-row{display:grid;grid-template-columns:74px 1fr;min-height:84px;border-bottom:1.5px dashed var(--line)}
.hour-row:last-child{border-bottom:0}
.hour-label{padding:14px 10px;color:var(--muted);font-weight:700;border-right:1.5px dashed var(--line);text-align:center}
.hour-content{padding:9px 12px;display:flex;gap:9px;align-items:flex-start;flex-wrap:wrap}
.plan-card{position:relative;min-width:240px;max-width:420px;padding:12px 14px 13px;border:2px solid var(--ink);border-radius:15px;background:var(--card);box-shadow:3px 3px 0 rgba(23,23,23,.08);cursor:pointer}
.plan-card:hover{background:#fff9be;transform:translateY(-1px)}
.plan-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:6px;font-size:12px;color:var(--muted)}
.plan-category{display:inline-block;max-width:62%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#e8f2ff;border:1.5px solid var(--ink);padding:3px 7px;border-radius:999px;color:var(--ink)}
.plan-time{font-weight:700;color:var(--ink)}
.plan-title{font-size:16px;font-weight:800;line-height:1.45}
.plan-content{font-size:13px;color:var(--muted);margin-top:5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.empty-hint{font-size:13px;color:#aca485;padding-top:8px}
.day-dots{display:flex;justify-content:center;gap:13px;margin:18px 0 3px}
.day-dot{width:13px;height:13px;border:2px solid var(--ink);border-radius:50%;background:#fff;transition:.15s}
.day-dot.active{background:var(--ink);transform:scale(1.15)}
.dot-caption{text-align:center;color:var(--muted);font-size:12px}
.panel{background:var(--card);border:2px solid var(--ink);border-radius:20px;box-shadow:var(--shadow);padding:22px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.form-group{display:flex;flex-direction:column;gap:7px}
.form-group.full{grid-column:1/-1}
.form-label{font-size:14px;font-weight:800}
.input,.textarea,.select{width:100%;border:2px solid var(--ink);border-radius:12px;background:#fffef8;padding:11px 12px;outline:none}
.input:focus,.textarea:focus,.select:focus{box-shadow:0 0 0 3px rgba(246,223,105,.6)}
.input[readonly],.textarea[readonly],.select:disabled{background:#f2efe3;color:#777}
.textarea{min-height:120px;resize:vertical;line-height:1.65}
.counter{text-align:right;font-size:12px;color:var(--muted)}
.btn-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.btn{border:2px solid var(--ink);border-radius:13px;background:var(--card);padding:10px 18px;font-weight:800;box-shadow:3px 3px 0 rgba(23,23,23,.10)}
.btn:hover{transform:translate(-1px,-1px)}
.btn.primary{background:var(--yellow)}
.btn.danger{background:#ffd4ce}
.btn.ghost{box-shadow:none;border-style:dashed;color:var(--muted)}
.btn.small-btn{padding:7px 10px;font-size:13px}
.page-card{max-width:940px;margin:0 auto}
.detail-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}
.detail-date{font-size:16px;font-weight:700;color:var(--muted)}
.detail-section{margin-bottom:16px}
.section-title{font-size:14px;color:var(--muted);font-weight:800;margin-bottom:9px}
.info-line{padding:12px 14px;border:2px solid var(--ink);border-radius:13px;background:#fffef8;min-height:48px}
.likes-box,.comments-box,.attachments-box{display:flex;flex-direction:column;gap:10px}
.attachment-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 11px;border:1.5px dashed var(--ink);border-radius:11px;background:#fff}
.comment-item{padding:12px;border:1.5px dashed var(--line);border-radius:12px;background:#fffef8}
.comment-author{font-size:13px;font-weight:800;margin-bottom:5px}
.radio-row,.check-row{display:flex;gap:14px;flex-wrap:wrap}
.friend-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}
.friend-check{display:flex;align-items:center;gap:7px;padding:8px;border:1.5px dashed var(--line);border-radius:10px;background:#fffef8}
.modal-mask{position:fixed;inset:0;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;padding:20px;z-index:1000}
.modal{width:min(560px,100%);max-height:90vh;overflow:auto;background:var(--paper);border:2px solid var(--ink);border-radius:21px;box-shadow:8px 8px 0 rgba(0,0,0,.18);padding:20px}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}
.modal-title{font-size:18px;font-weight:900}
.calendar-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.calendar-nav{display:flex;gap:6px}
.calendar-nav button{width:36px;height:34px;border:2px solid var(--ink);background:#fff;border-radius:10px;font-weight:900}
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.calendar-cell{min-height:42px;border:1.5px solid transparent;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:14px}
.calendar-cell.day{cursor:pointer;background:#fffef8;border-color:#e3ddbd}
.calendar-cell.day:hover{border-color:var(--ink)}
.calendar-cell.today{background:var(--red);color:#fff;border-color:var(--ink);font-weight:900}
.calendar-cell.selected{outline:3px solid var(--yellow)}
.action-popover{position:fixed;z-index:800;background:var(--paper);border:2px solid var(--ink);border-radius:15px;padding:8px;box-shadow:var(--shadow);display:flex;gap:8px}
.toast{position:fixed;right:22px;bottom:22px;z-index:2000;background:var(--ink);color:#fff;padding:12px 16px;border-radius:12px;max-width:360px;box-shadow:var(--shadow)}
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(340px,1fr) minmax(420px,1fr);align-items:center;gap:35px;padding:36px max(5vw,24px)}
.login-mascot{display:flex;justify-content:center;align-items:center}
.login-mascot img{width:min(520px,90%);mix-blend-mode:multiply}
.login-card{max-width:520px;width:100%;margin:auto;background:var(--card);border:2px solid var(--ink);border-radius:24px;box-shadow:8px 8px 0 rgba(23,23,23,.13);padding:28px}
.login-title{font-size:28px;font-weight:900;margin-bottom:6px}
.login-subtitle{color:var(--muted);line-height:1.6;margin-bottom:20px}
.login-options{display:grid;gap:12px}
.login-option{width:100%;padding:14px;border:2px solid var(--ink);border-radius:14px;background:#fffef8;font-weight:800;text-align:center}
.login-option.guest{background:#fff1a8}
.login-option.wechat{background:#c9f0c4}
.tabs{display:flex;gap:8px;margin:17px 0 13px}
.tab{flex:1;border:2px solid var(--ink);border-radius:11px;background:#fff;padding:9px;font-weight:800}
.tab.active{background:var(--yellow)}
.tree-stage{max-width:1150px;margin:0 auto}
.tree-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px;flex-wrap:wrap}
.tree-title-wrap{text-align:center;margin:12px auto 22px}
.tree-stage-name{color:var(--muted);font-size:14px;margin-bottom:5px}
.tree-root{width:min(520px,90%);margin:0 auto 42px;padding:17px 20px;text-align:center;background:var(--yellow);border:2px solid var(--ink);border-radius:17px;box-shadow:var(--shadow);font-weight:900;position:relative}
.tree-root:after{content:"";position:absolute;width:2px;height:42px;background:var(--ink);left:50%;top:100%}
.tree-level2{display:flex;gap:24px;align-items:flex-start;justify-content:center;overflow-x:auto;padding:0 8px 25px}
.tree-branch{min-width:210px;max-width:250px;position:relative}
.tree-branch:before{content:"";position:absolute;top:-22px;left:50%;width:2px;height:22px;background:var(--ink)}
.tree-node-l2{border:2px solid var(--ink);border-radius:15px;background:#e8f2ff;padding:13px 12px;text-align:center;font-weight:900;box-shadow:3px 3px 0 rgba(23,23,23,.09);position:relative}
.tree-node-l3{margin:13px 0 0 24px;border:2px solid var(--ink);border-radius:13px;background:#fffef8;padding:10px 11px;position:relative;box-shadow:2px 2px 0 rgba(23,23,23,.07)}
.tree-node-l3:before{content:"";position:absolute;left:-16px;top:50%;width:14px;height:2px;background:var(--ink)}
.tree-children{position:relative;padding-top:4px}
.tree-children:before{content:"";position:absolute;left:8px;top:0;bottom:14px;width:2px;background:var(--ink)}
.node-actions{display:flex;gap:5px;justify-content:center;margin-top:8px;flex-wrap:wrap}
.node-action{border:1.5px solid var(--ink);border-radius:9px;background:#fff;padding:4px 7px;font-size:12px;font-weight:800}
.draggable{cursor:grab}
.drag-over{outline:4px solid var(--red)}
.tree-tip{margin:20px auto 0;max-width:900px;padding:14px 16px;border:2px dashed var(--ink);border-radius:14px;background:#fff8c8;line-height:1.7;color:#514d42}
.history-card{margin-bottom:22px}
.history-tree{display:flex;gap:12px;align-items:flex-start;overflow-x:auto;padding-top:12px}
.history-l2{min-width:150px;border:2px solid var(--ink);border-radius:13px;padding:11px;background:#e8f2ff}
.history-l3{margin-top:7px;padding:7px;border:1.5px dashed var(--ink);border-radius:9px;background:#fff}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}
.stat-card{padding:18px;background:var(--card);border:2px solid var(--ink);border-radius:17px;box-shadow:var(--shadow)}
.stat-value{font-size:28px;font-weight:900;margin-top:5px}
.bar-row{display:grid;grid-template-columns:100px 1fr 90px;gap:10px;align-items:center;margin:11px 0}
.bar-track{height:18px;border:2px solid var(--ink);border-radius:999px;background:#fff;overflow:hidden}
.bar-fill{height:100%;background:var(--yellow)}
@media (max-width:900px){
  .sidebar{width:190px;flex-basis:190px}
  .page-main{padding:18px}
  .login-page{grid-template-columns:1fr}
  .login-mascot{display:none}
  .form-grid,.stat-grid{grid-template-columns:1fr}
  .friend-checks{grid-template-columns:1fr}
}
@media (max-width:680px){
  .app-shell{display:block}
  .sidebar{position:relative;width:100%;height:auto;border-right:0;border-bottom:2px solid var(--ink)}
  .nav-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .friend-menu{grid-column:1/-1}
  .page-main{padding:14px}
  .hour-row{grid-template-columns:57px 1fr}
  .plan-card{min-width:100%;max-width:100%}
  .detail-head{display:block}
  .detail-date{margin-top:8px}
  .tree-level2{justify-content:flex-start}
  .bar-row{grid-template-columns:78px 1fr 70px}
}

/* ---------- 统计页面 ---------- */
.button-icon{display:inline-flex;width:20px;height:20px;vertical-align:middle;margin-right:5px}.button-icon svg{width:100%;height:100%}
.stats-page{max-width:1220px;margin:0 auto;padding-top:26px}.stats-toolbar,.export-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:28px;flex-wrap:wrap}.stats-heading,.export-heading{text-align:center;margin:0 auto 28px}.stats-heading h1,.export-heading h1{margin:7px 0 8px;font-size:28px}.stats-heading p,.export-heading p{margin:0;line-height:1.7}
.stats-tree-panel{padding:24px 10px 34px;overflow-x:auto}.stats-tree-root{width:min(580px,92%);margin:0 auto 48px;background:var(--yellow);border:2px solid var(--ink);border-radius:17px;box-shadow:var(--shadow);padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;position:relative}.stats-tree-root:after{content:"";position:absolute;width:2px;height:48px;background:var(--ink);left:50%;top:100%}.stats-node-name{font-weight:900}.stats-node-time,.stats-tree-l2 strong,.stats-tree-l3 strong{white-space:nowrap;font-size:14px}.stats-tree-level2{display:flex;gap:26px;align-items:flex-start;justify-content:center;min-width:max-content;padding:0 8px}.stats-tree-branch{width:230px;position:relative}.stats-tree-branch:before{content:"";position:absolute;top:-25px;left:50%;width:2px;height:25px;background:var(--ink)}.stats-tree-l2,.stats-tree-l3{display:flex;justify-content:space-between;align-items:center;gap:12px;border:2px solid var(--ink);border-radius:14px;padding:11px 12px;background:#e8f2ff;box-shadow:3px 3px 0 rgba(23,23,23,.08)}.stats-tree-l3{margin:12px 0 0 24px;background:#fffef8;position:relative;box-shadow:2px 2px 0 rgba(23,23,23,.06)}.stats-tree-l3:before{content:"";position:absolute;left:-16px;top:50%;width:14px;height:2px;background:var(--ink)}.stats-tree-children{position:relative;padding-top:2px}.stats-tree-children:before{content:"";position:absolute;left:8px;top:0;bottom:14px;width:2px;background:var(--ink)}.stats-unclassified{max-width:720px;margin:26px auto 0;padding:10px 14px;border:2px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted)}
.stats-chart-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:900px;margin:30px auto 0}.chart-entry{border:2px solid var(--ink);border-radius:19px;background:var(--card);box-shadow:var(--shadow);padding:20px;display:grid;grid-template-columns:58px 1fr;grid-template-rows:auto auto;text-align:left;gap:3px 16px}.chart-entry:hover{background:#fff7b5;transform:translateY(-1px)}.chart-entry-icon{grid-row:1/3;width:58px;height:58px;border:2px solid var(--ink);border-radius:16px;background:#fff}.chart-entry strong{font-size:18px}.chart-entry small{color:var(--muted);line-height:1.5}.pie-mini{background:conic-gradient(var(--yellow) 0 32%,var(--blue) 32% 62%,var(--green) 62% 100%)}.bar-mini{background:linear-gradient(to top,transparent 0 10%,var(--blue) 10% 45%,transparent 45% 50%,var(--yellow) 50% 80%,transparent 80%)}
.chart-card{max-width:920px;margin:0 auto 24px;padding:22px;background:var(--card);border:2px solid var(--ink);border-radius:20px;box-shadow:var(--shadow);overflow:auto}.chart-card.wide{max-width:1140px}.chart-card h2{font-size:18px;margin:0 0 12px}.chart-card canvas{display:block;max-width:none;margin:auto}.chart-level-tabs{display:flex;gap:10px;justify-content:center;margin:0 auto 20px;max-width:680px}.chart-level-tabs .tab{max-width:180px}.phase-picker{display:grid;gap:10px}.phase-pick{display:grid;grid-template-columns:1fr auto;gap:4px 14px;text-align:left;border:2px solid var(--ink);border-radius:13px;background:#fffef8;padding:12px}.phase-pick span{font-size:12px;color:var(--muted)}.phase-pick em{font-style:normal;font-size:12px;background:var(--yellow);padding:3px 7px;border:1.5px solid var(--ink);border-radius:999px}.phase-pick.selected{background:#e8f2ff}.summary-table-wrap{max-width:1100px;margin:0 auto;overflow:auto;border:2px solid var(--ink);border-radius:18px;box-shadow:var(--shadow);background:var(--card)}.summary-table{width:100%;border-collapse:collapse;min-width:720px}.summary-table th,.summary-table td{padding:12px 14px;border-bottom:1.5px dashed var(--line);text-align:left}.summary-table th{background:#fff4a3}.summary-table .summary-row td{font-weight:900;background:#eef6e8;border-top:2px solid var(--ink)}

/* ---------- 导出页面 ---------- */
.export-entry{padding-top:38px}.export-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.export-method{min-height:220px;border:2px solid var(--ink);border-radius:22px;background:var(--card);box-shadow:var(--shadow);padding:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.export-method:hover{background:#fff7b5;transform:translateY(-2px)}.export-method strong{font-size:22px}.export-method small{color:var(--muted);line-height:1.6}.export-method-icon{width:78px;height:78px;border:2px solid var(--ink);border-radius:20px;background:#fff}.calendar-doodle{background:linear-gradient(var(--red) 0 18%,transparent 18%),repeating-linear-gradient(90deg,transparent 0 22%,var(--line) 22% 24%)}.tree-doodle{position:relative;background:linear-gradient(90deg,transparent 48%,var(--ink) 48% 52%,transparent 52%)}
.export-config-page,.export-result-page{max-width:1050px;margin:0 auto}.export-toolbar h1{font-size:24px;margin:0}.export-panel{margin-bottom:18px}.section-title-large{font-size:18px;font-weight:900;margin-bottom:16px}.export-field-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.export-field-grid label,.format-options label{border:1.5px dashed var(--line);background:#fffef8;border-radius:11px;padding:10px 12px}.attachment-choice{background:#fff3cd!important}.format-options{display:flex;gap:12px;flex-wrap:wrap}.export-submit{text-align:center;padding:8px 0 40px}.export-submit .btn{min-width:180px}.export-topic-tree{margin:18px 0;overflow:auto;padding:18px}.export-tree-root{width:min(460px,90%);margin:0 auto 42px;text-align:center;border:2px solid var(--ink);border-radius:14px;background:var(--yellow);padding:13px;font-weight:900;position:relative}.export-tree-root:after{content:"";position:absolute;left:50%;top:100%;height:42px;width:2px;background:var(--ink)}.export-tree-branches{display:flex;gap:20px;justify-content:center;min-width:max-content}.export-tree-branch{width:190px;position:relative}.export-tree-branch:before{content:"";position:absolute;left:50%;top:-22px;width:2px;height:22px;background:var(--ink)}.export-tree-l2,.export-tree-l3{width:100%;border:2px solid var(--ink);border-radius:12px;background:#e8f2ff;padding:10px;font-weight:800}.export-tree-l3{margin:10px 0 0 20px;width:calc(100% - 20px);background:#fffef8;position:relative}.export-tree-l3:before{content:"";position:absolute;left:-14px;top:50%;width:12px;height:2px;background:var(--ink)}.export-tree-children{position:relative}.export-tree-children:before{content:"";position:absolute;left:7px;top:0;bottom:12px;width:2px;background:var(--ink)}.export-topic-tree button.selected{background:var(--red);color:#fff}.selected-topic{padding:11px 14px;text-align:center;border:2px dashed var(--ink);border-radius:12px;background:#fff8c8;font-weight:800}.export-preview{max-width:1000px;margin:0 auto}.export-preview canvas{display:block;border:2px solid var(--ink);box-shadow:var(--shadow);background:#fff;max-width:100%}.export-preview pre{white-space:pre-wrap;word-break:break-word;background:#fffef8;border:2px solid var(--ink);border-radius:18px;box-shadow:var(--shadow);padding:24px;line-height:1.8;min-height:400px}.zip-preview{text-align:center;border:2px solid var(--ink);border-radius:20px;background:var(--card);box-shadow:var(--shadow);padding:50px 24px}.zip-icon-large{width:100px;height:100px;margin:0 auto 18px;border:3px solid var(--ink);border-radius:20px;background:var(--yellow);display:flex;align-items:center;justify-content:center;font-size:27px;font-weight:900}

@media(max-width:900px){.stats-chart-actions,.export-methods{grid-template-columns:1fr}.export-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-tree-level2{justify-content:flex-start}.chart-card canvas{transform-origin:top left}}
@media(max-width:620px){.stats-toolbar,.export-toolbar{align-items:flex-start}.stats-tree-root{display:block;text-align:center}.stats-node-time{margin-top:7px}.export-field-grid{grid-template-columns:1fr}.format-options{display:grid}.chart-level-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.chart-level-tabs .tab{max-width:none}.chart-entry{grid-template-columns:48px 1fr}.chart-entry-icon{width:48px;height:48px}}


/* ===== Third-style light pastel refresh + icon library ===== */
:root{
  --paper:#f8f7ef;
  --paper-2:#fcfbf5;
  --card:#fffdf9;
  --ink:#54514c;
  --muted:#8f8a83;
  --line:#e8e3d8;
  --yellow:#f4edbf;
  --red:#e9a8a3;
  --blue:#bdd4f6;
  --green:#cbe6bf;
  --shadow:0 10px 26px rgba(92,87,76,.08);
  --radius:22px;
}
html,body{background:linear-gradient(180deg,#fbfaf5 0%, #f7f5ef 100%);color:var(--ink);}
.sidebar{background:rgba(255,255,255,.72);backdrop-filter:blur(10px);border-right:1px solid var(--line);padding:24px 18px;}
.user-block{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px;}
.avatar{border:1px solid var(--line);background:#fff;border-radius:18px;box-shadow:var(--shadow);}
.nav-item,.nav-toggle{border:1px solid transparent;border-radius:18px;padding:12px 14px;transition:all .18s ease;}
.nav-item:hover,.nav-toggle:hover,.nav-item.active,.nav-toggle.active{border-color:#ece6d8;background:#fffdf8;box-shadow:var(--shadow);}
.friend-link:hover{background:#fffdf7;}
.page-main{padding:28px 32px 44px;}
.topbar-title{font-size:26px;letter-spacing:0;font-weight:800;}
.icon-btn,.btn,.plan-card,.timeline,.panel,.stat-card,.chart-card,.export-method,.summary-table-wrap,.login-card,.modal{border-color:var(--line)!important;box-shadow:var(--shadow)!important;}
.icon-btn,.btn,.plan-card,.panel,.stat-card,.chart-card,.export-method,.summary-table-wrap,.login-card,.modal,.timeline,.stats-tree-root,.stats-tree-l2,.stats-tree-l3,.export-tree-root,.export-tree-l2,.export-tree-l3,.info-line,.attachment-item,.comment-item,.friend-check,.calendar-cell.day,.chart-entry{border-width:1px!important;}
.icon-btn{background:#fff; border-radius:18px; width:50px; height:50px;}
.icon-btn.accent{background:#f7f3d5;}
.icon-btn.danger{background:#faecea;}
.btn{background:#fff;border-radius:16px;padding:10px 18px;color:var(--ink);}
.btn.primary{background:#f7f0c9;}
.btn.danger{background:#f9e7e5;}
.btn.ghost{background:#fbfaf7;border-style:solid;color:var(--muted);}
.timeline{background:rgba(255,255,255,.82);border-radius:28px;}
.hour-row{border-bottom:1px solid var(--line);}
.hour-label{border-right:1px solid var(--line);}
.plan-card{background:#fffdfa;border-radius:18px;}
.plan-card:hover{background:#fffefc;box-shadow:0 14px 30px rgba(92,87,76,.10)!important;}
.plan-category{background:#edf4ff;border:1px solid #dce8fa;color:#5e6b7a;}
.panel,.login-card,.modal,.stat-card,.chart-card,.export-method,.summary-table-wrap{background:rgba(255,255,255,.88);}
.day-dot{border:1px solid #d5d0c7;background:#f5f1e9;width:12px;height:12px;}
.day-dot.active{background:#b7cdee;border-color:#b7cdee;}
.input,.textarea,.select,.info-line{background:#fff;border:1px solid #e6e0d6;border-radius:14px;}
.input:focus,.textarea:focus,.select:focus{box-shadow:0 0 0 3px rgba(189,212,246,.35);}
.calendar-cell.today{background:#e8b2ad;color:#fff;border-color:#e8b2ad;}
.calendar-cell.selected{outline:2px solid #bfd2f5;}
.toast{background:#7d8176;box-shadow:var(--shadow);}
.stats-tree-root,.export-tree-root{background:#f8f2cc;border-radius:18px;}
.stats-tree-l2,.export-tree-l2{background:#eef5ff;}
.stats-tree-l3,.export-tree-l3{background:#fffdfa;}
.summary-table th{background:#f7f2d8;}
.summary-table .summary-row td{background:#f0f7ec;}
.export-method-icon,.chart-entry-icon,.zip-icon-large{background-color:#fffefb;background-repeat:no-repeat;background-position:center;background-size:76%;}
.calendar-doodle{background-image:url("/assets/icons/export-by-time.webp");}
.tree-doodle{background-image:url("/assets/icons/export-by-topic.webp");}
.pie-mini{background-image:url("/assets/icons/pie-chart.webp");}
.bar-mini{background-image:url("/assets/icons/bar-chart.webp");}
.zip-icon-large{width:120px;height:120px;border-radius:24px;background-image:url("/assets/icons/zip-export.webp");font-size:0;color:transparent;border:1px solid var(--line);}
.chart-entry{background:#fffdf9;border-radius:22px;}
.chart-entry:hover,.export-method:hover{background:#fff;box-shadow:0 16px 32px rgba(92,87,76,.12)!important;}
.login-option,.tab{border-width:1px;border-color:var(--line);}
.login-option.guest{background:#f7f0c9;}
.login-option.wechat{background:#dcefd9;}
.tab.active{background:#f5efcf;}
.app-icon{display:inline-block;width:24px;height:24px;background-repeat:no-repeat;background-size:contain;background-position:center center;vertical-align:middle;flex:0 0 auto;}
.nav-icon .app-icon{width:28px;height:28px;}
.inline-icon .app-icon,.button-icon .app-icon{width:20px;height:20px;}
.icon-btn .app-icon{width:28px;height:28px;}
.btn .app-icon{margin-right:6px;}
.small-btn .app-icon{width:18px;height:18px;}
.icon-add-node{background-image:url("/assets/icons/add-node.webp");}
.icon-add-plan{background-image:url("/assets/icons/add-plan.webp");}
.icon-attachment{background-image:url("/assets/icons/attachment.webp");}
.icon-audio{background-image:url("/assets/icons/audio.webp");}
.icon-back{background-image:url("/assets/icons/back.webp");}
.icon-back-arrow{background-image:url("/assets/icons/back-arrow.webp");}
.icon-bar-chart{background-image:url("/assets/icons/bar-chart.webp");}
.icon-calendar{background-image:url("/assets/icons/calendar.webp");}
.icon-check{background-image:url("/assets/icons/check.webp");}
.icon-child-goal{background-image:url("/assets/icons/child-goal.webp");}
.icon-close{background-image:url("/assets/icons/close.webp");}
.icon-comment{background-image:url("/assets/icons/comment.webp");}
.icon-content{background-image:url("/assets/icons/content.webp");}
.icon-delete{background-image:url("/assets/icons/delete.webp");}
.icon-dialog{background-image:url("/assets/icons/dialog.webp");}
.icon-download{background-image:url("/assets/icons/download.webp");}
.icon-duration{background-image:url("/assets/icons/duration.webp");}
.icon-edit{background-image:url("/assets/icons/edit.webp");}
.icon-empty-page{background-image:url("/assets/icons/empty-page.webp");}
.icon-export{background-image:url("/assets/icons/export.webp");}
.icon-export-by-time{background-image:url("/assets/icons/export-by-time.webp");}
.icon-export-by-topic{background-image:url("/assets/icons/export-by-topic.webp");}
.icon-friends{background-image:url("/assets/icons/friends.webp");}
.icon-friends-only{background-image:url("/assets/icons/friends-only.webp");}
.icon-friends-visible{background-image:url("/assets/icons/friends-visible.webp");}
.icon-grandchild-goal{background-image:url("/assets/icons/grandchild-goal.webp");}
.icon-heart{background-image:url("/assets/icons/heart.webp");}
.icon-hint{background-image:url("/assets/icons/hint.webp");}
.icon-home{background-image:url("/assets/icons/home.webp");}
.icon-image{background-image:url("/assets/icons/image.webp");}
.icon-image-export{background-image:url("/assets/icons/image-export.webp");}
.icon-knowledge-tree{background-image:url("/assets/icons/knowledge-tree.webp");}
.icon-like-heart{background-image:url("/assets/icons/like-heart.webp");}
.icon-merge-node{background-image:url("/assets/icons/merge-node.webp");}
.icon-pie-chart{background-image:url("/assets/icons/pie-chart.webp");}
.icon-plus{background-image:url("/assets/icons/plus.webp");}
.icon-private{background-image:url("/assets/icons/private.webp");}
.icon-public{background-image:url("/assets/icons/public.webp");}
.icon-public-visible{background-image:url("/assets/icons/public-visible.webp");}
.icon-rename{background-image:url("/assets/icons/rename.webp");}
.icon-root-goal{background-image:url("/assets/icons/root-goal.webp");}
.icon-save{background-image:url("/assets/icons/save.webp");}
.icon-selected{background-image:url("/assets/icons/selected.webp");}
.icon-self-visible{background-image:url("/assets/icons/self-visible.webp");}
.icon-settings{background-image:url("/assets/icons/settings.webp");}
.icon-share{background-image:url("/assets/icons/share.webp");}
.icon-stage-review{background-image:url("/assets/icons/stage-review.webp");}
.icon-stage-switch{background-image:url("/assets/icons/stage-switch.webp");}
.icon-stats{background-image:url("/assets/icons/stats.webp");}
.icon-success{background-image:url("/assets/icons/success.webp");}
.icon-summary{background-image:url("/assets/icons/summary.webp");}
.icon-text-export{background-image:url("/assets/icons/text-export.webp");}
.icon-theme{background-image:url("/assets/icons/theme.webp");}
.icon-time{background-image:url("/assets/icons/time.webp");}
.icon-time-summary{background-image:url("/assets/icons/time-summary.webp");}
.icon-tree{background-image:url("/assets/icons/tree.webp");}
.icon-tree-history{background-image:url("/assets/icons/tree-history.webp");}
.icon-unselected{background-image:url("/assets/icons/unselected.webp");}
.icon-visibility{background-image:url("/assets/icons/visibility.webp");}
.icon-warning{background-image:url("/assets/icons/warning.webp");}
.icon-zip-export{background-image:url("/assets/icons/zip-export.webp");}
.empty-state-illustration{width:220px;height:220px;margin:0 auto;background:url("/assets/icons/empty-page.webp") center/contain no-repeat;}
@media (max-width:680px){.sidebar{border-right:0;border-bottom:1px solid var(--line);} .page-main{padding:18px 14px 32px;}}

/* ===== 主页、好友页与计划详情页：轻量化修订 ===== */
.user-subtitle{transition:opacity .15s ease}
body.is-guest .user-subtitle{display:none!important}

.day-topbar{align-items:flex-start;margin-bottom:20px}
.day-date-line{display:flex;align-items:center;gap:8px;margin-top:7px;color:var(--muted);font-size:14px;line-height:1.5}
.relative-day-label{color:#8f7d72;font-weight:700}
.relative-day-label:before{content:"·";margin-right:8px;color:#c8c1b8;font-weight:400}

.friend-day-heading{display:flex;align-items:flex-start;gap:14px}
.back-to-my-day{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted);padding:5px 0;font-size:13px;white-space:nowrap}
.back-to-my-day:hover{color:var(--ink)}
.back-to-my-day .app-icon{width:19px;height:19px}

/* 计划卡片只显示所属、时间和名称 */
.plan-card{padding:13px 15px 14px}
.plan-title{font-size:16px;font-weight:760;line-height:1.5}
.plan-content{display:none!important}
.plan-meta{margin-bottom:8px}

/* 计划详情页整体更清淡 */
.plan-detail-page{padding-top:26px}
.plan-detail-card{max-width:850px}
.detail-head-light{align-items:center;margin-bottom:12px}
.detail-back-icon{width:40px;height:40px;border:0;background:transparent;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;padding:5px}
.detail-back-icon:hover{background:#f5f2ec}
.detail-back-icon .app-icon{width:25px;height:25px}
.detail-date-light{font-size:13px;font-weight:500;color:#aaa39b;letter-spacing:.1px}

.detail-sheet{background:rgba(255,255,255,.72);border:1px solid #eee9e1;border-radius:24px;padding:8px 26px 22px;box-shadow:0 12px 32px rgba(92,87,76,.06)}
.detail-line{display:grid;grid-template-columns:90px minmax(0,1fr);gap:18px;align-items:center;padding:17px 2px;border-bottom:1px dashed #e5dfd6}
.detail-line:last-of-type{border-bottom:0}
.detail-line-top{align-items:flex-start}
.detail-label{font-size:14px;color:#97918a;font-weight:650;padding-top:1px}
.detail-value{min-width:0;color:#514e49;font-size:15px;line-height:1.7}
.detail-static,.readonly-value{font-size:15px;color:#55514c}

.detail-control{width:100%;border:0;background:transparent;color:#4f4b46;padding:2px 0;outline:none;border-radius:0;box-shadow:none!important}
.detail-control:not(:disabled):focus{border-bottom:1px solid #cfc6bc}
.detail-control:disabled{opacity:1;color:#55514c;-webkit-text-fill-color:#55514c;cursor:default}
.detail-select{appearance:auto}
.detail-textarea{min-height:92px;resize:vertical;line-height:1.8}
.detail-value-with-counter{position:relative;padding-right:45px}
.inline-counter{position:absolute;right:0;bottom:2px;color:#b3ada5;font-size:11px}
.time-range-editor{display:flex;align-items:center;gap:10px}
.time-control{width:118px;max-width:40%;font-variant-numeric:tabular-nums}
.time-separator{color:#bbb4ac}

.compact-options{gap:17px;color:#68635e;font-size:14px}
.compact-options label{display:inline-flex;align-items:center;gap:5px}
.sub-options{margin-top:11px}

.attachment-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:13px}
.attachment-action{display:inline-flex;align-items:center;gap:7px;border:1px solid #e5ded4;background:#fffdfa;color:#69635d;border-radius:14px;padding:8px 11px;font-size:13px}
.attachment-action:hover{background:#fff}
.attachment-action.recording{background:#f8e4e2;border-color:#e9bab5;color:#a45953}
.attachment-action .app-icon{width:20px;height:20px}
.attachment-action-icon{font-size:20px;line-height:1;color:#7d756d}
.compact-attachments{gap:8px}
.attachment-item-light{border:0;border-top:1px dashed #e7e1d8;border-radius:0;background:transparent;padding:10px 0;box-shadow:none}
.attachment-item-light:first-child{border-top:0}
.attachment-main{display:flex;align-items:center;gap:10px;min-width:0}
.attachment-type-icon .app-icon{width:28px;height:28px}
.attachment-name{max-width:390px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.attachment-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.attachment-link,.attachment-remove{border:0;background:transparent;color:#8a8179;font-size:12px;padding:3px 4px}
.attachment-link:hover{color:#5f6f88}
.attachment-remove{color:#b67d78;cursor:pointer}
.attachment-empty{padding:4px 0}

.likes-value{display:flex;justify-content:flex-end}
.likes-heart-button{position:relative;width:46px;height:46px;border:0;background:transparent;padding:4px;display:inline-flex;align-items:center;justify-content:center}
.likes-heart-button .app-icon{width:37px;height:37px}
.likes-count-badge{position:absolute;left:-2px;top:-2px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#fff;color:#a06f6a;border:1px solid #ead6d3;font-size:11px;line-height:17px;text-align:center;z-index:1}

.comment-item-light{border:0;border-top:1px dashed #e7e1d8;border-radius:0;background:transparent;padding:11px 0}
.comment-item-light:first-child{border-top:0;padding-top:0}
.friend-comment-editor{width:100%;min-height:90px;margin-top:12px;border:0;border-top:1px dashed #e5dfd6;background:transparent;padding:14px 0 0;outline:none;resize:vertical;line-height:1.8;color:#4f4b46}
.friend-comment-editor:focus{border-top-color:#cfc6bc}

.detail-bottom-actions{justify-content:flex-end;margin-top:24px;padding-top:4px}
.detail-bottom-actions .btn{min-width:92px}

/* 只读时彻底去掉输入框感 */
.is-readonly .detail-control{pointer-events:none}
.is-readonly .inline-counter{display:none}
.is-readonly .compact-options input{pointer-events:none}
.is-readonly .detail-select{appearance:none}

/* 好友详情：目录式、无重复和可见范围、无红心数量 */
#friendPlanPanel .detail-line{grid-template-columns:88px minmax(0,1fr)}
#friendPlanPanel .readonly-value{white-space:pre-wrap;word-break:break-word}

@media(max-width:700px){
  .day-topbar{gap:12px}
  .friend-day-heading{display:block}
  .back-to-my-day{margin-bottom:8px}
  .detail-sheet{padding:4px 17px 20px;border-radius:20px}
  .detail-line,#friendPlanPanel .detail-line{grid-template-columns:70px minmax(0,1fr);gap:12px;padding:15px 0}
  .time-range-editor{gap:6px}
  .time-control{width:100px;max-width:43%}
  .attachment-name{max-width:180px}
  .attachment-item-light{align-items:flex-start}
  .attachment-links{justify-content:flex-end}
}

/* ===== 2026-07-12 二次交互修订：时间比例、轻量知识树、统计与导出 ===== */

/* 时间轴按分钟定位 */
.proportional-timeline{position:relative;overflow:visible;min-height:1248px;background:rgba(255,255,255,.78);border:1px solid var(--line)!important;border-radius:26px;box-shadow:var(--shadow)}
.timeline-hour-grid{position:relative;z-index:1}
.proportional-timeline .hour-row{height:78px;min-height:78px;display:grid;grid-template-columns:86px 1fr;border-bottom:1px solid #ebe6de}
.proportional-timeline .hour-label{position:relative;border-right:1px solid #ebe6de;padding:10px 8px 4px;color:#8e8982;font-size:13px;display:flex;flex-direction:column;align-items:center;gap:4px}
.proportional-timeline .hour-content{padding:0;min-width:0}
.hour-add{width:22px;height:22px;border:0;border-radius:50%;background:rgba(190,210,241,.18);color:#8ca3c0;font-size:16px;line-height:22px;padding:0;opacity:.65}
.hour-add:hover{opacity:1;background:rgba(190,210,241,.34)}
.timeline-cards-layer{position:absolute;z-index:2;left:98px;right:14px;top:0;height:1248px;pointer-events:none}
.timeline-plan-card{position:absolute!important;top:var(--plan-top);height:var(--plan-height);left:var(--plan-left);width:var(--plan-width);min-width:0;max-width:none;padding:10px 13px;border:1px solid rgba(219,224,232,.75)!important;background:rgba(255,255,255,.92);box-shadow:0 8px 20px rgba(88,91,98,.08)!important;border-radius:16px;overflow:hidden;pointer-events:auto;display:flex;flex-direction:column;justify-content:flex-start;gap:6px}
.timeline-plan-card:hover{background:#fff;transform:none;box-shadow:0 12px 24px rgba(88,91,98,.11)!important}
.plan-meta-inline{display:flex;align-items:center;gap:9px;min-width:0;font-size:12px;color:#78879a}
.plan-category{display:inline-block;max-width:65%;padding:3px 8px;border:0!important;border-radius:999px;background:rgba(177,206,243,.24)!important;color:#7187a2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600}
.plan-time{font-size:12px;font-weight:600;color:#7187a2;white-space:nowrap}
.timeline-plan-card .plan-title{font-size:15px;line-height:1.4;font-weight:700;color:#4e4a45;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* 好友下拉菜单顺序和入口 */
.friend-menu{padding-bottom:8px}
.friend-comments-entry{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#5d6672;font-weight:700}
.friend-comments-entry .app-icon{width:20px;height:20px}
.friend-empty{padding:8px}
.friend-add-translucent{width:100%;height:42px;margin-top:10px;border:0;border-radius:14px;background:rgba(183,210,246,.14);display:flex;align-items:center;justify-content:center;opacity:.72}
.friend-add-translucent:hover{opacity:1;background:rgba(183,210,246,.25)}
.friend-add-translucent .app-icon{width:25px;height:25px}
.icon-text-btn{min-width:48px;display:inline-flex;align-items:center;justify-content:center;padding:8px}

/* 计划详情：日期与时间滚动选择、图标按钮 */
.date-range-editor,.time-range-editor{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.date-control{width:150px;max-width:42%;font-variant-numeric:tabular-nums}
.time-wheel{display:inline-flex;align-items:center;gap:4px;padding:2px 0}
.time-wheel-select{width:62px;max-height:160px;overflow-y:auto;text-align:center;font-variant-numeric:tabular-nums}
.time-wheel-select::-webkit-scrollbar{width:5px}.time-wheel-select::-webkit-scrollbar-thumb{background:#d8d2c9;border-radius:999px}
.icon-only-toolbar{gap:12px}
.icon-only-action{width:48px;height:48px;padding:6px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center}
.icon-only-action .app-icon{width:31px;height:31px}
.icon-bottom-actions{gap:14px}
.detail-action-icon{width:52px;height:52px;border:1px solid var(--line);border-radius:18px;background:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--shadow)}
.detail-action-icon.primary{background:#f6f0cf}.detail-action-icon.danger{background:#f9e8e5}
.detail-action-icon:hover{transform:translateY(-1px)}
.detail-action-icon .app-icon{width:31px;height:31px}
.is-readonly .date-control,.is-readonly .time-wheel-select{appearance:none;background:transparent;border:0;color:#55514c}

/* 我的点评 */
.comments-page{max-width:1100px;margin:0 auto}
.comments-filter{margin-bottom:20px;padding:16px 18px}
.comments-filter-row{display:grid;grid-template-columns:150px auto 150px minmax(170px,1fr) minmax(180px,1fr) 48px;align-items:center;gap:10px}
.my-comments-list{display:flex;flex-direction:column;gap:0;background:rgba(255,255,255,.78);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}
.my-comment-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;padding:20px 24px;border-bottom:1px dashed #e6e0d8}
.my-comment-row:last-child{border-bottom:0}
.my-comment-time{display:flex;flex-direction:column;gap:5px;color:#8e8880;font-size:13px}
.my-comment-time strong{color:#5d5852;font-size:14px}
.my-comment-target{font-size:14px;color:#77716a;margin-bottom:8px}
.my-comment-content{font-size:16px;line-height:1.8;color:#4f4b47}
.my-comment-link{display:inline-block;margin-top:9px;font-size:12px;color:#7d90aa}
.comments-loading{text-align:center;padding:18px}

/* 知识树轻量化 */
.tree-stage-light{max-width:1180px}
.tree-toolbar-light{margin-bottom:8px}
.tree-icon-actions{display:flex;align-items:center;gap:10px}
.tree-stage-name-main{text-align:center;font-size:18px;font-weight:750;color:#5e5953;margin:12px 0 24px}
.tree-node-clean{border:0!important;box-shadow:none!important;background:transparent!important;color:#504c47}
.tree-root.tree-node-clean{width:min(520px,88%);padding:13px 18px;background:rgba(246,239,199,.55)!important;border-radius:18px!important;font-size:18px}
.tree-node-l2.tree-node-clean{background:rgba(191,212,246,.22)!important;border-radius:16px!important;padding:12px 11px}
.tree-node-l3.tree-node-clean{background:rgba(255,255,255,.62)!important;border-radius:14px!important;padding:9px 10px}
.tree-root:after,.tree-branch:before,.tree-node-l3:before,.tree-children:before{background:#d9d3ca!important}
.node-actions{margin-top:7px}
.node-action{width:34px;height:34px;padding:4px;border:0!important;background:rgba(255,255,255,.75);border-radius:12px;display:inline-flex;align-items:center;justify-content:center}
.node-action .app-icon{width:22px;height:22px}
.tree-tip-light{border:0!important;background:transparent!important;padding:6px 10px;box-shadow:none!important;color:#817a72;font-size:13px}
.tree-tip-light p{margin:7px 0}
.history-card-light{margin-bottom:28px;padding:22px 24px;background:rgba(255,255,255,.72);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.history-phase-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:15px;color:#69635d}
.history-phase-head span{font-size:13px;color:#9a948d}
.history-root{font-size:18px;font-weight:750;margin-bottom:12px;color:#4f4b47}
.history-card-light .history-l2{border:0;background:rgba(191,212,246,.22);box-shadow:none}
.history-card-light .history-l3{border:0;background:rgba(255,255,255,.7)}

/* 导出页 */
.export-home-top{margin-bottom:16px}
.export-entry{padding-top:12px}
.export-methods{max-width:820px;margin:10px auto 0}
.export-method{min-height:190px;border:1px solid var(--line)!important;background:rgba(255,255,255,.78)}
.export-method small{display:none}
.export-toolbar{margin-bottom:18px}
.export-config-page{max-width:920px}
.export-panel{border:1px solid var(--line)!important;background:rgba(255,255,255,.78);box-shadow:var(--shadow)}
.date-range-simple{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center}
.topic-select-hint{font-size:13px;margin:12px 0 4px}
.multi-topic-tree button.selected{background:rgba(183,210,246,.42)!important;color:#4e5d73!important;outline:2px solid rgba(152,182,224,.45)}
.selected-topic{display:none!important}
.export-submit{display:flex;justify-content:center}
.export-heading h1{display:none}

/* 统计页 */
.stats-page-light{max-width:1180px}
.stats-page-light .stats-toolbar{margin-bottom:8px}
.stats-tree-panel{padding-top:12px}
.stats-tree-root-light{background:rgba(246,239,199,.58)!important;border:0!important;box-shadow:none!important;border-radius:20px!important}
.stats-root-copy small{display:block;font-size:12px;color:#928c84;margin-bottom:4px}
.stats-root-goal{font-size:13px;color:#8d8780;margin-top:4px}
.stats-tree-l2,.stats-tree-l3{border:0!important;box-shadow:none!important}
.stats-tree-l2{background:rgba(191,212,246,.23)!important}.stats-tree-l3{background:rgba(255,255,255,.7)!important}
.stats-tree-root:after,.stats-tree-branch:before,.stats-tree-children:before,.stats-tree-l3:before{background:#d9d3ca!important}
.stats-chart-icons{display:flex;justify-content:center;gap:24px;margin-top:22px}
.chart-icon-only{width:92px;height:92px;display:flex!important;align-items:center;justify-content:center;padding:12px;border:1px solid var(--line)!important;background:rgba(255,255,255,.78)!important}
.chart-icon-only strong,.chart-icon-only small{display:none!important}
.chart-icon-only .chart-entry-icon{grid-row:auto;width:64px;height:64px;border:0!important}
.summary-heading-light{text-align:left;margin:6px 0 22px}
.summary-heading-light h1{font-size:28px;margin:0 0 6px}
.summary-table-light{border:1px solid var(--line)!important;background:rgba(255,255,255,.78)}
.summary-table-light th{background:#f7f4e7;font-weight:700}
.summary-table-light td,.summary-table-light th{border-bottom:1px solid #ebe5dc}
.phase-cell{vertical-align:top;min-width:105px}
.phase-cell strong{display:block}.phase-cell small,.level2-cell small{display:block;margin-top:5px;font-size:11px;color:#8f8982}
.level2-cell{background:rgba(190,210,241,.12)}
.summary-row td{background:rgba(203,230,191,.18)!important;font-weight:700}
.phase-color-0 .phase-cell{background:rgba(246,239,199,.28)}.phase-color-1 .phase-cell{background:rgba(191,212,246,.20)}.phase-color-2 .phase-cell{background:rgba(233,168,163,.14)}.phase-color-3 .phase-cell{background:rgba(203,230,191,.19)}.phase-color-4 .phase-cell{background:rgba(211,198,239,.16)}

@media(max-width:800px){
  .timeline-cards-layer{left:72px;right:8px}.proportional-timeline .hour-row{grid-template-columns:64px 1fr}.proportional-timeline .hour-label{font-size:12px}
  .comments-filter-row{grid-template-columns:1fr auto 1fr}.comments-filter-row .select,.comments-filter-row #keyword,.comments-filter-row #searchBtn{grid-column:1/-1}
  .my-comment-row{grid-template-columns:1fr;gap:8px}
  .date-range-editor,.time-range-editor{align-items:flex-start}.date-control{width:130px;max-width:46%}
}
.camera-capture-modal{width:min(760px,96vw);padding:16px;background:#111;border:0!important}
.camera-preview{display:block;width:100%;max-height:70vh;object-fit:contain;border-radius:16px;background:#000}
.camera-capture-actions{display:flex;justify-content:center;gap:16px;padding-top:14px}
.camera-capture-actions .detail-action-icon{box-shadow:none}
.camera-capture-actions .recording{background:#f1b4ae;animation:cameraPulse 1s infinite alternate}
@keyframes cameraPulse{from{transform:scale(1)}to{transform:scale(1.06)}}

/* ===== 2026-07-12 第三轮修订：标题显示、目录式知识树、齿轮时间、清淡统计 ===== */
.icon-camera{background-image:url('/assets/icons/camera.webp')}
.icon-video-camera{background-image:url('/assets/icons/video-camera.webp')}
.icon-microphone{background-image:url('/assets/icons/microphone.webp')}

/* “今天/昨天”等与日期完全同级，不再加粗或变色 */
.relative-day-label{color:inherit;font-weight:inherit;font-size:inherit}
.relative-day-label:before{color:inherit;font-weight:inherit}

/* 时间轴中的短计划也必须显示主题 */
.timeline-plan-card{gap:3px;padding:7px 10px;justify-content:flex-start}
.timeline-plan-card .plan-meta-inline{line-height:1.15;min-height:15px}
.timeline-plan-card .plan-title{font-size:14px;line-height:1.25;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:18px}
.timeline-plan-compact{padding:4px 8px;gap:1px}
.timeline-plan-compact .plan-meta-inline{font-size:10px;gap:6px;min-height:12px}
.timeline-plan-compact .plan-category,.timeline-plan-compact .plan-time{font-size:10px;padding-top:1px;padding-bottom:1px}
.timeline-plan-compact .plan-title{font-size:12px;line-height:1.12;min-height:13px}

/* 好友页顶部：只用小人头像作返回按钮 */
.friend-avatar-back{width:42px;height:42px;padding:0;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 5px 14px rgba(92,87,76,.08)}
.friend-avatar-back img{width:100%;height:100%;object-fit:cover;display:block}
.friend-day-heading{align-items:center}

/* 好友计划操作弹窗：淡边框，大图标 */
.action-popover.friend-plan-popover{padding:9px 11px;gap:12px;border:1px solid #e8e2d8!important;border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 14px 30px rgba(80,75,68,.14)}
.friend-action-button{width:56px;height:56px;border:0;border-radius:16px;background:#fbfaf6;display:inline-flex;align-items:center;justify-content:center;color:#77716a;transition:.15s}
.friend-action-button:hover{background:#f5f1e9;transform:translateY(-1px)}
.friend-action-button .app-icon{width:38px;height:38px}
.friend-heart-action .heart-symbol{font-size:42px;line-height:1;color:#8e8882;font-family:Arial,sans-serif}
.friend-heart-action.liked .heart-symbol{color:#df6861}

/* 计划时间齿轮 */
.gear-time-editor{align-items:center}
.time-gear-trigger{min-width:112px;border:0;background:transparent;color:#4f4b46;padding:4px 8px;border-bottom:1px dashed #d8d1c8;font-variant-numeric:tabular-nums;font-size:16px;text-align:center}
.time-gear-trigger:hover:not(:disabled){background:#faf8f3;border-radius:10px}
.time-gear-trigger:disabled{border-bottom:0;color:#55514c;cursor:default}
.time-gear-picker{display:grid;grid-template-columns:1fr 34px 1fr;gap:8px;align-items:center;max-width:360px;margin:0 auto}
.gear-column{min-width:0}
.gear-label{text-align:center;font-size:12px;color:#9b958e;margin-bottom:7px}
.gear-scroll{height:240px;overflow-y:auto;scroll-snap-type:y mandatory;padding:96px 6px;border-radius:18px;background:linear-gradient(180deg,#faf8f2,#fff,#faf8f2);box-shadow:inset 0 0 0 1px #ece6dc}
.gear-option{display:block;width:100%;height:48px;border:0;background:transparent;color:#aaa39b;font-size:19px;scroll-snap-align:center;border-radius:12px;font-variant-numeric:tabular-nums}
.gear-option.active{background:#f3edca;color:#4f4b46;font-weight:700;transform:scale(1.05)}
.gear-colon{text-align:center;font-size:26px;color:#8c867f}

/* 计划附件按钮使用纯功能图标 */
.icon-only-action .icon-camera,.icon-only-action .icon-video-camera,.icon-only-action .icon-microphone{width:34px;height:34px}

/* 所有点评页返回键固定在标题左侧 */
.comments-topbar{justify-content:flex-start}
.comments-title-wrap{display:flex;align-items:center;gap:12px}

/* 知识树：用半透明色块和缩进表达层级，去除树状框线 */
.tree-stage-light{max-width:900px}
.tree-title-wrap{margin:6px 0 18px;text-align:left}
.tree-stage-name-main{font-size:15px;font-weight:700;color:#8e8881;margin:0}
.tree-list-view{display:flex;flex-direction:column;gap:8px;margin:0 auto;max-width:820px}
.tree-list-branch{display:flex;flex-direction:column;gap:6px}
.tree-list-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;border-radius:15px;padding:10px 14px;color:#504c47}
.tree-list-root{margin-left:0;background:rgba(247,229,145,.43);font-size:17px;font-weight:750}
.tree-list-level2{margin-left:34px;background:rgba(176,207,245,.28);font-size:15px;font-weight:700}
.tree-list-level3{margin-left:68px;background:rgba(213,231,248,.28);font-size:14px}
.tree-list-name{min-width:0;word-break:break-word}
.tree-list-actions{display:flex;gap:6px;flex:0 0 auto}
.tree-inline-action{width:32px;height:32px;border:0;border-radius:11px;background:rgba(255,255,255,.68);display:inline-flex;align-items:center;justify-content:center}
.tree-inline-action:hover{background:#fff}
.tree-inline-action .app-icon{width:21px;height:21px}
.tree-list-add{width:38px;height:38px;border:0;border-radius:13px;background:rgba(183,210,246,.18);display:flex;align-items:center;justify-content:center;opacity:.72}
.tree-list-add:hover{opacity:1;background:rgba(183,210,246,.32)}
.tree-list-add .app-icon{width:24px;height:24px}
.tree-add-level2{margin-left:34px}
.tree-add-level3{margin-left:68px}
.tree-list-row.drag-over{outline:2px dashed rgba(126,155,195,.45)}
.tree-root:after,.tree-branch:before,.tree-node-l3:before,.tree-children:before{display:none!important}

/* 历史知识树同样改为轻量目录 */
.history-card-light{padding:20px 22px;border:0;background:rgba(255,255,255,.58)}
.history-phase-head{margin-bottom:10px}
.history-root{padding:11px 14px;border-radius:14px;background:rgba(247,229,145,.40)}
.history-card-light .history-tree{display:flex;flex-direction:column;gap:6px}
.history-card-light .history-l2{margin-left:32px;padding:10px 13px;border-radius:13px;background:rgba(176,207,245,.24)}
.history-card-light .history-l3{margin:6px 0 0 32px;padding:8px 12px;border-radius:12px;background:rgba(213,231,248,.25)}

/* 统计主页使用与知识树相同的目录层级 */
.stats-tree-panel{max-width:860px;margin:0 auto;padding:12px 0 22px}
.stats-list-view{display:flex;flex-direction:column;gap:7px}
.stats-list-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:10px 15px;border-radius:15px;color:#514d47}
.stats-list-root{margin-left:0;background:rgba(247,229,145,.43)}
.stats-list-root .stats-list-name{display:flex;align-items:center;gap:10px;font-size:16px}
.stats-list-root .stats-list-name span{font-weight:700}
.stats-list-level2{margin-left:34px;background:rgba(176,207,245,.28);font-weight:700}
.stats-list-level3{margin-left:68px;background:rgba(213,231,248,.28)}
.stats-list-unclassified{color:#79736d;font-style:italic}
.stats-list-time{white-space:nowrap;font-size:13px;color:#7e7770;font-variant-numeric:tabular-nums}
.stats-tree-root,.stats-tree-level2,.stats-unclassified{display:none}

/* 统计图页面：淡色、细边框、清晰留白 */
.chart-card{border:1px solid #ece6dc!important;background:rgba(255,255,255,.90);box-shadow:0 12px 28px rgba(91,85,76,.07)!important;border-radius:24px;padding:24px}
.chart-card h2{font-size:16px;color:#665f58;font-weight:700}
.chart-level-tabs .tab{border:1px solid #e8e2d8;background:#fff;color:#77716a}
.chart-level-tabs .tab.active{background:#f3edca;color:#4f4b46}

/* 设置页面 */
.settings-page{max-width:960px;margin:0 auto;width:100%}
.settings-head{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.settings-list{border-radius:24px;background:rgba(255,255,255,.78);box-shadow:var(--shadow);overflow:hidden;border:1px solid #ece6dc}
.settings-row{width:100%;display:grid;grid-template-columns:48px 1fr 24px;gap:13px;align-items:center;text-align:left;border:0;border-bottom:1px solid #eee8df;background:transparent;padding:17px 20px;color:#514d47}
.settings-row:last-child{border-bottom:0}
.settings-row:hover{background:#fffdf8}
.settings-row-icon{width:42px;height:42px;border-radius:14px;background:#faf7ee;display:flex;align-items:center;justify-content:center}
.settings-row-icon .app-icon{width:28px;height:28px}
.settings-row strong{display:block;font-size:15px;margin-bottom:4px}
.settings-row small{display:block;color:#9b958e;font-size:12px}
.settings-row em{font-style:normal;color:#aaa39c;font-size:24px;text-align:right}
.settings-row-danger strong{color:#b76d67}
.settings-modal-form{display:grid;gap:14px}.settings-modal-form label{display:grid;gap:7px;color:#716b64;font-size:13px}
.settings-switch-line{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px dashed #e8e1d8}.settings-switch-line:last-child{border-bottom:0}
.settings-radio-list{display:grid;gap:12px}.settings-radio-list label{display:flex;gap:8px;align-items:center;padding:10px;border-radius:12px;background:#faf8f3}
.settings-info-block{line-height:1.8;color:#665f58}

/* 所有弹窗进一步淡化 */
.modal-mask{background:rgba(70,66,60,.20);backdrop-filter:blur(2px)}
.modal{border:1px solid #e7e0d7!important;background:#fffdfa;box-shadow:0 18px 45px rgba(70,65,58,.16)!important}
.modal-head{border-bottom:1px solid #eee7de;padding-bottom:12px}
.modal-title{font-weight:750;color:#5b5650}

@media(max-width:700px){
  .tree-list-level2,.stats-list-level2,.tree-add-level2{margin-left:18px}
  .tree-list-level3,.stats-list-level3,.tree-add-level3{margin-left:36px}
  .time-gear-trigger{min-width:92px}
  .settings-row{grid-template-columns:42px 1fr 18px;padding:14px 15px}
}
.tree-edit-save-wrap{display:flex;justify-content:flex-end;margin-top:18px}
.friend-avatar-back img{object-fit:contain;background:#fbfaee}

/* ===== 2026-07-13 incremental refinement ===== */

/* 首页：标题、日期、按钮和时间流使用同一条左右边界。 */
.day-topbar,
.timeline-wrap,
.day-dots,
.dot-caption{
  width:min(1020px,100%);
  max-width:1020px;
  margin-left:auto;
  margin-right:auto;
}
.day-topbar{align-items:flex-start;padding:0;margin-bottom:18px}
.day-topbar .top-actions{align-self:flex-start}
.day-date-line{display:flex;align-items:baseline;gap:8px}
.relative-day-label{font:inherit;color:inherit;font-weight:inherit}
.timeline-plan-card{min-height:42px!important}
.timeline-plan-card .plan-title{display:block!important;visibility:visible!important;opacity:1!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;line-height:1.25!important;flex:0 0 auto}
.timeline-plan-card .plan-category{border:0!important;background:rgba(188,214,246,.30)!important;padding:2px 7px;color:#657080;font-weight:500}
.timeline-plan-card .plan-time{font-size:inherit;font-weight:500;color:#707780}
.timeline-plan-compact .plan-title{font-size:12px!important;min-height:14px!important}
.timeline-plan-compact .plan-meta-inline{min-height:13px!important}

/* 计划详情：单日日期、清淡双齿轮时间选择。 */
.single-date-editor{display:flex;align-items:center}
.single-date-editor .date-control{max-width:240px}
.time-gear-modal,.modal:has(.time-gear-picker){background:rgba(255,255,255,.94)!important;border:1px solid rgba(222,217,207,.8)!important;box-shadow:0 18px 48px rgba(90,84,76,.12)!important}
.time-gear-picker{max-width:390px;grid-template-columns:1fr 24px 1fr;gap:12px}
.gear-column{background:rgba(247,246,241,.72)!important;border:0!important;border-radius:20px;padding:8px}
.gear-label{font-size:14px!important;color:#98928a;font-weight:500}
.gear-scroll{height:250px;scroll-snap-type:y mandatory;padding:95px 0}
.gear-option{height:48px!important;font-size:16px!important;font-weight:500!important;color:#817b74;background:transparent!important;border:0!important;scroll-snap-align:center;border-radius:14px}
.gear-option.active{background:rgba(188,214,246,.28)!important;color:#4f555d!important;font-size:18px!important}
.gear-colon{font-size:22px;color:#aaa39a}
.recurrence-detail{margin-top:8px;font-size:13px}
.recurrence-modal-form{display:grid;gap:18px}
.recurrence-date-row{display:grid;grid-template-columns:1fr 22px 1fr;align-items:end;gap:10px}
.recurrence-date-row label{display:grid;gap:7px;color:#7d7770;font-size:14px}
.recurrence-date-row>span{text-align:center;padding-bottom:12px;color:#aaa39a}
.recurrence-weekdays{display:flex;flex-wrap:wrap;gap:8px}
.recurrence-weekdays label{padding:8px 11px;border-radius:12px;background:rgba(188,214,246,.20);color:#666f7b}

/* 知识树：连续色带、缩进表示层级。 */
.tree-stage,.stats-page{max-width:1040px;margin:0 auto}
.tree-toolbar-aligned,.tree-list-view,.tree-tip,.history-phase-block{width:min(900px,100%);max-width:900px;margin-left:auto;margin-right:auto}
.tree-toolbar-left{display:flex;align-items:center;gap:14px}
.tree-stage-name-main{margin:0;font-size:18px;font-weight:700;color:#5b5751}
.tree-list-view{gap:0!important;border-radius:22px;overflow:hidden}
.tree-list-branch{gap:0!important}
.tree-list-row{border-radius:0!important;margin-top:0!important;margin-bottom:0!important;min-height:49px;border:0!important;box-shadow:none!important}
.tree-list-root{margin-left:0!important;background:rgba(247,229,145,.44)!important;padding-left:18px}
.tree-list-level2{margin-left:0!important;background:rgba(176,207,245,.30)!important;padding-left:48px}
.tree-list-level3{margin-left:0!important;background:rgba(213,231,248,.34)!important;padding-left:82px}
.tree-list-add{margin-top:0!important;border-radius:0!important;width:100%!important;height:42px!important;justify-content:flex-start!important;padding-left:48px!important;background:rgba(176,207,245,.14)!important}
.tree-add-level3{padding-left:82px!important;background:rgba(213,231,248,.18)!important}
.tree-edit-save-wrap{padding:24px;text-align:center;background:rgba(255,255,255,.76)}
.tree-tip{margin-top:24px}
.history-phase-block{margin-bottom:30px}
.history-phase-title{display:flex;justify-content:space-between;align-items:center;padding:0 4px 10px;color:#6e6962}
.history-phase-title span{font-size:13px;color:#99938b}
.history-tree-list{margin:0}

/* 阶段选择与知识树一致。 */
.phase-picker-modal{width:min(760px,94vw)!important;max-height:88vh!important;background:rgba(250,249,245,.98)!important;border:1px solid var(--line)!important}
.phase-tree-picker{display:grid;gap:22px}
.phase-tree-choice{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;border-radius:20px;overflow:hidden}
.phase-tree-choice.selected{box-shadow:0 0 0 3px rgba(178,204,237,.45)}
.phase-tree-head{display:flex;justify-content:space-between;gap:12px;padding:8px 6px;color:#6f6962}
.phase-tree-head span{font-size:12px;color:#99928a}
.compact-phase-tree{width:100%;margin:0}
.compact-phase-tree .tree-list-row{min-height:42px}

/* 统计页面边界和字体与主体对齐。 */
.stats-toolbar,.stats-tree-panel,.stats-heading,.stats-chart-actions,.chart-card,.chart-level-tabs{width:min(900px,100%);max-width:900px;margin-left:auto!important;margin-right:auto!important}
.stats-toolbar{padding-left:0;padding-right:0}
.stats-tree-panel{padding:0!important}
.stats-list-view{gap:0!important;border-radius:22px;overflow:hidden}
.stats-list-row{border-radius:0!important;margin:0!important;min-height:49px;border:0!important}
.stats-list-root{background:rgba(247,229,145,.44)!important;padding-left:18px}
.stats-list-level2{margin-left:0!important;background:rgba(176,207,245,.30)!important;padding-left:48px}
.stats-list-level3{margin-left:0!important;background:rgba(213,231,248,.34)!important;padding-left:82px}
.stats-list-unclassified{font-style:normal!important}
.stats-heading{margin-top:8px!important;margin-bottom:18px!important;text-align:left}
.stats-heading h1{font-size:18px!important;font-weight:700!important;color:#5b5751;margin:0 0 12px!important}
.chart-card{border:0!important;background:rgba(255,255,255,.72)!important;box-shadow:0 12px 34px rgba(87,82,74,.08)!important;border-radius:26px!important}
.chart-card h2{font-size:16px;font-weight:650;color:#69645e}
.stats-chart-icons{grid-template-columns:repeat(2,76px)!important;justify-content:center}
.chart-icon-only{width:76px!important;height:76px!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:4px!important}

/* 导出配置统一为轻盈色块，不使用虚线边框。 */
.export-panel{border:0!important;background:rgba(255,255,255,.72)!important;box-shadow:0 10px 28px rgba(87,82,74,.07)!important}
.export-field-grid label,.format-options label{border:0!important;background:rgba(188,214,246,.18)!important;border-radius:14px!important;padding:11px 13px!important}
.attachment-choice{background:rgba(247,229,145,.30)!important}
.export-topic-tree{padding:0!important;margin:16px 0!important;overflow:visible!important}
.export-tree-list{width:100%;max-width:none}
.export-topic-row{width:100%;text-align:left;cursor:pointer}
.export-topic-row.selected{outline:0!important;background-color:rgba(183,210,246,.55)!important;color:#4e5d73!important}
.export-topic-row.tree-list-level3.selected{background-color:rgba(213,231,248,.70)!important}
.topic-check-mark{width:16px;height:16px;border-radius:50%;border:1px solid rgba(125,145,172,.42);margin-right:9px;flex:0 0 auto}
.export-topic-row.selected .topic-check-mark{background:#9dbce4;box-shadow:inset 0 0 0 4px rgba(255,255,255,.8)}
.export-preview canvas{border:1px solid rgba(120,115,105,.10)!important;box-shadow:0 14px 36px rgba(88,82,74,.10)!important;background:#faf9f4!important}

/* 好友计划操作弹窗。 */
.action-popover.friend-plan-popover{position:fixed!important;display:flex!important;align-items:center;gap:18px!important;padding:14px 18px!important;border:0!important;border-radius:24px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 18px 46px rgba(73,69,63,.18)!important;z-index:3000!important}
.friend-action-button{width:68px!important;height:68px!important;border:0!important;border-radius:20px!important;background:#f8f7f3!important;overflow:visible}
.friend-action-button .heart-symbol{font-size:48px;line-height:1;color:#8e8881}
.friend-heart-action.liked .heart-symbol{color:#e36d68}
.friend-comment-action .app-icon{width:50px!important;height:50px!important;display:block!important;opacity:1!important}
.friend-avatar-back{border:0!important;background:transparent!important;box-shadow:none!important;width:42px!important;height:42px!important}
.friend-avatar-back .app-icon{width:38px;height:38px}

/* 点评 / 点赞列表。 */
.my-comment-time span{display:none!important}
.notice-banner{position:fixed;right:24px;top:24px;z-index:5000;border:0;border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 14px 36px rgba(70,66,60,.16);padding:14px 18px;color:#615d57;font-weight:650}

/* 设置页扩展。 */
.profile-avatar-editor{display:flex;align-items:center;gap:18px;margin-bottom:18px}
.profile-avatar-editor img{width:86px;height:86px;object-fit:cover;border-radius:22px;border:1px solid var(--line)}
.profile-upload-button{position:relative;overflow:hidden}
.settings-section-label{margin:18px 0 10px;font-weight:700;color:#625e58}
.settings-check-list,.settings-radio-list{display:grid;gap:10px}
.settings-check-list label,.settings-radio-list label{padding:10px 12px;border-radius:14px;background:rgba(188,214,246,.16)}
.attachment-manager-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.attachment-manager-list{max-height:360px;overflow:auto;display:grid;gap:8px}
.managed-attachment{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:10px 12px;border-radius:14px;background:rgba(245,243,237,.82)}
.managed-attachment span{display:grid;gap:3px}
.managed-attachment small{color:#979188}
.attachment-manager-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:14px}
.storage-actions{margin-bottom:12px}

/* 字体大小与黑白显示。 */
body.font-small .topbar-title,body.font-small .tree-stage-name-main,body.font-small .stats-heading h1{font-size:16px!important}
body.font-small .plan-title,body.font-small .detail-line,body.font-small .settings-row,body.font-small .tree-list-row,body.font-small .stats-list-row{font-size:calc(1em - 2px)!important}
body.font-large .topbar-title{font-size:30px!important}
body.font-large .tree-stage-name-main,body.font-large .stats-heading h1{font-size:20px!important}
body.font-large .plan-title,body.font-large .detail-line,body.font-large .settings-row,body.font-large .tree-list-row,body.font-large .stats-list-row{font-size:calc(1em + 2px)!important}
body.display-mono{filter:grayscale(1)}

@media(max-width:680px){
  .day-topbar,.timeline-wrap,.day-dots,.dot-caption,.tree-toolbar-aligned,.tree-list-view,.tree-tip,.stats-toolbar,.stats-tree-panel,.stats-heading,.stats-chart-actions,.chart-card{width:100%}
  .recurrence-date-row{grid-template-columns:1fr}.recurrence-date-row>span{display:none}
  .attachment-manager-tools{grid-template-columns:1fr}
}
body.font-small{zoom:.90}
body.font-large{zoom:1.10}
.summary-table-wrap{border:0!important;box-shadow:0 12px 34px rgba(87,82,74,.08)!important;border-radius:24px!important}
.summary-table th,.summary-table td{border-bottom:1px solid rgba(120,115,105,.10)!important}
.summary-table th{background:rgba(247,229,145,.32)!important;color:#676159}
.summary-table .phase-cell{background:rgba(247,229,145,.30)!important;vertical-align:top}
.summary-table .level2-cell{background:rgba(176,207,245,.22)!important;vertical-align:top}
.summary-table td:nth-child(3){background:rgba(213,231,248,.20)}
.summary-table .summary-row td{background:rgba(204,228,194,.24)!important;border-top:0!important}

/* ===== v5：主题色、重复计划、统计与导出视觉统一 ===== */
:root{
  --page-theme-bg:#fbf8ef;
  --surface-theme:rgba(255,253,247,.88);
  --tone-root:rgba(239,215,143,.42);
  --tone-level2:rgba(235,196,125,.30);
  --tone-level3:rgba(247,226,183,.36);
  --tone-option:rgba(244,220,157,.24);
  --tone-selected:rgba(226,184,104,.38);
  --tone-strong:#c99b49;
}
body.theme-soft{
  --page-theme-bg:#fcfbf7;
  --surface-theme:rgba(255,255,252,.92);
  --tone-root:rgba(239,225,185,.26);
  --tone-level2:rgba(240,218,177,.20);
  --tone-level3:rgba(248,236,211,.28);
  --tone-option:rgba(243,229,196,.18);
  --tone-selected:rgba(231,207,156,.26);
  --tone-strong:#c8ad72;
}
body.theme-elegant{
  --page-theme-bg:#fbf8ef;
  --surface-theme:rgba(255,253,247,.90);
  --tone-root:rgba(239,215,143,.42);
  --tone-level2:rgba(235,196,125,.30);
  --tone-level3:rgba(247,226,183,.36);
  --tone-option:rgba(244,220,157,.24);
  --tone-selected:rgba(226,184,104,.38);
  --tone-strong:#c99b49;
}
body.theme-vivid{
  --page-theme-bg:#f3f7fc;
  --surface-theme:rgba(250,253,255,.92);
  --tone-root:rgba(112,157,211,.34);
  --tone-level2:rgba(84,133,193,.26);
  --tone-level3:rgba(156,194,229,.31);
  --tone-option:rgba(132,177,220,.20);
  --tone-selected:rgba(80,133,195,.38);
  --tone-strong:#5f8ec8;
}
body.theme-neutral{
  --page-theme-bg:#f6f6f4;
  --surface-theme:rgba(255,255,255,.90);
  --tone-root:rgba(177,177,173,.30);
  --tone-level2:rgba(151,151,149,.22);
  --tone-level3:rgba(204,204,201,.28);
  --tone-option:rgba(181,181,178,.18);
  --tone-selected:rgba(136,136,133,.28);
  --tone-strong:#7b7b78;
}
body{background:var(--page-theme-bg)!important}
.sidebar,.panel,.modal,.chart-card,.summary-table-wrap,.export-panel{background:var(--surface-theme)!important}

/* 主题切换时同步图标底色。 */
body.theme-soft .app-icon{filter:saturate(.60) brightness(1.06)}
body.theme-elegant .app-icon{filter:saturate(.82) brightness(1.02)}
body.theme-vivid .app-icon{filter:hue-rotate(158deg) saturate(.82) brightness(.98)}
body.theme-neutral .app-icon{filter:grayscale(1) contrast(.88) brightness(1.02)}

/* 知识树、导出树与统计树统一使用同色系。 */
.tree-list-root,.stats-list-root{background:var(--tone-root)!important}
.tree-list-level2,.stats-list-level2{background:var(--tone-level2)!important}
.tree-list-level3,.stats-list-level3{background:var(--tone-level3)!important}
.tree-list-add{background:color-mix(in srgb,var(--tone-level2) 62%,transparent)!important}
.tree-add-level3{background:color-mix(in srgb,var(--tone-level3) 66%,transparent)!important}

/* 统计页色块本身随层级缩进，而不是只有文字缩进。 */
.stats-list-view{overflow:visible!important;background:transparent!important}
.stats-list-row{box-sizing:border-box}
.stats-list-root{width:100%!important;margin-left:0!important;padding-left:18px!important;border-radius:16px 16px 0 0!important}
.stats-list-level2{width:calc(100% - 34px)!important;margin-left:34px!important;padding-left:16px!important}
.stats-list-level3{width:calc(100% - 68px)!important;margin-left:68px!important;padding-left:16px!important}
.stats-list-row:last-child{border-radius:0 0 16px 16px!important}

/* 阶段回顾只显示阶段编号、名称和周期。 */
.phase-select-simple{padding:8px 2px 2px}
.phase-select-simple .select{border:0!important;background:var(--tone-option)!important;box-shadow:none!important;border-radius:15px!important;padding:13px 14px!important;color:#5f5a54}

/* 重复周期弹窗跟随主题色。 */
.recurrence-weekdays label,.settings-check-list label,.settings-radio-list label{background:var(--tone-option)!important;color:#625d57}
.recurrence-modal-form .input{background:rgba(255,255,255,.62)!important;border:1px solid rgba(115,108,98,.10)!important}

/* 导出页：要素、格式、知识树全部跟随当前主题。 */
.export-field-grid label,.format-options label{background:var(--tone-option)!important;color:#625d57!important}
.attachment-choice{background:var(--tone-root)!important}
.export-topic-tree .tree-list-view{gap:0!important;border-radius:20px!important;overflow:hidden!important}
.export-topic-tree .tree-list-row{margin:0!important;width:100%!important;border-radius:0!important;border:0!important;box-shadow:none!important}
.export-topic-tree .tree-list-root{padding-left:18px!important}
.export-topic-tree .tree-list-level2{padding-left:48px!important}
.export-topic-tree .tree-list-level3{padding-left:82px!important}
.export-topic-row.selected{background:var(--tone-selected)!important;color:#5d5548!important}
.export-topic-row.tree-list-level3.selected{background:color-mix(in srgb,var(--tone-selected) 74%,var(--tone-level3))!important}
.export-topic-row.selected .topic-check-mark{background:var(--tone-strong)!important}
.topic-check-mark{border-color:color-mix(in srgb,var(--tone-strong) 48%,transparent)!important}

/* 汇总表按知识树层级配色，汇总行回到中性灰白。 */
.summary-table thead th:nth-child(1),.summary-table .phase-cell{background:var(--tone-root)!important}
.summary-table thead th:nth-child(2),.summary-table .level2-cell{background:var(--tone-level2)!important}
.summary-table thead th:nth-child(3),.summary-table .level3-cell{background:var(--tone-level3)!important}
.summary-table thead th:nth-child(4),.summary-table .time-cell{background:rgba(255,255,255,.58)!important}
.summary-table .summary-row td{background:rgba(245,245,242,.82)!important;color:#625e58!important}

/* 界面主题选择。 */
.theme-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.theme-choice{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:11px 12px;border-radius:15px;background:rgba(255,255,255,.58)}
.theme-choice input{margin:0}
.theme-swatch{width:38px;height:24px;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(70,65,58,.08)}
.theme-choice-soft .theme-swatch{background:linear-gradient(90deg,#f8f2df,#eee1bd,#fffaf0)}
.theme-choice-elegant .theme-swatch{background:linear-gradient(90deg,#eed18d,#e7b967,#f6e3b3)}
.theme-choice-vivid .theme-swatch{background:linear-gradient(90deg,#7aa9df,#4f83c4,#a9cee9)}
.theme-choice-neutral .theme-swatch{background:linear-gradient(90deg,#d5d5d2,#8e8e8b,#ececea)}

/* 去除旧黑白模式残留。 */
body.display-mono{filter:none!important}

@media(max-width:680px){
  .stats-list-level2{width:calc(100% - 18px)!important;margin-left:18px!important}
  .stats-list-level3{width:calc(100% - 36px)!important;margin-left:36px!important}
  .theme-choice-grid{grid-template-columns:1fr}
}


/* ===== 2026-07-13 用户反馈补丁：透明层级、弹窗、导出 ===== */

/* 登录页：使用更轻、更透明的卡片和无框输入。 */
.login-page{background:linear-gradient(135deg,rgba(250,244,231,.76),rgba(241,235,246,.54),rgba(234,243,248,.62));}
.login-card{background:rgba(255,255,255,.52)!important;border:0!important;box-shadow:0 22px 58px rgba(90,82,73,.10)!important;backdrop-filter:blur(16px);padding:32px!important;}
.login-title{font-size:25px;font-weight:650;color:#5d5751;margin-bottom:24px;}
.login-options{gap:10px;}
.login-option{border:0!important;box-shadow:none!important;color:#615b55;font-weight:550;padding:13px 15px;}
.login-option.guest{background:rgba(247,218,188,.42)!important;}
.login-option.wechat{background:rgba(202,230,215,.43)!important;}
.login-card .tabs{background:rgba(255,255,255,.42);border-radius:14px;padding:4px;margin-top:18px;}
.login-card .tab{border:0!important;box-shadow:none!important;background:transparent!important;color:#8c857d;font-size:14px;font-weight:500;}
.login-card .tab.active{background:rgba(222,208,228,.46)!important;color:#5d5751;}
.login-card .input{border:0!important;background:rgba(255,255,255,.58)!important;box-shadow:none!important;border-radius:14px;padding:12px 14px;}
.login-card .input:focus{box-shadow:0 0 0 2px rgba(180,164,187,.18)!important;}
.login-card .form-label{font-size:13px;font-weight:500;color:#8f8880;}
.login-card .btn.primary{border:0!important;background:rgba(226,202,157,.48)!important;box-shadow:none!important;font-size:14px;font-weight:550;}

/* 仅好友可见名单：淡粉色实心框，不使用虚线。 */
.friend-check{border:0!important;background:rgba(244,207,217,.34)!important;box-shadow:none!important;color:#655c5f;}
.friend-check input{accent-color:#c891a2;}

/* 弹窗按钮字号和字重与正文一致；所有确认框不再出现右上角关闭。 */
.modal-actions{margin-top:18px;justify-content:flex-end;gap:10px;}
.modal-actions .btn{border:0!important;box-shadow:none!important;padding:9px 16px;font-size:14px!important;font-weight:500!important;color:#655f59;background:rgba(242,239,233,.78)!important;}
.modal-actions .btn.primary{background:rgba(208,222,239,.64)!important;color:#555d67;}
.modal-actions .btn.ghost{border-style:solid!important;background:rgba(245,241,238,.72)!important;color:#77706a;}
.modal-actions .btn:hover{transform:none;background:rgba(231,226,219,.82)!important;}
.modal-head{min-height:32px;}

/* 计划详情：时间控件下方不显示虚线。 */
.time-gear-trigger{border-bottom:0!important;}
.time-gear-trigger:hover:not(:disabled){background:rgba(246,242,237,.72)!important;}

/* 知识树色彩：更透明，同时明显区分总目标、子目标和子子目标。 */
:root{
  --tone-root:rgba(244,203,164,.34);
  --tone-level2:rgba(174,205,238,.30);
  --tone-level3:rgba(228,198,218,.25);
  --tone-option:rgba(193,215,239,.18);
  --tone-selected:rgba(170,201,235,.46);
  --tone-strong:#88a8cc;
  --summary-line:rgba(112,106,99,.12);
}
body.theme-soft{
  --tone-root:rgba(244,211,181,.25);
  --tone-level2:rgba(189,215,240,.23);
  --tone-level3:rgba(235,211,226,.20);
  --tone-option:rgba(207,224,241,.15);
  --tone-selected:rgba(185,210,237,.34);
  --tone-strong:#9bb4d1;
}
body.theme-elegant{
  --tone-root:rgba(244,203,164,.34);
  --tone-level2:rgba(174,205,238,.30);
  --tone-level3:rgba(228,198,218,.25);
  --tone-option:rgba(193,215,239,.18);
  --tone-selected:rgba(170,201,235,.46);
  --tone-strong:#88a8cc;
}
body.theme-vivid{
  --tone-root:rgba(239,182,139,.38);
  --tone-level2:rgba(139,184,229,.35);
  --tone-level3:rgba(213,169,201,.31);
  --tone-option:rgba(164,199,232,.22);
  --tone-selected:rgba(126,174,224,.48);
  --tone-strong:#719bc8;
}
body.theme-neutral{
  --tone-root:rgba(198,194,188,.30);
  --tone-level2:rgba(216,215,211,.27);
  --tone-level3:rgba(236,234,231,.46);
  --tone-option:rgba(220,219,215,.20);
  --tone-selected:rgba(186,184,180,.34);
  --tone-strong:#898681;
}
.tree-list-view,.stats-list-view,.export-tree-list{backdrop-filter:blur(7px);}
.tree-list-row,.stats-list-row,.export-topic-row{transition:background-color .15s ease;}

/* 统计主页：文字按层级缩进，但每一层色块都占满同一宽度。 */
.stats-list-view{overflow:hidden!important;border-radius:22px!important;}
.stats-list-root,.stats-list-level2,.stats-list-level3{
  width:100%!important;
  margin-left:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}
.stats-list-root{padding-left:18px!important;}
.stats-list-level2{padding-left:48px!important;}
.stats-list-level3{padding-left:82px!important;}
.stats-list-row:first-child{border-radius:18px 18px 0 0!important;}
.stats-list-row:last-child{border-radius:0 0 18px 18px!important;}

/* 阶段汇总：颜色与知识树一致，汇总行使用中性黑白，分隔线更淡。 */
.summary-table-wrap{border:0!important;background:rgba(255,255,255,.60)!important;}
.summary-table th,.summary-table td{border-bottom:1px solid var(--summary-line)!important;}
.summary-table thead th:nth-child(1),.summary-table .phase-cell{background:var(--tone-root)!important;}
.summary-table thead th:nth-child(2),.summary-table .level2-cell{background:var(--tone-level2)!important;}
.summary-table thead th:nth-child(3),.summary-table .level3-cell{background:var(--tone-level3)!important;}
.summary-table thead th:nth-child(4),.summary-table .time-cell{background:rgba(255,255,255,.56)!important;}
.summary-table .summary-row td{background:rgba(247,247,245,.92)!important;color:#474542!important;border-top:1px solid rgba(80,76,71,.12)!important;}
.summary-table tr:last-child td{border-bottom:0!important;}

/* 按主题导出：结构与知识树一致，选择圆点固定在右侧。 */
.export-topic-row{display:flex!important;align-items:center!important;justify-content:flex-start!important;}
.export-topic-row .tree-list-name{order:1;}
.export-topic-row .topic-check-mark{order:2;margin-left:auto!important;margin-right:0!important;}
.topic-check-mark{width:17px!important;height:17px!important;border:1px solid color-mix(in srgb,var(--tone-strong) 44%,transparent)!important;background:rgba(255,255,255,.44);}
.export-topic-row.selected .topic-check-mark{background:var(--tone-strong)!important;box-shadow:inset 0 0 0 4px rgba(255,255,255,.84)!important;}

/* 导出图片与 Excel 预览。 */
.export-preview canvas{max-width:100%;height:auto;border:0!important;border-radius:22px;}
.excel-preview{width:min(1100px,100%);margin:0 auto;padding:18px;background:rgba(255,255,255,.68);border-radius:22px;box-shadow:0 12px 34px rgba(87,82,74,.08);}
.excel-preview-note{font-size:13px;color:#8b847d;margin-bottom:12px;}
.excel-table-wrap{overflow:auto;border-radius:14px;}
.excel-preview table{width:100%;border-collapse:collapse;min-width:680px;background:rgba(255,255,255,.72);}
.excel-preview th,.excel-preview td{padding:11px 13px;border-bottom:1px solid rgba(105,99,92,.10);text-align:left;vertical-align:top;white-space:pre-wrap;}
.excel-preview th{background:var(--tone-level2);font-size:14px;font-weight:650;color:#5e5954;}
.excel-preview td{font-size:13px;color:#68625d;}

@media(max-width:680px){
  .stats-list-level2{padding-left:34px!important;}
  .stats-list-level3{padding-left:56px!important;}
  .login-card{padding:24px!important;}
}

/* ===== 2026-07-13 第二次增量补丁：四套近色主题、管理员与导出类别 ===== */
:root,
body.theme-yellow{
  --page-theme-bg:#faf7ea;
  --surface-theme:rgba(255,253,244,.78);
  --tone-root:rgba(231,220,158,.44);
  --tone-level2:rgba(205,202,145,.34);
  --tone-level3:rgba(244,232,190,.42);
  --tone-option:rgba(235,224,177,.26);
  --tone-selected:rgba(213,201,139,.48);
  --tone-strong:#a99e63;
  --theme-text:#686247;
  --theme-muted:#938b68;
  --theme-accent:rgba(222,209,143,.64);
  --theme-accent-2:rgba(199,199,147,.58);
  --theme-accent-3:rgba(242,229,183,.66);
  --page-gradient:linear-gradient(135deg,rgba(252,249,236,.96),rgba(247,242,216,.80),rgba(238,239,214,.70));
}
body.theme-blush{
  --page-theme-bg:#fbf3f0;
  --surface-theme:rgba(255,250,248,.78);
  --tone-root:rgba(235,205,196,.43);
  --tone-level2:rgba(225,186,178,.32);
  --tone-level3:rgba(245,222,215,.43);
  --tone-option:rgba(238,208,200,.25);
  --tone-selected:rgba(219,179,171,.46);
  --tone-strong:#b88f88;
  --theme-text:#765f5a;
  --theme-muted:#a58a84;
  --theme-accent:rgba(235,204,195,.64);
  --theme-accent-2:rgba(225,188,180,.55);
  --theme-accent-3:rgba(246,223,217,.68);
  --page-gradient:linear-gradient(135deg,rgba(253,247,244,.96),rgba(249,232,227,.78),rgba(242,224,219,.66));
}
body.theme-sage{
  --page-theme-bg:#f5f5ea;
  --surface-theme:rgba(252,252,244,.78);
  --tone-root:rgba(210,211,174,.45);
  --tone-level2:rgba(184,194,165,.34);
  --tone-level3:rgba(231,229,201,.43);
  --tone-option:rgba(207,214,190,.26);
  --tone-selected:rgba(175,190,157,.46);
  --tone-strong:#8f9d7b;
  --theme-text:#626955;
  --theme-muted:#8c927d;
  --theme-accent:rgba(203,207,177,.64);
  --theme-accent-2:rgba(181,194,165,.58);
  --theme-accent-3:rgba(232,229,205,.68);
  --page-gradient:linear-gradient(135deg,rgba(250,249,235,.96),rgba(234,238,218,.80),rgba(220,229,211,.68));
}
body.theme-blue{
  --page-theme-bg:#f1f5f9;
  --surface-theme:rgba(249,252,255,.76);
  --tone-root:rgba(199,216,234,.44);
  --tone-level2:rgba(181,200,224,.34);
  --tone-level3:rgba(220,220,235,.43);
  --tone-option:rgba(204,216,232,.25);
  --tone-selected:rgba(172,196,222,.46);
  --tone-strong:#8da8c4;
  --theme-text:#5f6978;
  --theme-muted:#8793a3;
  --theme-accent:rgba(194,213,234,.64);
  --theme-accent-2:rgba(211,205,230,.58);
  --theme-accent-3:rgba(221,229,239,.68);
  --page-gradient:linear-gradient(135deg,rgba(246,250,253,.96),rgba(229,238,247,.82),rgba(231,226,241,.66));
}
body.theme-yellow .app-icon{filter:sepia(.14) saturate(.70) brightness(1.06)}
body.theme-blush .app-icon{filter:sepia(.16) hue-rotate(320deg) saturate(.65) brightness(1.06)}
body.theme-sage .app-icon{filter:sepia(.18) hue-rotate(45deg) saturate(.55) brightness(1.04)}
body.theme-blue .app-icon{filter:hue-rotate(170deg) saturate(.55) brightness(1.05)}
body{color:var(--theme-text)}
.login-page{background:var(--page-gradient)!important}
.login-card{background:rgba(255,255,255,.46)!important;backdrop-filter:blur(18px) saturate(.82)!important}
.login-title,.topbar-title,.section-title-large,.admin-panel-title{color:var(--theme-text)!important}
.login-option.guest{background:var(--theme-accent-3)!important}
.login-option.wechat{background:var(--theme-accent-2)!important}
.login-card .btn.primary,.modal-actions .btn.primary{background:var(--theme-accent)!important;color:var(--theme-text)!important}
.login-card .tab.active{background:var(--tone-option)!important;color:var(--theme-text)!important}
.login-card .input,.input,.select{background:rgba(255,255,255,.58)!important}
.tree-list-root,.stats-list-root{background:var(--tone-root)!important}
.tree-list-level2,.stats-list-level2{background:var(--tone-level2)!important}
.tree-list-level3,.stats-list-level3{background:var(--tone-level3)!important}
.theme-choice{grid-template-columns:auto 40px 1fr!important;position:relative}
.theme-choice>input{grid-column:1}
.theme-choice .theme-swatch{grid-column:2}
.theme-choice>span:last-child{grid-column:3;display:grid;gap:2px}
.theme-choice small{font-size:11px;color:var(--theme-muted);font-weight:400}
.theme-choice-yellow .theme-swatch{background:linear-gradient(90deg,#f7efca,#ded494,#bfc19a)}
.theme-choice-blush .theme-swatch{background:linear-gradient(90deg,#f6e5df,#e8c7be,#d7aea8)}
.theme-choice-sage .theme-swatch{background:linear-gradient(90deg,#ece8cf,#cfd3b1,#aeb99c)}
.theme-choice-blue .theme-swatch{background:linear-gradient(90deg,#e6edf4,#c8d7e8,#cfcbe0)}
.theme-choice:has(input:checked){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone-strong) 46%,transparent);background:rgba(255,255,255,.76)}

.admin-page{width:min(1280px,100%);margin:0 auto}
.admin-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}.admin-head>div{flex:1}.admin-period{width:auto;min-width:130px}
.admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.admin-kpi{min-height:118px;padding:18px;border-radius:22px;background:var(--surface-theme);backdrop-filter:blur(12px);box-shadow:0 10px 30px rgba(77,73,64,.07);display:grid;align-content:center;gap:6px}
.admin-kpi small{color:var(--theme-muted);font-size:12px}.admin-kpi strong{font-size:28px;font-weight:650;color:var(--theme-text)}.admin-kpi span{font-size:11px;color:#9a958c}
.admin-grid-two{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);gap:16px;margin-bottom:16px}
.admin-panel{padding:20px!important;margin-bottom:16px}.admin-panel-title{font-weight:650;font-size:16px;margin-bottom:16px}
.admin-trend{height:230px;display:flex;align-items:stretch;gap:5px;padding:12px 4px 0;border-bottom:1px solid rgba(105,100,90,.10)}
.admin-trend-row{flex:1;min-width:5px;display:grid;grid-template-rows:18px 1fr 18px;align-items:end;text-align:center}.admin-trend-row>span,.admin-trend-row>b{font-size:9px;color:var(--theme-muted);font-weight:500}
.admin-trend-bars{height:100%;display:flex;align-items:flex-end;justify-content:center;gap:1px}.admin-trend-bars i{display:block;width:42%;min-width:2px;border-radius:5px 5px 1px 1px}.admin-trend-bars .registered{background:var(--tone-strong)}.admin-trend-bars .guest{background:color-mix(in srgb,var(--tone-strong) 40%,white)}
.admin-network-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.admin-network-cards>div{padding:18px 8px;border-radius:18px;background:var(--tone-option);display:grid;text-align:center;gap:5px}.admin-network-cards strong{font-size:24px}.admin-network-cards span{font-size:11px;color:var(--theme-muted)}
.admin-table-wrap{overflow:auto;border-radius:16px}.admin-table{width:100%;border-collapse:collapse;min-width:760px;background:rgba(255,255,255,.44)}.admin-table th,.admin-table td{padding:12px 14px;border-bottom:1px solid rgba(103,98,90,.09);text-align:left;font-size:13px}.admin-table th{background:var(--tone-level2);font-weight:650;color:var(--theme-text)}.admin-table td{color:#69645d}.admin-table td strong,.admin-table td small{display:block}.admin-table td small{font-size:11px;color:#9a948c;margin-top:3px}
@media(max-width:980px){.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-grid-two{grid-template-columns:1fr}}
@media(max-width:620px){.admin-head{flex-wrap:wrap}.admin-period{margin-left:52px}.admin-kpi-grid{grid-template-columns:1fr 1fr}.admin-kpi{min-height:100px;padding:14px}.admin-kpi strong{font-size:22px}}

.admin-page-pill{display:block;width:max-content;max-width:240px;margin:2px 0;padding:3px 7px;border-radius:999px;background:var(--tone-option);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* ===== 2026-07-13 三次增量补丁：感受字段、暖黄细节与统计图样式 ===== */
.friend-check{
  border:1px solid color-mix(in srgb,var(--tone-strong) 18%,transparent)!important;
  background:color-mix(in srgb,var(--tone-option) 76%, rgba(255,255,255,.65))!important;
  color:var(--theme-text)!important;
}
.friend-check input{accent-color:var(--tone-strong);}
.detail-action-icon.primary{background:color-mix(in srgb,var(--theme-accent) 82%, rgba(255,255,255,.62))!important;}
.detail-action-icon.danger{
  background:color-mix(in srgb,var(--theme-accent-3) 92%, rgba(255,255,255,.60))!important;
  border-color:color-mix(in srgb,var(--tone-strong) 16%, transparent)!important;
}
body.theme-yellow .detail-action-icon.danger{background:rgba(246,232,181,.92)!important;}
body.theme-yellow .friend-check{background:rgba(245,233,188,.62)!important;}
body.theme-yellow .friend-check input{accent-color:#bca958;}

/* ===== 2026-07-14 增量补丁：我的一天交互排程、表格式统计、知识树内联编辑 ===== */

/* 我的计划：单列、不重叠，卡片高度严格按时长比例显示。 */
.interactive-timeline{min-height:1248px!important;position:relative;}
.interactive-timeline .timeline-hour-grid{height:1248px;}
.interactive-timeline .timeline-cards-layer{height:1248px!important;left:98px!important;right:14px!important;}
.interactive-timeline .timeline-plan-card{
  position:absolute!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  z-index:2;
  transition:box-shadow .14s ease,background-color .14s ease,outline-color .14s ease;
  touch-action:none;
  user-select:none;
  cursor:grab;
  overflow:hidden;
}
.interactive-timeline .timeline-plan-card:active{cursor:grabbing;}
.interactive-timeline .timeline-plan-card.is-time-editing{
  z-index:20;
  outline:2px solid color-mix(in srgb,var(--tone-strong) 72%,white);
  outline-offset:2px;
  background:color-mix(in srgb,var(--tone-selected) 38%,rgba(255,255,255,.92))!important;
  box-shadow:0 16px 34px rgba(93,84,62,.16)!important;
}
.interactive-timeline .timeline-plan-card.is-dragging{cursor:grabbing;opacity:.96;}
.interactive-timeline .timeline-plan-card.schedule-invalid{outline-color:#d98e7f!important;}
.interactive-timeline.is-saving-schedule{cursor:progress;}
.interactive-timeline.is-saving-schedule .timeline-plan-card{pointer-events:none;}
.timeline-time-dragging,.timeline-time-dragging *{cursor:grabbing!important;}
.timeline-resize-handle{
  position:absolute;left:25%;right:25%;height:10px;z-index:4;display:none;cursor:ns-resize;
}
.timeline-resize-handle:after{content:"";position:absolute;left:25%;right:25%;top:4px;height:2px;border-radius:999px;background:color-mix(in srgb,var(--tone-strong) 70%,#fff);}
.timeline-resize-top{top:0;}
.timeline-resize-bottom{bottom:0;}
.timeline-plan-card.is-time-editing .timeline-resize-handle{display:block;}
.timeline-plan-locked{cursor:default!important;opacity:.86;}
.timeline-plan-locked .timeline-resize-handle{display:none!important;}
@media(max-width:800px){
  .interactive-timeline .timeline-cards-layer{left:72px!important;right:8px!important;}
}

/* 统计主页：默认 Excel 式表格，一颗按钮切换当前阶段 / 历史阶段 / 所有阶段。 */
.stats-table-page{max-width:1180px!important;}
.stats-table-toolbar,#statsTableMount{width:min(1080px,100%);max-width:1080px;margin-left:auto!important;margin-right:auto!important;}
.stats-table-toolbar{margin-bottom:18px!important;}
.stats-scope-button{
  min-height:44px;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid color-mix(in srgb,var(--tone-strong) 20%,transparent);border-radius:15px;
  background:rgba(255,255,255,.66);color:var(--theme-text);box-shadow:0 8px 22px rgba(85,79,68,.06);font-weight:600;
}
.stats-scope-button .app-icon{width:22px;height:22px;}
.scope-caret{font-size:18px;line-height:1;color:var(--theme-muted);margin-left:2px;}
.stats-excel-shell{overflow:auto;border-radius:20px;background:rgba(255,255,255,.70);box-shadow:0 12px 34px rgba(81,76,66,.08);backdrop-filter:blur(12px);}
.stats-excel-table{width:100%;border-collapse:collapse;min-width:780px;table-layout:fixed;}
.stats-excel-table th,.stats-excel-table td{padding:13px 14px;border-right:1px solid rgba(105,99,90,.09);border-bottom:1px solid rgba(105,99,90,.10);text-align:left;vertical-align:middle;}
.stats-excel-table th:last-child,.stats-excel-table td:last-child{border-right:0;}
.stats-excel-table thead th{position:sticky;top:0;z-index:3;background:color-mix(in srgb,var(--tone-root) 68%,rgba(255,255,255,.88));color:var(--theme-text);font-size:13px;font-weight:700;}
.stats-excel-table th:nth-child(1){width:14%;}.stats-excel-table th:nth-child(2){width:22%;}.stats-excel-table th:nth-child(3){width:24%;}.stats-excel-table th:nth-child(4){width:25%;}.stats-excel-table th:nth-child(5){width:15%;}
.stats-phase-cell{background:color-mix(in srgb,var(--tone-root) 72%,rgba(255,255,255,.68));}
.stats-root-cell{background:color-mix(in srgb,var(--tone-root) 44%,rgba(255,255,255,.75));}
.stats-level2-cell{background:color-mix(in srgb,var(--tone-level2) 72%,rgba(255,255,255,.70));padding:0!important;}
.stats-level3-cell{background:color-mix(in srgb,var(--tone-level3) 62%,rgba(255,255,255,.76));}
.stats-time-cell{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--theme-muted);}
.stats-phase-cell strong,.stats-root-cell strong{display:block;font-size:14px;}.stats-phase-cell small,.stats-root-cell small{display:block;margin-top:4px;font-size:11px;color:var(--theme-muted);}
.stats-expand-button{width:100%;min-height:50px;padding:10px 12px;border:0;background:transparent;color:var(--theme-text);display:grid;grid-template-columns:18px minmax(0,1fr);gap:2px 8px;text-align:left;align-items:center;}
.stats-expand-button small{grid-column:2;font-size:11px;color:var(--theme-muted);font-weight:400;}
.stats-expand-caret{grid-row:1/3;font-size:22px;color:var(--tone-strong);transition:transform .15s ease;}
.stats-expand-button.expanded .stats-expand-caret{transform:rotate(90deg);}
.stats-category-row{cursor:pointer;}
.stats-category-row:hover td{filter:brightness(1.015);}
.stats-plan-detail-row td{padding:0!important;background:rgba(255,255,255,.52);}
.stats-plan-detail{padding:18px 22px 22px;display:grid;gap:15px;}
.stats-plan-group{border-radius:15px;overflow:hidden;background:rgba(255,255,255,.62);border:1px solid rgba(105,99,90,.08);}
.stats-plan-group-title{padding:10px 13px;background:color-mix(in srgb,var(--tone-level3) 52%,rgba(255,255,255,.82));font-size:13px;font-weight:650;}
.stats-plan-table{width:100%;border-collapse:collapse;}
.stats-plan-table th,.stats-plan-table td{padding:9px 12px;border:0;border-bottom:1px solid rgba(105,99,90,.08);font-size:12px;}
.stats-plan-table th{color:var(--theme-muted);font-weight:550;background:rgba(255,255,255,.38);}
.stats-plan-table th:nth-child(1){width:auto}.stats-plan-table th:nth-child(2){width:140px}.stats-plan-table th:nth-child(3){width:120px}
.stats-empty-detail{padding:14px;color:var(--theme-muted);font-size:13px;}
.stats-unclassified-row td{background:rgba(255,255,255,.58);color:var(--theme-muted);font-size:12px;}
@media(max-width:700px){.stats-plan-detail{padding:12px}.stats-scope-button{max-width:230px}.stats-plan-table th:nth-child(2){width:110px}.stats-plan-table th:nth-child(3){width:100px}}

/* 知识树编辑：名称直接在原位置输入，操作区只保留纯净垃圾桶；新增为纯加号。 */
.tree-name-input{width:100%;min-width:0;border:0;border-bottom:1px solid color-mix(in srgb,var(--tone-strong) 24%,transparent);background:rgba(255,255,255,.30);border-radius:8px;padding:6px 8px;color:var(--theme-text);font:inherit;font-weight:inherit;outline:none;}
.tree-name-input:focus{background:rgba(255,255,255,.66);border-bottom-color:var(--tone-strong);box-shadow:0 0 0 2px color-mix(in srgb,var(--tone-selected) 36%,transparent);}
.tree-name-input.is-saving{opacity:.62;}.tree-name-input.is-saved{box-shadow:0 0 0 2px color-mix(in srgb,var(--tone-strong) 22%,transparent);}
.tree-list-name{flex:1;}
.simple-tree-action{color:var(--theme-muted)!important;background:rgba(255,255,255,.48)!important;}
.simple-tree-action:hover{color:var(--theme-text)!important;background:rgba(255,255,255,.78)!important;}
.simple-tree-svg{width:21px;height:21px;display:block;}
.simple-tree-add{font-size:25px!important;color:var(--tone-strong)!important;font-weight:300!important;}
.simple-tree-add span{line-height:1;transform:translateY(-1px);}
.simple-plus-mark{font-size:27px;line-height:1;font-weight:300;color:var(--theme-text);}

/* ===== 2026-07-14 第四次增量补丁：无横线日程、层级统计与知识树编辑 ===== */

/* 我的主页与好友的一天：保留时间标签，但彻底隐藏小时之间的横线。 */
.proportional-timeline .hour-row,
.interactive-timeline .hour-row{
  border-bottom:0!important;
}
.proportional-timeline .hour-content,
.interactive-timeline .hour-content{
  background-image:none!important;
  border-bottom:0!important;
}
.interactive-timeline .timeline-resize-handle{display:none!important;}

/* 知识树：编辑状态沿用原色块，只让文字本身可编辑，不出现白框、描边或外圈。 */
.tree-name-input,
.tree-name-input:hover,
.tree-name-input:focus,
.tree-name-input.is-saving,
.tree-name-input.is-saved{
  width:100%;
  min-width:0;
  padding:0!important;
  margin:0;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:inherit!important;
  font:inherit;
  font-weight:inherit;
}
.simple-tree-action,
.simple-tree-action:hover{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.simple-tree-add .app-icon{width:30px!important;height:30px!important;}
#addLevel2TopBtn .app-icon{width:30px;height:30px;}

/* 统计主页：阶段/总目标一行，子目标独立一行，只有子子目标可以展开计划。 */
.stats-flow-shell{
  width:min(980px,100%);
  margin:0 auto;
  display:grid;
  gap:22px;
}
.stats-flow-phase{
  overflow:hidden;
  border-radius:22px;
  background:rgba(255,255,255,.62);
  box-shadow:0 12px 32px rgba(80,75,66,.07);
  backdrop-filter:blur(12px);
}
.stats-flow-row{
  width:100%;
  min-height:62px;
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  align-items:start;
  column-gap:28px;
  padding:15px 22px;
  border:0;
  border-bottom:1px solid rgba(104,98,88,.08);
  text-align:left;
  color:var(--theme-text);
}
.stats-flow-row:last-child{border-bottom:0;}
.stats-flow-main{
  min-width:0;
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:start;
  gap:5px 13px;
  line-height:1.55;
}
.stats-flow-main strong{
  min-width:0;
  font-size:15px;
  font-weight:650;
  word-break:break-word;
}
.stats-flow-stage,
.stats-flow-kicker{
  padding-top:1px;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:500;
  white-space:nowrap;
}
.stats-flow-time{
  min-width:96px;
  padding-top:1px;
  color:var(--theme-muted);
  font-size:13px;
  font-variant-numeric:tabular-nums;
  text-align:right;
  white-space:nowrap;
}
.stats-flow-root{
  min-height:72px;
  background:color-mix(in srgb,var(--tone-root) 72%,rgba(255,255,255,.64));
}
.stats-flow-root .stats-flow-main strong{font-size:17px;font-weight:720;}
.stats-flow-root .stats-flow-time{font-size:14px;color:var(--theme-text);font-weight:650;}
.stats-flow-level2{
  padding-left:42px;
  background:color-mix(in srgb,var(--tone-level2) 68%,rgba(255,255,255,.70));
}
.stats-flow-level2 .stats-flow-main strong{font-weight:690;}
.stats-flow-level3-wrap{background:color-mix(in srgb,var(--tone-level3) 42%,rgba(255,255,255,.72));}
.stats-flow-level3{
  padding-left:70px;
  background:transparent;
  cursor:pointer;
}
.stats-flow-level3:hover{background:rgba(255,255,255,.26);}
.stats-flow-level3 .stats-flow-main{
  grid-template-columns:16px max-content minmax(0,1fr);
  column-gap:9px;
}
.stats-flow-caret{
  color:var(--tone-strong);
  font-size:21px;
  line-height:1.2;
  transition:transform .16s ease;
  transform-origin:center;
}
.stats-flow-level3.expanded .stats-flow-caret{transform:rotate(90deg);}
.stats-flow-detail{
  padding:8px 22px 18px 92px;
  border-bottom:1px solid rgba(104,98,88,.08);
  background:rgba(255,255,255,.34);
}
.stats-plan-line{
  width:100%;
  display:grid;
  grid-template-columns:minmax(180px,1fr) 112px 128px 100px;
  align-items:start;
  gap:14px;
  padding:11px 12px;
  border:0;
  border-bottom:1px solid rgba(104,98,88,.08);
  background:transparent;
  color:var(--theme-text);
  text-align:left;
}
.stats-plan-line:last-child{border-bottom:0;}
.stats-plan-line:hover{background:rgba(255,255,255,.50);}
.stats-plan-subject{font-size:13px;font-weight:620;line-height:1.55;}
.stats-plan-date,.stats-plan-clock,.stats-plan-duration{font-size:12px;color:var(--theme-muted);font-variant-numeric:tabular-nums;}
.stats-plan-duration{text-align:right;}
.stats-empty-detail,.stats-empty-phase{padding:18px 22px;color:var(--theme-muted);font-size:13px;}
.stats-empty-phase{background:rgba(255,255,255,.54);border-radius:18px;}

/* 阶段饼图和柱状图由统计主页传入阶段，不再在右上角重复切换。 */
.stats-page .stats-toolbar:has(#backBtn){justify-content:flex-start;}
.stats-page .stats-heading h1{line-height:1.5;}

@media(max-width:720px){
  .stats-flow-row{padding:13px 15px;column-gap:12px;}
  .stats-flow-level2{padding-left:26px;}
  .stats-flow-level3{padding-left:42px;}
  .stats-flow-detail{padding:7px 12px 14px 48px;overflow:auto;}
  .stats-flow-time{min-width:76px;font-size:12px;}
  .stats-plan-line{min-width:620px;}
}

/* ===== 2026-07-14 第五次增量补丁：时间轴微调、时长选择与工具栏对齐 ===== */

/* 我的主页恢复整点横线；好友的一天继续保持无横线。 */
body.home-day-page .proportional-timeline .hour-row,
body.home-day-page .interactive-timeline .hour-row{
  border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent)!important;
}
body.home-day-page .proportional-timeline .hour-row:last-child,
body.home-day-page .interactive-timeline .hour-row:last-child{border-bottom:0!important;}
body.friend-day-page .proportional-timeline .hour-row,
body.friend-day-page .interactive-timeline .hour-row{border-bottom:0!important;}

/* 单击计划后显示上下两个五分钟吸附调节柄。 */
.interactive-timeline .timeline-plan-card.is-time-editing .timeline-resize-handle{
  display:block!important;
}
.interactive-timeline .timeline-resize-handle{
  left:18%!important;
  right:18%!important;
  height:13px!important;
  border:0!important;
  background:transparent!important;
}
.interactive-timeline .timeline-resize-handle:after{
  left:18%!important;
  right:18%!important;
  top:5px!important;
  height:3px!important;
  background:color-mix(in srgb,var(--tone-strong) 72%,white)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.68);
}
.interactive-timeline .timeline-resize-top{top:-1px!important;}
.interactive-timeline .timeline-resize-bottom{bottom:-1px!important;}

/* 统计主页不显示“子目标 / 子子目标”层级字样，保留名称与自然缩进。 */
.stats-flow-level2 .stats-flow-main{grid-template-columns:minmax(0,1fr)!important;}
.stats-flow-level3 .stats-flow-main{grid-template-columns:16px minmax(0,1fr)!important;}
.stats-flow-level3 .stats-flow-caret{grid-column:1;}
.stats-flow-level3 .stats-flow-main strong{grid-column:2;}

/* 统计页左右图标严格对齐下方数据框的两侧。 */
.stats-table-toolbar,
#statsTableMount{
  width:min(980px,100%)!important;
  max-width:980px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.stats-table-toolbar{justify-content:space-between!important;padding-left:0!important;padding-right:0!important;}
#statsTableMount .stats-flow-shell{width:100%!important;max-width:none!important;}

/* 导出结果页只保留下载，并让左右图标与下方预览框边缘对齐。 */
.export-result-page .export-toolbar,
.export-result-page .export-heading,
.export-result-page .export-preview{
  width:min(1000px,100%)!important;
  max-width:1000px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.export-result-page .export-toolbar{justify-content:space-between!important;padding-left:0!important;padding-right:0!important;}
.export-result-page .export-toolbar .btn-row{margin-left:auto;}

/* 计划详情中的时长也使用滑动选择窗口。 */
.duration-gear-trigger{
  min-width:150px;
  border:0;
  background:transparent;
  color:#4f4b46;
  padding:4px 8px;
  border-radius:10px;
  text-align:left;
  font-variant-numeric:tabular-nums;
}
.duration-gear-trigger:hover:not(:disabled){background:rgba(246,242,237,.72);}
.duration-gear-trigger:disabled{cursor:default;color:#55514c;opacity:1;}
.duration-gear-picker .gear-label{min-height:18px;}
.recurrence-range-picker .recurrence-date-row label{display:grid;gap:8px;color:var(--theme-muted);font-size:13px;}

@media(max-width:700px){
  .stats-table-toolbar,#statsTableMount{width:100%!important;}
  .export-result-page .export-toolbar,.export-result-page .export-heading,.export-result-page .export-preview{width:100%!important;}
}


/* ===== 2026-07-14 第六次增量补丁：计划边缘调时长、顺延排程、知识树加号与统计恢复 ===== */
/* 单击计划后不再绘制额外横线；直接加粗卡片的上、下边框，左右边框保持轻薄。 */
.interactive-timeline .timeline-resize-handle:after{display:none!important;content:none!important;}
.interactive-timeline .timeline-resize-handle{
  left:0!important;
  right:0!important;
  height:14px!important;
  border:0!important;
  background:transparent!important;
}
.interactive-timeline .timeline-resize-top{top:0!important;}
.interactive-timeline .timeline-resize-bottom{bottom:0!important;}
.interactive-timeline .timeline-plan-card.is-time-editing{
  outline:0!important;
  border-top:4px solid color-mix(in srgb,var(--tone-strong) 72%,white)!important;
  border-bottom:4px solid color-mix(in srgb,var(--tone-strong) 72%,white)!important;
  border-left:1px solid color-mix(in srgb,var(--tone-strong) 18%,var(--line))!important;
  border-right:1px solid color-mix(in srgb,var(--tone-strong) 18%,var(--line))!important;
}

/* 知识树新增按钮恢复为带小人的加号，并与对应目录文字起始位置对齐。 */
.tree-add-level2{padding-left:48px!important;}
.tree-add-level3{padding-left:82px!important;}
.simple-tree-add .app-icon,#addLevel2TopBtn .app-icon{width:32px!important;height:32px!important;transform:none!important;}
@media(max-width:680px){
  .tree-add-level2{padding-left:18px!important;}
  .tree-add-level3{padding-left:36px!important;}
}


/* ===== 2026-07-14 第七次增量补丁：双向顺延、目录图标对齐与 PNG 微调 ===== */
/* “增加子目标 / 增加子子目标”的小人加号，以人物主体左缘对齐同级文字首字。 */
.tree-add-level2 .app-icon,
.tree-add-level3 .app-icon{
  margin-left:-5px!important;
  flex:0 0 32px!important;
}
/* 统计表内不再显示“子目标 / 子子目标”层级提示字。 */
.stats-flow-kicker{display:none!important;}
/* 去掉层级提示后，名称仍保持舒适、稳定的列对齐。 */
.stats-flow-level2 .stats-flow-main{grid-template-columns:minmax(0,1fr)!important;}
.stats-flow-level3 .stats-flow-main{grid-template-columns:16px minmax(0,1fr)!important;}

/* ===== 2026-07-14 第八次增量补丁：覆盖换位、知识树人物加号对齐与任意分钟 ===== */
/* 拖动中的计划始终位于最上层，允许暂时覆盖目标位置的计划；松手后由脚本完成换位。 */
.interactive-timeline .timeline-plan-card.is-dragging{
  z-index:40!important;
  opacity:.94!important;
  box-shadow:0 20px 42px rgba(92,82,62,.20)!important;
  transition:none!important;
}

/* 二级、三级新增按钮继续使用“小人 + 加号”，人物主体左缘与同级文字首字对齐。 */
.tree-add-level2{
  padding-left:48px!important;
  justify-content:flex-start!important;
}
.tree-add-level3{
  padding-left:82px!important;
  justify-content:flex-start!important;
}
.tree-list-add .tree-add-person-icon{
  width:32px!important;
  height:32px!important;
  flex:0 0 32px!important;
  margin-left:-5px!important;
  transform:none!important;
  background-position:center!important;
}
@media(max-width:680px){
  .tree-add-level2{padding-left:48px!important;}
  .tree-add-level3{padding-left:82px!important;}
}

/* ===== 2026-07-15 增量补丁：计划必填提醒、附件预览、镜头切换与知识树加号 ===== */
/* 必填项未完成时，直接在原位置用红字指出字段；提示窗口由通用 modal 居中显示。 */
.plan-detail-page .detail-line.required-missing .detail-label,
.plan-detail-page .detail-line.required-missing .time-gear-trigger,
.plan-detail-page .detail-line.required-missing .duration-gear-trigger,
.plan-detail-page .detail-line.required-missing .detail-control,
.plan-detail-page .detail-line.required-missing .time-separator{
  color:#c6534f!important;
}
.plan-detail-page .detail-line.required-missing .detail-control,
.plan-detail-page .detail-line.required-missing .time-gear-trigger,
.plan-detail-page .detail-line.required-missing .duration-gear-trigger{
  box-shadow:inset 0 -1px 0 rgba(198,83,79,.48)!important;
}
.required-modal-message{display:grid;gap:8px;line-height:1.7;color:var(--theme-text);min-width:min(360px,72vw);}

/* 拍照和录像窗口：中间拍摄，左侧镜头反转，右侧关闭。 */
.camera-capture-actions{align-items:center;}
.camera-switch-button{font-size:25px;font-weight:500;color:#4f4b46;}
.camera-switch-button span{display:block;line-height:1;transform:translateY(-1px);}
.camera-switch-button:disabled{opacity:.42;cursor:not-allowed;}

/* 附件图标统一占位并与文件名首行对齐。 */
.attachment-main{align-items:center!important;min-width:0;}
.attachment-type-icon{width:32px;height:32px;flex:0 0 32px;display:inline-flex;align-items:center;justify-content:center;}
.attachment-type-icon .app-icon{width:27px!important;height:27px!important;display:block;}
.attachment-text{min-width:0;display:grid;gap:2px;}
.attachment-preview-button{cursor:pointer;}
.attachment-delete-message{line-height:1.8;word-break:break-word;}
.attachment-preview-modal{width:min(860px,94vw)!important;max-height:90vh;}
.attachment-preview-shell{display:flex;align-items:center;justify-content:center;min-height:180px;max-height:70vh;overflow:auto;border-radius:14px;background:rgba(248,247,243,.82);}
.attachment-preview-media{display:block;max-width:100%;max-height:68vh;object-fit:contain;border-radius:12px;}
video.attachment-preview-media{width:100%;background:#111;}
.attachment-preview-frame{width:min(780px,86vw);height:min(68vh,720px);border:0;background:#fff;border-radius:12px;}
.attachment-audio-preview{width:min(560px,82vw);display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:14px;padding:26px;}
.attachment-audio-preview .app-icon{width:34px;height:34px;}
.attachment-audio-preview audio{width:100%;}

/* 知识树编辑：新增二级、三级门类使用与同级文字相同的“＋”，并严格对齐首字。 */
.tree-list-add.simple-tree-add{justify-content:flex-start!important;border:0!important;box-shadow:none!important;opacity:1!important;}
.tree-add-level2.simple-tree-add{
  padding-left:48px!important;
  background:var(--tone-level2)!important;
  color:var(--theme-text)!important;
  font-size:15px!important;
  font-weight:700!important;
}
.tree-add-level3.simple-tree-add{
  padding-left:82px!important;
  background:var(--tone-level3)!important;
  color:var(--theme-text)!important;
  font-size:14px!important;
  font-weight:400!important;
}
.tree-add-plus{display:block;line-height:1;font:inherit;color:inherit;transform:none!important;margin:0!important;}
.tree-list-add.simple-tree-add:hover{filter:brightness(1.018);}
@media(max-width:680px){
  .tree-add-level2.simple-tree-add{padding-left:48px!important;}
  .tree-add-level3.simple-tree-add{padding-left:82px!important;}
}

/* ===== 2026-07-15 增量补丁：知识树新增按钮严格对齐同级首字 ===== */
.tree-add-level2.simple-tree-add,
.tree-add-level3.simple-tree-add{
  display:flex!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
.tree-add-level2.simple-tree-add{padding:0 14px 0 48px!important;}
.tree-add-level3.simple-tree-add{padding:0 14px 0 82px!important;}
.tree-add-level2.simple-tree-add .tree-add-plus,
.tree-add-level3.simple-tree-add .tree-add-plus{
  display:block!important;
  flex:0 0 auto!important;
  width:1em!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
  transform:none!important;
}
@media(max-width:680px){
  .tree-add-level2.simple-tree-add{padding-left:48px!important;}
  .tree-add-level3.simple-tree-add{padding-left:82px!important;}
}

/* ===== 2026-07-16 键盘快捷键与显示设置合并 ===== */
.display-shortcut-modal{width:min(760px,calc(100vw - 32px));max-height:min(86vh,820px);overflow:auto;}
.display-shortcut-settings{padding-bottom:4px;}
.shortcut-heading-line{display:flex;align-items:center;justify-content:space-between;gap:18px;}
.shortcut-enable-switch{display:inline-flex;align-items:center;gap:8px;font-weight:500;color:var(--theme-text);cursor:pointer;}
.shortcut-enable-switch input{accent-color:var(--tone-strong);}
.shortcut-help-note{padding:11px 13px;border-radius:14px;background:color-mix(in srgb,var(--tone-option) 70%,rgba(255,255,255,.72));color:var(--theme-muted);font-size:.9rem;line-height:1.65;}
.shortcut-group+.shortcut-group{margin-top:8px;}
.shortcut-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;}
.shortcut-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:46px;padding:9px 12px;border-radius:14px;background:color-mix(in srgb,var(--tone-option) 60%,rgba(255,255,255,.78));}
.shortcut-keys{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;flex:0 0 auto;}
.shortcut-row kbd,.shortcut-help-note kbd{display:inline-flex;align-items:center;justify-content:center;min-width:27px;min-height:25px;padding:2px 7px;border:1px solid color-mix(in srgb,var(--tone-strong) 22%,transparent);border-bottom-width:2px;border-radius:7px;background:rgba(255,255,255,.78);font:600 .78rem/1.2 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;color:var(--theme-text);box-shadow:0 1px 2px rgba(83,72,53,.06);}
.shortcut-plus{font-size:.72rem;color:var(--theme-muted);}
.shortcut-label{text-align:right;color:var(--theme-text);font-size:.9rem;line-height:1.35;}
@media (max-width:720px){.shortcut-list{grid-template-columns:1fr}.shortcut-row{min-height:42px}.display-shortcut-modal{max-height:90vh}}

/* ===== 2026-07-16 登录、游客空间、找回密码与微信二维码 ===== */
.password-field{position:relative;display:flex;align-items:center;width:100%;}
.password-field .input{width:100%;padding-right:46px!important;}
.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:#888078;font-size:17px;line-height:1;cursor:pointer;border-radius:10px;display:flex;align-items:center;justify-content:center;opacity:.72;}
.password-toggle:hover,.password-toggle:focus-visible{background:rgba(255,255,255,.72);opacity:1;outline:none;}
.password-toggle.is-visible{background:color-mix(in srgb,var(--tone-option) 62%,transparent);opacity:1;}
.login-form-tools{display:flex;justify-content:flex-end;align-items:center;min-height:34px;margin:0 2px 8px;}
.text-button{border:0;background:transparent;color:var(--theme-text);padding:5px 3px;font:inherit;font-size:13px;cursor:pointer;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--theme-text) 24%,transparent);text-underline-offset:4px;}
.text-button:hover{opacity:.72;}
.password-recovery-step{min-height:160px;}
.recovery-intro{display:grid;gap:20px;line-height:1.8;color:#6c655f;}
.recovery-intro .btn{justify-self:end;}
.recovery-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px;}
.recovery-actions.two-actions{justify-content:stretch;}
.recovery-actions.two-actions .btn{flex:1;}
.recovery-secondary{display:flex;align-items:center;justify-content:space-between;margin-top:-2px;}
.recovery-email-summary{padding:11px 13px;border-radius:13px;background:color-mix(in srgb,var(--tone-option) 48%,rgba(255,255,255,.7));font-size:14px;color:#69615a;}
.recovery-debug-code{padding:10px 13px;border-radius:13px;background:rgba(249,230,174,.48);font-size:13px;color:#776946;}
.verification-code-input{font-size:22px!important;letter-spacing:.38em;text-align:center;font-variant-numeric:tabular-nums;}
.wechat-qr-panel{display:grid;justify-items:center;gap:10px;text-align:center;color:#6d665f;}
.wechat-qr-frame{width:min(390px,84vw);height:min(430px,72vh);overflow:hidden;border-radius:18px;background:#fff;border:1px solid color-mix(in srgb,var(--theme-text) 10%,transparent);}
.wechat-qr-frame iframe{width:100%;height:100%;border:0;background:#fff;}
.wechat-open-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;}
.account-action-list{display:grid;gap:10px;}
.account-action-row{width:100%;border-radius:15px!important;background:rgba(255,255,255,.45)!important;}
.password-change-form{min-width:min(430px,76vw);}
@media (max-width:620px){
  .wechat-qr-frame{width:100%;height:58vh;}
  .recovery-actions.two-actions{flex-direction:column;}
  .password-change-form{min-width:0;}
}
