/* Workspace contract: see docs/ui-ux-governance.md. */
:root{--workspace-header:54px;--workspace-space:8px;--workspace-text:#51495c;--workspace-muted:#786f81;--workspace-border:#e6e1eb;--workspace-surface:#fff;--workspace-accent:#7865a2;--workspace-layer-tools:20;--workspace-layer-panel:50}
.toolbar{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--workspace-border);position:relative;z-index:var(--workspace-layer-tools);flex-shrink:0}
.toolbar>.attribute-search{flex:1;min-width:180px;max-width:560px;width:auto;background:#faf9fc}
.attribute-search>select{color:var(--workspace-text);font-size:12px;min-height:36px}
.attribute-search .search{padding:8px 10px}
.attribute-search .search input{font-size:13px;color:var(--workspace-text)}
.search:focus-within{outline:2px solid #a694bd;outline-offset:1px}
.workspace-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.workspace-actions .graph-mode-toggle{display:flex;gap:2px;padding:3px;border:1px solid var(--workspace-border);border-radius:7px;width:auto;background:#f8f6fa}
.workspace-actions .graph-mode-toggle button{padding:6px 10px;min-height:30px;border:0;border-radius:4px;font-size:12px;color:var(--workspace-muted);white-space:nowrap}
.workspace-actions .graph-mode-toggle button[aria-pressed=true]{background:#ede7f5;color:#614b80;box-shadow:none}
.workspace-actions .quiet-button,.workspace-actions .display-settings>summary{min-height:36px;padding:7px 10px;font-size:12px;color:var(--workspace-text)}
.workspace-actions .graph-help>summary{height:32px;width:32px;font-size:14px;color:var(--workspace-muted)}
.filter-control{position:relative}
.filter-count{min-width:17px;height:17px;border-radius:9px;display:grid;place-items:center;background:#ede7f5;color:#614b80;font-size:11px}
.filter-count[hidden]{display:none}
.filter-control .advanced-filters{position:absolute;right:0;top:calc(100% + 8px);width:min(420px,calc(100vw - 28px));padding:16px;background:var(--workspace-surface);border:1px solid var(--workspace-border);border-radius:10px;box-shadow:0 8px 28px #32203d16;z-index:var(--workspace-layer-panel);max-height:calc(100dvh - 160px);overflow:auto;overscroll-behavior:contain;color:var(--workspace-text)}
.workspace-popover-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:13px;color:var(--workspace-text)}
.workspace-popover-heading button{width:28px;height:28px;font-size:22px;color:var(--workspace-muted)}
.advanced-filters .facet-select-label{display:grid;gap:7px;margin:12px 0;font-size:12px;color:var(--workspace-text)}
.advanced-filters select{width:100%;min-height:36px;padding:7px 10px;font-size:12px;border:1px solid var(--workspace-border);border-radius:6px;background:white;color:var(--workspace-text)}
.advanced-filters .filter-row{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0;align-items:center}
.advanced-filters .filter-row>span{flex-basis:100%;font-size:12px;margin-bottom:2px;color:var(--workspace-text)}
.advanced-filters .filter-row button,.advanced-filters .attribute-suggestions button{font-size:12px;padding:7px 9px;border:1px solid var(--workspace-border);border-radius:5px;color:var(--workspace-muted);background:#fbfafc}
.advanced-filters .filter-row button.active{background:#ede7f5;border-color:#c9b9dc;color:#614b80}
.filter-shortcuts-label{margin:16px 0 8px;font-size:11px;color:var(--workspace-muted)}
.advanced-filters .attribute-suggestions{display:flex;flex-wrap:wrap;gap:6px}
.workspace-actions .settings-popover{width:350px;max-height:calc(100dvh - 150px);color:var(--workspace-text)}
.settings-popover .settings-heading,.settings-popover .display-toggles label{color:var(--workspace-text)}
.settings-popover .organization-picker{position:static;padding:12px 0;margin:12px 0 0;border:0;border-top:1px solid var(--workspace-border);background:none}
.settings-popover .organization-picker>summary{padding:4px 0;border:0;background:none;color:var(--workspace-text);font-size:12px}
.settings-popover .organization-popover{position:static;width:auto;padding:7px 0 0;border:0;box-shadow:none;background:none}
.settings-popover .organization-popover p{font-size:11px;line-height:1.7;color:var(--workspace-muted)}
.settings-popover .organization-options{display:grid;grid-template-columns:1fr;max-height:220px;gap:9px;padding:8px 0;color:var(--workspace-text);font-size:12px}
.workspace-actions .graph-help-popover{right:0;left:auto;width:min(350px,calc(100vw - 28px));max-height:calc(100dvh - 150px);overflow:auto;color:var(--workspace-text)}
.workspace-actions .graph-help-popover p{color:var(--workspace-muted);font-size:12px;line-height:1.75}
.active-filters{padding:7px 12px;gap:6px;flex-shrink:0}
.active-filters .attribute-chip{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:11px}

/* Only the graph uses an app viewport; text-heavy screens retain page scrolling. */
body.canvas-workspace{height:100dvh;overflow:hidden}
.canvas-workspace .site-header{height:var(--workspace-header)}
.canvas-workspace .minimal-main{height:calc(100dvh - var(--workspace-header));max-width:none;padding:8px 12px;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.canvas-workspace .page-heading{position:absolute!important;width:1px;height:1px;padding:0;margin:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.canvas-workspace #modern-era-panel{display:flex;flex:1;min-height:0}
.canvas-workspace .workspace{display:flex;flex:1;min-width:0;min-height:0;gap:0;align-items:stretch}
.canvas-workspace .explorer{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;box-shadow:none}
.canvas-workspace #graph-view.active-view{display:flex;flex:1;flex-direction:column;min-height:0;position:relative;z-index:0}
.canvas-workspace .graph-frame{flex:1;min-height:0}
.canvas-workspace .graph-canvas{height:100%;min-height:0;max-height:none;overflow:hidden;border-radius:0 0 10px 10px}
.canvas-workspace .graph-legend{display:none}
.canvas-workspace .canvas-badge{top:12px;left:14px;font-size:11px;color:var(--workspace-muted);padding:5px 8px;background:#ffffffdf}
.canvas-workspace #edge-count{display:none}
.canvas-workspace .canvas-bottom{left:14px;right:14px;bottom:12px}
.canvas-workspace .canvas-bottom p{font-size:11px;color:var(--workspace-muted);background:#ffffffdf}
.canvas-workspace .canvas-bottom .zoom-controls{height:36px;background:#fffffff2;border-color:var(--workspace-border)}





.canvas-workspace .minimal-main>footer{display:none}
.canvas-workspace #top-navigation{position:fixed;top:calc(var(--workspace-header) + 6px);right:12px;z-index:55;display:flex;flex-direction:column;align-items:stretch;width:260px;max-height:calc(100dvh - 90px);overflow:auto;padding:10px;gap:12px;background:white;border:1px solid var(--workspace-border);border-radius:9px;box-shadow:0 8px 28px #32203d16}
.canvas-workspace #top-navigation .main-nav{display:grid;gap:3px}
.canvas-workspace #top-navigation .nav-item{font-size:12px;padding:10px}
.canvas-workspace #top-navigation .navigation-extras{display:flex;flex-wrap:wrap;gap:10px;padding:8px;border-top:1px solid var(--workspace-border)}
.canvas-workspace .workspace>.detail{top:calc(var(--workspace-header) + 12px);bottom:44px;right:12px;max-height:none;width:min(345px,calc(100vw - 24px))}

@media(max-width:900px){.toolbar{flex-wrap:wrap;gap:8px;padding:9px 10px}.toolbar>.attribute-search{flex-basis:100%;width:100%;max-width:none;min-width:0}.workspace-actions{width:100%;gap:6px}.workspace-actions .graph-mode-toggle{margin-right:auto}.workspace-actions .graph-mode-toggle button{padding-inline:8px}.workspace-actions .quiet-button,.workspace-actions .display-settings>summary{padding:7px 8px}.filter-control .advanced-filters,.workspace-actions .settings-popover,.workspace-actions .graph-help-popover{position:fixed;left:auto;right:18px;top:calc(var(--workspace-header) + 110px);max-height:calc(100dvh - var(--workspace-header) - 140px)}.filter-control .advanced-filters{width:min(420px,calc(100vw - 36px))}}
@media(max-width:600px){:root{--workspace-header:52px}.canvas-workspace .minimal-main{padding:6px;gap:4px}.toolbar{padding:8px;gap:7px}.workspace-actions{gap:5px}.workspace-actions .graph-mode-toggle button{padding:5px 7px;font-size:11px}.workspace-actions .quiet-button,.workspace-actions .display-settings>summary{font-size:11px;padding:7px}.workspace-actions .graph-help>summary{height:32px;width:32px}.attribute-search .search input{font-size:16px}.attribute-search>select{font-size:11px;max-width:96px}.filter-control .advanced-filters,.workspace-actions .settings-popover,.workspace-actions .graph-help-popover{left:12px;right:12px;width:auto;top:calc(var(--workspace-header) + 116px)}.canvas-workspace .canvas-bottom p{display:none}.canvas-workspace .canvas-bottom{right:10px;bottom:10px}.canvas-workspace .workspace>.detail{top:auto;left:10px;right:10px;bottom:40px;width:auto;max-height:55dvh}.era-menu-toggle{height:44px;width:44px}}
@media(max-width:600px){.workspace-actions .quiet-button,.workspace-actions .display-settings>summary,.workspace-actions .graph-help>summary,.workspace-actions .graph-mode-toggle button{min-height:44px}.workspace-actions .graph-help>summary{width:44px;height:44px}.filter-control .advanced-filters,.workspace-actions .settings-popover,.workspace-actions .graph-help-popover{top:calc(var(--workspace-header) + 130px)}}
@media(max-height:500px) and (min-width:901px){.workspace-actions .settings-popover,.workspace-actions .graph-help-popover,.filter-control .advanced-filters{max-height:calc(100dvh - 125px)}}

/* Inline filters reserve space below the toolbar; only the list scrolls. */
.explorer>.advanced-filters.filter-ribbon{position:static;display:flex;flex-direction:column;gap:8px;flex:0 0 auto;width:auto;min-height:0;max-height:none;padding:10px 12px;background:#faf8fc;border:0;border-bottom:1px solid var(--workspace-border);border-radius:0;box-shadow:none;color:var(--workspace-text);z-index:1}
.explorer>.advanced-filters.filter-ribbon[hidden]{display:none}
.learning-settings{position:relative;color:var(--workspace-text)}
.learning-settings>summary{display:flex;align-items:center;gap:5px;min-height:36px;padding:7px 10px;border:1px solid var(--workspace-border);border-radius:7px;cursor:pointer;font-size:12px;list-style:none;background:#fff;white-space:nowrap}
.learning-settings>summary::-webkit-details-marker{display:none}
#learning-scope-label{font-size:11px;color:#614b80;background:#eee8f5;padding:2px 5px;border-radius:4px}
.learning-scope-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(390px,calc(100vw - 24px));padding:16px;background:white;border:1px solid var(--workspace-border);border-radius:9px;box-shadow:0 8px 28px #32203d16;max-height:calc(100dvh - 90px);overflow:auto;z-index:60}
.learning-usage,.learning-caveat,#learning-unavailable{font-size:12px;line-height:1.75;color:var(--workspace-muted);margin:8px 0}
.learning-scope-panel fieldset{padding:0;margin:10px 0;border:0;display:grid;gap:6px}
.learning-choice{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid var(--workspace-border);border-radius:7px;cursor:pointer;min-height:44px}
.learning-choice:has(input:checked){background:#f5f1fa;border-color:#cdbddf}.learning-choice input{width:18px;height:18px;accent-color:#7865a2;flex-shrink:0;margin:2px 0}
.learning-choice b{display:block;font-size:13px;font-weight:600}.learning-choice small{display:block;margin-top:5px;font-size:12px;line-height:1.6;color:var(--workspace-muted)}
.learning-scope-panel fieldset:disabled{opacity:.55}.learning-scope-panel button{min-height:40px}.learning-exam{margin-top:6px}
#learning-reset{border:1px solid var(--workspace-border);padding:8px 12px;font-size:12px;border-radius:6px;color:var(--workspace-text)}
#learning-unavailable{padding:10px;background:#f5f1fa;border-radius:6px;color:#614b80}
.header-actions{gap:8px}
.site-header .brand{white-space:nowrap;flex-shrink:0}.site-header .era-menu{flex-shrink:0}
.site-header .brand>span:last-child{font-size:inherit}
.site-header .brand-copy{display:flex;align-items:center;justify-content:center}
.site-header .brand-name{display:block;font-size:inherit;line-height:1}
.site-header .current-era-label{display:inline-flex;align-items:center;flex-shrink:0;min-height:24px;padding:4px 7px;border-radius:5px;background:#eee7f5;color:#694b84;font:600 11px/1.2 var(--sans);letter-spacing:0;white-space:nowrap}
@media(max-width:600px){.learning-settings>summary{min-height:44px;padding:6px 8px;font-size:11px}.learning-scope-panel{position:fixed;top:58px;left:8px;right:8px;width:auto;max-height:calc(100dvh - 72px)}.site-header{gap:4px;padding-inline:8px}.header-actions{gap:5px}.header-actions #nav-toggle{font-size:11px;padding-inline:7px}.explorer>.advanced-filters.filter-ribbon{padding:6px 8px;gap:6px}.learning-scope-panel button{min-height:44px}}
@media(max-height:550px){.canvas-workspace .filter-choice-list{max-height:52px}.canvas-workspace .filter-ribbon-heading{flex-wrap:nowrap}.canvas-workspace .filter-list-search{order:initial;flex-basis:auto}.canvas-workspace .filter-ribbon-heading [role=tab]{font-size:11px;padding:6px}.canvas-workspace .filter-ribbon-heading input{font-size:13px}.canvas-workspace .filter-ribbon-footer button{min-height:36px;padding:5px 10px}}
@media(max-width:380px){.site-header .brand{font-size:22px;gap:5px}.site-header .brand-symbol{width:24px;height:24px;line-height:24px;font-size:23px}.site-header .era-menu-toggle{width:36px}.header-actions #nav-toggle [data-icon]{display:none}.header-actions #nav-toggle{gap:4px;padding-inline:6px}.learning-settings>summary{padding-inline:6px;gap:4px}.site-header{gap:3px}.header-actions{gap:4px}}
@media(max-width:380px) and (max-height:700px){.canvas-workspace .filter-choice-list{max-height:58px}}

/* Input-independent organization details; pointer hover stays optional. */
#graph{touch-action:none}
.organization-info-card{position:absolute;left:12px;bottom:58px;z-index:18;width:min(320px,calc(100% - 24px));max-height:calc(100% - 76px);overflow:auto;overscroll-behavior:contain;padding:12px 14px;border:1px solid var(--workspace-border);border-radius:10px;background:#fffffff5;box-shadow:0 5px 20px #32203d18;color:var(--workspace-text);touch-action:pan-y}
.organization-info-card>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.organization-info-card strong{font-size:14px}.organization-info-card p{font-size:13px;line-height:1.7;margin:8px 0 12px}.organization-info-card button{min-height:44px;font-size:12px}.organization-info-card>div button{width:44px;flex-shrink:0;font-size:23px;color:var(--workspace-muted)}.organization-info-card>.primary-button{width:100%;padding:8px;border-radius:6px;background:var(--workspace-accent);color:#fff}
@media(any-pointer:coarse),(max-width:1180px){
 .workspace-actions .graph-mode-toggle button,.workspace-actions .quiet-button,.workspace-actions .display-settings>summary,.workspace-actions .graph-help>summary,.learning-settings>summary,.site-header #nav-toggle{min-height:44px}
 .workspace-actions .graph-help>summary{width:44px;height:44px}.era-menu-toggle{width:44px;height:44px}
 .canvas-workspace .canvas-bottom .zoom-controls{height:44px}.zoom-controls button{min-width:44px;min-height:44px}
 .organization-tag{min-height:44px;padding:9px 12px;font-size:12px;touch-action:manipulation}
 .filter-ribbon-heading [role=tab],.filter-ribbon-heading>[data-close-workspace],.filter-ribbon-footer button{min-height:44px}
 .attribute-search input,.filter-list-search input,.learning-scope-panel input[type=search],.joseon-search-row input{font-size:16px}
 .attribute-search select,.joseon-search-row select{min-height:44px}
 .settings-popover button,.settings-popover select,.joseon-toolbar button,.joseon-search-row button,.joseon-search-row select,.joseon-help>summary,.joseon-detail button{min-height:44px}
 .settings-popover .display-toggles label,.settings-popover .organization-options label,.joseon-keyword-toggle{min-height:44px;align-items:center}
 .joseon-scroll{touch-action:auto}.joseon-tags button{padding:8px 10px}
}
@media(max-width:380px){.site-header .era-menu-toggle{width:36px}.workspace-actions .graph-mode-toggle button{padding-inline:6px}}

/* Align controls by their boxes, not by font-dependent arrow glyph baselines. */
.ui-chevron{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;line-height:0;color:var(--workspace-muted);pointer-events:none}
.ui-chevron svg{display:block;width:16px;height:16px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ui-chevron.is-up,details[open]>summary .ui-chevron,[aria-expanded=true]>.ui-chevron{transform:rotate(180deg)}
.learning-settings>summary,.site-header #nav-toggle{display:flex;align-items:center;justify-content:center;line-height:1.25}
.learning-settings>summary{list-style:none}.learning-settings>summary::marker{content:''}.learning-settings>summary::-webkit-details-marker{display:none}
.learning-settings>summary #learning-scope-label{display:inline-flex;align-items:center;min-height:20px;line-height:1;padding:3px 5px}
.workspace-actions .quiet-button,.workspace-actions .display-settings>summary,.workspace-actions .graph-mode-toggle button{display:inline-flex;align-items:center;justify-content:center;line-height:1.25}
.workspace-actions .graph-help>summary{display:grid;place-items:center;padding:0;line-height:1}
.filter-ribbon-heading>[data-close-workspace]{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1}
.attribute-search>select,.settings-popover select,.joseon-search-row select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23786f81' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;padding-right:30px;line-height:1.4}
.organization-info-card>.primary-button{display:flex;align-items:center;justify-content:center;margin-top:0;line-height:1.3}
@media(forced-colors:active){.attribute-search>select,.settings-popover select,.joseon-search-row select{appearance:auto;background-image:none;padding-right:8px}}

.community-actions{display:flex;align-items:center;justify-content:flex-end;align-self:flex-end;gap:8px;margin:14px 0 0;padding:0;border:0;background:transparent}
.community-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:112px;margin:0;padding:0 16px;border:1px solid transparent;border-radius:7px;font-size:13px;font-weight:600;line-height:1;white-space:nowrap}
.community-actions button svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.community-actions .community-support{border-color:#e6bfce;background:#fff5f8;color:#963f66}.community-actions .community-support:hover{background:#ffe9f0;border-color:#cf9ab0}
.community-actions .community-feedback{background:#70518f;color:#fff;box-shadow:0 2px 4px #55326c1a}.community-actions .community-feedback:hover{background:#5f427d}
.community-actions button:focus-visible{outline:2px solid #61417e;outline-offset:2px}
.canvas-workspace .community-actions{flex:0 0 44px;height:44px;min-height:44px;margin:0}
.canvas-workspace .workspace>.detail{bottom:62px}
@media(max-width:600px){.community-actions button{min-width:0;padding-inline:12px;font-size:12px}.canvas-workspace .workspace>.detail{bottom:58px}}
.feedback-eyebrow{display:block;color:#795b94;font-size:12px;font-weight:600;margin-bottom:8px}
.feedback-content .modal-title{font-size:23px;line-height:1.45;margin-bottom:8px}.feedback-content .modal-copy{font-size:13px;line-height:1.7;margin-bottom:18px}
.feedback-content .form-tabs{display:flex;gap:6px;margin-bottom:16px}.feedback-content .form-tabs button{min-height:44px;flex:1;font-size:13px;border-radius:7px;border:1px solid var(--workspace-border);background:#faf8fc;color:#71677a}.feedback-content .form-tabs button.active{border-color:#b8a1ce;background:#eee6f6;color:#634181;font-weight:600}
.feedback-content .feedback-form{gap:14px}.feedback-content .feedback-form label{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:13px;color:var(--workspace-text);font-weight:500}
.feedback-content .feedback-form input,.feedback-content .feedback-form textarea{flex-basis:100%;width:100%;border:1px solid #dcd3e5;border-radius:7px;padding:11px 12px;font-size:14px;color:var(--workspace-text);background:#fff}.feedback-content .feedback-form input{min-height:44px}.feedback-content .feedback-form textarea{min-height:116px;resize:vertical;line-height:1.6}
.feedback-content input:focus,.feedback-content textarea:focus{outline:2px solid #9f84b7;outline-offset:1px}
.feedback-optional{font-size:11px;font-weight:400;color:var(--workspace-muted);padding:2px 5px;background:#f1edf5;border-radius:4px}
.feedback-privacy{font-size:11px;line-height:1.65;color:var(--workspace-muted);margin:0}.feedback-status{font-size:12px;line-height:1.65;margin:0}.feedback-status:empty{display:none}.feedback-status[data-state=error]{color:#a33f50}.feedback-status[data-state=success]{color:#347259}
.feedback-connection-note{font-size:12px;line-height:1.65;color:#705288;border:1px solid #e1d5ec;background:#f6f1fa;padding:10px 12px;border-radius:7px;margin-bottom:15px}
.feedback-content .feedback-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:0;background:#70518f;border:0;border-radius:7px;font-size:14px;font-weight:600;color:white;line-height:1.3}.feedback-content .feedback-submit:disabled{background:#b8a9c5;cursor:not-allowed}
.feedback-content .feedback-honeypot{display:none!important}.feedback-content .feedback-record{margin-top:20px}.feedback-content .feedback-record>summary{min-height:44px;font-size:12px;color:var(--workspace-muted);cursor:pointer}
@media(any-pointer:coarse),(max-width:600px){.feedback-content .feedback-form input,.feedback-content .feedback-form textarea{font-size:16px}.feedback-content .modal-title{font-size:21px}}
.support-panel{text-align:center;padding:8px 4px 12px}.support-emblem{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 20px;border-radius:50%;background:#fff0f5;color:#a34d73}.support-emblem svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.support-panel .modal-title{font-size:22px;line-height:1.5;margin-bottom:10px}.support-panel .modal-copy{font-size:14px;line-height:1.8}.support-preparing{display:inline-block;margin:8px 0;padding:6px 10px;border-radius:15px;background:#f3edf8;color:#795b91;font-size:12px}.support-panel .source-note{font-size:12px;margin:8px 0 20px}.support-panel .primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;margin:0;border-radius:7px;background:#70518f;font-size:13px;color:white}

/* Keep the active era next to the wordmark, including narrow headers. */
@media(max-width:900px){.site-header .header-caption{display:none}}
@media(max-width:380px){.site-header .current-era-label{font-size:10px;padding-inline:5px;min-height:22px}.learning-caption-long{display:none}.site-header #nav-toggle{min-width:44px;width:44px;padding:0;gap:0}.site-header #nav-toggle [data-icon]{display:flex}.site-header #nav-toggle>span:nth-child(2),.site-header #nav-chevron{display:none}}
@media(max-width:380px){.workspace-actions .graph-mode-toggle button[data-graph-mode]{font-size:0}.workspace-actions .graph-mode-toggle button[data-graph-mode]::before{font-size:11px;line-height:1.25}.workspace-actions .graph-mode-toggle button[data-graph-mode=regions]::before{content:'영역'}.workspace-actions .graph-mode-toggle button[data-graph-mode=lines]::before{content:'관계선'}}
