*{box-sizing:border-box}[hidden]{display:none!important}:root{--blue:#334567;--gold:#E6C96D;--red:#984242;--ink:#252a33;--muted:#6d7480;--line:#d9dee7;--soft:#f5f7fa;--shadow:0 10px 28px rgba(34,45,65,.10)}html,body{height:100%}body{margin:0;color:var(--ink);font-family:Quicksand,Arial,sans-serif;background:#eef1f5}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--blue);padding:9px 12px;font-weight:700}button:hover{background:#f5f7fa}button:disabled{cursor:not-allowed;opacity:.5}input,select{width:100%;border:1px solid #c9d0dc;border-radius:8px;background:#fff;padding:9px 10px;color:var(--ink)}input:focus,select:focus,[contenteditable]:focus{outline:3px solid rgba(51,69,103,.15);border-color:var(--blue)}h1,h2,h3,p{margin-top:0}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:700;color:var(--red);margin:0 0 5px}.muted{color:var(--muted)}.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.primary:hover{background:#2a3957}.small{padding:6px 9px;font-size:12px}.wide{width:100%;padding:12px}.login-page{display:grid;place-items:center;background:linear-gradient(135deg,#f7f8fb,#e9edf4);padding:30px}.login-shell{width:min(960px,100%);display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.brand-panel{background:var(--blue);color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:center;min-height:520px}.brand-panel h1{font-family:"Book Antiqua",Palatino,serif;font-size:42px;line-height:1.05;margin-bottom:18px}.brand-panel p:last-child{font-size:16px;line-height:1.65;max-width:440px;color:#edf1f8}.brand-mark,.mini-mark{display:grid;place-items:center;background:var(--gold);color:var(--blue);font-family:"Book Antiqua",Palatino,serif;font-weight:700}.brand-mark{width:72px;height:72px;border-radius:50%;font-size:28px;margin-bottom:28px}.mini-mark{width:32px;height:32px;border-radius:50%;font-size:13px}.login-card{padding:56px;display:flex;flex-direction:column;justify-content:center}.login-card h2{font-family:"Book Antiqua",Palatino,serif;color:var(--blue);font-size:30px}.login-card label{display:grid;gap:7px;font-size:13px;font-weight:700;margin-bottom:16px}.alert{padding:12px 14px;border-radius:9px;margin:0 0 18px;font-size:13px;line-height:1.5}.alert.error{background:#fff0f0;color:#7c2c2c;border:1px solid #efc3c3}.alert.success{background:#eef8ef;color:#285c32;border:1px solid #c5e0ca}.alert.locked{background:#fff8df;border:1px solid #ead791;color:#65511a}.login-foot{margin:18px 0 0;text-align:center;color:var(--muted);font-size:12px}.app-page{overflow:hidden}.topbar{height:58px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 18px;box-shadow:0 2px 8px rgba(0,0,0,.14);position:relative;z-index:30}.topbar-brand{display:flex;align-items:center;gap:10px;font-family:"Book Antiqua",Palatino,serif;font-weight:700;font-size:18px}.top-actions{display:flex;align-items:center;gap:5px}.top-actions button{background:transparent;color:#fff;border-color:transparent;padding:8px 9px}.top-actions button:hover,.top-actions .doc-toggle.active{background:rgba(255,255,255,.12)}.icon-text,.account-btn{display:flex;gap:7px;align-items:center}.tiny{font-size:9px}.account-wrap{position:relative}.dropdown{position:absolute;right:0;top:46px;width:190px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px;padding:6px;z-index:50}.dropdown button{width:100%;color:var(--ink);display:flex;gap:9px;align-items:center;justify-content:flex-start}.collapsed-doc-actions{display:flex;gap:2px}.status-bar{height:28px;display:flex;align-items:center;padding:0 16px;background:#fff;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.status-bar.saving{color:#785f10}.status-bar.saved{color:#2e6840}.status-bar.error{color:#8c2b2b}.recovery-banner{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:#fff6d5;border-bottom:1px solid #ebd57c;font-size:13px}.workspace{height:calc(100vh - 86px);display:grid;grid-template-columns:minmax(240px,25%) minmax(0,50%) minmax(260px,25%)}.workspace:not(.doc-open){grid-template-columns:minmax(240px,25%) minmax(0,75%)}.outline-panel,.document-panel{background:#fff;overflow:auto}.outline-panel{border-right:1px solid var(--line)}.document-panel{border-left:1px solid var(--line);padding-bottom:30px}.workspace:not(.doc-open) .document-panel{display:none}.content-panel{overflow:auto;padding:28px;background:#edf0f4}.document-page{background:#fff;width:min(8.5in,100%);min-height:11in;margin:0 auto;padding:.65in;box-shadow:0 1px 9px rgba(0,0,0,.12)}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:10}.panel-heading h2{font-family:"Book Antiqua",Palatino,serif;color:var(--blue);font-size:20px;margin:0}.circle-btn{width:34px;height:34px;padding:0;border-radius:50%;display:grid;place-items:center}.outline-help{font-size:10px;line-height:1.5;color:var(--muted);padding:9px 14px;border-bottom:1px solid var(--line);background:#fafbfc}.tree{padding:8px 6px 40px}.tree-node{position:relative}.node-row{display:flex;align-items:center;gap:5px;border-radius:7px;min-height:34px;padding:3px 5px;user-select:none}.node-row:hover{background:#f3f5f8}.node-row.selected{background:#e8edf5}.node-chevron{width:19px;text-align:center;color:#7c8491;font-size:11px}.node-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.node-edit{opacity:0;width:27px;height:27px;padding:0;border:0;background:transparent}.node-row.selected .node-edit{opacity:1}.node-children{margin-left:18px;border-left:1px solid #dfe3e9;padding-left:5px}.node-card{margin:5px 3px 7px;padding:8px;background:#f7f9fb;border:1px solid #cbd3df;border-radius:9px;box-shadow:0 2px 7px rgba(0,0,0,.05)}.node-card input{padding:7px 8px;margin-bottom:7px}.node-card-actions{display:flex;gap:4px;flex-wrap:wrap}.node-card-actions button{width:30px;height:28px;padding:0;display:grid;place-items:center}.node-card-actions .edit-content-btn{width:auto;padding:0 8px;display:flex;gap:5px;align-items:center;margin-left:auto}.drag-handle{cursor:grab}.dragging{opacity:.45}.drop-target>.node-row{outline:2px dashed var(--gold);outline-offset:-2px}.catalog-section{position:relative}.catalog-section.selected-section{outline:2px solid rgba(51,69,103,.18);outline-offset:6px;border-radius:2px}.content-editor-card{border:1px solid #cbd3df;border-radius:10px;box-shadow:var(--shadow);margin:8px -12px 20px;background:#fff;overflow:hidden}.editor-heading{background:#f5f7fa;padding:10px 12px;border-bottom:1px solid var(--line);font-weight:700;color:var(--blue)}.editor-toolbar{display:flex;gap:3px;flex-wrap:wrap;padding:7px;border-bottom:1px solid var(--line);background:#fbfcfd}.editor-toolbar button{width:31px;height:30px;padding:0}.editor-area{min-height:140px;padding:12px}.editor-actions{display:flex;justify-content:flex-end;gap:7px;padding:8px;border-top:1px solid var(--line);background:#fbfcfd}.document-tools{padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.document-tools button{display:flex;align-items:center;justify-content:flex-start;gap:8px;font-size:12px}.document-panel hr{border:0;border-top:1px solid var(--line);margin:0}.compact-label{display:grid;gap:7px;margin:14px}.style-controls{padding:0 14px}.style-row{display:grid;grid-template-columns:1fr 92px;gap:8px;align-items:center;margin:9px 0}.style-row label{margin:0;font-size:11px}.style-row input,.style-row select{padding:6px 7px;font-size:12px}.style-row input[type=color]{height:32px;padding:3px}.modal-backdrop{position:fixed;inset:0;background:rgba(19,26,39,.45);display:grid;place-items:center;z-index:100;padding:20px}.modal{width:min(760px,95vw);max-height:85vh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.25)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-head h2{font-family:"Book Antiqua",Palatino,serif;color:var(--blue);margin:0;font-size:22px}#modalBody{padding:16px}.result-box{border:1px solid var(--line);border-radius:9px;padding:10px;margin:8px 0}.history-table{width:100%;border-collapse:collapse;font-size:12px}.history-table th,.history-table td{padding:8px;border-bottom:1px solid var(--line);text-align:left}.history-table th{color:var(--blue)}.issue{padding:9px 10px;border-left:3px solid var(--red);background:#fff7f7;margin:8px 0;font-size:12px}.no-issues{padding:12px;background:#eff8f1;color:#2c6037;border-radius:8px}@media(max-width:1000px){.icon-text span{display:none}.workspace.doc-open{grid-template-columns:230px minmax(0,1fr) 280px}}@media(max-width:760px){.login-shell{grid-template-columns:1fr}.brand-panel{min-height:auto;padding:32px}.login-card{padding:32px}.workspace,.workspace.doc-open,.workspace:not(.doc-open){grid-template-columns:1fr;height:auto}.app-page{overflow:auto}.outline-panel,.document-panel{border:0;border-bottom:1px solid var(--line)}.content-panel{padding:10px}.document-page{padding:28px;min-height:70vh}.topbar{position:sticky;top:0}.topbar-brand span:last-child{display:none}}


/* v0.4 catalog editing refinements */
.ha-logo{display:block;height:auto;object-fit:contain;object-position:left center}
.ha-logo-white{filter:brightness(0) invert(1)}
.ha-logo-blue{filter:none}
.login-logo{width:min(250px,82%);max-height:88px;margin:0 0 28px}
.topbar-logo{width:118px;max-height:32px;flex:0 0 auto}

.node-title{display:flex;align-items:center;gap:7px}
.node-title-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.node-count{flex:0 0 auto;min-width:22px;height:20px;padding:0 6px;border-radius:999px;display:inline-grid;place-items:center;background:#edf1f6;color:var(--blue);font-size:10px;font-weight:700;line-height:1}
.node-card-title-row{display:flex;align-items:center;gap:7px}
.node-card-title-row input{margin-bottom:7px}
.node-card-title-row .node-count{margin-bottom:7px}
.node-card-actions .done-node-btn{width:auto;padding:0 8px;display:flex;gap:5px;align-items:center}

/* Bleed the editing card almost to the page edge while retaining a small white margin. */
.content-editor-card{margin:8px calc(-.65in + 14px) 20px}
.editor-area[data-empty="true"]:not(:focus)::before{content:attr(data-placeholder);color:#8a919d;font-style:italic;pointer-events:none}

@media(max-width:760px){
  .content-editor-card{margin-left:-14px;margin-right:-14px}
  .topbar-logo{width:92px;max-height:28px}
}


/* v0.5 editing card, WYSIWYG, table, image, and modal refinements */

/* The outer editing card nearly reaches the document-page edge. The inner editor
   returns to the narrower width used before v0.4, so its border never overlaps
   the card border. */
.catalog-section.editing-section{outline:0!important}
.content-editor-card{
  margin:8px calc(-.65in + 14px) 22px;
  border:1px solid #cbd3df;
  border-radius:10px;
  box-shadow:0 3px 12px rgba(0,0,0,.08);
  background:#fff;
  overflow:visible;
}
.content-card-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:10px 14px 8px;
}
.content-card-heading{flex:1;min-width:0;margin:0!important}
.fullscreen-editor-btn{
  flex:0 0 auto;width:34px;height:34px;padding:0;display:grid;place-items:center;
  background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--blue)
}
.fullscreen-editor-btn:hover{background:#f3f6fa}
.editor-shell{
  margin:0 calc(.65in - 26px) 18px;
  border:1px solid #cbd3df;border-radius:9px;background:#fff;overflow:hidden;
}
.editor-toolbar{position:relative;align-items:center}
.editor-toolbar button.is-active{
  background:var(--blue);border-color:var(--blue);color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)
}
.editor-toolbar button:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.editor-area{
  min-height:180px;height:220px;max-height:70vh;resize:vertical;overflow:auto;
  padding:12px 13px;outline:none;
}
.editor-area:focus{box-shadow:inset 0 0 0 2px rgba(51,69,103,.12)}
.editor-area[data-empty="true"]:not(:focus)::before{content:attr(data-placeholder);color:#8a919d;font-style:italic;pointer-events:none}
.table-context{display:inline-flex;align-items:center;gap:3px}
.table-context[hidden]{display:none!important}
.toolbar-divider{display:inline-block;width:1px;height:24px;background:var(--line);margin:0 3px}
.table-context button{position:relative}
.mini-plus,.mini-minus{font-size:9px;position:absolute;right:3px;bottom:1px;font-weight:800}

/* Full-screen editor */
body.editor-fullscreen-open{overflow:hidden}
.fullscreen-editor-card{
  position:fixed;z-index:85;inset:58px 0 0 0;margin:0!important;border:0;border-radius:0;
  background:#edf0f4;overflow:auto;padding:24px 32px 36px;box-shadow:none;
}
.fullscreen-editor-card .content-card-head{
  width:min(8.5in,100%);margin:0 auto;background:#fff;
  border:1px solid #cbd3df;border-bottom:0;border-radius:10px 10px 0 0;padding:16px 18px 10px;
}
.fullscreen-editor-card .editor-shell{
  width:min(8.5in,100%);margin:0 auto;background:#fff;border-radius:0 0 10px 10px;
}
.fullscreen-editor-card .editor-area{height:calc(100vh - 245px);max-height:none;min-height:300px}

/* Live document-wide table style. */
.document-page table,.table-style-preview table{
  width:100%;border-collapse:collapse;
  font-family:var(--doc-table-font,Quicksand,Arial,sans-serif);
  font-size:var(--doc-table-size,14px);
  font-weight:var(--doc-table-weight,400);
  line-height:var(--doc-table-line,1.45);
  color:var(--doc-table-color,#252a33);
  margin-top:var(--doc-table-mt,12px);margin-bottom:var(--doc-table-mb,16px);
}
.document-page table th,.document-page table td,.table-style-preview table th,.table-style-preview table td{
  padding:var(--doc-table-cell-padding,8px);
  border:var(--doc-table-border-width,2px) var(--doc-table-border-style,solid) var(--doc-table-border-color,#fff);
  height:44px;vertical-align:top;
}
.document-page table th,.table-style-preview table th{
  background:var(--doc-table-header-bg,#dcdcdc);color:var(--doc-table-header-color,#252a33);font-weight:700;
}
.document-page.table-alternating table tbody tr:nth-child(odd) td,
.table-style-preview table tbody tr:nth-child(odd) td{background:var(--doc-table-row1,#fff)}
.document-page.table-alternating table tbody tr:nth-child(even) td,
.table-style-preview table tbody tr:nth-child(even) td{background:var(--doc-table-row2,#f1f1f1)}
.document-page:not(.table-alternating) table tbody td{background:var(--doc-table-row1,#fff)}
.document-page table caption{caption-side:bottom;text-align:left;font-size:.9em;padding-top:5px;color:#555}

/* Document-wide image box style. */
.document-page img{
  max-width:100%;height:auto;
  margin:var(--doc-img-margin,10px);
  padding:var(--doc-img-padding,5px);
  border:var(--doc-img-border-width,1px) var(--doc-img-border-style,solid) var(--doc-img-border-color,#000);
  box-sizing:border-box
}

/* Document settings */
.style-section-title{
  margin:18px 0 8px;padding-top:12px;border-top:1px solid var(--line);
  color:var(--blue);font-family:"Book Antiqua",Palatino,serif;font-size:16px;font-weight:700
}
.style-field{margin:10px 0}
.style-field>label{display:block;font-size:11px;margin-bottom:6px}
.color-picker-row{display:flex;align-items:center;gap:7px}
.color-picker-row input[type=color]{width:52px;height:34px;padding:3px;flex:0 0 auto}
.brand-swatches{display:flex;gap:4px;flex-wrap:wrap}
.color-swatch{
  width:24px!important;height:24px!important;padding:0!important;border-radius:5px!important;
  background:var(--swatch)!important;border:1px solid #aeb6c2!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)
}
.color-swatch[style*="#FFFFFF"]{box-shadow:inset 0 0 0 1px #d5dbe3}
.style-help,.modal-help{
  font-size:11px;line-height:1.45;color:var(--muted);margin:5px 0 9px
}
.checkbox-setting{display:flex!important;align-items:center;gap:8px;font-size:12px!important;margin:12px 0!important}
.checkbox-setting input{width:auto!important;margin:0}
.style-controls .style-field{padding:0}

/* Polished modal form language used in place of browser prompts/confirms. */
.modal{width:min(820px,95vw)}
.modal-field{display:grid;gap:6px;font-size:12px;font-weight:600;margin:0 0 13px}
.modal-field input,.modal-field select{font-weight:400}
.modal-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.modal-message{line-height:1.55}
.optional{font-weight:400;color:var(--muted)}
button.danger{background:#8c3131;color:#fff;border-color:#8c3131}
button.danger:hover{background:#742727}
.table-style-preview{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;margin-top:12px}
.table-style-preview table{margin:0}

/* Image library picker based on the shared HAID picker pattern. */
.image-picker-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.image-upload-button{
  display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--line);
  border-radius:7px;background:#fff;color:var(--ink);font-size:12px;font-weight:600;cursor:pointer
}
.image-upload-button:hover{background:#f4f6f9}
.image-search{flex:1;min-width:210px}
.image-current-folder{margin-top:9px}
.image-picker-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:9px;
  min-height:150px;max-height:330px;overflow:auto;padding:10px;border:1px solid var(--line);
  border-radius:9px;background:#f8fafc;margin:8px 0 14px
}
.image-picker-tile{
  display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:7px;height:126px;
  overflow:hidden;background:#fff;border:1px solid #d5dbe3;border-radius:8px;text-align:left
}
.image-picker-tile:hover{border-color:#98a6bb;background:#fff}
.image-picker-tile.active{border:2px solid var(--blue);padding:6px;box-shadow:0 0 0 2px rgba(51,69,103,.12)}
.image-picker-thumb{width:100%;height:82px;object-fit:contain;margin:0!important;padding:0!important;border:0!important;background:#fff}
.image-picker-name{display:block;font-size:10px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.image-picker-empty{grid-column:1/-1;display:grid;place-items:center;min-height:110px;color:var(--muted);font-size:12px}
.image-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.image-url-row .modal-field{margin:0}
.image-url-row button{margin-bottom:0;height:38px}
.editor-modal-error{min-height:18px;color:#8c2b2b;font-size:12px;margin-top:6px}

@media(max-width:760px){
  .content-editor-card{margin-left:-14px;margin-right:-14px}
  .editor-shell{margin-left:12px;margin-right:12px}
  .fullscreen-editor-card{padding:12px}
  .modal-grid.two,.image-url-row{grid-template-columns:1fr}
  .image-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v0.6 session-safe editing, history, and outline timeline */
.panel-heading-actions{display:flex;align-items:center;gap:5px}
.panel-heading-actions .circle-btn{flex:0 0 auto}
.node-history{opacity:0;width:27px;height:27px;padding:0;border:0;background:transparent}
.node-row.selected .node-history,.node-row:hover .node-history{opacity:1}
.node-row:hover .node-edit{opacity:1}
.recovery-actions{display:flex;align-items:center;gap:6px}

/* Match list behavior and spacing from the shared HAID WYSIWYG family. */
.editor-area ul,.editor-area ol{margin:.45em 0 .8em;padding-left:2.1em}
.editor-area ul{list-style-type:disc}
.editor-area ol{list-style-type:decimal}
.editor-area ul ul{list-style-type:circle}
.editor-area ul ul ul{list-style-type:square}
.editor-area li{margin:.18em 0;padding-left:.1em}
.editor-area li>ul,.editor-area li>ol{margin:.25em 0 .25em}

/* In full-screen mode the card itself never scrolls. Only the editable content
   pane scrolls; toolbar and Save/Close controls remain visible. */
.fullscreen-editor-card{
  inset:58px 0 0 0!important;
  height:calc(100vh - 58px)!important;
  max-height:calc(100vh - 58px)!important;
  padding:20px 30px 22px!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  align-content:stretch!important;
}
.fullscreen-editor-card .content-card-head{
  width:min(8.5in,100%);margin:0 auto!important;min-height:58px
}
.fullscreen-editor-card .editor-shell{
  width:min(8.5in,100%);height:100%;min-height:0;margin:0 auto!important;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden
}
.fullscreen-editor-card .editor-toolbar{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap}
.fullscreen-editor-card .editor-area{
  min-height:0!important;height:auto!important;max-height:none!important;
  resize:none!important;overflow:auto!important
}
.fullscreen-editor-card .editor-actions{position:relative;z-index:2}

.history-current{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:10px 12px;margin-bottom:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;font-size:12px}
.history-current span{color:var(--muted)}
.node-history-table details{min-width:130px}
.node-history-table summary{cursor:pointer;color:var(--blue);font-weight:700}
.version-preview,.draft-preview{margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;max-height:260px;overflow:auto;font-size:13px;line-height:1.5}
.draft-preview{margin:14px 0;background:#fafbfc}

@media(max-width:760px){
  .recovery-banner{height:auto;min-height:46px;gap:8px;align-items:flex-start;flex-direction:column;padding:9px 12px}
  .recovery-actions{width:100%;justify-content:flex-end}
  .fullscreen-editor-card{padding:10px!important}
}

/* v0.6.1 fullscreen sizing correction: the grid row owns the available height;
   the editor shell must not claim 100% of the whole card in addition to the heading. */
.fullscreen-editor-card .editor-shell{
  height:auto!important;
  max-height:none!important;
  align-self:stretch;
}

/* v0.7 document architecture: whole-document settings, custom pages, TOC, and PDF renderer */
.doc-section{border-bottom:1px solid var(--line);background:#fff}
.doc-section>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:12px 14px;color:var(--blue);font-family:"Book Antiqua",Palatino,serif;font-weight:700;cursor:pointer;position:sticky;top:68px;background:#fff;z-index:5}
.doc-section>summary::-webkit-details-marker{display:none}.doc-section>summary:after{content:'\f078';font-family:"Font Awesome 6 Free";font-weight:900;margin-left:auto;font-size:10px;transition:transform .15s}.doc-section[open]>summary:after{transform:rotate(180deg)}
.doc-section-body{padding:2px 14px 15px}.doc-section-body>label{display:grid;gap:6px;font-size:11px;margin:10px 0}.doc-note{font-size:11px;line-height:1.5;color:var(--muted);background:#f7f9fb;border:1px solid #e2e6ed;border-radius:7px;padding:8px 9px;margin:7px 0 12px}
.setting-grid{display:grid;gap:8px;margin:8px 0}.setting-grid.two{grid-template-columns:1fr 1fr}.setting-grid.four{grid-template-columns:1fr 1fr}.setting-grid label{display:grid;gap:5px;font-size:10px}.setting-grid input{padding:6px;font-size:11px}
.custom-page-group{margin:12px 0 16px}.custom-page-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;color:var(--blue);font-size:12px}.custom-page-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border:1px solid var(--line);border-radius:8px;margin:5px 0;background:#fafbfc}.custom-page-row>div:first-child{min-width:0}.custom-page-row strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-page-row span{display:block;font-size:9px;color:var(--muted);margin-top:2px}.custom-page-row-actions{display:flex;gap:3px}.custom-page-row-actions button{width:27px;height:27px;padding:0;display:grid;place-items:center}.current-asset{font-size:10px;color:var(--muted);margin:-7px 0 11px}.modal-field textarea{width:100%;resize:vertical;min-height:150px;border:1px solid #c9d0dc;border-radius:8px;padding:10px;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink)}
.special-node-badge{display:inline-flex;align-items:center;gap:4px;margin-left:7px;padding:2px 6px;border-radius:10px;background:#edf1f7;color:var(--blue);font-size:9px;font-weight:700;vertical-align:middle}.special-node-badge.compact{padding:1px 5px}.tree-node:has(.special-node-badge)>.node-row .node-chevron{color:var(--blue)}
.toc-check-list{max-height:210px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fafbfc;padding:7px}.toc-check-list>div{font-size:10px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toc-check-list i{color:#50725a;margin-right:4px}.toc-panel-head{margin-bottom:10px}
.catalog-toc{margin:20px 0 28px}.toc-title{margin-bottom:14px!important}.toc-list{width:100%}.toc-entry{display:flex;align-items:flex-end;gap:6px;margin:.28em 0}.toc-entry a{color:var(--blue);text-decoration:none;min-width:0}.toc-leader{flex:1;border-bottom:1px dotted currentColor;min-width:18px;margin-bottom:.36em;opacity:.55}.toc-entry.no-leaders .toc-leader{border-bottom:0}.toc-page-number{min-width:2.4em;text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}.toc-empty{font-style:italic;color:var(--muted);font-size:12px}
.catalog-custom-page-preview{position:relative;margin:22px var(--preview-margin-right-neg,0px) 30px var(--preview-margin-left-neg,0px);border:1px solid #cbd3df;background:#f7f8fa;min-height:180px;overflow:hidden}.custom-image-preview{background:#20242b}.custom-page-preview-image{display:block!important;width:100%!important;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;border:0!important}.custom-html-preview-inner{padding:24px}.custom-page-preview-label{position:absolute;right:8px;bottom:8px;background:rgba(20,28,42,.82);color:#fff;border-radius:5px;padding:4px 7px;font-size:9px}.custom-page-missing{min-height:220px;display:grid;place-items:center;align-content:center;gap:8px;color:#7b8490}.custom-page-missing i{font-size:30px}
.pdf-progress{display:grid;grid-template-columns:auto 1fr;gap:8px 10px;align-items:center;padding:18px}.pdf-progress i{font-size:22px;color:var(--blue)}.pdf-progress span{grid-column:2;color:var(--muted);font-size:12px}.pdf-render-host{position:fixed;left:-20000px;top:0;width:900px;z-index:-1;background:#fff;pointer-events:none}.pdf-render-host .pagedjs_page{box-shadow:none!important;margin:0!important}.pdf-render-host .pagedjs_pages{background:#fff!important}

/* Heading indentation is applied to section wrappers, not just the heading text. */
.catalog-section{max-width:100%}

@media(max-width:760px){.setting-grid.two,.setting-grid.four{grid-template-columns:1fr}.doc-section>summary{position:static}.custom-page-row{align-items:flex-start;flex-direction:column}.custom-page-row-actions{align-self:flex-end}}
/* Keep editor-card geometry aligned with adjustable document margins. */
.document-page .content-editor-card{margin-left:var(--editor-card-margin-left,calc(-.65in + 14px));margin-right:var(--editor-card-margin-right,calc(-.65in + 14px))}
.document-page .content-editor-card .editor-shell{margin-left:var(--editor-shell-margin-left,calc(.65in - 26px));margin-right:var(--editor-shell-margin-right,calc(.65in - 26px))}
.fullscreen-editor-card .editor-shell{margin-left:auto!important;margin-right:auto!important}
/* Drop zones let special nodes such as the TOC be placed between existing nodes. */
.tree-node.drop-before>.node-row,.tree-node.drop-before>.node-card{box-shadow:inset 0 3px 0 var(--gold)}
.tree-node.drop-after>.node-row,.tree-node.drop-after>.node-card{box-shadow:inset 0 -3px 0 var(--gold)}

/* v0.9 content navigation, paste-standardization, table-header review, HR styling */
.document-page hr,.editor-area hr{
  width:var(--doc-hr-width,100%);height:0;border:0;
  border-top:var(--doc-hr-border-width,2px) var(--doc-hr-border-style,solid) var(--doc-hr-border-color,#334567);
  margin-top:var(--doc-hr-mt,18px);margin-bottom:var(--doc-hr-mb,18px)
}
.table-review-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.table-review-meta span{font-size:11px;color:var(--muted)}
.table-review-preview{max-height:360px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff;margin:12px 0}
.table-review-preview table{width:100%;border-collapse:collapse;font-family:var(--doc-table-font,Quicksand,Arial,sans-serif);font-size:var(--doc-table-size,14px);line-height:var(--doc-table-line,1.45);color:var(--doc-table-color,#252a33)}
.table-review-preview th,.table-review-preview td{padding:var(--doc-table-cell-padding,8px);border:var(--doc-table-border-width,2px) var(--doc-table-border-style,solid) var(--doc-table-border-color,#fff);vertical-align:top}
.table-review-preview th{background:var(--doc-table-header-bg,#dcdcdc);color:var(--doc-table-header-color,#252a33)}
.table-review-preview tbody tr:nth-child(odd) td{background:var(--doc-table-row1,#fff)}.table-review-preview tbody tr:nth-child(even) td{background:var(--doc-table-row2,#f1f1f1)}
.table-review-actions{flex-wrap:wrap}.page-accent-sides{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;margin:8px 0 12px}.page-accent-sides .checkbox-setting{margin:0}
.style-section-title{margin:15px 0 8px;font-size:11px;font-weight:700;color:var(--blue);text-transform:uppercase;letter-spacing:.06em}

/* v1.0 text alignment: stored semantically so pasted styles remain stripped. */
.editor-area [data-align="center"],.catalog-section [data-align="center"]{text-align:center}
.editor-area [data-align="right"],.catalog-section [data-align="right"]{text-align:right}
.editor-area [data-align="justify"],.catalog-section [data-align="justify"]{text-align:justify}


/* v1.0.4: the first image custom page is a cover, not ordinary margined content.
   Pull it through the preview page's top/side padding so the live Content Panel
   mirrors a zero-margin cover page. Document margins resume after the cover. */
#catalogContent > .catalog-custom-page-preview.custom-image-preview:first-child{
  margin-top:var(--preview-margin-top-neg,0)!important;
  margin-left:var(--preview-margin-left-neg,0)!important;
  margin-right:var(--preview-margin-right-neg,0)!important;
  border-top:0;
}

/* v1.3.2 Learning Center: lessons, isolated practice, and live control pointers. */
.tutorial-button{width:38px;height:38px;padding:0!important;display:grid;place-items:center;font-size:17px}
.tutorial-button:hover{background:rgba(255,255,255,.12)!important}
.learn-layer{position:fixed;inset:0;z-index:200000;display:grid;place-items:center;background:rgba(20,29,45,.68);font-family:Quicksand,Arial,sans-serif;color:#252a33;font-size:14px;line-height:1.6;overscroll-behavior:contain}
.learn-layer:has(.learn-spotlight:not([hidden])){background:transparent}
.learn-layer button,.learn-layer input,.learn-layer select{font:inherit}
.learn-layer button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;border:1px solid #ccd4e0;border-radius:7px;color:#334567;background:#fff;cursor:pointer;font-weight:700;line-height:1.4;text-align:center;transition:background .12s,border-color .12s}
.learn-layer button:hover{background:#f1f4f9;border-color:#8c9bb3}
.learn-layer button:disabled{opacity:.4;cursor:default}
.learn-layer button.learn-primary{background:#334567;border-color:#334567;color:#fff}
.learn-layer button.learn-primary:hover{background:#263650}
.learn-layer button.learn-text-button{background:transparent;border-color:transparent;padding-left:3px;padding-right:3px;text-decoration:underline;text-underline-offset:3px}
.learn-layer :is(button,input,select,summary,[contenteditable]):focus-visible{outline:3px solid #a87913;outline-offset:3px}
.learn-layer :is(h1,h2,h3,h4){color:#334567;line-height:1.2;letter-spacing:0}
.learn-layer h1{font-size:24px;margin:2px 0 0;font-family:"Book Antiqua",Palatino,serif}
.learn-layer h2{font-family:"Book Antiqua",Palatino,serif;font-size:32px;margin:7px 0 16px;font-weight:700}
.learn-layer h2[tabindex]:focus{outline:none}
.learn-layer h3{font-size:18px;margin:0 0 10px}
.learn-layer h4{font-size:17px;margin:8px 0}
.learn-layer p{margin:0 0 14px;max-width:none}
.learn-layer :is(input:not([type=checkbox]):not([type=color]):not([type=range]),select){width:100%;min-width:0;border:1px solid #b8c3d2;border-radius:6px;padding:9px 11px;background:#fff;color:#252a33;min-height:42px}
.learn-layer kbd{font:11px Arial,sans-serif;background:#fff;border:1px solid #c9d0db;border-radius:3px;padding:2px 4px;white-space:nowrap;color:#334567}
.learn-layer code{font-size:.93em;background:#edf1f6;border-radius:3px;padding:1px 4px;overflow-wrap:anywhere}
.learn-dialog{width:min(1180px,calc(100vw - 48px));height:min(890px,calc(100dvh - 48px));background:#fff;border:1px solid #e3e5ea;border-radius:16px;box-shadow:0 24px 100px #111b2d66;display:flex;flex-direction:column;overflow:hidden}
.learn-header{display:flex;align-items:center;gap:26px;padding:19px 24px;border-bottom:1px solid #d9dee7;background:#fff;flex-shrink:0}
.learn-eyebrow{display:block;font-size:10px;line-height:1.5;font-weight:700;letter-spacing:.12em;color:#8b403a;text-transform:uppercase}
.learn-search-label{margin-left:auto;max-width:440px;flex:1}
.learn-header .learn-close{font-family:Arial,sans-serif;font-size:28px;font-weight:400;line-height:1;padding:2px;width:38px;height:38px;flex-shrink:0;border-color:transparent}
.learn-layout{display:flex;flex:1;min-height:0}
.learn-sidebar{width:236px;flex-shrink:0;padding:20px 15px;background:#f5f7fa;border-right:1px solid #d9dee7;overflow:auto;overscroll-behavior:contain}
.learn-home-button{width:100%;justify-content:flex-start!important}
.learn-progress-summary{padding:17px 5px;color:#536078;font-size:11px;font-weight:700}
.learn-progress-track{height:5px;background:#dce2eb;border-radius:10px;overflow:hidden;margin-top:8px}
.learn-progress-track span{display:block;background:#334567;height:100%;transition:width .2s}
.learn-progress-summary small{display:block;line-height:1.5;margin-top:10px;color:#984242}
.learn-chapter-nav{display:grid;gap:3px}
.learn-chapter-nav button{width:100%;display:grid;grid-template-columns:21px 1fr auto;text-align:left;justify-content:initial;align-items:center;padding:10px 7px;border-color:transparent;background:transparent;font-size:12px;font-weight:600;line-height:1.5;gap:6px}
.learn-nav-number{font-size:10px;color:#8b403a}
.learn-nav-count{font-size:10px;font-weight:400;color:#536078;white-space:nowrap}
.learn-chapter-nav button[aria-current]{background:#e5ebf4;border-color:#c7d1e1;color:#203657}
.learn-sidebar-help{margin:22px 5px 0;padding-top:17px;border-top:1px solid #d9dee7;font-size:11px;color:#536078}
.learn-sidebar-help p{margin:5px 0 10px}.learn-sidebar-help small{font-size:10px;line-height:1.5;display:block}
.learn-main{flex:1;min-width:0;padding:30px 36px;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto}
.learn-hero{background:#faf6e9;border:1px solid #e9dfbe;border-radius:12px;padding:25px 27px;margin-bottom:29px;position:relative}
.learn-hero h2{font-size:37px;margin:5px 0 12px}
.learn-hero p{font-size:15px;max-width:590px;margin-bottom:19px}
.learn-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.learn-hero-note{font-size:11px;line-height:1.5;color:#605839;margin-top:17px}
.learn-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.learn-section-title h3{margin:0}.learn-section-title>span{font-size:11px;color:#626e81}
.learn-chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.learn-layer button.learn-chapter-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;text-align:left;padding:16px 15px;border-color:#d9dee7;border-radius:10px;background:#fff;gap:8px;line-height:1.5}
.learn-layer button.learn-chapter-card:hover{border-color:#334567;background:#f8faff}
.learn-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:9px;color:#647084;font-weight:500}
.learn-chapter-number{display:inline-grid;place-items:center;width:27px;height:27px;border:1px solid #e5dbb8;border-radius:7px;background:#faf6e9;font-size:10px;color:#7b5c18}
.learn-chapter-card>strong{font-size:15px;line-height:1.3;color:#334567;margin-top:3px}
.learn-card-summary{font-size:11px;line-height:1.6;font-weight:500;color:#626e81}
.learn-card-progress{display:flex;justify-content:space-between;color:#334567;font-size:10px;margin-top:auto;padding-top:9px;font-weight:700}
.learn-home-bottom{margin-top:26px;padding-top:20px;border-top:1px solid #d9dee7;font-size:12px}.learn-home-bottom button{font-size:12px}
#learnResetConfirmation{padding:12px;margin-top:12px;background:#fff6e9;border-radius:7px}
.learn-lesson-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#626e81;margin-bottom:16px}
.learn-lesson-top button{font-size:12px;min-height:30px}
.learn-lead{font-size:15px;line-height:1.75;color:#4d596b}
.learn-permission{font-size:12px;background:#fff4e5;color:#79542a;border-left:3px solid #c0964b;padding:10px 13px;margin:17px 0;border-radius:0 6px 6px 0}
.learn-permission.is-allowed{background:#f0f5f1;color:#365943;border-color:#719680}
.learn-location{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#f5f7fa;border:1px solid #e0e5ec;padding:14px 16px;border-radius:8px;margin:20px 0}
.learn-location strong{display:block;font-size:12px;margin-top:4px;font-weight:600;color:#334567}
.learn-location button{font-size:11px;flex-shrink:0}
.learn-steps{list-style:none;counter-reset:learn-step;padding:0;margin:25px 0;display:grid;gap:18px}
.learn-steps>li{counter-increment:learn-step;position:relative;padding-left:41px;font-size:14px;line-height:1.7;min-height:29px}
.learn-steps>li:before{content:counter(learn-step);position:absolute;top:0;left:0;width:27px;height:27px;border-radius:50%;background:#edf1f6;color:#334567;display:grid;place-items:center;font-size:12px;font-weight:700}
.learn-tip{background:#faf7ed;border-left:3px solid #c5a653;padding:14px 17px;margin:23px 0;color:#5e5439;border-radius:0 7px 7px 0;font-size:12px;line-height:1.7}
.learn-tip>strong{display:block;font-size:11px;color:#78602a;margin-bottom:3px}.learn-tip p{margin:0}
.learn-practice{border:1px solid #cdd6e3;border-radius:11px;padding:20px;margin:25px 0;background:#fbfcfe}
.learn-practice-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.learn-practice-heading h3{margin:3px 0 0;font-family:"Book Antiqua",Palatino,serif;font-size:22px}
.learn-sample-badge{font-size:10px;line-height:1.4;border:1px solid #cbd9ce;border-radius:20px;padding:5px 9px;background:#f0f7f2;color:#3c6049;white-space:nowrap;font-weight:700}
#learnPractice{font-size:12px;line-height:1.7}#learnPractice button{font-size:12px}#learnPractice p{margin-bottom:12px}
.learn-practice-status{font-size:11px;line-height:1.6;color:#365943;margin:13px 0 0!important;min-height:0}.learn-practice-status:empty{display:none}
.learn-field{display:grid;gap:5px;font-size:12px;font-weight:700;color:#334567;margin:12px 0}.learn-field input,.learn-field select{font-weight:500;font-size:13px!important}
.learn-sample-toolbar{display:flex;gap:4px;flex-wrap:wrap;padding:7px;border:1px solid #b8c3d2;border-bottom:0;border-radius:6px 6px 0 0;background:#edf1f6;margin-top:15px}
.learn-sample-toolbar button{padding:4px 8px;min-height:32px}
.learn-sample-editor{padding:16px;border:1px solid #b8c3d2;border-radius:0 0 6px 6px;min-height:125px;background:#fff;font:15px/1.65 Georgia,serif;margin-bottom:13px;overflow-wrap:anywhere;overflow-x:auto}
.learn-sample-editor p{margin:0 0 10px}.learn-sample-editor :is(ul,ol){padding-left:25px}
.learn-sample-editor table,.learn-saved-preview table{border-collapse:collapse;width:100%;margin:10px 0}.learn-sample-editor :is(td,th),.learn-saved-preview :is(td,th){border:1px solid #c6cfdb;padding:6px;text-align:left}.learn-sample-editor caption{font-size:12px;text-align:left}
.learn-saved-preview{border:1px solid #d9dee7;border-radius:7px;margin-top:13px;background:#fff;padding:10px 13px}.learn-saved-preview summary{cursor:pointer;color:#334567;font-size:12px}.learn-saved-preview>div{padding-top:10px;overflow-x:auto;overflow-wrap:anywhere}
.learn-token-definitions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.learn-token-definitions label{margin:0}
.learn-token-chip{display:inline-block;border:1px solid #d6bc6c;background:#fff5cf;border-radius:4px;padding:0 5px;color:#5f4d16;overflow-wrap:anywhere}
.learn-token-suggestions{background:#fff;border:1px solid #c2cddd;border-radius:7px;padding:6px;display:grid;gap:5px;margin-bottom:12px}.learn-token-suggestions button{justify-content:flex-start!important;text-align:left;gap:12px}.learn-token-suggestions span{font-weight:400;font-size:11px}
.learn-token-output{background:#fff;border:1px dashed #c1cbd9;border-radius:7px;padding:13px 15px;margin-top:15px;overflow-wrap:anywhere}.learn-token-output p:last-child{margin-bottom:0!important}
.learn-outline-demo{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:15px;align-items:start}.learn-outline-demo ol{margin:0;list-style:none;padding:0;border:1px solid #d9dee7;border-radius:7px;background:#fff;max-height:335px;overflow:auto}.learn-outline-demo li{padding:5px 5px 0 calc(5px + var(--learn-depth)*17px)}.learn-outline-demo li:last-child{padding-bottom:5px}
.learn-outline-demo li button{width:100%;justify-content:flex-start;text-align:left;border-color:transparent;font-weight:500;font-size:12px!important;word-break:break-word;min-height:39px}.learn-outline-demo li button[aria-pressed=true]{background:#edf1f8;border-color:#bccae0;color:#243e66;font-weight:700}.learn-level{font-size:10px;flex-shrink:0;color:#8b403a}
.learn-outline-tools{display:grid;gap:6px}.learn-outline-tools button{min-height:32px;padding:6px 8px}
.learn-design-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;align-items:center;margin-bottom:20px}.learn-design-controls .learn-field{margin:0}.learn-design-controls input[type=color]{width:50px;height:32px;border:1px solid #bcc7d6;border-radius:5px;padding:2px;background:#fff}.learn-design-controls input[type=range]{width:100%;accent-color:#334567}.learn-checkbox{display:flex;gap:8px;align-items:center;font-size:11px}.learn-checkbox input{accent-color:#334567;width:16px;height:16px}
.learn-mini-pages{display:flex;gap:15px;padding:15px;background:#e8edf3;border-radius:8px;overflow:auto;--learn-font:15px;--learn-accent:#334567;min-height:220px}
.learn-mini-page{background:#fff;flex:1;min-width:150px;padding:20px;min-height:220px;border:6px solid transparent;box-shadow:0 2px 7px #293b571c;font:var(--learn-font)/1.5 Georgia,serif}.learn-mini-page.edge-left{border-left-color:var(--learn-accent)}.learn-mini-page.edge-top{border-top-color:var(--learn-accent)}.learn-mini-page h4{color:var(--learn-accent);font-family:Georgia,serif}.learn-page-label{font:9px Quicksand,Arial,sans-serif;letter-spacing:.09em;color:#7a8696}
.learn-publication-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:17px}.learn-publication-grid section{padding:14px;background:#fff;border:1px solid #d4dce7;border-radius:7px;overflow-wrap:anywhere}.learn-publication-grid section:first-child{border-top:3px solid #c5a653}.learn-publication-grid section:nth-child(2){border-top:3px solid #334567}.learn-publication-grid section:nth-child(3){border-top:3px solid #984242}.learn-publication-grid .learn-eyebrow{font-size:9px;letter-spacing:.06em}.learn-publication-grid h4{font-size:14px;line-height:1.4}.learn-publication-grid p:last-child{margin:0!important}
.learn-history-current,.learn-history-preview{border:1px solid #d9dee7;padding:14px;border-radius:7px;background:#fff;margin-bottom:12px}.learn-history-current p{margin:5px 0 0!important}.learn-history-preview{background:#faf6e9;border-color:#e7dcb6}
.learn-account-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.learn-account-summary>*{padding:5px 9px;border-radius:5px;background:#e9eef6;color:#334567;font-size:11px}
.learn-table-scroll{overflow:auto}.learn-permission-table{width:100%;border-collapse:collapse;font-size:11px;background:#fff;text-align:left}.learn-permission-table caption{font-weight:700;font-size:13px;text-align:left;margin-bottom:9px;color:#334567}.learn-permission-table :is(th,td){border:1px solid #d9dee7;padding:9px 11px;vertical-align:top;line-height:1.6}.learn-permission-table thead{background:#e9eef6;color:#334567}.learn-permission-table tbody th{font-weight:600;width:43%}
.learn-check{display:flex;align-items:flex-start;gap:13px;padding:17px;border:1px solid #d1ded5;background:#f4f8f5;border-radius:8px;margin:25px 0;color:#3d5d47}.learn-check>span{font-size:21px;line-height:1.3}.learn-check p{margin:0;font-size:12px}.learn-check strong{display:block;font-size:11px;margin-bottom:3px}
.learn-lesson-jump{margin-top:28px;display:flex;align-items:center;gap:12px}.learn-lesson-jump label{font-size:11px;flex-shrink:0;color:#536078}.learn-lesson-jump select{font-size:12px!important}
.learn-lesson-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #d9dee7;margin-top:22px;padding-top:18px}.learn-lesson-footer button{font-size:12px}
.learn-search-results{display:grid;gap:11px;margin-top:20px}.learn-search-results>button{display:grid;justify-content:stretch;gap:6px;text-align:left;padding:17px 20px;border-radius:8px}.learn-search-results>button>strong{font-size:17px}.learn-search-results>button>span:last-child{font-size:12px;font-weight:500;color:#536078}
.learn-empty{padding:30px;border:1px dashed #cad2df;border-radius:10px;background:#f8faff}.learn-finish{padding:42px 15px;text-align:center}.learn-finish .learn-actions{justify-content:center;margin:23px 0}.learn-finish-symbol{display:grid;place-items:center;background:#edf4ef;color:#42634c;font-size:35px;width:74px;height:74px;border:1px solid #c4d8ca;border-radius:50%;margin:0 auto 23px}.learn-finish p{max-width:520px;margin-left:auto;margin-right:auto}
.learn-small{font-size:11px;line-height:1.6;color:#626e81;margin-top:10px!important}
.learn-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.learn-spotlight{position:fixed;inset:0;pointer-events:auto}.learn-shade{position:fixed;background:rgba(20,29,45,.7);pointer-events:none}.learn-target-ring{position:fixed;border:3px solid #f1d77e;border-radius:7px;box-shadow:0 0 0 2px #273b5f;pointer-events:none}.learn-spotlight-tip{position:fixed;width:min(370px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;padding:23px;background:#fff;border:1px solid #c5cfdd;border-top:5px solid #E6C96D;border-radius:11px;box-shadow:0 16px 50px #101d374d;overscroll-behavior:contain}.learn-spotlight-tip h2{font-size:25px;margin:6px 0 12px}.learn-spotlight-tip p{font-size:13px;line-height:1.6}.learn-spotlight-tip button{font-size:12px}.learn-spotlight-note{background:#faf6e9;border-radius:6px;padding:10px;font-size:11px!important}
@media(max-width:1050px){.learn-dialog{width:calc(100vw - 28px);height:calc(100dvh - 28px)}.learn-sidebar{width:211px;padding:17px 10px}.learn-main{padding:26px}.learn-chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.learn-location{align-items:flex-start;flex-direction:column}.learn-header{gap:17px}.learn-publication-grid{grid-template-columns:1fr}.learn-publication-grid section{padding:12px 15px}}
@media(max-width:700px){.learn-dialog{width:100vw;height:100dvh;border:0;border-radius:0}.learn-header{padding:13px 16px;gap:10px;flex-wrap:wrap}.learn-header h1{font-size:22px}.learn-header .learn-eyebrow{font-size:8px}.learn-search-label{flex-basis:100%;max-width:none;order:3}.learn-header .learn-close{margin-left:auto}.learn-search-label input{font-size:13px!important;min-height:39px!important}.learn-layout{flex-direction:column}.learn-sidebar{width:100%;padding:8px 13px;overflow:visible;border-right:0;border-bottom:1px solid #d9dee7;flex-shrink:0}.learn-home-button{display:none!important}.learn-progress-summary{padding:0 3px 5px;font-size:10px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.learn-progress-track{flex:1;margin:0;max-width:90px;height:4px}.learn-progress-summary small{margin:0;font-size:9px}.learn-chapter-nav{display:flex;overflow:auto;gap:5px;max-width:100%;padding:3px;scrollbar-width:thin}.learn-chapter-nav button{display:flex;flex-shrink:0;width:auto;padding:6px 9px;font-size:10px;min-height:33px;gap:5px;white-space:nowrap}.learn-nav-number{display:none}.learn-nav-count{font-size:9px}.learn-sidebar-help{display:none}.learn-main{padding:22px 18px;flex:1;min-height:0}.learn-hero{padding:19px;margin-bottom:24px}.learn-hero h2{font-size:30px}.learn-hero p{font-size:13px}.learn-hero .learn-actions button{font-size:11px;width:100%}.learn-section-title{align-items:flex-start;flex-direction:column;gap:6px}.learn-section-title h3{font-size:17px}.learn-chapter-grid{gap:10px}.learn-layer button.learn-chapter-card{padding:13px 12px;gap:8px}.learn-card-top{font-size:8px;flex-wrap:wrap}.learn-chapter-card>strong{font-size:14px}.learn-card-summary{font-size:10px}.learn-card-progress{font-size:9px}.learn-layer h2{font-size:28px}.learn-lead{font-size:14px}.learn-steps>li{font-size:13px;padding-left:36px}.learn-lesson-top{font-size:9px;align-items:flex-start}.learn-lesson-top button{font-size:10px}.learn-practice{padding:15px}.learn-practice-heading{align-items:flex-start}.learn-practice-heading h3{font-size:20px}.learn-sample-badge{font-size:8px;padding:4px 6px;white-space:normal;text-align:center;max-width:92px}.learn-outline-demo{grid-template-columns:1fr}.learn-outline-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.learn-outline-tools button{font-size:10px!important;padding:6px}.learn-design-controls{grid-template-columns:1fr}.learn-token-definitions{grid-template-columns:1fr;gap:9px}.learn-lesson-jump{flex-direction:column;gap:5px;align-items:stretch}.learn-lesson-footer{flex-wrap:wrap}.learn-lesson-footer button{font-size:11px}.learn-lesson-footer .learn-primary{margin-left:auto}.learn-lesson-footer .learn-text-button{order:3;width:100%;min-height:30px}.learn-practice .learn-actions button{font-size:11px!important}.learn-mini-pages{padding:10px}.learn-mini-page{padding:13px;min-width:145px}.learn-finish{padding:22px 0}.learn-finish .learn-actions{flex-direction:column}.learn-finish .learn-actions button{width:100%}.learn-permission-table :is(th,td){padding:8px;font-size:10px}}
@media(max-width:360px){.learn-chapter-grid{grid-template-columns:1fr}.learn-layer h2{font-size:25px}.learn-main{padding:18px 13px}}
@media(prefers-reduced-motion:reduce){.learn-layer *{transition:none!important;scroll-behavior:auto!important}}

/* v1.3 permissions, designations, tokens, and publication workflow */
.designation-badge{display:inline-grid;place-items:center;margin-left:6px;color:#984242;font-size:11px;vertical-align:middle}
.designation-user-list{display:grid;gap:6px;max-height:300px;overflow:auto;border:1px solid #d9dee7;border-radius:8px;padding:10px;margin:10px 0}
.authorization-note{padding:9px 10px;margin:0 0 10px;border:1px solid #e3c969;background:#fff9df;border-radius:7px;color:#5d522c;font-size:12px;line-height:1.4}
.authorization-note i{margin-right:5px}
.token-admin-list{display:grid;gap:6px;margin-top:10px}.token-admin-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:8px;border:1px solid #d9dee7;border-radius:7px;background:#fff}.token-admin-row>div:first-child{min-width:0;display:grid;gap:3px}.token-admin-row code{font-weight:700;color:#334567}.token-admin-row span{font-size:12px;line-height:1.35;overflow-wrap:anywhere}.token-admin-row>div:last-child{display:flex;gap:4px}.token-picker-list{display:grid;gap:5px;max-height:360px;overflow:auto;margin-top:8px}.token-picker-row{display:grid!important;text-align:left!important;gap:2px;padding:9px 10px!important;border:1px solid #d9dee7!important;background:#fff!important}.token-picker-row:hover{background:#f4f6fa!important}.token-picker-row strong{color:#334567}.token-picker-row span{font-size:12px;color:#626b78}.token-chip{display:inline-block;padding:0 4px;border-radius:4px;background:#fff4c6;box-shadow:inset 0 0 0 1px #e6c96d;color:inherit;cursor:default;white-space:pre-wrap}.token-autocomplete{position:fixed;z-index:100000;width:min(360px,calc(100vw - 16px));max-height:260px;overflow:auto;background:#fff;border:1px solid #c8cfda;border-radius:8px;box-shadow:0 12px 30px rgba(24,34,54,.22);padding:5px}.token-autocomplete button{width:100%;display:grid;gap:2px;text-align:left;border:0;background:#fff;padding:8px 9px;border-radius:5px}.token-autocomplete button:hover{background:#edf1f7}.token-autocomplete strong{color:#334567}.token-autocomplete span{font-size:11px;color:#646d79;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.permission-toggle{white-space:nowrap;font-size:12px}.export-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.export-choice-grid button{display:grid;text-align:left;gap:5px;padding:14px!important;min-height:90px}.export-choice-grid button span{font-size:12px;font-weight:400;line-height:1.35}.publication-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:3px 7px;border-radius:999px;background:#edf1f7;color:#334567}
@media(max-width:700px){.export-choice-grid{grid-template-columns:1fr}}

/* v1.3.3: permission checkbox alignment, account menu spacing, and quick tour. */
.permission-toggle{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.permission-toggle input[type="checkbox"]{width:14px;height:14px;flex:0 0 14px;margin:0;padding:0}
#accountMenu{width:max-content;min-width:260px;max-width:calc(100vw - 24px)}
#accountMenu button{text-align:left;white-space:nowrap;gap:10px}
#accountMenu button>i{width:18px;flex:0 0 18px;text-align:center}
.learn-tour-secondary{margin-top:8px}
