.site-icon{display:inline-block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.app-header.site-shell{max-width:1480px;margin:auto;min-height:92px;height:auto;padding:20px 28px;gap:24px;align-items:center;box-sizing:border-box}.site-shell .brand{min-width:0;gap:12px}.site-shell .brand-glyph{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--indigo);box-shadow:0 4px 10px #353b7019}.site-shell .brand>span:last-child{font-size:18px;letter-spacing:.03em}.site-shell .brand small{font-size:12px;font-weight:400;letter-spacing:.02em}.site-shell .header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:nowrap}.site-shell .header-actions>button,.shell-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;white-space:nowrap;font-size:13px;font-weight:600;border-radius:9px}.site-shell #account-button{max-width:230px;overflow:hidden;text-overflow:ellipsis}.site-shell #note-count{background:var(--indigo-wash);border-radius:6px;padding:0 6px;font:600 11px/1.7 system-ui}.shell-menu{position:relative}.shell-menu>summary{list-style:none;cursor:pointer;padding:7px 12px;border:1px solid var(--border);background:var(--paper);color:var(--indigo)}.shell-menu>summary::-webkit-details-marker{display:none}.shell-menu>summary>.site-icon:last-child{width:13px;height:13px;color:var(--muted)}.shell-menu[open]>summary{background:var(--indigo-wash)}.shell-menu-panel{position:absolute;right:0;top:calc(100% + 10px);width:300px;max-width:calc(100vw - 32px);z-index:70;padding:8px 16px;background:var(--paper);border:1px solid var(--border);border-radius:14px;box-shadow:0 16px 45px #25283222;box-sizing:border-box}.shell-tool-section{padding:12px 0;border-bottom:1px solid var(--background)}.shell-tool-section:last-child{border-bottom:0}.shell-tool-section h2{margin:0 0 8px;font:600 11px/1.7 system-ui;color:var(--muted);letter-spacing:.05em}.shell-tool-section>div{display:grid;gap:6px}.shell-tool-section button,.shell-tool-section .button-link{display:block;text-align:left;width:100%;border:0;padding:7px 9px;border-radius:7px;font:13px/1.7 system-ui;color:var(--indigo);background:transparent;text-decoration:none;box-sizing:border-box}.shell-tool-section button:hover,.shell-tool-section a:hover{background:var(--indigo-wash)}.shell-tool-section .notes-top-group{padding:0;border:0}.shell-tool-section .notes-top-actions{display:grid;gap:4px}.shell-tool-section .notes-top-group small{font:11px/1.8 system-ui;margin-top:8px}.shell-tool-section .local-badge{font:11px/1.8 system-ui;border:0;padding:0 9px;color:var(--muted)}.site-shell [hidden],.site-nav [hidden]{display:none!important}.section-navigation.site-nav{display:grid;grid-template-columns:repeat(var(--nav-count,8),minmax(0,1fr));gap:8px;max-width:1480px;margin:0 auto;padding:14px 28px 18px;box-sizing:border-box;border-bottom:1px solid var(--border);background:transparent;position:relative;z-index:45}.site-nav>.module-link,.site-nav>.nav-tree>summary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;height:auto;padding:10px 7px;border:1px solid var(--border);border-radius:11px;background:var(--paper);color:var(--tone-454a58,#454a58);font:600 13px/1.5 system-ui,sans-serif;text-decoration:none;white-space:nowrap;box-shadow:0 2px 4px #25283203;box-sizing:border-box}.site-nav>.nav-tree>summary:after{font-size:11px;margin-left:0}.site-nav>.module-link:hover,.site-nav>.nav-tree>summary:hover{border-color:#babecf;background:var(--tone-f5f4fa,#f5f4fa)}.site-nav>.module-link[aria-current=page],.site-nav>.nav-tree.is-active>summary,.site-nav>.nav-tree[open]>summary{background:var(--indigo);border-color:var(--indigo);color:#fff;box-shadow:0 5px 12px #353b701c}.site-nav>.module-link .site-icon,.site-nav>.nav-tree>summary .site-icon{width:19px;height:19px}.site-nav .nav-children{top:calc(100% + 10px);border-radius:12px;min-width:195px}.site-nav .nav-tree{margin:0;min-width:0}.site-nav>.support-entry{color:#8d514e;background:var(--tone-fcf7f4,#fcf7f4)}.site-nav>.support-entry:hover{background:var(--tone-f5eae6,#f5eae6);border-color:#d8b8ae}.site-nav :is(button,a,summary):focus-visible,.shell-menu :is(button,a,summary):focus-visible{outline:2px solid var(--indigo);outline-offset:3px}.standalone-shell{font:15px/1.7 system-ui;color:var(--ink);max-width:1440px;margin:auto}.standalone-shell .shell-top{padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.standalone-shell .shell-brand{text-decoration:none;display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:650;letter-spacing:.04em}.shell-brand>span:first-child{background:var(--indigo);color:var(--paper);width:42px;height:42px;display:grid;place-items:center;border-radius:11px;font:26px SimSun,serif}.shell-brand small{display:block;font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted)}.standalone-shell .shell-links{display:flex;gap:12px;font-size:13px;align-items:center}.standalone-shell .shell-links a{color:var(--indigo);text-decoration:none}.standalone-shell+.site-nav{--nav-count:8} @media(max-width:1100px){.section-navigation.site-nav{grid-template-columns:repeat(4,minmax(0,1fr))}.site-shell #account-button{max-width:180px}}@media(max-width:700px){.app-header.site-shell{display:grid;grid-template-columns:1fr auto;gap:12px 10px;padding:18px 16px 12px}.site-shell .brand{grid-column:1;grid-row:1}.site-shell .brand>span:last-child{font-size:16px}.site-shell .brand-glyph{width:38px;height:38px;font-size:25px}.site-shell .brand small{font-size:10px}.site-shell .header-actions{display:contents}.site-shell #account-button{grid-column:2;grid-row:1;max-width:145px;font-size:12px;padding:6px 9px}.site-shell #notes-button{grid-column:1;grid-row:2;justify-self:start;min-height:36px}.site-shell .shell-menu{grid-column:2;grid-row:2;justify-self:end}.shell-menu>summary{min-height:36px;font-size:12px}.section-navigation.site-nav{padding:8px 16px 16px;gap:7px}.site-nav>.module-link,.site-nav>.nav-tree>summary{min-height:62px;padding:8px 4px;gap:5px;font-size:12px;flex-direction:column;border-radius:10px}.site-nav>.nav-tree>summary:after{display:none}.site-nav>.nav-tree[open]{width:auto}.site-nav .nav-children{position:absolute;left:auto;right:0;top:calc(100% + 7px);min-width:190px;box-shadow:0 14px 36px #25283222;display:grid;grid-template-columns:1fr}.site-nav .nav-tree{position:relative}.standalone-shell .shell-top{padding:18px 16px}.standalone-shell .shell-links{gap:10px;font-size:12px}.standalone-shell .shell-brand{font-size:15px}}@media(max-width:360px){.section-navigation.site-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.site-nav>.module-link,.site-nav>.nav-tree>summary{flex-direction:row;min-height:45px;gap:8px;font-size:12px}.site-shell #account-button{max-width:125px}.site-shell .brand>span:last-child{font-size:14px}.site-shell .brand small{font-size:9px}}
.app-header.site-shell .header-actions{width:auto}body>.section-navigation.site-nav>.module-link,body>.section-navigation.site-nav>.nav-tree>summary{width:100%;max-width:none;height:auto;min-height:52px;padding:10px 7px;font-size:13px;line-height:1.5}body>.section-navigation.site-nav>.nav-tree{width:auto;align-self:stretch}body>.section-navigation.site-nav .nav-children{position:absolute;top:calc(100% + 10px);min-width:195px;grid-template-columns:1fr;box-shadow:0 12px 30px #25283222}@media(max-width:700px){body>.section-navigation.site-nav>.module-link,body>.section-navigation.site-nav>.nav-tree>summary{min-height:62px;padding:8px 4px;font-size:12px}}@media(max-width:360px){body>.section-navigation.site-nav>.module-link,body>.section-navigation.site-nav>.nav-tree>summary{min-height:45px;padding:8px 4px}}
body>.section-navigation.site-nav,body.hexagram-view>.section-navigation.site-nav{display:grid;align-items:stretch;gap:8px;white-space:normal}
:root{--workbench-shell-visible:visible}

/* One shared item geometry for links, uploads and buttons, including touch layouts. */
.shell-menu-panel .shell-tool-section :is(a.button-link,button):not([hidden]){display:flex!important;align-items:center;justify-content:flex-start;gap:12px!important;width:100%;min-height:40px;margin:0!important;padding:8px 10px!important;text-align:left;font:13px/1.7 system-ui;border:0!important;border-radius:7px;background:transparent;box-sizing:border-box;color:var(--ink)}
.shell-menu-panel .shell-tool-section :is(a.button-link,button)>.site-icon{width:20px;height:20px;flex:0 0 20px;margin:0!important;color:var(--indigo)}
.shell-menu-panel .shell-tool-section :is(a.button-link,button):hover{background:var(--indigo-wash)}

.message-owner-link{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;text-decoration:none;font-size:12px;font-weight:600}.message-owner-link .site-icon{width:16px;height:16px}.header-actions .message-owner-link{padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--paper)}

.message-owner-link[aria-current=page]{background:var(--indigo-wash);box-shadow:0 0 0 4px var(--indigo-wash);border-radius:4px}

.shell-menu-panel :is(a,button),.account-links a,.account-center .account-card>a,.account-session-actions button{display:inline-flex;align-items:center;gap:7px}.add-public-note{margin-left:auto;font:12px system-ui;padding:5px 9px;white-space:nowrap}

.account-center .account-hero{display:flex;align-items:center;gap:20px}.account-hero>.account-session-actions{margin-left:auto;margin-top:0;align-self:center}.account-operations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.account-operations h2,.account-operations>p{grid-column:1/-1}.account-operations>a{display:flex;align-items:center;gap:8px;padding:14px;border:1px solid var(--border);border-radius:9px;text-decoration:none;background:var(--surface)}.note-transfer-controls,.notes-top-group{margin:12px 0}.notes-top-actions{display:flex;flex-wrap:wrap;gap:8px}#note-transfer-controls small{display:block;font-size:12px;color:var(--muted);margin-top:8px}.word-editor-workbench{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px}.word-editor-workbench>aside{min-width:0;border-right:1px solid var(--border);padding-right:16px}.word-editor-workbench input[type=search]{width:100%;padding:10px;margin:8px 0 12px}.word-editor-workbench .indexed-scroll{max-height:470px;overflow:auto}.word-editor-workbench .index-group>button{display:block;width:100%;text-align:left;padding:7px 9px;border:0}.word-editor-workbench button[aria-pressed=true]{background:var(--indigo-wash);color:var(--indigo)}.owner-dialog[data-edit-type=glossary]{width:min(880px,calc(100vw - 24px))}.word-editor-fields{min-width:0}.word-editor-fields textarea{min-height:260px}.birth-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.birth-input-result{line-height:1.9;white-space:normal;overflow-wrap:anywhere}.case-description{line-height:1.9}#selection-tools{gap:6px;max-width:calc(100vw - 16px);flex-wrap:wrap}
@media(max-width:700px){.account-center .account-hero{gap:12px}.account-hero>.account-session-actions button{font-size:12px;padding:7px;white-space:nowrap}.account-operations{grid-template-columns:1fr}.word-editor-workbench{grid-template-columns:1fr;gap:16px}.word-editor-workbench>aside{border:0;padding:0}.word-editor-workbench .indexed-scroll{max-height:220px}.word-editor-fields textarea{min-height:150px}.birth-date-fields{gap:10px}}

.shell-menu-panel .shell-tool-section[hidden],.shell-menu-panel .shell-tool-section [hidden]{display:none!important}
.site-nav[data-nav-revision="-1"]{visibility:hidden}
