/* Shared interaction and layout system: PKU red, quiet controls, generous work surfaces. */
:root{--red:#921a2c;--red-dark:#721122;--red-soft:#faf0f2;--ink:#242833;--muted:#777f8c;--line:#e7e9ed;--canvas:#f5f6f8;--surface:#fff;font-family:Inter,"Microsoft YaHei","PingFang SC",sans-serif;font-size:14px;color:var(--ink);background:var(--canvas)}
body{background:var(--canvas);color:var(--ink)}[hidden]{display:none!important}body button,body .file-link{font:inherit;font-weight:500;min-height:36px;padding:8px 14px;border:1px solid transparent;border-radius:8px;background:#f0f2f5;color:#424956;line-height:1.4;cursor:pointer;text-decoration:none;box-shadow:none;transition:background .15s,color .15s,box-shadow .15s}body button:hover,body .file-link:hover{background:#e7eaf0;color:#242833;border-color:transparent}body button:disabled{opacity:.4;cursor:not-allowed}body button.primary,body button[data-tone=primary]{background:var(--red);color:#fff;border-color:var(--red)}body button.primary:hover,body button[data-tone=primary]:hover{background:var(--red-dark);color:#fff}body button[data-tone=danger]{color:#a72d3d;background:#fcf1f2}body button[data-tone=danger]:hover{background:#f9dfe4}body button.text-link,body button.sort-header,body .workspace-breadcrumb button,body .file-breadcrumb button{background:transparent;border-color:transparent;box-shadow:none;min-height:30px;padding:5px 8px}body button.text-link{color:var(--red)}body button:focus-visible,body a:focus-visible,body summary:focus-visible{outline:3px solid #ba566777;outline-offset:3px}body input:not([type=checkbox]):not([type=hidden]),body select,body textarea{font:inherit;border:1px solid #dfe3e8;border-radius:8px;background:#fff;color:var(--ink);padding:9px 12px}body input[type=checkbox]{accent-color:var(--red);width:16px;height:16px;cursor:pointer;flex:none}body dialog{border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 80px #1c223333}body dialog::backdrop{background:#15192366}body dialog h2{margin-top:0;color:var(--ink)}body dialog footer,body .file-dialog>.file-toolbar{padding-top:18px;border-top:1px solid var(--line);margin-top:18px}.ui-icon{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle}
body .app-header,body .rep-header{display:grid;grid-template-columns:minmax(260px,1fr) auto minmax(190px,1fr);align-items:center;gap:24px;min-height:88px;padding:18px 30px;color:#fff;background:#85172a;border:0;position:relative;box-shadow:0 2px 10px #5d0b1512}body .brand-block,body .rep-brand{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:#fff;min-width:0}body .brand{font-size:21px;letter-spacing:.4px;line-height:1.4}body .org{font-size:11px;letter-spacing:.4px;margin:0;color:#ecc7d0}body .rep-brand{font-size:21px;letter-spacing:.4px;font-weight:700}body .rep-brand span{font-size:11px;letter-spacing:.4px;margin:0;color:#ecc7d0}body #identity,body #rep-identity{position:static;justify-self:end;display:flex;gap:8px;align-items:center;font-size:12px}body .app-header button,body .rep-header button{background:transparent;color:#fff;border-color:transparent}body .app-header button:hover,body .rep-header button:hover{background:#ffffff18;color:white}body #logout,body #rep-logout{border:1px solid #ffffff35;font-size:12px;white-space:nowrap}body .header-account{font-size:12px;padding:8px}body .primary-navigation{display:flex;align-items:center;gap:5px;margin:0;border:0;white-space:nowrap}body .primary-navigation button,body .primary-navigation a{display:flex;align-items:center;gap:7px;padding:10px 15px;border-radius:8px;color:#efd9de;background:transparent;font-size:14px;font-weight:500;text-decoration:none;box-shadow:none;border:0}body .primary-navigation button[aria-current=page],body .primary-navigation a[aria-current=page]{color:#fff;background:#ffffff20;font-weight:700}body .primary-navigation a:hover{background:#ffffff14;color:#fff}body .primary-navigation .ui-icon{width:17px;height:17px}
body main{max-width:1600px;padding:26px 30px 48px;margin:auto}body #workspace:not([hidden]){background:transparent;border:0;box-shadow:none;grid-template-columns:228px minmax(0,1fr);gap:22px;border-radius:0;min-height:calc(100vh - 166px)}body #workspace.home-layout:not([hidden]){display:block}body #workspace.home-layout>.table-directory{display:none}body .table-directory{background:#fff;border:1px solid var(--line);border-radius:12px;min-height:0;position:sticky;top:18px;max-height:calc(100vh - 32px);overflow:auto}body .table-directory summary{color:#5b616d;font-size:13px;padding:14px}body #tabs{padding:4px 10px 12px;gap:3px}body #tabs button{padding:9px 10px;min-height:36px;border-radius:7px;background:transparent;color:#606977}body #tabs button[aria-selected=true]{background:var(--red-soft);color:var(--red)}body #workspace-content{overflow:visible;min-width:0}body #registration-root{padding:0;min-width:0}body #workspace-breadcrumb{margin-bottom:12px;border:0;color:#808793;background:transparent;font-size:12px}.folder-tree-row{min-width:0}.folder-tree-row>button{display:flex!important;gap:8px;align-items:center!important;font-size:12px!important}.folder-tree-row details{margin-left:10px}.folder-tree-row details summary{font-size:11px!important;padding:4px 10px!important;color:#9197a1!important}.folder-tree-row details>div{padding-left:8px;border-left:1px solid #e9ebef}#sidebar-file-tree{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}body .activity-ledger-tabs{gap:6px;background:transparent;margin:0 0 18px;border-bottom:1px solid var(--line);padding-bottom:12px;align-items:center}body .activity-ledger-tabs>strong{color:var(--red);padding:8px 14px;border-radius:8px;background:#f5e9ed}body .activity-ledger-tabs button{background:transparent}
.module-home{min-width:0}.home-heading{display:flex;justify-content:space-between;gap:22px;align-items:center;padding:10px 0 26px}.home-heading h1{font-size:30px;line-height:1.4;margin:5px 0 9px;font-weight:650;letter-spacing:-.5px}.home-eyebrow{font-size:12px;color:#8f6671;margin:0 0 12px}.home-description{font-size:14px;color:#7e8693;margin:0;line-height:1.7}.home-date{font-size:12px;color:#808895;white-space:nowrap}.module-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:30px}body button.module-card{display:grid;grid-template-columns:1fr auto;align-content:start;gap:10px;min-height:170px;padding:22px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink)}body button.module-card:hover{border-color:#cf9faa;background:#fff;box-shadow:0 6px 22px #58112609}.module-card>.ui-icon:first-child{grid-column:1/-1;width:28px;height:28px;color:var(--red);margin-bottom:12px}.module-card strong{font-size:17px;font-weight:650;grid-column:1}.module-card span{grid-column:1;font-size:12px;color:#848b96;line-height:1.7}.module-card>.ui-icon:last-child{grid-column:2;grid-row:3;color:#b8bec7;width:16px}.home-section{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px 24px;margin-bottom:20px}.home-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.home-section-title h2{font-size:16px;font-weight:650;margin:0;color:var(--ink);padding:0!important;background:none!important;border:0!important}.home-event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px}body button.home-event{display:flex;align-items:center;gap:17px;background:transparent;border-radius:8px;padding:14px 8px;text-align:left;border-bottom:1px solid #f0f1f4;min-width:0;color:var(--ink)}body button.home-event:hover{background:#faf7f8}.event-date{display:flex;flex-direction:column;align-items:center;min-width:66px;background:#f6f7f9;border-radius:8px;padding:9px 7px}.event-date b{font-size:23px;font-weight:600}.event-date small{font-size:10px;color:#9298a2}.event-copy{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}.event-copy strong{font-size:14px;white-space:normal;overflow-wrap:anywhere}.event-copy small{font-size:12px;color:#8e949d}.home-event>.ui-icon{color:#b8bdc7;width:16px}.home-empty{padding:20px 0;color:#8a919d;font-size:13px;margin:0;line-height:1.8}.identity-note{margin:15px 0;color:#59606d}.home-file{display:flex!important;width:100%;align-items:center;gap:16px;background:transparent!important;text-align:left;padding:16px 0!important;border-bottom:1px solid #eef0f3!important;border-radius:0!important}.home-file>strong{flex:1;overflow-wrap:anywhere}.home-file>small{font-size:12px;color:#9299a5}.home-file>.ui-icon{color:#ad5e6c}
body .registration-bar{gap:10px}body .registration-bar h2,body .file-toolbar h2{font-size:22px;background:transparent;border:0;color:var(--ink);padding:0;margin:0 auto 0 0;box-shadow:none}body .activity-info,body .activity-section,body .personal-info,body #personal-info-form{border-color:var(--line);border-radius:12px;box-shadow:none}body .file-library{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;min-width:0}body .file-toolbar{gap:9px;margin-bottom:18px;align-items:center}body .file-toolbar h2{width:100%;margin-bottom:10px;font-size:21px}body .file-breadcrumb{background:transparent;font-size:12px;margin:0 0 18px;color:#8b929f;gap:2px}body .file-breadcrumb button{font-size:12px;color:#7d8490}body .file-grid{border:0;overflow:auto;border-radius:0}body .file-grid table{min-width:900px}body .file-grid td>button{background:transparent;padding:5px 0;color:#354154;font-weight:500;text-align:left}body .file-grid td>button:hover{color:var(--red)}body .file-row-actions{flex-wrap:nowrap;gap:4px}body .file-row-actions .file-link{background:transparent;color:#7b8390;font-size:12px;padding:6px 8px}.file-more{position:relative}.file-more>summary{cursor:pointer;list-style:none;padding:8px;color:#788190;font-weight:bold;border-radius:6px;line-height:1}.file-more>summary::-webkit-details-marker{display:none}.file-more>summary:hover{background:#f0f2f5}.file-more-menu{position:fixed;z-index:80;width:172px;padding:6px;background:#fff;border:1px solid #e7eaf0;border-radius:10px;box-shadow:0 10px 30px #17203922;display:grid;gap:3px}.file-more-menu button{width:100%;text-align:left;background:transparent;font-size:12px;padding:9px 10px}.file-selection-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#faf0f2;border:1px solid #ecd1d7;border-radius:9px;padding:10px 14px;margin:12px 0}.file-selection-bar strong{font-size:12px;color:var(--red);margin-right:auto}.file-selection-bar button{font-size:12px;min-height:30px;padding:6px 10px;background:#fff}.file-select-all{display:flex;align-items:center;gap:8px;font-size:12px;margin:14px 0}.file-card{position:relative}.file-card>input{position:absolute;right:14px;top:14px}.file-reference{background:#fafbfc;border:1px solid #edf0f4;border-radius:8px;font-size:13px}.file-reference>strong{flex:1}.file-reference>span{color:#9097a3;font-size:12px}.file-reference button,.file-reference .file-link{font-size:12px;background:transparent}.file-library .muted{color:#969ca7;font-size:12px}.file-dialog label{font-size:13px}.file-dialog-content{gap:16px}.file-dialog .muted{font-size:12px}.file-choices{border-radius:8px}.file-version{border-radius:10px;padding:16px}.file-version p{font-size:12px;color:#77808e}.file-status:not(:empty){padding:10px 12px;background:#f5f7fa;border-radius:7px;font-size:12px}.file-status.error{background:#fff1f2;color:#ad3747}
body .rep-header+main{max-width:1440px}body #rep-workspace>.rep-nav{display:none}body .rep-hero{background:#f8edf0;color:#852335;border:1px solid #ebd7de;border-radius:12px}body .rep-hero p{color:#986772}body .rep-hero:after{display:none}body .rep-card{border-color:var(--line);border-radius:12px}body .rep-card.pinned{border-top:3px solid var(--red);background:#fff}body .rep-badge.gold{color:#9b4455;background:#f9edf0}body .rep-detail{border-radius:12px;border-color:var(--line)}body .rep-login,body .login-panel{border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 40px #26324408}body .rep-login h1{font-size:27px}body #rep-workspace{min-width:0}body .rep-header #rep-identity button{font-size:12px}
@media(max-width:1150px){body .app-header,body .rep-header{grid-template-columns:1fr auto;gap:14px;padding:18px 24px}.primary-navigation{grid-row:2;grid-column:1/-1;justify-content:center}body .module-cards{grid-template-columns:repeat(3,minmax(0,1fr))}body .home-date{display:none}}
@media(max-width:760px){body main{padding:20px 16px 36px}body .app-header,body .rep-header{padding:16px;gap:12px;grid-template-columns:1fr auto}body .brand,body .rep-brand{font-size:17px;letter-spacing:0}body .org,body .rep-brand span{font-size:10px}.primary-navigation{justify-content:space-between!important;gap:2px!important;overflow-x:auto}body .primary-navigation button,body .primary-navigation a{padding:9px 12px;font-size:13px;gap:0}.primary-navigation .ui-icon{display:none}body #identity,body #rep-identity{font-size:11px;gap:4px}body #identity .header-account{max-width:110px;font-size:10px;padding:4px}body #rep-name{display:none}body #logout,body #rep-logout{padding:6px 8px;min-height:30px}body #workspace:not([hidden]){display:block;min-height:0}body .table-directory{position:relative;top:auto;margin-bottom:14px;max-height:320px;border-radius:10px}.home-heading{padding:4px 0 20px}.home-heading h1{font-size:25px}.home-eyebrow{font-size:11px}.home-description{font-size:12px}.module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;margin-bottom:20px}body button.module-card{min-height:145px;padding:17px;gap:7px}.module-card strong{font-size:15px}.module-card span{font-size:11px}.module-card>.ui-icon:first-child{width:23px;height:23px;margin-bottom:7px}.home-section{padding:17px}.home-event-list{grid-template-columns:1fr}.home-event{gap:12px!important}.home-file{flex-wrap:wrap;gap:10px}.home-file>small{width:100%;padding-left:30px}.home-file>.ui-icon:last-child{display:none}body .file-library{padding:16px}body .file-toolbar{gap:6px}body .file-toolbar button,body .file-toolbar .file-link{font-size:12px;padding:8px 10px}body .file-toolbar h2{font-size:19px}.file-selection-bar{position:sticky;top:0;z-index:8;padding:10px;gap:5px}.file-selection-bar strong{width:100%}body .file-dialog{width:calc(100vw - 20px);max-height:92vh;padding:18px}body .file-cards{grid-template-columns:1fr}body .activity-ledger-tabs{margin-bottom:14px}body .table-directory #tabs{display:flex}body .table-directory #tabs>button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

body .primary-navigation{background:transparent;padding:0;box-shadow:none;flex-wrap:nowrap}
body #workspace.directory-collapsed:not([hidden]){display:block}body #workspace.directory-collapsed>.table-directory{display:none}
body .file-toolbar>.file-tools{margin-left:auto}.file-tools{position:relative}.file-tools>summary{list-style:none;cursor:pointer;border:1px solid #e4e7ec;border-radius:8px;padding:8px 14px;color:#6b7482;font-size:13px}.file-tools>summary::-webkit-details-marker{display:none}.file-tools>summary:after{content:'⌄';margin-left:8px}.file-tools-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:25;display:grid;min-width:185px;gap:4px;background:white;border:1px solid #e6e9ee;box-shadow:0 8px 32px #2833441a;padding:7px;border-radius:10px}.file-tools-menu>button,.file-tools-menu>.file-link{font-size:12px!important;text-align:left;background:transparent!important;margin:0}.file-toolbar>button{flex:none}
body #sidebar-file-tree .folder-tree-row>summary{display:flex;align-items:center;gap:3px;padding:0;font-weight:400;color:#8491a0;list-style:none}body #sidebar-file-tree .folder-tree-row>summary:before{content:'›';font-size:16px;width:12px;flex:none}body #sidebar-file-tree .folder-tree-row[open]>summary:before{transform:rotate(90deg)}body #sidebar-file-tree .folder-tree-row>summary>button{flex:1;display:flex;align-items:center;gap:7px;padding:8px 5px}body #sidebar-file-tree .folder-tree-branch{margin-left:14px;padding-left:8px;border-left:1px solid #e9ebef}body #sidebar-file-tree .folder-tree-row{margin:0}

body .primary-navigation a[aria-current=page]{box-shadow:none}body #sidebar-file-tree button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}body #sidebar-file-tree summary{min-width:0}

body .page-path{display:flex;align-items:center;gap:16px;padding:4px 0 14px;margin:0 0 14px;border:0;background:transparent;min-height:42px}body .page-path .page-back{background:#fff;border:1px solid #e3e6eb;border-radius:8px;white-space:nowrap;color:#535b68;padding:8px 12px;font-size:12px;min-height:34px}.page-path-items{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0;font-size:12px;color:#68727f}.page-path-items [aria-current=page]{color:#343b46;font-weight:600;overflow-wrap:anywhere}.page-path-items .path-separator{color:#b0b6bf}.page-path-items button.text-link{font-size:12px;padding:5px 7px!important}#rep-breadcrumb{margin-bottom:12px}@media(max-width:760px){body .page-path{gap:8px;flex-wrap:wrap}.page-path-items{font-size:11px}.page-path-items button.text-link{font-size:11px}}
