/*
Theme Name: Market Horizones
Theme URI: https://example.com/market-horizones
Author: OpenAI for Market Horizones
Description: Premium dark financial-news WordPress theme with a live economic calendar.
Version: 1.5.14
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: market-horizones
*/

:root{
  --mh-bg:#050f1d;--mh-bg2:#07182b;--mh-panel:#081a2e;--mh-panel2:#0b2038;
  --mh-line:rgba(118,180,255,.16);--mh-text:#f5f8ff;--mh-muted:#8ea5bf;
  --mh-blue:#3d9cff;--mh-blue2:#72c6ff;--mh-cyan:#53e1d4;--mh-green:#46e0a8;
  --mh-red:#ff626b;--mh-amber:#ffb347;--mh-soft:#122b48;--mh-radius:16px;
  --mh-shadow:0 18px 50px rgba(0,0,0,.28);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 58% -10%,rgba(35,111,195,.15),transparent 30%),var(--mh-bg);color:var(--mh-text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}button,input,select{font:inherit}button{cursor:pointer}.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}.mh-app{min-height:100vh;display:grid;grid-template-columns:214px minmax(0,1fr)}
.mh-sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--mh-line);background:linear-gradient(180deg,#061426,#050e1a);display:flex;flex-direction:column;z-index:20}.mh-brand{padding:27px 25px 24px;border-bottom:1px solid var(--mh-line)}.mh-brand-main{font-family:Georgia,serif;letter-spacing:.2em;font-size:20px}.mh-brand-sub{font-size:8px;letter-spacing:.34em;color:var(--mh-blue2);margin-top:1px}.mh-nav{padding:20px 0}.mh-nav a{display:flex;align-items:center;gap:12px;padding:14px 24px;color:#a9bdd4;border-left:3px solid transparent;font-size:14px}.mh-nav a:hover,.mh-nav a.is-active{background:linear-gradient(90deg,rgba(49,135,240,.18),transparent);color:#fff;border-left-color:var(--mh-blue)}.mh-nav svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7}.mh-sidebar-card{margin:auto 20px 22px;border:1px solid var(--mh-line);border-radius:14px;padding:18px 16px;background:linear-gradient(160deg,rgba(44,120,211,.09),rgba(3,13,24,.2))}.mh-sidebar-card strong{display:block;font-family:Georgia,serif;font-size:17px;line-height:1.2}.mh-sidebar-card small{display:block;color:var(--mh-muted);margin-top:8px}
.mh-main{min-width:0}.mh-topbar{height:66px;border-bottom:1px solid var(--mh-line);display:flex;align-items:center;gap:24px;padding:0 28px;position:sticky;top:0;background:rgba(5,15,29,.88);backdrop-filter:blur(18px);z-index:15}.mh-top-context{font-size:13px;color:#a8bdd6;white-space:nowrap}.mh-top-context b{color:var(--mh-blue2);font-weight:600}.mh-search{margin-left:auto;width:min(390px,42vw);position:relative}.mh-search input{width:100%;height:40px;border-radius:22px;border:1px solid var(--mh-line);background:#0a1d33;color:#fff;padding:0 42px 0 42px;outline:none}.mh-search svg{position:absolute;left:15px;top:11px;width:18px;height:18px;stroke:#aac3dc;fill:none}.mh-mobile-toggle{display:none;margin-left:auto;background:none;border:0;color:white;padding:6px}
.mh-page{max-width:1510px;margin:0 auto;padding:20px 28px 38px}.mh-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:20px}.mh-panel{background:linear-gradient(180deg,rgba(10,30,52,.94),rgba(7,23,40,.95));border:1px solid var(--mh-line);border-radius:var(--mh-radius);box-shadow:var(--mh-shadow)}
.mh-hero{min-height:405px;display:grid;grid-template-columns:1.02fr .98fr;overflow:hidden;position:relative}.mh-hero-copy{padding:42px 34px;position:relative;z-index:2}.mh-kicker{color:var(--mh-blue2);font-size:11px;text-transform:uppercase;letter-spacing:.2em;font-weight:700}.mh-hero h1{font-family:Georgia,serif;font-size:clamp(38px,3.8vw,62px);line-height:1.03;margin:16px 0 18px;max-width:700px;font-weight:600}.mh-hero p{max-width:600px;color:#bfd0e2;font-size:16px}.mh-cta{display:inline-flex;margin-top:14px;background:linear-gradient(135deg,#50b9ff,#2c74ff);padding:12px 22px;border-radius:8px;font-weight:700;font-size:14px}.mh-hero-art{position:relative;min-height:405px;overflow:hidden;background:radial-gradient(circle at 58% 52%,rgba(57,158,255,.38),transparent 23%),radial-gradient(circle at 70% 44%,rgba(48,86,255,.2),transparent 39%),linear-gradient(135deg,#07172a,#081d35)}.mh-globe{position:absolute;width:430px;height:430px;border-radius:50%;right:-40px;top:8px;border:1px solid rgba(115,194,255,.28);box-shadow:inset -35px -30px 70px rgba(0,0,0,.45),0 0 60px rgba(61,156,255,.18);background:radial-gradient(circle at 35% 35%,rgba(109,204,255,.18),transparent 30%),repeating-radial-gradient(circle at 50% 50%,transparent 0 17px,rgba(74,168,255,.06) 18px 19px),linear-gradient(140deg,rgba(67,150,235,.18),rgba(7,23,40,.05))}.mh-globe:before,.mh-globe:after{content:"";position:absolute;border:1px solid rgba(92,186,255,.34);border-radius:50%;inset:36px -70px;transform:rotate(-20deg)}.mh-globe:after{inset:95px -90px;transform:rotate(28deg)}.mh-dotmap{position:absolute;inset:30px;background-image:radial-gradient(circle,rgba(113,201,255,.75) 1px,transparent 1.5px);background-size:13px 13px;mask-image:radial-gradient(circle at 65% 50%,#000 0 42%,transparent 43%);opacity:.45}.mh-float{position:absolute;padding:7px 10px;border-radius:18px;background:rgba(5,18,33,.74);border:1px solid rgba(94,191,255,.17);font-size:12px}.mh-float.up{color:var(--mh-green);left:22%;top:35%}.mh-float.down{color:var(--mh-red);right:15%;bottom:26%}.mh-hero-dots{position:absolute;bottom:16px;left:50%;display:flex;gap:7px;z-index:3}.mh-hero-dots i{display:block;width:30px;height:3px;border-radius:4px;background:#405875}.mh-hero-dots i:first-child{background:#dcecff}
.mh-side-stack{display:grid;gap:16px}.mh-widget{padding:18px 18px 16px}.mh-widget-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.mh-widget h2,.mh-widget h3{font-family:Georgia,serif;font-weight:600;margin:0;font-size:21px}.mh-live{font-size:11px;color:var(--mh-green)}.mh-live:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:6px;box-shadow:0 0 10px currentColor}.mh-tabs{display:flex;gap:5px;margin-bottom:12px}.mh-tabs button{background:transparent;color:#9ab0c8;border:0;padding:7px 10px;border-radius:6px;font-size:11px}.mh-tabs button.is-active{background:rgba(54,140,255,.16);border:1px solid rgba(74,157,255,.35);color:white}.mh-market-row,.mh-mover-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid rgba(122,174,230,.1);font-size:12px}.mh-market-row:last-child,.mh-mover-row:last-child{border-bottom:0}.mh-pos{color:var(--mh-green)}.mh-neg{color:var(--mh-red)}.mh-mini-chart{height:95px;margin-top:9px;position:relative;border-top:1px solid rgba(90,151,211,.12);background:linear-gradient(180deg,rgba(58,214,161,.12),transparent 80%);clip-path:polygon(0 78%,7% 69%,14% 72%,20% 58%,27% 63%,33% 48%,40% 51%,47% 42%,54% 45%,62% 33%,69% 37%,77% 19%,83% 23%,91% 10%,100% 2%,100% 100%,0 100%)}
.mh-section-head{display:flex;justify-content:space-between;align-items:end;margin:28px 0 12px}.mh-section-head h2{font-family:Georgia,serif;font-size:34px;margin:0}.mh-section-head a{font-size:12px;color:var(--mh-blue2)}.mh-stories{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mh-story{display:grid;grid-template-columns:155px 1fr;min-height:190px;overflow:hidden}.mh-story-img{min-height:190px;background:linear-gradient(145deg,#123a60,#081524);position:relative}.mh-story-img:after{content:"";position:absolute;inset:0;background:linear-gradient(140deg,transparent,rgba(64,173,255,.18))}.mh-story-content{padding:16px 16px 13px}.mh-story-cat{font-size:10px;color:var(--mh-blue2);letter-spacing:.08em;text-transform:uppercase;font-weight:700}.mh-story h3{font-family:Georgia,serif;font-size:19px;line-height:1.15;margin:9px 0}.mh-story p{font-size:12px;color:#9fb4ca;margin:0}.mh-story-meta{font-size:11px;color:#748da8;margin-top:13px}.mh-story img{width:100%;height:100%;object-fit:cover}
/* Calendar */
.mh-calendar{padding:0;overflow:visible}.mh-calendar-inner{padding:16px}.mh-calendar-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.mh-cal-icon{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;background:rgba(61,156,255,.12);border:1px solid rgba(80,165,255,.26);color:var(--mh-blue2)}.mh-calendar-head h3{font-size:19px}.mh-cal-source{margin-left:auto;font-size:9px;color:#6d89a6;text-transform:uppercase;letter-spacing:.08em}.mh-datebar{display:grid;grid-template-columns:32px 1fr 32px;gap:6px;margin-bottom:9px}.mh-datebar button,.mh-datebar input,.mh-filter-btn{height:34px;border:1px solid var(--mh-line);background:#091a2e;color:#dceaff;border-radius:7px}.mh-datebar button{font-size:16px}.mh-datebar input{width:100%;padding:0 9px;color-scheme:dark;font-size:11px}.mh-cal-filters{display:flex;gap:7px;position:relative;margin-bottom:12px}.mh-filter-wrap{position:relative;flex:1}.mh-filter-btn{width:100%;padding:0 9px;font-size:10px;color:#a9bdd4;text-align:left;display:flex;align-items:center;justify-content:space-between}.mh-filter-pop{position:absolute;z-index:40;top:38px;left:0;width:190px;padding:9px;background:#07182a;border:1px solid rgba(89,161,234,.25);border-radius:9px;box-shadow:0 18px 40px rgba(0,0,0,.45);display:none}.mh-filter-pop.is-open{display:block}.mh-filter-pop label{display:flex;align-items:center;gap:8px;padding:6px;font-size:11px;color:#bfd0e1}.mh-filter-pop input{accent-color:var(--mh-blue)}.mh-cal-list{min-height:115px}.mh-cal-event{display:grid;grid-template-columns:42px 8px 34px minmax(0,1fr);gap:6px;align-items:start;padding:8px 0;border-bottom:1px solid rgba(113,169,225,.1);font-size:11px}.mh-cal-event:last-child{border-bottom:0}.mh-event-time{color:#98afc8}.mh-impact-dot{width:7px;height:7px;border-radius:50%;margin-top:4px;background:#78879a;box-shadow:0 0 8px currentColor}.mh-impact-dot.high{background:var(--mh-red);color:var(--mh-red)}.mh-impact-dot.medium{background:var(--mh-amber);color:var(--mh-amber)}.mh-impact-dot.low{background:#7d93aa;color:#7d93aa}.mh-impact-dot.holiday{background:var(--mh-blue2);color:var(--mh-blue2)}.mh-event-cur{font-weight:800;color:#d9e7f7}.mh-event-title{color:#eaf3ff;line-height:1.25}.mh-event-values{grid-column:4;display:flex;gap:9px;color:#718ba7;font-size:9px;margin-top:3px}.mh-event-values b{color:#9fb6ce;font-weight:600}.mh-cal-empty,.mh-cal-loading,.mh-cal-error{padding:18px 8px;text-align:center;color:#7e98b4;font-size:11px}.mh-cal-error{color:#ff9aa0}.mh-calendar-foot{padding:9px 16px 12px;border-top:1px solid rgba(113,169,225,.1);display:flex;justify-content:space-between;gap:8px;color:#637f9b;font-size:9px}.mh-calendar-foot a{color:var(--mh-blue2)}
.mh-pulse{padding:18px}.mh-pulse-score{display:flex;align-items:center;gap:12px}.mh-pulse-score strong{font-family:Georgia,serif;font-size:50px;color:var(--mh-cyan);font-weight:500}.mh-pulse-bar{height:7px;border-radius:10px;flex:1;background:linear-gradient(90deg,#f05d66,#d2b34d,#4fdb9e);position:relative}.mh-pulse-bar:after{content:"";position:absolute;width:9px;height:13px;border-radius:5px;background:#eaf4ff;left:72%;top:-3px}.mh-pulse p{font-size:11px;color:#91a9c2;margin:4px 0 0}.mh-demo-badge{font-size:8px;color:#95abc0;border:1px solid var(--mh-line);border-radius:20px;padding:3px 6px;text-transform:uppercase;letter-spacing:.08em}
.mh-footer{border-top:1px solid var(--mh-line);padding:20px 28px;color:#7890aa;font-size:11px;display:flex;justify-content:space-between;gap:20px}.mh-footer b{color:#bdd1e5}.mh-article{max-width:860px;margin:30px auto}.mh-article h1{font-family:Georgia,serif;font-size:48px;line-height:1.08}.mh-article .entry-content{color:#cad8e7;font-family:Georgia,serif;font-size:18px;line-height:1.75}.mh-article .entry-content p{margin:0 0 1.4em}.mh-article-meta{color:#7e96af;font-size:12px;margin-bottom:20px}
@media(max-width:1180px){.mh-app{grid-template-columns:84px 1fr}.mh-brand{padding:25px 12px;text-align:center}.mh-brand-main{font-size:14px}.mh-brand-sub{font-size:6px}.mh-nav a{justify-content:center;padding:15px 10px}.mh-nav a span{display:none}.mh-sidebar-card{display:none}.mh-grid{grid-template-columns:1fr}.mh-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))}.mh-calendar{grid-column:span 1}.mh-hero h1{font-size:46px}}
@media(max-width:800px){.mh-app{display:block}.mh-sidebar{position:fixed;left:-230px;width:220px;transition:.25s;z-index:50}.mh-sidebar.is-open{left:0}.mh-brand-main{font-size:19px}.mh-brand-sub{font-size:8px}.mh-nav a{justify-content:flex-start;padding:14px 24px}.mh-nav a span{display:inline}.mh-top-context{display:none}.mh-mobile-toggle{display:block}.mh-search{margin-left:0;width:calc(100% - 48px)}.mh-topbar{padding:0 16px}.mh-page{padding:14px}.mh-hero{grid-template-columns:1fr}.mh-hero-copy{padding:30px 24px}.mh-hero h1{font-size:41px}.mh-hero-art{min-height:265px}.mh-globe{width:350px;height:350px;right:-60px;top:-15px}.mh-stories{grid-template-columns:1fr}.mh-side-stack{grid-template-columns:1fr}.mh-story{grid-template-columns:115px 1fr}.mh-story-img{min-height:175px}.mh-footer{padding:18px 16px;flex-direction:column}}
@media(max-width:480px){.mh-hero h1{font-size:35px}.mh-section-head h2{font-size:29px}.mh-story{grid-template-columns:1fr}.mh-story-img{min-height:170px}.mh-cal-event{grid-template-columns:40px 8px 32px minmax(0,1fr)}}


/* v1.0.2 visual polish ---------------------------------------------------- */
.mh-main{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 8%,rgba(42,132,225,.10),transparent 24%),
    radial-gradient(circle at 82% 24%,rgba(34,205,203,.055),transparent 22%),
    linear-gradient(180deg,#061321 0%,#050f1d 45%,#06111e 100%);
}
.mh-main:before{
  content:"";
  position:fixed;
  z-index:-2;
  pointer-events:none;
  inset:66px 0 0 214px;
  opacity:.36;
  background-image:
    linear-gradient(rgba(92,159,223,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(92,159,223,.055) 1px,transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.75),transparent 88%);
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.75),transparent 88%);
}
.mh-main:after{
  content:"";
  position:fixed;
  z-index:-1;
  pointer-events:none;
  width:760px;
  height:760px;
  right:-300px;
  top:120px;
  border-radius:50%;
  border:1px solid rgba(91,176,255,.07);
  box-shadow:0 0 120px rgba(48,137,230,.08),inset 0 0 100px rgba(58,167,255,.04);
}
.mh-page{position:relative;z-index:1}
.mh-panel{
  background:linear-gradient(180deg,rgba(9,28,48,.94),rgba(6,20,35,.96));
  box-shadow:0 18px 50px rgba(0,0,0,.28),inset 0 1px 0 rgba(160,209,255,.025);
}
.mh-sidebar{
  background:
    radial-gradient(circle at 35% 17%,rgba(46,130,222,.12),transparent 24%),
    linear-gradient(180deg,#061426,#050e1a 62%);
}
.mh-search input:focus{border-color:rgba(92,181,255,.48);box-shadow:0 0 0 3px rgba(54,139,229,.08)}
.mh-search input::placeholder{color:transparent}
.mh-hero:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(87,162,234,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(87,162,234,.055) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:linear-gradient(90deg,transparent 5%,rgba(0,0,0,.32) 42%,rgba(0,0,0,.75));
  mask-image:linear-gradient(90deg,transparent 5%,rgba(0,0,0,.32) 42%,rgba(0,0,0,.75));
}
.mh-hero-art{
  background:
    radial-gradient(circle at 64% 48%,rgba(57,170,255,.30),transparent 20%),
    radial-gradient(circle at 76% 35%,rgba(52,95,255,.17),transparent 38%),
    linear-gradient(145deg,#061321,#09213a 62%,#071523);
}
.mh-hero-art:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.48;
  background:
    linear-gradient(115deg,transparent 0 49%,rgba(87,205,255,.10) 49.2% 49.5%,transparent 49.8%),
    linear-gradient(102deg,transparent 0 57%,rgba(75,143,255,.09) 57.2% 57.5%,transparent 57.8%);
}
.mh-hero-art:after{
  content:"";
  position:absolute;
  left:3%;right:5%;bottom:18%;height:34%;
  opacity:.65;
  background:linear-gradient(180deg,rgba(68,189,255,.14),transparent 75%);
  clip-path:polygon(0 88%,7% 76%,13% 81%,20% 62%,27% 68%,34% 48%,41% 57%,48% 35%,55% 42%,62% 20%,69% 29%,76% 12%,83% 20%,91% 5%,100% 10%,100% 100%,0 100%);
  border-bottom:1px solid rgba(87,196,255,.25);
}
.mh-globe{z-index:2;background:radial-gradient(circle at 35% 35%,rgba(122,212,255,.18),transparent 30%),repeating-radial-gradient(circle at 50% 50%,transparent 0 17px,rgba(74,168,255,.055) 18px 19px),linear-gradient(140deg,rgba(67,150,235,.17),rgba(7,23,40,.05))}
.mh-float,.mh-hero-dots{z-index:4}
.mh-story-img:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.24;
  background-image:
    linear-gradient(rgba(113,189,255,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(113,189,255,.10) 1px,transparent 1px);
  background-size:20px 20px;
}
.mh-story-img img{position:relative;z-index:2}

/* Real section pages */
.mh-section-page{padding-top:24px}
.mh-section-banner{min-height:220px;padding:34px 38px;display:flex;align-items:center;justify-content:space-between;gap:30px;overflow:hidden;position:relative}
.mh-section-banner:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 45%,rgba(66,166,255,.18),transparent 22%),linear-gradient(90deg,transparent 48%,rgba(56,140,228,.05));pointer-events:none}
.mh-section-banner>div:first-child{position:relative;z-index:2;max-width:720px}
.mh-section-banner h1{font-family:Georgia,serif;font-size:clamp(42px,5vw,68px);line-height:1;margin:12px 0 12px;font-weight:600}
.mh-section-banner p{margin:0;color:#9eb5cc;max-width:650px;font-size:15px}
.mh-section-graphic{width:360px;height:145px;position:relative;flex:0 0 auto;opacity:.85}
.mh-section-graphic:before{content:"";position:absolute;inset:0;border-radius:90% 20% 90% 20%;border:1px solid rgba(87,181,255,.14);transform:rotate(-6deg);box-shadow:0 0 50px rgba(54,149,255,.08)}
.mh-section-graphic:after{content:"";position:absolute;left:0;right:0;bottom:20px;height:90px;background:linear-gradient(180deg,rgba(55,195,175,.13),transparent);clip-path:polygon(0 75%,10% 60%,20% 66%,30% 45%,40% 53%,50% 30%,60% 38%,70% 17%,80% 26%,90% 8%,100% 13%,100% 100%,0 100%)}
.mh-section-graphic span{position:absolute;bottom:24px;width:7px;border-radius:2px;background:linear-gradient(180deg,#54d9c2,#2e8ddc);box-shadow:0 0 13px rgba(81,199,255,.16)}
.mh-section-graphic span:nth-child(1){left:13%;height:38px}.mh-section-graphic span:nth-child(2){left:31%;height:74px}.mh-section-graphic span:nth-child(3){left:49%;height:53px}.mh-section-graphic span:nth-child(4){left:67%;height:105px}.mh-section-graphic span:nth-child(5){left:85%;height:82px}
.mh-section-head-page{margin-top:30px}
.mh-section-stories{grid-template-columns:repeat(2,minmax(0,1fr))}
.mh-empty-section{grid-column:1/-1;padding:34px;text-align:center;color:#8da5be}
.mh-empty-section h3{font-family:Georgia,serif;color:#eaf3ff;font-size:24px;margin:0 0 8px}
.mh-pagination{display:flex;gap:7px;flex-wrap:wrap;margin-top:24px}.mh-pagination .page-numbers{min-width:36px;height:36px;padding:0 10px;border:1px solid var(--mh-line);border-radius:8px;display:grid;place-items:center;color:#9db4cc;background:#08182a}.mh-pagination .page-numbers.current{background:rgba(55,145,244,.20);color:#fff;border-color:rgba(73,160,255,.42)}

@media(max-width:1180px){.mh-main:before{left:84px}.mh-section-graphic{width:300px}}
@media(max-width:800px){.mh-main:before{left:0}.mh-main:after{right:-520px}.mh-section-banner{padding:28px 24px;min-height:190px}.mh-section-graphic{position:absolute;right:-80px;opacity:.32}.mh-section-banner>div:first-child{max-width:82%}.mh-section-stories{grid-template-columns:1fr}}


/* v1.0.3 — dedicated calendar, private notes and account ---------------- */
.mh-account-card{padding:16px 15px}.mh-account-eyebrow{font-size:9px;color:var(--mh-blue2);text-transform:uppercase;letter-spacing:.12em;margin-bottom:5px}.mh-account-card strong{font-family:inherit;font-size:13px;line-height:1.35}.mh-account-login,.mh-account-links{display:flex;gap:7px;align-items:center;margin-top:9px;font-size:10px;color:var(--mh-blue2)}.mh-account-links span{color:#4e6881}.mh-account-links a:hover,.mh-account-login:hover{color:#fff}
.mh-calendar-foot-links{display:flex;gap:12px;align-items:center}

.mh-calendar-page{padding-top:24px}.mh-calendar-banner{min-height:210px;padding:35px 40px;position:relative;overflow:hidden;display:flex;align-items:center}.mh-calendar-banner>div:first-child{position:relative;z-index:2;max-width:760px}.mh-calendar-banner h1{font-family:Georgia,serif;font-size:clamp(40px,4.5vw,64px);line-height:1.03;margin:12px 0 13px;font-weight:600}.mh-calendar-banner p{margin:0;color:#9fb6cf;max-width:670px;font-size:15px}.mh-calendar-banner:before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(84,157,226,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(84,157,226,.045) 1px,transparent 1px),radial-gradient(circle at 82% 48%,rgba(55,158,255,.17),transparent 24%);background-size:42px 42px,42px 42px,auto;pointer-events:none}.mh-calendar-banner-orbit{position:absolute;right:3%;top:50%;width:330px;height:150px;transform:translateY(-50%)}.mh-calendar-banner-orbit:before,.mh-calendar-banner-orbit:after{content:"";position:absolute;inset:22px 0;border:1px solid rgba(91,183,255,.16);border-radius:50%;transform:rotate(-8deg)}.mh-calendar-banner-orbit:after{inset:44px -20px;transform:rotate(17deg)}.mh-calendar-banner-orbit i{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--mh-blue2);box-shadow:0 0 18px rgba(99,194,255,.75)}.mh-calendar-banner-orbit i:nth-child(1){left:14%;top:48%}.mh-calendar-banner-orbit i:nth-child(2){left:62%;top:24%}.mh-calendar-banner-orbit i:nth-child(3){right:8%;bottom:18%;background:var(--mh-cyan)}
.mh-calendar-page-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;margin-top:18px;align-items:start}.mh-calendar-full{overflow:visible}.mh-calendar-full .mh-calendar-inner{padding:22px}.mh-full-calendar-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.mh-calendar-headline{display:flex;align-items:center;gap:10px}.mh-calendar-headline h2{font-family:Georgia,serif;font-size:26px;margin:0}.mh-full-calendar-head p{margin:8px 0 0;color:#7f99b3;font-size:12px}.mh-full-calendar-live{display:flex;align-items:center;gap:10px;color:#829bb5;font-size:10px;text-transform:uppercase;letter-spacing:.07em}.mh-full-calendar-toolbar{display:grid;grid-template-columns:minmax(330px,520px) minmax(220px,1fr);gap:12px;align-items:center}.mh-datebar-full{grid-template-columns:38px minmax(160px,1fr) 38px 70px;margin:0}.mh-datebar-full button,.mh-datebar-full input{height:39px}.mh-today-btn{font-size:11px!important}.mh-cal-searchbox{height:39px;position:relative;display:block}.mh-cal-searchbox svg{position:absolute;left:12px;top:10px;width:18px;height:18px;stroke:#89a4bf;fill:none;z-index:2}.mh-cal-searchbox input{width:100%;height:39px;border:1px solid var(--mh-line);border-radius:8px;background:#091a2e;color:#e8f3ff;padding:0 12px 0 39px;outline:none}.mh-cal-searchbox input:focus{border-color:rgba(92,181,255,.48);box-shadow:0 0 0 3px rgba(54,139,229,.08)}.mh-cal-filters-full{margin:12px 0 15px;max-width:none;align-items:center}.mh-cal-filters-full .mh-filter-wrap{max-width:210px}.mh-cal-filters-full .mh-filter-btn{height:38px;font-size:11px}.mh-cal-result-count{margin-left:auto;color:#7893ad;font-size:11px}.mh-cal-result-count strong{color:#dcecff;font-size:13px}
.mh-cal-table-wrap{overflow-x:auto;border:1px solid rgba(111,170,231,.12);border-radius:10px;background:rgba(3,14,26,.24)}.mh-cal-table-head,.mh-cal-table-row{display:grid;grid-template-columns:64px 78px 84px minmax(230px,1.8fr) 80px 86px 86px 115px;gap:10px;min-width:930px;align-items:center}.mh-cal-table-head{padding:10px 13px;background:rgba(12,35,59,.72);color:#6f8da9;font-size:9px;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid rgba(115,174,230,.12)}.mh-cal-table-body{min-height:270px}.mh-cal-table-row{padding:12px 13px;border-bottom:1px solid rgba(113,169,225,.09);font-size:11px}.mh-cal-table-row:last-child{border-bottom:0}.mh-currency-pill{display:inline-flex;width:max-content;min-width:44px;justify-content:center;padding:4px 7px;border-radius:6px;background:#0d2946;border:1px solid rgba(84,160,235,.18);font-weight:800;color:#dbeaff}.mh-impact-badge{display:inline-flex;width:max-content;align-items:center;justify-content:center;min-width:54px;padding:4px 7px;border-radius:5px;border:1px solid rgba(125,147,170,.3);font-size:9px;text-transform:uppercase;font-weight:800;letter-spacing:.04em;color:#aab9c9}.mh-impact-badge.high{border-color:rgba(255,98,107,.55);color:#ff7a82;background:rgba(255,98,107,.08)}.mh-impact-badge.medium{border-color:rgba(255,179,71,.5);color:#ffc05f;background:rgba(255,179,71,.07)}.mh-impact-badge.low{border-color:rgba(128,153,179,.3);color:#96abc0}.mh-impact-badge.holiday{border-color:rgba(114,198,255,.4);color:#72c6ff;background:rgba(114,198,255,.06)}.mh-full-event-title{font-weight:650;color:#edf6ff;line-height:1.3}.mh-value{color:#9ab0c7}.mh-value.actual{color:#dfeeff;font-weight:700}.mh-event-source{color:#6d879f;font-size:9px}.mh-cal-empty-full,.mh-calendar-full .mh-cal-loading,.mh-calendar-full .mh-cal-error{min-width:930px;padding:55px 20px}.mh-calendar-foot-full{padding:11px 22px 14px;font-size:10px}
.mh-calendar-tools{display:grid;gap:16px}.mh-quick-notes{padding:20px;position:sticky;top:84px}.mh-notes-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.mh-notes-head h2{font-family:Georgia,serif;font-size:25px;margin:3px 0 0}.mh-notes-lock{font-size:14px;opacity:.7}.mh-notes-intro{font-size:11px;color:#8da6bf;margin:10px 0 13px}.mh-quick-notes textarea{display:block;width:100%;min-height:250px;resize:vertical;border:1px solid var(--mh-line);border-radius:10px;background:linear-gradient(180deg,#081b30,#071726);color:#e7f2ff;padding:14px;line-height:1.55;outline:none;font-size:12px}.mh-quick-notes textarea:focus{border-color:rgba(92,181,255,.48);box-shadow:0 0 0 3px rgba(54,139,229,.08)}.mh-notes-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.mh-notes-actions span{font-size:9px;color:#69839e}.mh-notes-actions span[data-state="ok"]{color:var(--mh-green)}.mh-notes-actions span[data-state="error"]{color:#ff8f96}.mh-notes-actions span[data-state="dirty"]{color:var(--mh-amber)}.mh-notes-actions button{border:1px solid rgba(83,167,255,.32);border-radius:7px;background:rgba(61,156,255,.14);color:#dff0ff;padding:7px 11px;font-size:10px}.mh-notes-actions button:hover{background:rgba(61,156,255,.23)}.mh-notes-actions button:disabled{opacity:.55}.mh-notes-guest{text-align:center;padding:24px 4px 8px}.mh-notes-guest-icon{margin:0 auto 10px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:rgba(61,156,255,.09);border:1px solid rgba(88,175,255,.18);color:var(--mh-blue2);font-size:20px}.mh-notes-guest h3{font-family:Georgia,serif;font-size:20px;margin:0 0 8px}.mh-notes-guest p{font-size:11px;color:#839db7;margin:0 auto 14px;max-width:230px}.mh-cta-small{font-size:11px;padding:9px 13px;margin-top:0}.mh-calendar-tip{padding:18px}.mh-calendar-tip h3{font-family:Georgia,serif;font-size:21px;margin:7px 0 13px}.mh-tip-row{display:grid;grid-template-columns:64px 1fr;gap:9px;align-items:start;padding:9px 0;border-bottom:1px solid rgba(111,169,225,.08)}.mh-tip-row p{margin:2px 0 0;color:#8fa7bf;font-size:10px;line-height:1.45}.mh-calendar-tip small{display:block;color:#607b96;font-size:9px;line-height:1.45;margin-top:10px}

.mh-account-page{max-width:1180px}.mh-account-shell{padding:36px 40px;margin-top:22px;min-height:560px}.mh-account-shell>h1{font-family:Georgia,serif;font-size:48px;line-height:1.08;margin:12px 0}.mh-account-shell>p{color:#8ca5be}.mh-account-actions{display:flex;gap:10px;align-items:center;margin-top:22px}.mh-secondary-btn{display:inline-flex;padding:11px 18px;border:1px solid var(--mh-line);border-radius:8px;color:#b7cadc}.mh-account-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:65px;align-items:center;min-height:480px}.mh-account-copy h1{font-family:Georgia,serif;font-size:clamp(38px,4.2vw,58px);line-height:1.04;margin:13px 0 16px}.mh-account-copy>p{color:#93acc4;max-width:600px}.mh-account-benefit{display:grid;grid-template-columns:34px 1fr;gap:12px;margin-top:18px;align-items:start}.mh-account-benefit>span{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:rgba(61,156,255,.08);border:1px solid rgba(84,164,244,.17);color:var(--mh-blue2);font-size:9px}.mh-account-benefit b,.mh-account-benefit small{display:block}.mh-account-benefit b{font-size:12px}.mh-account-benefit small{color:#738da7;font-size:10px;margin-top:3px}.mh-login-card{padding:26px;border:1px solid rgba(100,167,230,.17);border-radius:14px;background:rgba(5,17,30,.44)}.mh-login-card h2{font-family:Georgia,serif;font-size:28px;margin:0 0 17px}.mh-login-card label{display:block;color:#92a9c0;font-size:10px;margin-bottom:5px}.mh-login-card input[type="text"],.mh-login-card input[type="password"]{width:100%;height:42px;border:1px solid var(--mh-line);border-radius:8px;background:#07182a;color:white;padding:0 11px;outline:none}.mh-login-card input[type="text"]:focus,.mh-login-card input[type="password"]:focus{border-color:rgba(92,181,255,.48)}.mh-login-card .login-username,.mh-login-card .login-password{margin:0 0 13px}.mh-login-card .login-remember{font-size:10px;color:#829bb4}.mh-login-card .login-submit{margin:15px 0 0}.mh-login-card .button-primary{width:100%;height:42px;border:0;border-radius:8px;background:linear-gradient(135deg,#50b9ff,#2c74ff);color:#fff;font-weight:700}.mh-login-links{display:flex;justify-content:space-between;gap:10px;margin-top:13px;font-size:10px;color:var(--mh-blue2)}.mh-login-divider{height:26px;display:flex;align-items:center;gap:9px;color:#5f7892;font-size:9px}.mh-login-divider:before,.mh-login-divider:after{content:"";height:1px;flex:1;background:rgba(117,171,225,.12)}.mh-auth-status{color:#ff9096;font-size:10px;margin-top:10px;min-height:14px}.mh-google-login{margin-bottom:6px}

@media(max-width:1180px){.mh-calendar-page-grid{grid-template-columns:1fr}.mh-calendar-tools{grid-template-columns:1fr 1fr}.mh-quick-notes{position:static}.mh-calendar-banner-orbit{right:-60px}.mh-account-layout{grid-template-columns:1fr 350px;gap:34px}}
@media(max-width:800px){.mh-calendar-banner{padding:28px 24px}.mh-calendar-banner-orbit{opacity:.25;right:-130px}.mh-calendar-page-grid{margin-top:13px}.mh-full-calendar-head{flex-direction:column}.mh-full-calendar-toolbar{grid-template-columns:1fr}.mh-datebar-full{grid-template-columns:38px minmax(130px,1fr) 38px 64px}.mh-cal-filters-full{flex-wrap:wrap}.mh-cal-filters-full .mh-filter-wrap{max-width:none;min-width:145px}.mh-cal-result-count{width:100%;margin:0}.mh-calendar-tools{grid-template-columns:1fr}.mh-account-shell{padding:28px 22px}.mh-account-layout{grid-template-columns:1fr}.mh-login-card{max-width:430px;width:100%}.mh-account-shell>h1{font-size:39px}.mh-calendar-foot-links{gap:8px}}
@media(max-width:480px){.mh-calendar-banner h1{font-size:36px}.mh-calendar-full .mh-calendar-inner{padding:15px}.mh-datebar-full{grid-template-columns:34px 1fr 34px}.mh-today-btn{grid-column:1/-1}.mh-cal-filters-full .mh-filter-wrap{width:100%;min-width:100%}.mh-calendar-foot-full,.mh-calendar-foot{align-items:flex-start;flex-direction:column}.mh-account-actions{align-items:stretch;flex-direction:column}.mh-account-actions .mh-cta,.mh-account-actions .mh-secondary-btn{justify-content:center}.mh-login-card{padding:20px}}


/* v1.0.4 — persistent notes rail + always-visible calendar filters */
.mh-workspace-enabled .mh-app{grid-template-columns:214px minmax(0,1fr) 285px}
.mh-notes-rail{position:sticky;top:0;height:100vh;align-self:start;border-left:1px solid var(--mh-line);background:linear-gradient(180deg,#061426,#050e1a);padding:78px 15px 18px;z-index:18;display:flex;flex-direction:column;min-width:0}
.admin-bar .mh-notes-rail{top:32px;height:calc(100vh - 32px)}
.mh-notes-rail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:0 2px 12px;border-bottom:1px solid rgba(118,180,255,.11)}
.mh-notes-rail-head h2{font-family:Georgia,serif;font-size:20px;font-weight:600;margin:3px 0 0}.mh-notes-rail-lock{font-size:12px;color:#7897b6;margin-top:5px}
.mh-notes-rail textarea{flex:1;width:100%;min-height:320px;margin:12px 0 9px;resize:none;border:0;border-radius:10px;background:linear-gradient(180deg,rgba(8,27,48,.72),rgba(7,23,38,.5));color:#e7f2ff;padding:13px 12px;line-height:1.58;outline:none;font-size:12px;box-shadow:inset 0 0 0 1px rgba(118,180,255,.10)}
.mh-notes-rail textarea:focus{box-shadow:inset 0 0 0 1px rgba(92,181,255,.40),0 0 0 3px rgba(54,139,229,.05)}
.mh-notes-rail-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#647f9b;font-size:9px;padding:0 2px}.mh-notes-rail-foot [data-note-status][data-state="ok"]{color:#6eb99d}.mh-notes-rail-foot [data-note-status][data-state="saving"]{color:#8fbce5}.mh-notes-rail-foot [data-note-status][data-state="error"]{color:#ff8f96}.mh-notes-rail-foot [data-note-status][data-state="dirty"]{color:#d7a856}

.mh-calendar-page-grid{grid-template-columns:minmax(0,1fr)}
.mh-cal-filters{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.8fr);gap:8px;position:relative;margin-bottom:12px}
.mh-filter-box{min-width:0;border:1px solid rgba(118,180,255,.13);background:rgba(6,22,38,.52);border-radius:9px;padding:8px 9px}
.mh-filter-box-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;color:#7897b6;font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.mh-filter-checks{display:flex;flex-wrap:wrap;gap:5px}
.mh-filter-checks label{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:4px 7px;border:1px solid rgba(118,180,255,.10);border-radius:6px;background:rgba(9,30,51,.55);color:#a9bed3;font-size:9px;cursor:pointer;user-select:none}
.mh-filter-checks label:hover{border-color:rgba(92,181,255,.27);color:#e6f2ff}
.mh-filter-checks label.mh-filter-all{color:#d8e9fa;background:rgba(54,140,255,.08)}
.mh-filter-checks input{width:12px;height:12px;margin:0;accent-color:var(--mh-blue)}
.mh-cal-filters-full{display:grid;grid-template-columns:minmax(430px,1.45fr) minmax(250px,.8fr) auto;gap:10px;align-items:start;margin:12px 0 15px}
.mh-cal-filters-full .mh-filter-box{padding:9px 10px}.mh-cal-filters-full .mh-filter-checks label{font-size:10px;min-height:27px;padding:4px 8px}
.mh-cal-result-count{align-self:center;white-space:nowrap}
.mh-cal-table-head,.mh-cal-table-row{grid-template-columns:64px 78px 84px minmax(230px,1.8fr) 80px 86px 86px;min-width:815px}
.mh-cal-empty-full,.mh-calendar-full .mh-cal-loading,.mh-calendar-full .mh-cal-error{min-width:815px}
.mh-calendar-foot{justify-content:flex-start}.mh-calendar-foot-links{margin-left:auto}

/* Old dropdown and calendar-only notes UI is intentionally retired in v1.0.4. */
.mh-filter-btn,.mh-filter-pop,.mh-quick-notes{display:none!important}

@media(max-width:1320px){
  .mh-workspace-enabled .mh-app{grid-template-columns:84px minmax(0,1fr) 250px}
  .mh-workspace-enabled .mh-brand{padding:25px 12px;text-align:center}.mh-workspace-enabled .mh-brand-main{font-size:14px}.mh-workspace-enabled .mh-brand-sub{font-size:6px}.mh-workspace-enabled .mh-nav a{justify-content:center;padding:15px 10px}.mh-workspace-enabled .mh-nav a span{display:none}.mh-workspace-enabled .mh-sidebar-card{display:none}
  .mh-notes-rail{padding-left:12px;padding-right:12px}
}
@media(max-width:1050px){
  .mh-workspace-enabled .mh-app{grid-template-columns:84px minmax(0,1fr)}
  .mh-notes-rail{position:fixed;right:12px;bottom:12px;top:auto;width:270px;height:300px;padding:14px;z-index:60;border:1px solid var(--mh-line);border-radius:14px;box-shadow:0 22px 60px rgba(0,0,0,.45)}
  .admin-bar .mh-notes-rail{top:auto;height:300px}
  .mh-notes-rail textarea{min-height:0;margin-top:10px}
}
@media(max-width:800px){
  .mh-workspace-enabled .mh-app{display:block}
  .mh-notes-rail{right:10px;bottom:10px;width:min(300px,calc(100vw - 20px));height:210px;padding:12px}
  .mh-notes-rail-head h2{font-size:17px}.mh-notes-rail .mh-kicker{font-size:8px}.mh-notes-rail textarea{font-size:11px}
  .mh-cal-filters,.mh-cal-filters-full{grid-template-columns:1fr}.mh-cal-result-count{width:auto;margin:0}
}

/* v1.0.5 — compact home calendar, day/week calendar scope, personal notes library */

/* Homepage calendar returns to the compact dropdown-style filters. */
.mh-cal-filters-compact{display:flex;grid-template-columns:none;gap:7px;margin-bottom:12px}
.mh-cal-filters-compact .mh-filter-wrap{position:relative;flex:1;min-width:0}
.mh-cal-filters-compact .mh-filter-btn{display:flex!important;width:100%;height:34px;padding:0 9px;border:1px solid var(--mh-line);background:#091a2e;color:#a9bdd4;border-radius:7px;font-size:10px;text-align:left;align-items:center;justify-content:space-between;gap:8px}
.mh-cal-filters-compact .mh-filter-btn:hover,.mh-cal-filters-compact .mh-filter-btn:focus-visible{border-color:rgba(92,181,255,.38);color:#eaf5ff;outline:none}
.mh-cal-filters-compact .mh-filter-pop{display:none!important;position:absolute;z-index:80;top:39px;left:0;width:205px;max-height:280px;overflow:auto;padding:8px;background:#07182a;border:1px solid rgba(89,161,234,.28);border-radius:9px;box-shadow:0 18px 40px rgba(0,0,0,.48)}
.mh-cal-filters-compact .mh-filter-pop.is-open{display:block!important}
.mh-cal-filters-compact .mh-filter-pop label{display:flex;align-items:center;gap:8px;padding:7px 6px;border-radius:6px;color:#bfd0e1;font-size:10px;cursor:pointer;user-select:none}
.mh-cal-filters-compact .mh-filter-pop label:hover{background:rgba(61,156,255,.08);color:#fff}
.mh-cal-filters-compact .mh-filter-pop input{width:13px;height:13px;margin:0;accent-color:var(--mh-blue)}
.mh-cal-filters-compact .mh-filter-pop .mh-filter-all{padding-bottom:8px;margin-bottom:4px;border-bottom:1px solid rgba(118,180,255,.10);color:#e1efff}

/* Full calendar keeps the fast visible tick-box filters. */
.mh-calendar-full .mh-filter-btn,.mh-calendar-full .mh-filter-pop{display:none!important}
.mh-today-btn.is-week{border-color:rgba(72,168,255,.48);background:rgba(50,137,239,.18);color:#fff}
.mh-cal-day-divider{position:sticky;top:66px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:15px;min-width:815px;padding:9px 13px;background:linear-gradient(90deg,#0c2947,#091d34);border-top:1px solid rgba(118,180,255,.18);border-bottom:1px solid rgba(118,180,255,.16);color:#dceeff;font-size:11px;font-weight:750;letter-spacing:.015em}
.admin-bar .mh-cal-day-divider{top:98px}.mh-cal-day-divider small{color:#7693af;font-size:9px;font-weight:600}

/* Notes rail collapse state changes the page grid rather than covering content. */
.mh-workspace-enabled .mh-app.mh-notes-collapsed{grid-template-columns:214px minmax(0,1fr) 34px}
.mh-notes-rail{position:sticky;overflow:visible;padding:74px 12px 14px}
.mh-notes-shell{height:100%;min-height:0;display:flex;flex-direction:column}
.mh-notes-collapse{position:absolute;left:-13px;top:78px;z-index:5;width:26px;height:34px;border:1px solid rgba(118,180,255,.22);border-radius:8px;background:#081b30;color:#9dc8ee;display:grid;place-items:center;padding:0;font-size:19px;line-height:1;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.mh-notes-collapse:hover{color:#fff;border-color:rgba(92,181,255,.46);background:#0b2440}
.mh-notes-rail.is-collapsed{padding:0;background:linear-gradient(180deg,#061426,#050e1a)}
.mh-notes-rail.is-collapsed .mh-notes-shell{display:none}
.mh-notes-rail.is-collapsed .mh-notes-collapse{left:50%;top:78px;transform:translateX(-50%)}

.mh-notes-rail-head{padding:0 2px 10px}.mh-notes-rail-head h2{font-size:19px}
.mh-note-new{width:36px;height:36px;border:1px solid rgba(118,180,255,.22);border-radius:9px;background:rgba(49,135,240,.10);color:#b9daf7;font-size:23px;font-weight:500;line-height:1;padding:0;display:grid;place-items:center}
.mh-note-new:hover{border-color:rgba(92,181,255,.4);color:#fff;background:rgba(49,135,240,.16)}
.mh-note-editor{display:flex;flex-direction:column;flex:1;min-height:0;padding-top:10px}
.mh-note-title{width:100%;height:36px;border:0;border-bottom:1px solid rgba(118,180,255,.11);background:transparent;color:#eef6ff;outline:none;font-family:Georgia,serif;font-size:15px;font-weight:600;padding:0 2px 7px}
.mh-note-title:focus{border-bottom-color:rgba(92,181,255,.42)}
.mh-note-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 1px 5px}
.mh-note-palette,.mh-folder-palette{display:flex;align-items:center;gap:5px}
.mh-note-palette button,.mh-folder-palette button{width:12px;height:12px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.16);box-shadow:0 0 0 0 transparent;transition:.15s transform,.15s box-shadow}
.mh-note-palette button:hover,.mh-folder-palette button:hover{transform:scale(1.12)}
.mh-note-palette button.is-active,.mh-folder-palette button.is-active{box-shadow:0 0 0 2px #07172a,0 0 0 3px rgba(173,211,248,.75)}
.is-slate{--note-accent:#72849a}.is-blue{--note-accent:#4a9dff}.is-cyan{--note-accent:#43d5cb}.is-mint{--note-accent:#69d9b1}.is-green{--note-accent:#65cf78}.is-lime{--note-accent:#a8cf5f}.is-amber{--note-accent:#e5aa4d}.is-orange{--note-accent:#ed884a}.is-red{--note-accent:#e9636d}.is-rose{--note-accent:#e46d82}.is-pink{--note-accent:#e37ec5}.is-violet{--note-accent:#9b82e7}
.mh-note-palette .is-slate,.mh-folder-palette .is-slate,.mh-note-row-color.is-slate,.mh-folder-dot.is-slate{background:#72849a}
.mh-note-palette .is-blue,.mh-folder-palette .is-blue,.mh-note-row-color.is-blue,.mh-folder-dot.is-blue{background:#4a9dff}
.mh-note-palette .is-cyan,.mh-folder-palette .is-cyan,.mh-note-row-color.is-cyan,.mh-folder-dot.is-cyan{background:#43d5cb}
.mh-note-palette .is-mint,.mh-folder-palette .is-mint,.mh-note-row-color.is-mint,.mh-folder-dot.is-mint{background:#69d9b1}
.mh-note-palette .is-green,.mh-folder-palette .is-green,.mh-note-row-color.is-green,.mh-folder-dot.is-green{background:#65cf78}
.mh-note-palette .is-lime,.mh-folder-palette .is-lime,.mh-note-row-color.is-lime,.mh-folder-dot.is-lime{background:#a8cf5f}
.mh-note-palette .is-amber,.mh-folder-palette .is-amber,.mh-note-row-color.is-amber,.mh-folder-dot.is-amber{background:#e5aa4d}
.mh-note-palette .is-orange,.mh-folder-palette .is-orange,.mh-note-row-color.is-orange,.mh-folder-dot.is-orange{background:#ed884a}
.mh-note-palette .is-red,.mh-folder-palette .is-red,.mh-note-row-color.is-red,.mh-folder-dot.is-red{background:#e9636d}
.mh-note-palette .is-rose,.mh-folder-palette .is-rose,.mh-note-row-color.is-rose,.mh-folder-dot.is-rose{background:#e46d82}
.mh-note-palette .is-pink,.mh-folder-palette .is-pink,.mh-note-row-color.is-pink,.mh-folder-dot.is-pink{background:#e37ec5}
.mh-note-palette .is-violet,.mh-folder-palette .is-violet,.mh-note-row-color.is-violet,.mh-folder-dot.is-violet{background:#9b82e7}
.mh-note-pin,.mh-note-row-pin,.mh-folder-pin{border:0;background:transparent;color:#6f8aa5;padding:2px 4px;font-size:16px;line-height:1}.mh-note-pin.is-active,.mh-note-row-pin.is-active,.mh-folder-pin.is-active{color:#ffd16a}
.mh-note-meta{display:flex;flex-direction:column;gap:1px;padding:0 2px 3px;color:#5f7a96;font-size:8px;line-height:1.35}
.mh-note-editor textarea{flex:1;width:100%;min-height:180px;margin:6px 0 8px;resize:none;border:0;border-radius:10px;background:linear-gradient(180deg,rgba(8,27,48,.70),rgba(7,23,38,.48));color:#e7f2ff;padding:12px;line-height:1.58;outline:none;font-size:12px;box-shadow:inset 0 0 0 1px rgba(118,180,255,.10)}
.mh-note-editor textarea:focus{box-shadow:inset 0 0 0 1px rgba(92,181,255,.40),0 0 0 3px rgba(54,139,229,.05)}
.mh-notes-rail[data-note-color="blue"] .mh-note-editor textarea{box-shadow:inset 2px 0 0 rgba(74,157,255,.65),inset 0 0 0 1px rgba(118,180,255,.10)}
.mh-notes-rail[data-note-color="cyan"] .mh-note-editor textarea{box-shadow:inset 2px 0 0 rgba(67,213,203,.62),inset 0 0 0 1px rgba(118,180,255,.10)}
.mh-notes-rail[data-note-color="amber"] .mh-note-editor textarea{box-shadow:inset 2px 0 0 rgba(229,170,77,.64),inset 0 0 0 1px rgba(118,180,255,.10)}
.mh-notes-rail[data-note-color="rose"] .mh-note-editor textarea{box-shadow:inset 2px 0 0 rgba(228,109,130,.62),inset 0 0 0 1px rgba(118,180,255,.10)}
.mh-notes-rail[data-note-color="violet"] .mh-note-editor textarea{box-shadow:inset 2px 0 0 rgba(155,130,231,.62),inset 0 0 0 1px rgba(118,180,255,.10)}

.mh-notes-library-wrap{flex:none;margin-top:8px;border-top:1px solid rgba(118,180,255,.11)}
.mh-notes-library-toggle{width:100%;height:38px;border:0;background:transparent;color:#a9bfd4;display:flex;align-items:center;justify-content:space-between;padding:0 2px;font-size:10px;font-weight:700;letter-spacing:.03em}
.mh-notes-library-toggle:hover{color:#fff}.mh-notes-library-arrow{font-size:14px;color:#6f96bb}
.mh-notes-library{max-height:42vh;overflow:auto;padding:1px 1px 2px}.mh-notes-library[hidden]{display:none!important}
.mh-notes-list{display:grid;gap:6px}
.mh-notes-library-hint{padding:9px 3px 2px;color:#506c86;font-size:8px;line-height:1.4}
.mh-note-row{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr) 20px;gap:7px;align-items:center;min-height:48px;padding:7px 6px;border:1px solid rgba(118,180,255,.09);border-radius:8px;background:rgba(7,24,42,.55);cursor:grab;user-select:none}
.mh-note-row:hover{border-color:rgba(92,181,255,.25);background:rgba(10,33,56,.72)}.mh-note-row:active{cursor:grabbing}.mh-note-row.is-selected{border-color:rgba(82,167,255,.36);background:rgba(42,123,214,.09)}
.mh-note-row-color{width:10px;height:10px;padding:0;border-radius:50%;border:0;cursor:pointer}.mh-note-row-copy{min-width:0}.mh-note-row-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dceafa;font-size:10px;font-weight:700}.mh-note-row-copy small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#58728c;font-size:7px}.mh-note-row-pin{font-size:12px}
.mh-note-row.is-dragging{opacity:.42}.mh-note-row.is-hold-target{border-color:rgba(82,167,255,.66);box-shadow:0 0 0 2px rgba(61,156,255,.08)}
.mh-note-row.is-hold-target:after{content:"";position:absolute;left:0;bottom:0;height:2px;background:var(--mh-blue);border-radius:2px;animation:mhNoteHold .9s linear forwards}@keyframes mhNoteHold{from{width:0}to{width:100%}}

.mh-note-folder{border:1px solid rgba(118,180,255,.10);border-radius:9px;background:rgba(6,21,37,.64);overflow:hidden}
.mh-note-folder.is-folder-drop{border-color:rgba(83,182,255,.58);box-shadow:inset 0 0 0 1px rgba(83,182,255,.12)}
.mh-note-folder-head{display:grid;grid-template-columns:14px 9px minmax(0,1fr) 20px;gap:6px;align-items:center;min-height:46px;padding:7px 7px;cursor:pointer}
.mh-folder-chevron{color:#6d8ba8;font-size:10px}.mh-folder-dot{width:8px;height:8px;border-radius:2px}.mh-folder-copy{min-width:0}.mh-folder-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dceafa;font-size:10px}.mh-folder-copy small{display:block;margin-top:2px;color:#5e7892;font-size:8px}.mh-folder-pin{font-size:12px}
.mh-folder-settings{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:7px;border-top:1px solid rgba(118,180,255,.08);border-bottom:1px solid rgba(118,180,255,.08);background:rgba(7,26,45,.55)}
.mh-folder-settings input{min-width:0;flex:1;height:27px;border:1px solid rgba(118,180,255,.12);border-radius:6px;background:#07182a;color:#dceafa;padding:0 7px;outline:none;font-size:9px}.mh-folder-settings input:focus{border-color:rgba(92,181,255,.4)}
.mh-folder-palette{gap:3px}.mh-folder-palette button{width:10px;height:10px}
.mh-folder-notes{display:grid;gap:5px;padding:6px}.mh-folder-notes .mh-note-row{background:rgba(5,18,31,.72)}.mh-folder-empty{padding:10px;text-align:center;color:#56718b;font-size:8px;border:1px dashed rgba(118,180,255,.10);border-radius:7px}

@media(max-width:1320px){
  .mh-workspace-enabled .mh-app.mh-notes-collapsed{grid-template-columns:84px minmax(0,1fr) 34px}
  .mh-note-meta{display:none}.mh-note-palette button{width:10px;height:10px}.mh-note-palette{gap:4px}
}
@media(max-width:1050px){
  .mh-notes-rail{width:285px;height:min(620px,calc(100vh - 24px));padding:14px;overflow:visible}
  .admin-bar .mh-notes-rail{height:min(620px,calc(100vh - 56px))}
  .mh-notes-collapse{left:-13px;top:20px}
  .mh-notes-rail.is-collapsed{width:34px;height:46px;right:12px;bottom:12px;padding:0;border-radius:10px}
  .mh-notes-rail.is-collapsed .mh-notes-collapse{left:50%;top:6px;transform:translateX(-50%)}
  .mh-notes-library{max-height:250px}
}
@media(max-width:800px){
  .mh-notes-rail{width:min(310px,calc(100vw - 22px));height:min(520px,calc(100vh - 22px));right:11px;bottom:11px}
  .mh-notes-rail.is-collapsed{width:36px;height:46px;right:11px;bottom:11px}
  .mh-note-editor textarea{min-height:130px}
  .mh-cal-filters-compact{display:flex;grid-template-columns:none}
  .mh-cal-filters-compact .mh-filter-pop{width:min(205px,calc(100vw - 38px))}
  .mh-cal-day-divider{top:58px}.admin-bar .mh-cal-day-divider{top:104px}
}
@media(max-width:1050px){.mh-workspace-enabled .mh-app.mh-notes-collapsed{grid-template-columns:84px minmax(0,1fr)}}

/* v1.0.6 — resizable notes workspace + safer folders + compact colour pickers */
.mh-workspace-enabled .mh-app{grid-template-columns:214px minmax(0,1fr) var(--mh-notes-width,285px)}
.mh-workspace-enabled .mh-app.mh-notes-collapsed{grid-template-columns:214px minmax(0,1fr) 34px}
.mh-notes-rail{--mh-library-height:260px}

/* Drag the divider between the website and Quick Notes to resize the rail. */
.mh-notes-width-resizer{position:absolute;left:-5px;top:0;bottom:0;width:10px;z-index:4;cursor:ew-resize;touch-action:none}
.mh-notes-width-resizer:after{content:"";position:absolute;left:4px;top:0;bottom:0;width:1px;background:rgba(112,176,238,.15);transition:.15s background,.15s box-shadow}
.mh-notes-width-resizer:hover:after,.mh-notes-width-resizer:active:after{background:rgba(92,181,255,.65);box-shadow:0 0 12px rgba(61,156,255,.28)}
.mh-notes-rail.is-collapsed .mh-notes-width-resizer{display:none}
.mh-is-resizing-notes,.mh-is-resizing-notes *{user-select:none!important}
.mh-is-resizing-notes{cursor:ew-resize!important}

/* The note library gets its own vertical divider, so editor/list height is adjustable. */
.mh-notes-library-wrap{position:relative;min-height:0}
.mh-notes-library-resizer{display:none;position:absolute;left:0;right:0;top:-5px;height:10px;z-index:6;cursor:ns-resize;touch-action:none}
.mh-notes-library-resizer:after{content:"";position:absolute;left:22%;right:22%;top:4px;height:1px;background:rgba(113,174,235,.16);transition:.15s background,.15s box-shadow}
.mh-notes-library-resizer:hover:after,.mh-notes-library-resizer:active:after{background:rgba(92,181,255,.62);box-shadow:0 0 10px rgba(61,156,255,.22)}
.mh-notes-panel.is-library-open .mh-notes-library-wrap{height:var(--mh-library-height,260px);max-height:calc(100% - 175px);min-height:130px;display:flex;flex-direction:column;flex:none}
.mh-notes-panel.is-library-open .mh-notes-library-resizer{display:block}
.mh-notes-panel.is-library-open .mh-notes-library{display:flex;flex:1;min-height:0;max-height:none;overflow:auto;flex-direction:column}
.mh-notes-panel.is-library-open .mh-notes-list{flex:none}
.mh-notes-library-hint{flex:none}

/* One larger colour button opens a small palette only when it is needed. */
.mh-color-picker{position:relative;display:inline-flex;align-items:center;flex:none}
.mh-color-current{width:18px;height:18px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.22);box-shadow:0 0 0 2px rgba(4,17,30,.65);transition:.15s transform,.15s box-shadow}
.mh-color-current:hover{transform:scale(1.08);box-shadow:0 0 0 2px #07172a,0 0 0 3px rgba(173,211,248,.42)}
.mh-color-menu{position:absolute;top:calc(100% + 7px);left:0;z-index:120;display:grid;grid-template-columns:repeat(6,16px);align-items:center;gap:7px;padding:8px;border:1px solid rgba(100,168,235,.22);border-radius:9px;background:#07182a;box-shadow:0 14px 34px rgba(0,0,0,.46);white-space:nowrap}
.mh-color-menu[hidden]{display:none!important}
.mh-color-menu button{width:16px;height:16px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.18);transition:.14s transform,.14s box-shadow}
.mh-color-menu button:hover{transform:scale(1.14)}
.mh-color-menu button.is-active{box-shadow:0 0 0 2px #07172a,0 0 0 3px rgba(173,211,248,.72)}
.mh-color-current.is-slate,.mh-color-menu .is-slate{background:#72849a}
.mh-color-current.is-blue,.mh-color-menu .is-blue{background:#4a9dff}
.mh-color-current.is-cyan,.mh-color-menu .is-cyan{background:#43d5cb}
.mh-color-current.is-mint,.mh-color-menu .is-mint{background:#69d9b1}
.mh-color-current.is-green,.mh-color-menu .is-green{background:#65cf78}
.mh-color-current.is-lime,.mh-color-menu .is-lime{background:#a8cf5f}
.mh-color-current.is-amber,.mh-color-menu .is-amber{background:#e5aa4d}
.mh-color-current.is-orange,.mh-color-menu .is-orange{background:#ed884a}
.mh-color-current.is-red,.mh-color-menu .is-red{background:#e9636d}
.mh-color-current.is-rose,.mh-color-menu .is-rose{background:#e46d82}
.mh-color-current.is-pink,.mh-color-menu .is-pink{background:#e37ec5}
.mh-color-current.is-violet,.mh-color-menu .is-violet{background:#9b82e7}
.mh-note-palette{display:none!important}

/* Note-row and folder palettes open sideways to stay compact inside the drawer. */
.mh-row-color-picker{min-width:12px}
.mh-row-color-picker .mh-color-menu{top:50%;left:20px;transform:translateY(-50%)}
.mh-folder-color-picker .mh-color-menu{top:50%;left:auto;right:26px;transform:translateY(-50%)}
.mh-note-row-color{width:12px;height:12px}

/* Folder dragging is now handle-only, so text can be selected/renamed normally. */
.mh-note-folder{overflow:visible}
.mh-note-folder-head{grid-template-columns:12px 12px 9px minmax(0,1fr) 20px}
.mh-folder-drag{display:grid;place-items:center;width:12px;height:22px;color:#4f6e89;font-size:10px;line-height:.75;letter-spacing:-2px;cursor:grab;user-select:none}
.mh-folder-drag:hover{color:#9fc6ea}.mh-folder-drag:active{cursor:grabbing}
.mh-folder-settings{position:relative}
.mh-folder-settings input{user-select:text!important;cursor:text!important;touch-action:auto}
.mh-note-folder.is-dragging{opacity:.48}

@media(max-width:1320px) and (min-width:1051px){
  .mh-workspace-enabled .mh-app{grid-template-columns:84px minmax(0,1fr) var(--mh-notes-width,250px)}
  .mh-workspace-enabled .mh-app.mh-notes-collapsed{grid-template-columns:84px minmax(0,1fr) 34px}
}
@media(max-width:1050px){
  .mh-notes-width-resizer{display:none}
  .mh-notes-panel.is-library-open .mh-notes-library-wrap{max-height:calc(100% - 150px)}
}
@media(max-width:800px){
  .mh-notes-library-resizer{height:12px;top:-6px}
  .mh-row-color-picker .mh-color-menu{left:18px}
}
.mh-is-resizing-notes-width,.mh-is-resizing-notes-width *{cursor:ew-resize!important}
.mh-is-resizing-notes-library,.mh-is-resizing-notes-library *{cursor:ns-resize!important}


/* v1.0.7 — themed notes scrollbar, soft-delete/recovery, multi-select and UI-size control */
.mh-notes-rail{
  --mh-notes-font-boost:0px;
  --mh-notes-space-boost:0px;
  --mh-notes-row-boost:0px;
  --mh-notes-control-boost:0px;
}

/* Keep the notes workspace looking native to the navy interface, including its scrollbars. */
.mh-notes-library,
.mh-note-editor textarea,
.mh-deleted-system-body,
.mh-deleted-folder-children{
  scrollbar-width:thin;
  scrollbar-color:#315b82 #061321;
}
.mh-notes-library::-webkit-scrollbar,
.mh-note-editor textarea::-webkit-scrollbar,
.mh-deleted-system-body::-webkit-scrollbar,
.mh-deleted-folder-children::-webkit-scrollbar{width:7px;height:7px}
.mh-notes-library::-webkit-scrollbar-track,
.mh-note-editor textarea::-webkit-scrollbar-track,
.mh-deleted-system-body::-webkit-scrollbar-track,
.mh-deleted-folder-children::-webkit-scrollbar-track{
  background:#061321;
  border-radius:10px;
}
.mh-notes-library::-webkit-scrollbar-thumb,
.mh-note-editor textarea::-webkit-scrollbar-thumb,
.mh-deleted-system-body::-webkit-scrollbar-thumb,
.mh-deleted-folder-children::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#315f8b,#244769);
  border:1px solid #07192b;
  border-radius:10px;
}
.mh-notes-library::-webkit-scrollbar-thumb:hover,
.mh-note-editor textarea::-webkit-scrollbar-thumb:hover,
.mh-deleted-system-body::-webkit-scrollbar-thumb:hover,
.mh-deleted-folder-children::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#4280b8,#315f8b);
}

/* Library heading + selection mode. */
.mh-notes-library-bar{display:flex;align-items:center;gap:5px}
.mh-notes-library-bar .mh-notes-library-toggle{flex:1;min-width:0}
.mh-notes-select-toggle{
  flex:none;border:0;background:transparent;color:#5f7d99;font-size:9px;font-weight:700;
  padding:5px 4px;border-radius:5px;letter-spacing:.02em
}
.mh-notes-select-toggle:hover,.mh-notes-select-toggle.is-active{color:#fff;background:rgba(73,152,235,.08)}
.mh-notes-bulk-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:31px;padding:3px 4px 5px;border-bottom:1px solid rgba(118,180,255,.08);
  color:#7995af;font-size:9px
}
.mh-notes-bulk-toolbar[hidden]{display:none!important}
.mh-bulk-trash{margin-left:auto}

.mh-item-check{
  display:none;width:15px;height:15px;padding:0;border-radius:4px;
  border:1px solid rgba(118,180,255,.22);background:#07182a;color:#dff1ff;
  font-size:10px;line-height:1;place-items:center
}
.mh-notes-panel.is-selecting .mh-item-check{display:grid}
.mh-item-check:hover{border-color:rgba(92,181,255,.65)}
.mh-item-check.is-checked{background:rgba(61,156,255,.23);border-color:rgba(92,181,255,.72);color:#fff}
.mh-notes-panel.is-selecting .mh-note-row,
.mh-notes-panel.is-selecting .mh-note-folder-head{cursor:pointer}
.mh-notes-panel.is-selecting .mh-row-color-picker,
.mh-notes-panel.is-selecting .mh-row-actions,
.mh-notes-panel.is-selecting .mh-folder-drag{opacity:.28;pointer-events:none}

/* Action cluster on each item. */
.mh-note-row{grid-template-columns:auto 12px minmax(0,1fr) auto}
.mh-note-folder-head{grid-template-columns:auto 12px 12px 9px minmax(0,1fr) auto}
.mh-row-actions,.mh-note-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}
.mh-note-pin,.mh-note-row-pin,.mh-folder-pin{
  width:23px;height:23px;display:grid;place-items:center;padding:0;
  border:0;background:transparent;color:#6f8aa5;font-size:16px;line-height:1;
  transition:.14s color,.14s transform,.14s background
}
.mh-note-pin:hover,.mh-note-row-pin:hover,.mh-folder-pin:hover{
  color:#fff;transform:scale(1.08);background:rgba(255,255,255,.025)
}
.mh-note-pin.is-active,.mh-note-row-pin.is-active,.mh-folder-pin.is-active{color:#ffd16a}
.mh-note-pin.is-active:hover,.mh-note-row-pin.is-active:hover,.mh-folder-pin.is-active:hover{color:#fff}

.mh-trash-button,.mh-restore-button{
  width:23px;height:23px;padding:0;border:0;background:transparent;color:#607b96;
  display:grid;place-items:center;border-radius:5px;transition:.14s color,.14s background,.14s transform
}
.mh-trash-button svg,.mh-restore-button svg,.mh-deleted-trash svg{
  width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round
}
.mh-trash-button:hover{color:#ff6972;background:rgba(255,74,84,.08);transform:scale(1.06)}
.mh-trash-button:disabled{opacity:.3;pointer-events:none}
.mh-restore-button{color:#6388aa}
.mh-restore-button:hover{color:#fff;background:rgba(61,156,255,.10);transform:scale(1.06)}

/* Soft-delete recovery area. It behaves like a system folder and always sits last. */
.mh-deleted-system{
  margin-top:7px;border:1px solid rgba(118,180,255,.08);border-radius:8px;
  background:rgba(4,15,27,.54);overflow:hidden
}
.mh-deleted-system-head{
  width:100%;min-height:38px;border:0;background:transparent;color:#7f98b0;
  display:grid;grid-template-columns:18px auto 1fr 14px;gap:7px;align-items:center;
  padding:6px 8px;text-align:left;font-size:9px;font-weight:700
}
.mh-deleted-system-head:hover{color:#d7e9f9;background:rgba(255,255,255,.018)}
.mh-deleted-system-head small{justify-self:start;color:#526c84;font-size:8px;font-weight:600}
.mh-deleted-trash{display:grid;place-items:center;color:#657d95}.mh-deleted-trash svg{width:13px;height:13px}
.mh-deleted-chevron{justify-self:end;color:#617f9c;font-size:10px}
.mh-deleted-system-body{display:grid;gap:5px;padding:6px;border-top:1px solid rgba(118,180,255,.06)}
.mh-deleted-note-row,.mh-deleted-folder-head{
  display:grid;grid-template-columns:10px minmax(0,1fr) 24px;gap:7px;align-items:center;
  min-height:39px;padding:5px 6px;border:1px solid rgba(118,180,255,.065);
  border-radius:7px;background:rgba(7,23,39,.48)
}
.mh-deleted-folder-head{grid-template-columns:10px 9px minmax(0,1fr) 24px;cursor:pointer}
.mh-deleted-note-row:hover,.mh-deleted-folder-head:hover{border-color:rgba(118,180,255,.15);background:rgba(8,28,47,.62)}
.mh-deleted-dot{width:8px;height:8px;border-radius:50%;background:var(--note-accent,#72849a);opacity:.72}
.mh-deleted-copy{min-width:0}
.mh-deleted-copy strong{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#9eb4c8;font-size:9px;font-weight:700
}
.mh-deleted-copy small{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  margin-top:2px;color:#536d85;font-size:7px
}
.mh-deleted-inner-folder{display:grid;gap:4px}
.mh-deleted-folder-children{display:grid;gap:4px;padding:0 0 2px 13px}
.mh-deleted-folder-children .mh-deleted-note-row{background:rgba(5,18,31,.55)}

/* Small UI-size control at the very bottom. 0 keeps the original size. */
.mh-notes-scale-control{
  flex:none;display:grid;grid-template-columns:12px minmax(0,1fr) 14px;align-items:center;gap:7px;
  min-height:29px;margin-top:6px;padding:4px 2px 0;border-top:1px solid rgba(118,180,255,.08);
  color:#55718b;font-size:8px;font-weight:700
}
.mh-notes-scale-control .mh-scale-big{font-size:11px;color:#6988a5}
.mh-notes-scale-control input[type="range"]{
  width:100%;height:14px;margin:0;padding:0;background:transparent;accent-color:#4e9eea;cursor:pointer
}
.mh-notes-scale-control input[type="range"]::-webkit-slider-runnable-track{
  height:2px;border-radius:8px;background:#173553
}
.mh-notes-scale-control input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;width:10px;height:10px;margin-top:-4px;border-radius:50%;
  border:1px solid #79b8ef;background:#1f5f97;box-shadow:0 0 0 2px #07182a
}
.mh-notes-scale-control input[type="range"]::-moz-range-track{height:2px;border:0;border-radius:8px;background:#173553}
.mh-notes-scale-control input[type="range"]::-moz-range-thumb{
  width:10px;height:10px;border-radius:50%;border:1px solid #79b8ef;background:#1f5f97
}

/* Controlled enlargement driven by the bottom slider. */
.mh-notes-rail-head h2{font-size:calc(19px + var(--mh-notes-font-boost))}
.mh-note-title{
  height:calc(36px + var(--mh-notes-control-boost));
  font-size:calc(15px + var(--mh-notes-font-boost))
}
.mh-note-editor textarea{
  font-size:calc(12px + var(--mh-notes-font-boost));
  padding:calc(12px + var(--mh-notes-space-boost))
}
.mh-note-meta{font-size:calc(8px + var(--mh-notes-font-boost))}
.mh-notes-rail-foot{font-size:calc(9px + var(--mh-notes-font-boost))}
.mh-notes-library-toggle{font-size:calc(10px + var(--mh-notes-font-boost))}
.mh-notes-select-toggle,.mh-notes-bulk-toolbar{font-size:calc(9px + var(--mh-notes-font-boost))}
.mh-note-row{
  min-height:calc(48px + var(--mh-notes-row-boost));
  padding:calc(7px + var(--mh-notes-space-boost)) 6px
}
.mh-note-row-copy strong,.mh-folder-copy strong{font-size:calc(10px + var(--mh-notes-font-boost))}
.mh-note-row-copy small{font-size:calc(7px + var(--mh-notes-font-boost))}
.mh-note-folder-head{
  min-height:calc(46px + var(--mh-notes-row-boost));
  padding:calc(7px + var(--mh-notes-space-boost)) 7px
}
.mh-folder-copy small,.mh-folder-settings input{font-size:calc(8px + var(--mh-notes-font-boost))}
.mh-folder-settings input{height:calc(27px + var(--mh-notes-control-boost))}
.mh-note-pin,.mh-note-row-pin,.mh-folder-pin,.mh-trash-button,.mh-restore-button{
  width:calc(23px + var(--mh-notes-control-boost));
  height:calc(23px + var(--mh-notes-control-boost))
}
.mh-note-pin,.mh-note-row-pin,.mh-folder-pin{font-size:calc(16px + var(--mh-notes-font-boost))}
.mh-trash-button svg,.mh-restore-button svg{width:calc(15px + var(--mh-notes-font-boost));height:calc(15px + var(--mh-notes-font-boost))}
.mh-color-current{width:calc(18px + var(--mh-notes-control-boost));height:calc(18px + var(--mh-notes-control-boost))}
.mh-note-new{
  width:calc(29px + var(--mh-notes-control-boost));height:calc(29px + var(--mh-notes-control-boost));
  font-size:calc(17px + var(--mh-notes-font-boost))
}
.mh-notes-library-hint{font-size:calc(8px + var(--mh-notes-font-boost))}

/* Leave a little extra vertical room for the new bottom size control. */
.mh-notes-panel.is-library-open .mh-notes-library-wrap{max-height:calc(100% - 205px)}

@media(max-width:1050px){
  .mh-notes-scale-control{display:none}
  .mh-notes-panel.is-library-open .mh-notes-library-wrap{max-height:calc(100% - 165px)}
}

/* v1.0.8 — notes title width, Deleted drawer, default-blue polish ---------------- */
.mh-note-row{
  display:flex;
  grid-template-columns:none;
  align-items:center;
  gap:7px;
}
.mh-note-row .mh-item-check,
.mh-note-row .mh-row-color-picker,
.mh-note-row .mh-row-actions{flex:0 0 auto}
.mh-note-row-copy{flex:1 1 0;min-width:0;width:auto;max-width:none}
.mh-note-row-copy strong,.mh-note-row-copy small{max-width:100%;width:100%}
.mh-row-actions{min-width:48px}

.mh-notes-deleted-toggle{
  position:relative;flex:none;width:27px;height:27px;padding:0;border:0;border-radius:6px;
  display:grid;place-items:center;background:transparent;color:#5f7d99;
  transition:.14s color,.14s background,.14s transform
}
.mh-notes-deleted-toggle svg{
  width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round
}
.mh-notes-deleted-toggle:hover,.mh-notes-deleted-toggle.is-active{
  color:#fff;background:rgba(73,152,235,.08)
}
.mh-notes-deleted-toggle:disabled{opacity:.28;cursor:default;background:transparent}
.mh-notes-deleted-toggle [data-notes-deleted-count]{
  position:absolute;right:-2px;top:-3px;min-width:13px;height:13px;padding:0 3px;border-radius:8px;
  display:grid;place-items:center;background:#163d63;border:1px solid rgba(113,184,239,.3);
  color:#beddff;font-size:7px;line-height:1;font-weight:700
}
.mh-notes-deleted-toggle [data-notes-deleted-count][hidden]{display:none!important}
.mh-deleted-view{display:grid;gap:5px}
.mh-deleted-empty{padding:16px 8px;text-align:center;color:#5d7891;font-size:9px}

/* Empty untouched notes have nothing to recover, so their delete icon stays quiet. */
.mh-trash-button:disabled{opacity:.22;cursor:default!important;transform:none!important;background:transparent!important;color:#607b96!important}


/* v1.0.9 — compact folder editing, reliable deletion/dragging, zoom-safe notes UI ---- */

/* Active notes are deliberately a little lighter than folder containers so the
   library can be scanned at a glance. */
.mh-note-row{
  background:linear-gradient(180deg,rgba(16,48,79,.60),rgba(9,31,53,.58));
  border-color:rgba(118,180,255,.13);
}
.mh-note-row:hover{
  background:linear-gradient(180deg,rgba(20,58,94,.70),rgba(11,37,63,.68));
  border-color:rgba(92,181,255,.29);
}
.mh-note-row.is-selected{
  background:linear-gradient(180deg,rgba(31,83,139,.26),rgba(14,48,82,.68));
  border-color:rgba(82,167,255,.42);
}
.mh-note-folder{
  background:linear-gradient(180deg,rgba(4,17,30,.90),rgba(4,15,27,.82));
  border-color:rgba(118,180,255,.11);
}
.mh-folder-notes .mh-note-row{
  background:linear-gradient(180deg,rgba(15,45,75,.53),rgba(8,29,49,.58));
}

/* Folder headers use flex rather than a rigid grid so names keep the remaining
   width even at large browser zoom or a narrow notes rail. */
.mh-note-folder-head{
  display:flex;
  grid-template-columns:none;
  width:100%;
  min-width:0;
  max-width:100%;
  gap:6px;
  overflow:visible;
}
.mh-note-folder-head > .mh-item-check,
.mh-note-folder-head > .mh-folder-drag,
.mh-note-folder-head > .mh-folder-chevron,
.mh-note-folder-head > .mh-folder-color-picker,
.mh-note-folder-head > .mh-row-actions{flex:0 0 auto}
.mh-folder-copy{
  flex:1 1 0;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.mh-folder-title-inline{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  height:20px;
  margin:0;
  padding:0;
  border:0;
  border-bottom:1px solid transparent;
  border-radius:0;
  outline:none;
  background:transparent;
  color:#dceafa;
  font-size:calc(10px + var(--mh-notes-font-boost));
  line-height:20px;
  font-weight:750;
  text-overflow:ellipsis;
  white-space:nowrap;
  overflow:hidden;
  cursor:text;
}
.mh-folder-title-inline[readonly]{pointer-events:auto}
.mh-folder-title-inline.is-editing{
  overflow:visible;
  text-overflow:clip;
  color:#fff;
  border-bottom-color:rgba(92,181,255,.52);
  background:linear-gradient(180deg,transparent,rgba(42,120,201,.05));
}
.mh-folder-copy small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mh-folder-color-picker{position:relative;display:flex;align-items:center}
.mh-folder-dot{
  flex:none;
  width:9px;
  height:9px;
  padding:0;
  border:0;
  border-radius:2px;
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(255,255,255,.05);
}
.mh-folder-dot:hover{box-shadow:0 0 0 2px rgba(114,198,255,.18)}
.mh-notes-panel.is-selecting .mh-folder-title-inline{pointer-events:none}

/* The old second-row folder-name field is gone in v1.0.9. */
.mh-folder-settings{display:none!important}

/* Prevent library children from forcing a horizontal scrollbar when browser
   zoom makes the effective viewport very narrow. */
.mh-notes-shell,
.mh-note-editor,
.mh-notes-library-wrap,
.mh-notes-library,
.mh-notes-list,
.mh-note-folder,
.mh-folder-notes,
.mh-note-row{
  min-width:0;
  max-width:100%;
}
.mh-notes-library{
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
}
.mh-notes-list,
.mh-folder-notes{width:100%;overflow-x:hidden}
.mh-note-row{width:100%;overflow:visible}
.mh-note-row-copy{overflow:hidden}
.mh-row-actions{flex:none}
.mh-notes-scale-control{min-width:0;width:100%}
.mh-notes-scale-control input[type="range"]{min-width:0}

/* Empty notes may now be removed normally. The server discards them directly
   instead of placing blank placeholders in Deleted. */
.mh-trash-button:disabled{opacity:.3}

/* At responsive/floating sizes, keep the panel fully inside the viewport. */
@media(max-width:1050px){
  .mh-notes-rail{
    max-width:calc(100vw - 24px);
  }
  .mh-notes-shell{min-width:0;max-width:100%}
}
@media(max-width:480px){
  .mh-notes-rail{
    left:10px;
    right:10px;
    width:auto;
    max-width:none;
  }
  .mh-notes-rail.is-collapsed{
    left:auto;
    right:10px;
    width:36px;
  }
  .mh-note-folder-head{gap:4px;padding-left:5px;padding-right:5px}
  .mh-folder-drag{width:10px}
  .mh-row-actions{gap:0}
}


/* v1.0.10 — Deleted controls, blank note titles, folder contrast, palette bounds ---- */

/* Folder colour palette opens into the notes rail instead of toward the viewport edge. */
.mh-folder-color-picker .mh-color-menu{
  left:16px;
  right:auto;
  top:50%;
  transform:translateY(-50%);
}

/* Stronger folder treatment so folders read as containers rather than ordinary notes. */
.mh-note-folder{
  background:
    linear-gradient(135deg,rgba(22,63,104,.46),rgba(7,24,41,.90) 52%,rgba(5,18,32,.94));
  border-color:rgba(89,165,239,.24);
  box-shadow:inset 2px 0 0 rgba(74,157,255,.22);
}
.mh-note-folder:hover{border-color:rgba(99,177,255,.34)}
.mh-note-folder.is-open{
  background:
    linear-gradient(135deg,rgba(24,69,113,.52),rgba(7,25,43,.94) 50%,rgba(5,17,30,.96));
  box-shadow:inset 2px 0 0 rgba(74,157,255,.38);
}
.mh-folder-notes{
  margin:0 5px 6px 14px;
  padding-left:7px;
  border-left:1px solid rgba(101,177,247,.14);
}
.mh-folder-notes .mh-note-row{
  background:linear-gradient(180deg,rgba(19,55,90,.64),rgba(10,34,58,.68));
}

/* Empty titles remain genuinely empty in storage; this is only a visual hint in the list. */
.is-empty-title{
  color:#6e88a1!important;
  font-weight:600!important;
  font-style:italic;
}

/* Deleted view: selection + restore + permanent delete controls. */
.mh-deleted-note-row{
  grid-template-columns:18px 10px minmax(0,1fr) auto;
}
.mh-deleted-folder-head{
  grid-template-columns:18px 10px 9px minmax(0,1fr) auto;
}
.mh-deleted-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:1px;
  min-width:48px;
}
.mh-deleted-item-check{
  width:16px;
  height:16px;
  padding:0;
  border:1px solid rgba(118,180,255,.20);
  border-radius:4px;
  background:rgba(5,18,31,.64);
  color:#061322;
  display:grid;
  place-items:center;
  font-size:10px;
  line-height:1;
}
.mh-deleted-item-check:hover{
  border-color:rgba(103,183,255,.56);
  background:rgba(61,156,255,.10);
}
.mh-deleted-item-check.is-checked{
  color:#fff;
  border-color:#4a9dff;
  background:#287fdf;
}
.mh-delete-forever:hover{
  color:#ff5f69!important;
  background:rgba(255,74,84,.10)!important;
}
.mh-notes-bulk-toolbar .mh-bulk-trash.is-permanent{
  color:#ff747c;
}
.mh-notes-bulk-toolbar .mh-bulk-trash.is-permanent:hover{
  color:#fff;
  background:rgba(255,74,84,.18);
}

/* Keep the palette within narrow/zoomed rails. */
@media(max-width:1180px){
  .mh-folder-color-picker .mh-color-menu{
    left:14px;
    right:auto;
  }
}


/* v1.0.11 — full-colour cards + spatial note dragging ---------------------- */

/* Each selected colour now tints the whole note/folder body, not just its dot. */
.mh-note-row.is-slate,.mh-note-folder.is-slate{--mh-item-rgb:114,132,154;--mh-item-accent:#72849a}
.mh-note-row.is-blue,.mh-note-folder.is-blue{--mh-item-rgb:74,157,255;--mh-item-accent:#4a9dff}
.mh-note-row.is-cyan,.mh-note-folder.is-cyan{--mh-item-rgb:67,213,203;--mh-item-accent:#43d5cb}
.mh-note-row.is-mint,.mh-note-folder.is-mint{--mh-item-rgb:105,217,177;--mh-item-accent:#69d9b1}
.mh-note-row.is-green,.mh-note-folder.is-green{--mh-item-rgb:101,207,120;--mh-item-accent:#65cf78}
.mh-note-row.is-lime,.mh-note-folder.is-lime{--mh-item-rgb:168,207,95;--mh-item-accent:#a8cf5f}
.mh-note-row.is-amber,.mh-note-folder.is-amber{--mh-item-rgb:229,170,77;--mh-item-accent:#e5aa4d}
.mh-note-row.is-orange,.mh-note-folder.is-orange{--mh-item-rgb:237,136,74;--mh-item-accent:#ed884a}
.mh-note-row.is-red,.mh-note-folder.is-red{--mh-item-rgb:233,99,109;--mh-item-accent:#e9636d}
.mh-note-row.is-rose,.mh-note-folder.is-rose{--mh-item-rgb:228,109,130;--mh-item-accent:#e46d82}
.mh-note-row.is-pink,.mh-note-folder.is-pink{--mh-item-rgb:227,126,197;--mh-item-accent:#e37ec5}
.mh-note-row.is-violet,.mh-note-folder.is-violet{--mh-item-rgb:155,130,231;--mh-item-accent:#9b82e7}

.mh-note-row{
  background:linear-gradient(135deg,rgba(var(--mh-item-rgb,74,157,255),.18),rgba(var(--mh-item-rgb,74,157,255),.07) 46%,rgba(7,25,43,.82));
  border-color:rgba(var(--mh-item-rgb,74,157,255),.30);
  box-shadow:inset 2px 0 0 rgba(var(--mh-item-rgb,74,157,255),.58);
  transition:transform .12s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease,opacity .14s ease;
}
.mh-note-row:hover{
  background:linear-gradient(135deg,rgba(var(--mh-item-rgb,74,157,255),.25),rgba(var(--mh-item-rgb,74,157,255),.10) 48%,rgba(8,29,50,.88));
  border-color:rgba(var(--mh-item-rgb,74,157,255),.46);
}
.mh-note-row.is-selected{
  background:linear-gradient(135deg,rgba(var(--mh-item-rgb,74,157,255),.31),rgba(var(--mh-item-rgb,74,157,255),.13) 50%,rgba(9,31,54,.90));
  border-color:rgba(var(--mh-item-rgb,74,157,255),.65);
  box-shadow:inset 3px 0 0 var(--mh-item-accent,#4a9dff),0 0 0 1px rgba(var(--mh-item-rgb,74,157,255),.05);
}

.mh-note-folder{
  background:linear-gradient(135deg,rgba(var(--mh-item-rgb,74,157,255),.24),rgba(var(--mh-item-rgb,74,157,255),.09) 44%,rgba(4,17,30,.94));
  border-color:rgba(var(--mh-item-rgb,74,157,255),.38);
  box-shadow:inset 3px 0 0 rgba(var(--mh-item-rgb,74,157,255),.70);
}
.mh-note-folder:hover{border-color:rgba(var(--mh-item-rgb,74,157,255),.55)}
.mh-note-folder.is-open{
  background:linear-gradient(135deg,rgba(var(--mh-item-rgb,74,157,255),.29),rgba(var(--mh-item-rgb,74,157,255),.11) 44%,rgba(4,17,30,.96));
  box-shadow:inset 3px 0 0 var(--mh-item-accent,#4a9dff);
}
/* Child notes keep THEIR own colour rather than inheriting the folder colour. */
.mh-folder-notes .mh-note-row{
  background:linear-gradient(135deg,rgba(var(--mh-item-rgb,74,157,255),.17),rgba(var(--mh-item-rgb,74,157,255),.06) 48%,rgba(7,25,43,.82));
  border-color:rgba(var(--mh-item-rgb,74,157,255),.27);
  box-shadow:inset 2px 0 0 rgba(var(--mh-item-rgb,74,157,255),.52);
}

/* The open editor body follows the current note colour as well. */
.mh-notes-rail[data-note-color="slate"]{--mh-editor-rgb:114,132,154;--mh-editor-accent:#72849a}
.mh-notes-rail[data-note-color="blue"]{--mh-editor-rgb:74,157,255;--mh-editor-accent:#4a9dff}
.mh-notes-rail[data-note-color="cyan"]{--mh-editor-rgb:67,213,203;--mh-editor-accent:#43d5cb}
.mh-notes-rail[data-note-color="mint"]{--mh-editor-rgb:105,217,177;--mh-editor-accent:#69d9b1}
.mh-notes-rail[data-note-color="green"]{--mh-editor-rgb:101,207,120;--mh-editor-accent:#65cf78}
.mh-notes-rail[data-note-color="lime"]{--mh-editor-rgb:168,207,95;--mh-editor-accent:#a8cf5f}
.mh-notes-rail[data-note-color="amber"]{--mh-editor-rgb:229,170,77;--mh-editor-accent:#e5aa4d}
.mh-notes-rail[data-note-color="orange"]{--mh-editor-rgb:237,136,74;--mh-editor-accent:#ed884a}
.mh-notes-rail[data-note-color="red"]{--mh-editor-rgb:233,99,109;--mh-editor-accent:#e9636d}
.mh-notes-rail[data-note-color="rose"]{--mh-editor-rgb:228,109,130;--mh-editor-accent:#e46d82}
.mh-notes-rail[data-note-color="pink"]{--mh-editor-rgb:227,126,197;--mh-editor-accent:#e37ec5}
.mh-notes-rail[data-note-color="violet"]{--mh-editor-rgb:155,130,231;--mh-editor-accent:#9b82e7}
.mh-note-editor textarea{
  background:linear-gradient(145deg,rgba(var(--mh-editor-rgb,74,157,255),.13),rgba(var(--mh-editor-rgb,74,157,255),.045) 48%,rgba(6,21,36,.73));
  box-shadow:inset 3px 0 0 rgba(var(--mh-editor-rgb,74,157,255),.70),inset 0 0 0 1px rgba(var(--mh-editor-rgb,74,157,255),.22);
}
.mh-note-editor textarea:focus{
  box-shadow:inset 3px 0 0 var(--mh-editor-accent,#4a9dff),inset 0 0 0 1px rgba(var(--mh-editor-rgb,74,157,255),.48),0 0 0 3px rgba(var(--mh-editor-rgb,74,157,255),.05);
}

/* Reordering uses a real insertion gap. This physically moves neighbouring
   cards instead of showing the folder-creation progress animation. */
.mh-note-drop-placeholder{
  height:42px;
  min-height:42px;
  margin:1px 3px;
  border:1px dashed rgba(100,183,255,.44);
  border-radius:8px;
  background:linear-gradient(90deg,rgba(61,156,255,.08),rgba(61,156,255,.025));
  box-shadow:inset 2px 0 0 rgba(74,157,255,.42);
  animation:mhDropGapIn .12s ease-out both;
}
@keyframes mhDropGapIn{from{height:8px;min-height:8px;opacity:.2}to{height:42px;min-height:42px;opacity:1}}
.mh-note-row.is-reorder-before,.mh-note-row.is-reorder-after{
  border-color:rgba(91,181,255,.52);
}
/* Folder creation keeps the existing progress sweep, but only in the middle
   drop zone of two root notes. */
.mh-note-row.is-hold-target{transform:scale(.995)}

/* When dragging a child note, a temporary root target appears. Dropping here
   removes the note from its current folder without deleting it. */
.mh-root-note-drop{
  min-height:34px;
  margin:6px 2px 1px;
  display:grid;
  place-items:center;
  border:1px dashed rgba(89,165,239,.24);
  border-radius:8px;
  color:#6987a4;
  background:rgba(19,54,88,.18);
  font-size:8px;
  letter-spacing:.02em;
  transition:.14s border-color,.14s color,.14s background,.14s min-height;
}
.mh-root-note-drop.is-active{
  min-height:42px;
  color:#c5e4ff;
  border-color:rgba(83,182,255,.66);
  background:rgba(48,134,225,.13);
}

/* v1.0.12 — empty scratch editor + stable/smoother drag + safer library divider */

/* The editor is always usable, even when there are no saved notes. */
.mh-note-title:disabled,.mh-note-editor textarea:disabled{opacity:1;cursor:text}
.mh-note-pin:disabled,.mh-note-editor .mh-trash-button:disabled{opacity:.22;cursor:default}

/* Never let the All notes divider consume the writing area. */
.mh-notes-panel.is-library-open .mh-notes-library-wrap{
  max-height:calc(100% - 330px);
}
@media(max-height:720px){
  .mh-notes-panel.is-library-open .mh-notes-library-wrap{max-height:calc(100% - 285px)}
}
@media(max-width:1050px){
  .mh-notes-panel.is-library-open .mh-notes-library-wrap{max-height:calc(100% - 265px)}
}

/* Reordering keeps one persistent gap instead of repeatedly creating/removing
   placeholders underneath the pointer. */
.mh-note-drop-placeholder{
  min-height:38px;
  margin:3px 2px;
  animation:none!important;
  transition:height .14s cubic-bezier(.2,.7,.2,1),opacity .12s ease,border-color .12s ease;
}
.mh-note-row,.mh-note-folder{will-change:auto}
.mh-note-row.is-dragging{opacity:.42}

/* Move-out-of-folder target is an overlay. It no longer shifts the whole list
   down when a child note starts dragging. */
.mh-notes-list{position:relative}
.mh-root-note-drop{
  position:sticky;
  top:2px;
  z-index:40;
  margin:2px 3px 7px;
  min-height:34px;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}
.mh-root-note-drop.is-active{min-height:38px}

/* Keep nested note cards easy to grab while a folder is open. */
.mh-folder-notes{position:relative}
.mh-folder-notes .mh-note-row{cursor:grab}
.mh-folder-notes .mh-note-row:active{cursor:grabbing}
.mh-root-note-drop{margin-bottom:-34px}
.mh-root-note-drop.is-active{margin-bottom:-38px}


/* v1.0.13 — drag polish, draggable folders, fixed library boundary */
/* The source card stays in layout but disappears while its drag image follows the cursor. */
.mh-note-row.is-dragging,.mh-note-folder.is-dragging{opacity:0!important;box-shadow:none!important}
.mh-notes-drag-image{
  position:fixed!important;left:-10000px!important;top:-10000px!important;z-index:999999!important;
  pointer-events:none!important;opacity:1!important;transform:none!important;
  max-height:220px;overflow:hidden;box-shadow:0 14px 35px rgba(0,0,0,.38)!important
}
/* Folder header itself is now the drag surface; controls inside remain normal clickable controls. */
.mh-note-folder-head[draggable="true"]{cursor:grab}
.mh-note-folder-head[draggable="true"]:active{cursor:grabbing}
.mh-note-folder-head input,.mh-note-folder-head button,.mh-note-folder-head .mh-color-picker{cursor:auto}
.mh-folder-drag{cursor:grab}
/* Keep selecting a child note completely layout-neutral. */
.mh-note-row.is-selected{transform:none!important}
/* The All Notes divider has no visual permission to cross the save/footer line. JS adds the hard limit. */
.mh-notes-library-wrap{margin-top:8px}


/* v1.0.14 — mixed root ordering, true source removal, faster divider */
/* v1.0.15 — keep the native drag source alive while removing it from layout.
   Chromium can cancel HTML5 drag-and-drop if the source becomes hidden, zero-height,
   or visibility:hidden during dragstart. Absolute positioning removes its board slot
   without destroying the browser's drag source. */
.mh-note-row.is-dragging,
.mh-note-folder.is-dragging{
  position:absolute!important;
  left:-100000px!important;
  top:0!important;
  opacity:0!important;
  pointer-events:none!important;
  visibility:visible!important;
  transform:none!important;
  margin:0!important;
  z-index:-1!important;
}

/* Resize must track the pointer directly, never ease behind it. */
.mh-is-resizing-notes-library .mh-notes-library-wrap,
.mh-is-resizing-notes-library .mh-notes-library-resizer,
.mh-is-resizing-notes-library .mh-notes-library-resizer:after{
  transition:none!important;
  animation:none!important;
}

/* Mixed note/folder root ordering uses the same insertion gap. */
.mh-note-folder.is-reorder-before,
.mh-note-folder.is-reorder-after{border-color:rgba(82,167,255,.42)}


/* v1.0.16 — stable drag geometry after video review */
.mh-note-drop-placeholder{transition:none!important;animation:none!important}
.mh-notes-list .mh-note-row,.mh-notes-list .mh-note-folder{transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,opacity .12s ease!important}

/* v1.0.17 — last-note folder choice, direct library resizing, smoother dragging */
.mh-note-drop-placeholder.is-source-gap{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:1!important;
}
.mh-notes-panel.is-library-open .mh-notes-library-wrap{
  max-height:var(--mh-library-max-height,calc(100% - 330px));
}
.mh-is-resizing-notes-library .mh-notes-library-wrap{
  transition:none!important;
}

.mh-notes-confirm-backdrop{
  position:fixed;
  inset:0;
  z-index:999999;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(2,9,17,.72);
  backdrop-filter:blur(8px);
}
.mh-notes-confirm{
  width:min(420px,calc(100vw - 32px));
  border:1px solid rgba(104,176,245,.24);
  border-radius:15px;
  padding:20px;
  background:
    radial-gradient(circle at 88% 0%,rgba(61,156,255,.14),transparent 35%),
    linear-gradient(180deg,#0a1c31,#071523);
  box-shadow:0 26px 80px rgba(0,0,0,.52),inset 0 0 0 1px rgba(255,255,255,.015);
  color:#eaf4ff;
}
.mh-notes-confirm h3{
  margin:7px 0 8px;
  font-family:Georgia,serif;
  font-size:21px;
  font-weight:600;
}
.mh-notes-confirm p{
  margin:0;
  color:#b3c7da;
  font-size:12px;
  line-height:1.55;
}
.mh-notes-confirm p strong{color:#eef7ff}
.mh-notes-confirm small{
  display:block;
  margin-top:10px;
  color:#6f8ba6;
  font-size:9px;
  line-height:1.5;
}
.mh-notes-confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:18px;
}
.mh-notes-confirm-actions button{
  min-height:36px;
  border-radius:8px;
  padding:0 13px;
  font-size:10px;
  font-weight:700;
  border:1px solid rgba(118,180,255,.18);
}
.mh-notes-confirm-keep{
  background:rgba(61,156,255,.10);
  color:#dceeff;
}
.mh-notes-confirm-keep:hover,.mh-notes-confirm-keep:focus{
  background:rgba(61,156,255,.19);
  border-color:rgba(98,181,255,.42);
  outline:none;
}
.mh-notes-confirm-delete{
  background:rgba(255,79,89,.08);
  color:#ff8e95;
  border-color:rgba(255,95,105,.20)!important;
}
.mh-notes-confirm-delete:hover,.mh-notes-confirm-delete:focus{
  background:rgba(255,79,89,.16);
  color:#fff;
  border-color:rgba(255,95,105,.46)!important;
  outline:none;
}


/* v1.0.18 — remove the visible move-out-of-folder drop strip. */
.mh-root-note-drop{display:none!important}


/* v1.0.19 — custom permanent-delete confirmation + wider note merge zone. */


/* v1.0.20 — compact editor actions, 12-colour palette, target-anchored folders. */
.mh-notes-rail-head{display:block}
.mh-note-editor-actions{display:flex;align-items:center;justify-content:flex-end;margin-left:auto}
.mh-note-tools .mh-note-new{width:27px;height:27px;border-radius:7px}
.mh-color-menu{min-width:max-content}
.mh-row-color-picker .mh-color-menu,.mh-folder-color-picker .mh-color-menu{grid-template-columns:repeat(6,16px)}


/* v1.0.21 — direct 1:1 library divider + larger New Note control. */
.mh-note-new{
  width:36px!important;height:36px!important;border-radius:9px!important;
  font-size:23px!important;line-height:1!important;
  border-color:rgba(118,180,255,.24)!important;
  background:rgba(49,135,240,.11)!important;color:#c4e2fb!important;
}
.mh-note-new:hover{background:rgba(49,135,240,.20)!important;border-color:rgba(92,181,255,.52)!important;color:#fff!important}
.mh-is-resizing-notes-library .mh-notes-library-wrap{transition:none!important;animation:none!important}
.mh-is-resizing-notes-library .mh-note-editor{transition:none!important;animation:none!important}


/* v1.0.23 — immutable All Notes upper boundary.
   The library may be made smaller, but never taller than the designed
   Saved / Auto-save boundary. This CSS cap is independent of JS state. */
.mh-notes-rail{--mh-library-hard-max:350px}
.mh-notes-panel.is-library-open .mh-notes-library-wrap{
  max-height:min(var(--mh-library-hard-max),calc(100% - 175px))!important;
}
@media(max-width:800px){
  .mh-notes-rail{--mh-library-hard-max:260px}
}

/* v1.0.24 — restore the more compact writing area as the default while
   keeping the divider fully adjustable. A larger library height means a
   smaller editor; users can still drag the divider down to grow the editor. */
.mh-notes-rail{--mh-library-height:330px}

/* v1.0.25 — smaller default editor + rich-text note controls. */
.mh-notes-rail{
  --mh-library-height:445px;
  --mh-library-hard-max:480px;
}

/* The editable writing surface is intentionally compact by default; dragging
   the All Notes divider downward still lets users expand it substantially. */
.mh-note-richtext{
  flex:1;
  width:100%;
  min-height:90px;
  margin:6px 0 8px;
  resize:none;
  overflow:auto;
  border:0;
  border-radius:10px;
  background:linear-gradient(145deg,rgba(var(--mh-editor-rgb,74,157,255),.13),rgba(var(--mh-editor-rgb,74,157,255),.045) 48%,rgba(6,21,36,.73));
  color:#e7f2ff;
  padding:calc(12px + var(--mh-notes-space-boost));
  line-height:1.58;
  outline:none;
  font-size:calc(12px + var(--mh-notes-font-boost));
  box-shadow:inset 3px 0 0 rgba(var(--mh-editor-rgb,74,157,255),.70),inset 0 0 0 1px rgba(var(--mh-editor-rgb,74,157,255),.22);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  cursor:text;
}
.mh-note-richtext:focus{
  box-shadow:inset 3px 0 0 var(--mh-editor-accent,#4a9dff),inset 0 0 0 1px rgba(var(--mh-editor-rgb,74,157,255),.48),0 0 0 3px rgba(var(--mh-editor-rgb,74,157,255),.05);
}
.mh-note-richtext:empty:before{
  content:attr(data-placeholder);
  color:#6d8093;
  pointer-events:none;
}
.mh-note-richtext b,.mh-note-richtext strong{font-weight:800}
.mh-note-richtext i,.mh-note-richtext em{font-style:italic}
.mh-note-richtext u{text-decoration:underline;text-underline-offset:2px}
.mh-note-richtext mark{background:#7a651f;color:inherit;border-radius:2px;padding:0 .08em}

/* Scrollbar parity with the rest of Quick Notes. */
.mh-note-richtext{scrollbar-width:thin;scrollbar-color:#315e86 #071729}
.mh-note-richtext::-webkit-scrollbar{width:8px;height:8px}
.mh-note-richtext::-webkit-scrollbar-track{background:#071729;border-radius:8px}
.mh-note-richtext::-webkit-scrollbar-thumb{background:#315e86;border-radius:8px;border:2px solid #071729}
.mh-note-richtext::-webkit-scrollbar-thumb:hover{background:#4a82b3}

/* Formatting toolbar: colour picker, a deliberate gap, four compact controls,
   then the larger New Note button on the far right. */
.mh-note-tools{justify-content:flex-start;gap:0}
.mh-note-format-tools{
  display:flex;
  align-items:center;
  gap:3px;
  margin-left:13px;
}
.mh-note-format{
  width:27px;
  height:27px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(118,180,255,.13);
  border-radius:6px;
  background:rgba(7,25,43,.50);
  color:#829bb4;
  font-family:Arial,sans-serif;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  transition:.13s color,.13s background,.13s border-color,.13s box-shadow;
}
.mh-note-format:hover{
  color:#fff;
  border-color:rgba(92,181,255,.36);
  background:rgba(49,135,240,.10);
}
.mh-note-format.is-active{
  color:#fff;
  border-color:rgba(92,181,255,.50);
  background:rgba(49,135,240,.18);
  box-shadow:inset 0 -2px 0 rgba(92,181,255,.70);
}
.mh-highlight-picker{
  --mh-highlight-color:rgba(250,204,21,.30);
  position:relative;
  display:flex;
  align-items:center;
  margin-left:2px;
}
.mh-note-highlight{
  width:27px;
  border-radius:6px 0 0 6px;
  border-right:0;
  font-weight:800;
  background:var(--mh-highlight-color)!important;
  color:#edf6ff;
}
.mh-note-highlight:hover,
.mh-note-highlight.is-active{
  background:var(--mh-highlight-color)!important;
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
.mh-highlight-arrow{
  width:18px;
  height:27px;
  padding:0 0 2px;
  display:grid;
  place-items:center;
  border:1px solid rgba(118,180,255,.13);
  border-left:1px solid rgba(255,255,255,.08);
  border-radius:0 6px 6px 0;
  background:var(--mh-highlight-color);
  color:#d8e9f7;
  font-size:11px;
  line-height:1;
  cursor:pointer;
  transition:.13s color,.13s border-color,.13s filter;
}
.mh-highlight-arrow:hover{
  color:#fff;
  border-color:rgba(92,181,255,.38);
  filter:brightness(1.24);
}
.mh-highlight-menu{
  position:absolute;
  z-index:80;
  top:calc(100% + 7px);
  left:0;
  width:126px;
  padding:7px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  border:1px solid rgba(89,166,234,.24);
  border-radius:9px;
  background:#081b2e;
  box-shadow:0 12px 28px rgba(0,0,0,.34);
}
.mh-highlight-menu[hidden]{display:none!important}
.mh-highlight-menu button{
  width:22px;
  height:22px;
  padding:0;
  border:1px solid rgba(255,255,255,.12);
  border-radius:5px;
  cursor:pointer;
  transition:.13s transform,.13s border-color,.13s box-shadow;
}
.mh-highlight-menu button:hover{transform:scale(1.10);border-color:rgba(255,255,255,.45)}
.mh-highlight-menu button.is-active{box-shadow:0 0 0 2px #081b2e,0 0 0 3px rgba(126,196,255,.72)}
.mh-highlight-menu .is-highlight-yellow{background:rgba(250,204,21,.30)}
.mh-highlight-menu .is-highlight-orange{background:rgba(251,146,60,.30)}
.mh-highlight-menu .is-highlight-red{background:rgba(248,113,113,.30)}
.mh-highlight-menu .is-highlight-rose{background:rgba(251,113,133,.30)}
.mh-highlight-menu .is-highlight-pink{background:rgba(244,114,182,.30)}
.mh-highlight-menu .is-highlight-violet{background:rgba(167,139,250,.30)}
.mh-highlight-menu .is-highlight-blue{background:rgba(96,165,250,.30)}
.mh-highlight-menu .is-highlight-cyan{background:rgba(34,211,238,.30)}
.mh-highlight-menu .is-highlight-green{background:rgba(74,222,128,.30)}
.mh-highlight-menu .is-highlight-mint{background:rgba(52,211,153,.30)}
.mh-highlight-menu .is-highlight-lime{background:rgba(163,230,53,.30)}
.mh-highlight-menu .is-highlight-slate{background:rgba(148,163,184,.30)}
.mh-note-editor-actions{margin-left:auto}

/* Old textarea element no longer exists, but keep any browser/user CSS from
   accidentally reserving space for it. */
.mh-note-editor textarea{display:none!important}

@media(max-height:720px){
  .mh-notes-rail{--mh-library-hard-max:390px}
  .mh-note-richtext{min-height:78px}
}


/* v1.0.30 — trader tools rail: icon tabs + Mind Map workspace scaffold ------- */
.mh-tools-rail{--mh-tool-menu-height:42px}
.mh-tools-menu{
  position:absolute;
  z-index:7;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:var(--mh-tool-menu-height);
  padding:4px;
  border:1px solid rgba(118,180,255,.12);
  border-radius:11px;
  background:linear-gradient(180deg,rgba(10,31,53,.92),rgba(6,21,37,.92));
  box-shadow:0 8px 25px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.025);
}
.mh-tool-tab{
  position:relative;
  width:34px;
  height:32px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#6989a7;
  transition:.14s color,.14s background,.14s border-color,.14s box-shadow,.14s transform;
}
.mh-tool-tab svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.mh-tool-tab:hover{
  color:#dceeff;
  border-color:rgba(92,181,255,.20);
  background:rgba(61,156,255,.08);
}
.mh-tool-tab:focus-visible{outline:2px solid rgba(114,198,255,.72);outline-offset:2px}
.mh-tool-tab.is-active{
  color:#dff2ff;
  border-color:rgba(92,181,255,.36);
  background:linear-gradient(180deg,rgba(61,156,255,.22),rgba(38,117,209,.12));
  box-shadow:inset 0 -2px 0 rgba(83,186,255,.72),0 4px 14px rgba(24,105,192,.10);
}
.mh-tools-panel{
  flex:1;
  min-height:0;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.mh-tools-panel[hidden]{display:none!important}

.mh-mindmap-panel{overflow:hidden}
.mh-mindmap-stage{
  flex:1;
  min-height:0;
  margin-top:10px;
  display:grid;
  place-items:center;
  padding:18px;
  overflow:hidden;
  border:1px solid rgba(118,180,255,.10);
  border-radius:12px;
  background:
    linear-gradient(rgba(88,160,226,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(88,160,226,.035) 1px,transparent 1px),
    radial-gradient(circle at 50% 42%,rgba(49,135,240,.12),transparent 36%),
    linear-gradient(180deg,rgba(8,27,48,.58),rgba(5,18,31,.62));
  background-size:var(--mh-mindmap-grid-size,22px) var(--mh-mindmap-grid-size,22px),var(--mh-mindmap-grid-size,22px) var(--mh-mindmap-grid-size,22px),auto,auto;
  background-position:var(--mh-mindmap-grid-x,0) var(--mh-mindmap-grid-y,0),var(--mh-mindmap-grid-x,0) var(--mh-mindmap-grid-y,0),center,center;
}
.mh-mindmap-empty{
  width:min(100%,260px);
  text-align:center;
  color:#819bb5;
}
.mh-mindmap-empty-graphic{
  width:min(100%,210px);
  margin:0 auto 14px;
  opacity:.82;
}
.mh-mindmap-empty-graphic svg{width:100%;height:auto;overflow:visible}
.mh-mindmap-empty-graphic path{fill:none;stroke:rgba(92,181,255,.30);stroke-width:1.4;stroke-dasharray:4 5}
.mh-mindmap-empty-graphic circle{fill:#0b2540;stroke:rgba(114,198,255,.60);stroke-width:1.5}
.mh-mindmap-empty-graphic circle:nth-of-type(1){fill:rgba(61,156,255,.20);stroke:#72c6ff;stroke-width:2}
.mh-mindmap-empty strong{display:block;color:#d9eaff;font-family:Georgia,serif;font-size:17px;font-weight:600}
.mh-mindmap-empty p{margin:8px auto 12px;max-width:235px;color:#738da7;font-size:10px;line-height:1.55}
.mh-mindmap-empty span{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border:1px solid rgba(83,177,255,.16);
  border-radius:999px;
  background:rgba(61,156,255,.06);
  color:#7195b7;
  font-size:8px;
  letter-spacing:.035em;
}

@media(max-width:1050px){
  .mh-tools-menu{top:8px}
  .mh-tools-rail{padding-top:58px}
  .mh-notes-collapse{top:20px}
}
@media(max-height:540px) and (max-width:1050px){
  .mh-tools-menu{top:6px}
  .mh-tools-rail{padding-top:52px}
}

/* v1.1.1 — Mind Map workspace + square library ---------------------------- */
.mh-tools-rail{--mh-tool-menu-height:50px}
.mh-tools-menu{gap:7px;padding:5px 6px;border-radius:13px}
.mh-tool-tab{width:42px;height:40px;border-radius:10px}
.mh-tool-tab svg{width:23px;height:23px;stroke-width:1.7}

.mh-mindmap-panel{gap:0}
.mh-mindmap-head{display:flex;align-items:flex-start;justify-content:space-between}
.mh-mindmap-new-top,
.mh-mindmap-library-add{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:none;
  padding:0;
  border:1px solid rgba(97,181,255,.24);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(52,144,238,.16),rgba(30,98,180,.08));
  color:#bde3ff;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  transition:.14s ease;
}
.mh-mindmap-new-top:hover,
.mh-mindmap-library-add:hover{background:rgba(61,156,255,.19);border-color:rgba(105,191,255,.48);color:#fff;transform:translateY(-1px)}

.mh-mindmap-stage{
  position:relative;
  flex:1 1 auto;
  min-height:190px;
  margin-top:10px;
  padding:0;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.mh-mindmap-empty{width:min(100%,300px);padding:22px 18px;text-align:center}
.mh-mindmap-empty-graphic{width:min(100%,220px);margin:0 auto 17px;opacity:.90}
.mh-mindmap-empty strong{font-size:23px;line-height:1.15;letter-spacing:-.01em;color:#e7f4ff}
.mh-mindmap-empty p{margin:11px auto 18px;max-width:270px;color:#8ba7c1;font-size:12px;line-height:1.62}
.mh-mindmap-start{
  min-height:34px;
  padding:0 18px;
  border:1px solid rgba(96,184,255,.38);
  border-radius:9px;
  background:linear-gradient(180deg,rgba(58,157,255,.25),rgba(31,105,194,.15));
  color:#e9f7ff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.04);
  transition:.14s ease;
}
.mh-mindmap-start:hover{transform:translateY(-1px);border-color:rgba(111,200,255,.68);background:linear-gradient(180deg,rgba(63,169,255,.34),rgba(33,111,205,.20));box-shadow:0 10px 24px rgba(0,0,0,.23),0 0 20px rgba(54,145,237,.08)}

.mh-mindmap-canvas-wrap{position:absolute;inset:0;min-width:0;min-height:0;display:flex;flex-direction:column}
.mh-mindmap-canvas-wrap[hidden]{display:none!important}
.mh-mindmap-canvas-toolbar{
  position:relative;
  z-index:3;
  min-height:29px;
  padding:6px 9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid rgba(118,180,255,.09);
  background:rgba(5,18,31,.44);
  color:#64819d;
  font-size:8px;
  letter-spacing:.015em;
}
.mh-mindmap-canvas-toolbar [data-state="ok"]{color:#6eb99d}
.mh-mindmap-canvas-toolbar [data-state="saving"]{color:#8fbce5}
.mh-mindmap-canvas-toolbar [data-state="error"]{color:#ff8f96}
.mh-mindmap-canvas{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none}
.mh-mindmap-canvas:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 50% 45%,rgba(66,156,249,.07),transparent 42%);
}
.mh-mindmap-node{
  position:absolute;
  z-index:2;
  width:min(210px,72%);
  min-width:145px;
  transform:translate(-50%,-50%);
  padding:10px 10px 11px;
  border:1px solid rgba(99,188,255,.42);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(17,57,94,.97),rgba(8,29,50,.98));
  box-shadow:0 16px 34px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.035),0 0 0 1px rgba(45,140,227,.05);
  transition:box-shadow .12s ease,border-color .12s ease;
}
.mh-mindmap-node:focus-within{border-color:rgba(112,202,255,.70);box-shadow:0 18px 38px rgba(0,0,0,.38),0 0 0 3px rgba(61,156,255,.06)}
.mh-mindmap-node.is-moving{transition:none;border-color:#72c6ff;box-shadow:0 20px 42px rgba(0,0,0,.45),0 0 0 3px rgba(61,156,255,.09)}
.mh-mindmap-node-grab{
  position:absolute;
  top:7px;
  right:7px;
  width:22px;
  height:19px;
  padding:4px;
  display:grid;
  grid-template-columns:repeat(3,2px);
  grid-template-rows:repeat(2,2px);
  gap:3px;
  justify-content:center;
  align-content:center;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#7192af;
  cursor:grab;
  touch-action:none;
}
.mh-mindmap-node-grab:active{cursor:grabbing}
.mh-mindmap-node-grab:hover{background:rgba(83,177,255,.09)}
.mh-mindmap-node-grab span{width:2px;height:2px;border-radius:50%;background:currentColor}
.mh-mindmap-node-title{
  width:calc(100% - 24px);
  height:auto;
  min-height:24px;
  padding:1px 2px 4px;
  border:0;
  border-bottom:1px solid rgba(119,188,248,.11);
  border-radius:0;
  background:transparent;
  color:#eaf6ff;
  outline:none;
  font-family:Georgia,serif;
  font-size:14px;
  font-weight:600;
}
.mh-mindmap-panel .mh-mindmap-node-text{
  display:block!important;
  flex:none;
  width:100%;
  height:72px;
  min-height:72px;
  max-height:120px;
  margin:7px 0 0;
  padding:3px 2px;
  resize:vertical;
  border:0;
  border-radius:0;
  background:transparent;
  color:#b9cde0;
  box-shadow:none;
  outline:none;
  font:inherit;
  font-size:10px;
  line-height:1.5;
}
.mh-mindmap-panel .mh-mindmap-node-text:focus{box-shadow:none}
.mh-mindmap-node-title::placeholder,.mh-mindmap-node-text::placeholder{color:#607d98}

.mh-mindmap-library-wrap{
  flex:0 0 214px;
  min-height:150px;
  margin-top:8px;
  display:flex;
  flex-direction:column;
  border-top:1px solid rgba(118,180,255,.11);
}
.mh-mindmap-library-bar{
  min-height:39px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:6px 1px 5px;
}
.mh-mindmap-library-heading{min-width:0;flex:1;display:flex;align-items:center;gap:7px;color:#cfe6fa;font-size:10px;font-weight:700}
.mh-mindmap-library-heading small{
  min-width:19px;
  height:18px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border:1px solid rgba(118,180,255,.14);
  border-radius:999px;
  background:rgba(61,156,255,.06);
  color:#7393af;
  font-size:8px;
  font-weight:700;
}
.mh-mindmap-back{
  width:28px;
  height:28px;
  flex:none;
  padding:0;
  border:1px solid rgba(118,180,255,.16);
  border-radius:8px;
  background:rgba(61,156,255,.05);
  color:#8fb2d1;
  cursor:pointer;
  transition:.12s ease;
}
.mh-mindmap-back:hover,.mh-mindmap-back.is-drop-root{color:#e7f6ff;border-color:rgba(102,191,255,.55);background:rgba(61,156,255,.16);box-shadow:0 0 0 3px rgba(61,156,255,.05)}
.mh-mindmap-library-heading input{
  width:100%;
  min-width:0;
  height:25px;
  padding:2px 6px;
  border:1px solid transparent;
  border-radius:6px;
  background:rgba(61,156,255,.04);
  color:#d9edff;
  outline:none;
  font-size:10px;
  font-weight:700;
}
.mh-mindmap-library-heading input:focus{border-color:rgba(97,184,255,.35);background:rgba(61,156,255,.08)}
.mh-mindmap-library{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.mh-mindmap-grid{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-rows:max-content;
  gap:7px;
  align-content:start;
  padding:3px 2px 7px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
}
.mh-mindmap-card{
  position:relative;
  aspect-ratio:1/1;
  min-width:0;
  padding:8px 6px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  overflow:hidden;
  border:1px solid rgba(82,162,231,.21);
  border-radius:11px;
  background:linear-gradient(145deg,rgba(20,61,100,.60),rgba(7,25,43,.86));
  color:#bcd6ec;
  cursor:pointer;
  user-select:none;
  transition:transform .12s ease,border-color .12s ease,background .12s ease,box-shadow .12s ease,opacity .12s ease;
}
.mh-mindmap-card:hover{transform:translateY(-1px);border-color:rgba(100,184,255,.42);background:linear-gradient(145deg,rgba(25,73,117,.68),rgba(8,29,50,.91))}
.mh-mindmap-card:focus-visible{outline:2px solid rgba(114,198,255,.72);outline-offset:2px}
.mh-mindmap-card.is-active{border-color:rgba(105,195,255,.68);box-shadow:inset 0 0 0 1px rgba(105,195,255,.11),0 0 18px rgba(42,130,218,.09)}
.mh-mindmap-card.is-dragging{opacity:.35;transform:scale(.94)}
.mh-mindmap-card strong{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#dceeff;font-size:8px;font-weight:700;line-height:1.1}
.mh-mindmap-card small{color:#6685a1;font-size:7px;line-height:1;white-space:nowrap}
.mh-mindmap-card-node{position:relative;width:27px;height:21px;flex:none}
.mh-mindmap-card-node span{position:absolute;border:1px solid rgba(103,190,255,.52);border-radius:4px;background:#0d2a48}
.mh-mindmap-card-node span:nth-child(1){width:12px;height:9px;left:8px;top:6px;background:rgba(61,156,255,.18);border-color:#68baff}
.mh-mindmap-card-node span:nth-child(2){width:7px;height:6px;left:0;top:1px}
.mh-mindmap-card-node span:nth-child(3){width:7px;height:6px;right:0;bottom:0}
.mh-mindmap-card-node:before,.mh-mindmap-card-node:after{content:"";position:absolute;height:1px;background:rgba(103,190,255,.35);transform-origin:left center}
.mh-mindmap-card-node:before{width:10px;left:5px;top:6px;transform:rotate(22deg)}
.mh-mindmap-card-node:after{width:10px;left:14px;top:13px;transform:rotate(24deg)}

.mh-mindmap-folder-card{background:linear-gradient(145deg,rgba(38,94,146,.66),rgba(8,29,50,.93));border-color:rgba(101,182,250,.30)}
.mh-mindmap-folder-stack{position:relative;width:31px;height:24px}
.mh-mindmap-folder-stack i{position:absolute;width:24px;height:18px;border:1px solid rgba(108,194,255,.44);border-radius:6px;background:linear-gradient(145deg,rgba(49,137,220,.25),rgba(12,45,77,.95));box-shadow:0 4px 9px rgba(0,0,0,.18)}
.mh-mindmap-folder-stack i:nth-child(1){left:0;top:0;transform:rotate(-7deg);opacity:.55}
.mh-mindmap-folder-stack i:nth-child(2){right:0;top:1px;transform:rotate(6deg);opacity:.70}
.mh-mindmap-folder-stack i:nth-child(3){left:4px;top:4px;border-color:rgba(114,198,255,.68);background:linear-gradient(145deg,rgba(57,151,240,.34),rgba(10,39,68,.98))}

.mh-mindmap-card.is-merge-target:after,
.mh-mindmap-card.is-folder-target:after{
  content:"Create folder";
  position:absolute;
  inset:17%;
  display:grid;
  place-items:center;
  border:1px dashed rgba(117,207,255,.82);
  border-radius:8px;
  background:rgba(12,46,78,.88);
  color:#e6f6ff;
  font-size:7px;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
  text-align:center;
  box-shadow:0 0 18px rgba(70,166,247,.16);
}
.mh-mindmap-folder-card.is-folder-target:after{content:"Move into folder"}
.mh-mindmap-card.is-drop-before{box-shadow:-4px 0 0 rgba(103,190,255,.68),inset 0 0 0 1px rgba(103,190,255,.08)}
.mh-mindmap-card.is-drop-after{box-shadow:4px 0 0 rgba(103,190,255,.68),inset 0 0 0 1px rgba(103,190,255,.08)}
.mh-mindmap-library-hint{flex:none;padding:5px 2px 0;color:#536f89;font-size:7px;line-height:1.35;text-align:center}
.mh-mindmap-grid-empty{grid-column:1/-1;min-height:70px;display:grid;place-items:center;padding:12px;border:1px dashed rgba(91,169,235,.13);border-radius:10px;color:#5f7b95;font-size:8px;text-align:center}

@media(max-width:1050px){
  .mh-tools-rail{padding-top:64px}
  .mh-tools-menu{top:8px}
  .mh-mindmap-library-wrap{flex-basis:185px}
  .mh-mindmap-empty strong{font-size:21px}
  .mh-mindmap-empty p{font-size:11px}
}
@media(max-height:650px){
  .mh-mindmap-library-wrap{flex-basis:170px;min-height:130px}
  .mh-mindmap-empty-graphic{width:155px;margin-bottom:10px}
  .mh-mindmap-empty{padding:12px}
  .mh-mindmap-empty strong{font-size:20px}
  .mh-mindmap-empty p{margin:8px auto 12px}
}

.mh-mindmap-new-top[hidden]{display:none!important}

/* v1.1.2 — Mind Map graph interactions, scoped zoom and resizable library --- */
.mh-tools-rail{--mh-tool-menu-height:56px}
.mh-tools-menu{gap:8px;padding:6px 7px}
.mh-tool-tab{width:48px;height:44px;border-radius:11px}
.mh-tool-tab svg{width:28px;height:28px;stroke-width:1.65}

/* The canvas gets the remaining height; All mindmaps owns a user-resizable
   fixed slice at the bottom, mirroring the useful Notes divider pattern. */
.mh-mindmap-stage{min-height:190px;flex:1 1 0}
.mh-mindmap-library-wrap{
  position:relative;
  flex:0 0 var(--mh-mindmap-library-height,214px);
  height:var(--mh-mindmap-library-height,214px);
  min-height:135px;
  max-height:calc(100% - 245px);
}
.mh-mindmap-library-resizer{
  position:absolute;
  left:0;
  right:0;
  top:-7px;
  z-index:20;
  height:14px;
  cursor:ns-resize;
  touch-action:none;
}
.mh-mindmap-library-resizer:after{
  content:"";
  position:absolute;
  left:20%;
  right:20%;
  top:6px;
  height:1px;
  background:rgba(113,174,235,.20);
  box-shadow:0 0 0 1px rgba(4,17,30,.25);
  transition:.14s background,.14s box-shadow;
}
.mh-mindmap-library-resizer:hover:after,
.mh-is-resizing-mindmap-library .mh-mindmap-library-resizer:after{
  background:rgba(92,181,255,.72);
  box-shadow:0 0 11px rgba(61,156,255,.28);
}
.mh-is-resizing-mindmap-library,
.mh-is-resizing-mindmap-library *{cursor:ns-resize!important;user-select:none!important}

/* v1.1.3 — crisp infinite-plane camera. Translation lives on an unscaled
   camera while CSS zoom magnifies DOM layout, avoiding transform-raster blur. */
.mh-mindmap-canvas{isolation:isolate;cursor:default}
.mh-mindmap-canvas.is-panning{cursor:grabbing}
.mh-mindmap-canvas.is-panning *{cursor:grabbing!important;user-select:none!important}
.mh-mindmap-camera{
  position:absolute;
  left:50%;
  top:50%;
  z-index:1;
  width:0;
  height:0;
  overflow:visible;
  pointer-events:none;
}
.mh-mindmap-world{
  position:absolute;
  left:0;
  top:0;
  z-index:1;
  width:0;
  height:0;
  overflow:visible;
  pointer-events:none;
  transform:none!important;
  transform-origin:0 0;
  text-rendering:geometricPrecision;
}
.mh-mindmap-links{
  position:absolute;
  left:0;
  top:0;
  z-index:1;
  width:1px;
  height:1px;
  overflow:visible;
  pointer-events:none;
}
.mh-mindmap-links path{
  fill:none;
  stroke:rgba(104,191,255,.44);
  stroke-width:1.25;
  stroke-linecap:round;
  filter:drop-shadow(0 0 3px rgba(65,157,239,.16));
}
.mh-mindmap-world .mh-mindmap-node{pointer-events:auto}
.mh-mindmap-node{z-index:2;padding:12px 13px 12px;width:min(205px,70%)}
.mh-mindmap-node-grab{top:6px;right:6px;z-index:4}
.mh-mindmap-panel .mh-mindmap-node-text{
  height:78px;
  min-height:58px;
  max-height:150px;
  margin:0;
  padding:4px 25px 3px 2px;
  color:#d3e4f3;
  font-size:11px;
  line-height:1.5;
}
.mh-mindmap-node-text::placeholder{color:#607d98}

/* Every node exposes a tiny outgoing connector. The line is deliberately
   understated until hover, then the + becomes an obvious branching action. */
.mh-mindmap-node-branch{
  position:absolute;
  right:-18px;
  top:50%;
  width:18px;
  height:1px;
  background:rgba(107,195,255,.44);
  pointer-events:none;
}
.mh-mindmap-node-add{
  position:absolute;
  right:-34px;
  top:50%;
  z-index:5;
  width:18px;
  height:18px;
  margin-top:-9px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(105,194,255,.48);
  border-radius:50%;
  background:#0a2743;
  color:#bfe8ff;
  box-shadow:0 4px 12px rgba(0,0,0,.26),0 0 10px rgba(54,153,239,.08);
  font-size:13px;
  line-height:1;
  cursor:pointer;
  transition:.13s transform,.13s background,.13s border-color,.13s color;
}
.mh-mindmap-node-add:hover,
.mh-mindmap-node-add:focus-visible{
  transform:scale(1.12);
  border-color:#7acbff;
  background:#113b62;
  color:#fff;
  outline:none;
}

.mh-mindmap-context-menu{
  position:absolute;
  z-index:60;
  min-width:154px;
  padding:5px;
  border:1px solid rgba(105,185,249,.25);
  border-radius:9px;
  background:rgba(5,20,35,.98);
  box-shadow:0 16px 36px rgba(0,0,0,.48),0 0 0 1px rgba(255,255,255,.015);
  backdrop-filter:blur(12px);
}
.mh-mindmap-context-menu[hidden]{display:none!important}
.mh-mindmap-context-menu button{
  width:100%;
  min-height:32px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 9px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#cfe7fb;
  font-size:10px;
  text-align:left;
  cursor:pointer;
}
.mh-mindmap-context-menu button:hover,
.mh-mindmap-context-menu button:focus-visible{background:rgba(61,156,255,.13);color:#fff;outline:none}
.mh-mindmap-context-menu button span:first-child{font-size:15px;color:#71c5ff}

.mh-mindmap-canvas-toolbar{font-size:8px}
.mh-mindmap-canvas-toolbar [data-mindmap-zoom]{color:#8fbce5;font-weight:700}

/* v1.1.2 removes the old title field entirely. */
.mh-mindmap-node-title,.mh-mindmap-new-top{display:none!important}

@media(max-width:1050px){
  .mh-tools-rail{padding-top:70px}
  .mh-mindmap-library-wrap{max-height:calc(100% - 225px)}
}


/* v1.1.4 — direct node manipulation, four-corner resize, colours, delete + undo */
.mh-mindmap-node{
  --mh-node-rgb:74,157,255;
  --mh-node-accent:#4a9dff;
  box-sizing:border-box;
  min-width:0;
  min-height:0;
  max-width:none;
  padding:0;
  overflow:visible;
  background:linear-gradient(145deg,rgba(var(--mh-node-rgb),.17),rgba(8,29,50,.985) 68%);
  border-color:rgba(var(--mh-node-rgb),.58);
  cursor:grab;
}
.mh-mindmap-node.is-moving,.mh-mindmap-node.is-resizing{cursor:grabbing}
.mh-mindmap-node.is-color-slate{--mh-node-rgb:114,132,154;--mh-node-accent:#72849a}
.mh-mindmap-node.is-color-blue{--mh-node-rgb:74,157,255;--mh-node-accent:#4a9dff}
.mh-mindmap-node.is-color-cyan{--mh-node-rgb:67,213,203;--mh-node-accent:#43d5cb}
.mh-mindmap-node.is-color-mint{--mh-node-rgb:105,217,177;--mh-node-accent:#69d9b1}
.mh-mindmap-node.is-color-green{--mh-node-rgb:101,207,120;--mh-node-accent:#65cf78}
.mh-mindmap-node.is-color-lime{--mh-node-rgb:168,207,95;--mh-node-accent:#a8cf5f}
.mh-mindmap-node.is-color-amber{--mh-node-rgb:229,170,77;--mh-node-accent:#e5aa4d}
.mh-mindmap-node.is-color-orange{--mh-node-rgb:237,136,74;--mh-node-accent:#ed884a}
.mh-mindmap-node.is-color-red{--mh-node-rgb:233,99,109;--mh-node-accent:#e9636d}
.mh-mindmap-node.is-color-rose{--mh-node-rgb:228,109,130;--mh-node-accent:#e46d82}
.mh-mindmap-node.is-color-pink{--mh-node-rgb:227,126,197;--mh-node-accent:#e37ec5}
.mh-mindmap-node.is-color-violet{--mh-node-rgb:155,130,231;--mh-node-accent:#9b82e7}

.mh-mindmap-panel .mh-mindmap-node-text{
  position:absolute;
  left:9px;
  top:8px;
  right:34px;
  bottom:8px;
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  max-width:none;
  max-height:none;
  margin:0;
  padding:3px 6px 3px 3px;
  resize:none!important;
  overflow:auto;
  box-sizing:border-box;
  cursor:text;
  scrollbar-width:thin;
  scrollbar-color:rgba(var(--mh-node-rgb),.58) rgba(4,18,31,.58);
}
.mh-mindmap-panel .mh-mindmap-node-text::-webkit-scrollbar{width:7px;height:7px}
.mh-mindmap-panel .mh-mindmap-node-text::-webkit-scrollbar-track{background:rgba(4,18,31,.58);border-radius:999px}
.mh-mindmap-panel .mh-mindmap-node-text::-webkit-scrollbar-thumb{
  border:2px solid rgba(4,18,31,.90);
  border-radius:999px;
  background:rgba(var(--mh-node-rgb),.62);
}
.mh-mindmap-panel .mh-mindmap-node-text::-webkit-scrollbar-thumb:hover{background:rgba(var(--mh-node-rgb),.82)}
.mh-mindmap-panel .mh-mindmap-node-text::-webkit-scrollbar-corner{background:transparent}

.mh-mindmap-node-tools{
  position:absolute;
  z-index:8;
  top:5px;
  right:5px;
  width:24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}
.mh-mindmap-node-grab,
.mh-mindmap-node-color,
.mh-mindmap-node-delete{
  position:relative;
  inset:auto;
  width:22px;
  height:22px;
  flex:none;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#7798b5;
  touch-action:none;
}
.mh-mindmap-node-grab{
  grid-template-columns:repeat(3,2px);
  grid-template-rows:repeat(2,2px);
  gap:3px;
  cursor:grab;
}
.mh-mindmap-node-grab:hover,
.mh-mindmap-node-color:hover{background:rgba(var(--mh-node-rgb),.12);color:#d9efff}
.mh-mindmap-node-delete:hover{background:rgba(233,99,109,.12);color:#ff8b94}
.mh-mindmap-node-color{cursor:pointer}
.mh-mindmap-node-color span{
  width:10px;
  height:10px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.28);
  background:var(--mh-node-accent);
  box-shadow:0 0 0 2px rgba(4,17,30,.72);
}
.mh-mindmap-node-delete{cursor:pointer}
.mh-mindmap-node-delete svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.mh-mindmap-node-color-menu{
  position:absolute;
  z-index:30;
  top:29px;
  right:31px;
  display:grid;
  grid-template-columns:repeat(4,15px);
  gap:6px;
  padding:7px;
  border:1px solid rgba(100,168,235,.24);
  border-radius:9px;
  background:rgba(5,20,35,.985);
  box-shadow:0 14px 32px rgba(0,0,0,.44);
}
.mh-mindmap-node-color-menu[hidden]{display:none!important}
.mh-mindmap-node-color-choice{
  width:15px;height:15px;padding:0;border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  transition:.12s transform,.12s box-shadow;
}
.mh-mindmap-node-color-choice:hover{transform:scale(1.14)}
.mh-mindmap-node-color-choice.is-active{box-shadow:0 0 0 2px #07172a,0 0 0 3px rgba(173,211,248,.70)}
.mh-mindmap-node-color-choice.is-slate{background:#72849a}
.mh-mindmap-node-color-choice.is-blue{background:#4a9dff}
.mh-mindmap-node-color-choice.is-cyan{background:#43d5cb}
.mh-mindmap-node-color-choice.is-mint{background:#69d9b1}
.mh-mindmap-node-color-choice.is-green{background:#65cf78}
.mh-mindmap-node-color-choice.is-lime{background:#a8cf5f}
.mh-mindmap-node-color-choice.is-amber{background:#e5aa4d}
.mh-mindmap-node-color-choice.is-orange{background:#ed884a}
.mh-mindmap-node-color-choice.is-red{background:#e9636d}
.mh-mindmap-node-color-choice.is-rose{background:#e46d82}
.mh-mindmap-node-color-choice.is-pink{background:#e37ec5}
.mh-mindmap-node-color-choice.is-violet{background:#9b82e7}

.mh-mindmap-node-resizer{
  position:absolute;
  z-index:12;
  width:15px;
  height:15px;
  padding:0;
  border:0;
  background:transparent;
  opacity:.18;
  touch-action:none;
}
.mh-mindmap-node-resizer:after{
  content:"";
  position:absolute;
  width:5px;
  height:5px;
  border-color:rgba(var(--mh-node-rgb),.82);
  transition:.12s opacity;
}
.mh-mindmap-node:hover .mh-mindmap-node-resizer,
.mh-mindmap-node.is-resizing .mh-mindmap-node-resizer{opacity:.72}
.mh-mindmap-node-resizer.is-nw{left:-4px;top:-4px;cursor:nwse-resize}
.mh-mindmap-node-resizer.is-ne{right:-4px;top:-4px;cursor:nesw-resize}
.mh-mindmap-node-resizer.is-sw{left:-4px;bottom:-4px;cursor:nesw-resize}
.mh-mindmap-node-resizer.is-se{right:-4px;bottom:-4px;cursor:nwse-resize}
.mh-mindmap-node-resizer.is-nw:after{left:4px;top:4px;border-left:1px solid;border-top:1px solid}
.mh-mindmap-node-resizer.is-ne:after{right:4px;top:4px;border-right:1px solid;border-top:1px solid}
.mh-mindmap-node-resizer.is-sw:after{left:4px;bottom:4px;border-left:1px solid;border-bottom:1px solid}
.mh-mindmap-node-resizer.is-se:after{right:4px;bottom:4px;border-right:1px solid;border-bottom:1px solid}

.mh-mindmap-node-branch{right:-18px}
.mh-mindmap-node-add{right:-34px}
.mh-mindmap-context-menu button[hidden]{display:none!important}
.mh-mindmap-context-menu button.is-danger{color:#e8a0a6}
.mh-mindmap-context-menu button.is-danger span:first-child{color:#ff7f89}
.mh-mindmap-context-menu button.is-danger:hover,
.mh-mindmap-context-menu button.is-danger:focus-visible{background:rgba(233,99,109,.12);color:#ffd7da}


/* v1.1.5 — radial branch ports, quieter branch affordance and invisible corner hit-zones */
.mh-mindmap-node{
  min-width:110px;
  min-height:84px;
}

/* The resize handles remain fully interactive, but they no longer draw corner
   brackets. The browser's diagonal resize cursor is the only visual cue. */
.mh-mindmap-node-resizer,
.mh-mindmap-node:hover .mh-mindmap-node-resizer,
.mh-mindmap-node.is-resizing .mh-mindmap-node-resizer{
  opacity:0!important;
  background:transparent!important;
}
.mh-mindmap-node-resizer:after{
  content:none!important;
  display:none!important;
}

/* One calm branch affordance advances around eight symmetrical ports as
   connected children are created: E, W, S, N, SE, NW, SW, NE. */
.mh-mindmap-node-brancher{
  position:absolute;
  z-index:7;
  width:0;
  height:0;
  opacity:.20;
  pointer-events:none;
  transition:opacity .16s ease,filter .16s ease;
  filter:saturate(.8);
}
.mh-mindmap-node-brancher:hover,
.mh-mindmap-node-brancher:focus-within{
  opacity:1;
  filter:saturate(1.08);
}

.mh-mindmap-node-brancher.is-port-e{left:100%;top:50%}
.mh-mindmap-node-brancher.is-port-w{left:0;top:50%}
.mh-mindmap-node-brancher.is-port-s{left:50%;top:100%}
.mh-mindmap-node-brancher.is-port-n{left:50%;top:0}
.mh-mindmap-node-brancher.is-port-se{left:100%;top:100%}
.mh-mindmap-node-brancher.is-port-nw{left:0;top:0}
.mh-mindmap-node-brancher.is-port-sw{left:0;top:100%}
.mh-mindmap-node-brancher.is-port-ne{left:100%;top:0}

.mh-mindmap-node-brancher .mh-mindmap-node-branch{
  position:absolute;
  left:0;
  top:0;
  right:auto;
  width:27px;
  height:1px;
  margin:0;
  background:linear-gradient(90deg,rgba(var(--mh-node-rgb),.68),rgba(var(--mh-node-rgb),.92));
  transform-origin:0 50%;
  pointer-events:none;
  box-shadow:0 0 7px rgba(var(--mh-node-rgb),.16);
}
.mh-mindmap-node-brancher.is-port-e .mh-mindmap-node-branch{transform:rotate(0deg)}
.mh-mindmap-node-brancher.is-port-w .mh-mindmap-node-branch{transform:rotate(180deg)}
.mh-mindmap-node-brancher.is-port-s .mh-mindmap-node-branch{transform:rotate(90deg)}
.mh-mindmap-node-brancher.is-port-n .mh-mindmap-node-branch{transform:rotate(-90deg)}
.mh-mindmap-node-brancher.is-port-se .mh-mindmap-node-branch{transform:rotate(45deg)}
.mh-mindmap-node-brancher.is-port-nw .mh-mindmap-node-branch{transform:rotate(-135deg)}
.mh-mindmap-node-brancher.is-port-sw .mh-mindmap-node-branch{transform:rotate(135deg)}
.mh-mindmap-node-brancher.is-port-ne .mh-mindmap-node-branch{transform:rotate(-45deg)}

.mh-mindmap-node-brancher .mh-mindmap-node-add{
  position:absolute;
  z-index:8;
  right:auto;
  top:0;
  width:22px;
  height:22px;
  margin:0;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--mh-node-rgb),.72);
  border-radius:6px;
  background:linear-gradient(145deg,rgba(var(--mh-node-rgb),.27),rgba(6,24,41,.98));
  color:#d8f2ff;
  box-shadow:0 5px 14px rgba(0,0,0,.31),0 0 11px rgba(var(--mh-node-rgb),.14);
  transform:translate(-50%,-50%) rotate(45deg);
  transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease;
  pointer-events:auto;
}
.mh-mindmap-node-brancher .mh-mindmap-node-add span{
  display:block;
  transform:rotate(-45deg);
  font-size:14px;
  font-weight:600;
  line-height:1;
}
.mh-mindmap-node-brancher .mh-mindmap-node-add:hover,
.mh-mindmap-node-brancher .mh-mindmap-node-add:focus-visible{
  transform:translate(-50%,-50%) rotate(45deg) scale(1.12);
  border-color:rgba(150,220,255,.95);
  background:linear-gradient(145deg,rgba(var(--mh-node-rgb),.48),rgba(10,43,71,.99));
  box-shadow:0 6px 18px rgba(0,0,0,.34),0 0 15px rgba(var(--mh-node-rgb),.28);
  color:#fff;
  outline:none;
}

.mh-mindmap-node-brancher.is-port-e .mh-mindmap-node-add{left:30px;top:0}
.mh-mindmap-node-brancher.is-port-w .mh-mindmap-node-add{left:-30px;top:0}
.mh-mindmap-node-brancher.is-port-s .mh-mindmap-node-add{left:0;top:30px}
.mh-mindmap-node-brancher.is-port-n .mh-mindmap-node-add{left:0;top:-30px}
.mh-mindmap-node-brancher.is-port-se .mh-mindmap-node-add{left:22px;top:22px}
.mh-mindmap-node-brancher.is-port-nw .mh-mindmap-node-add{left:-22px;top:-22px}
.mh-mindmap-node-brancher.is-port-sw .mh-mindmap-node-add{left:-22px;top:22px}
.mh-mindmap-node-brancher.is-port-ne .mh-mindmap-node-add{left:22px;top:-22px}


/* v1.1.6 — internal node controls, drag-to-connect spline links, library card controls */
.mh-mindmap-node{min-height:110px}
.mh-mindmap-node-tools{
  top:5px;
  right:5px;
  bottom:5px;
  height:auto;
  justify-content:flex-start;
}
.mh-mindmap-node-grab,
.mh-mindmap-node-color,
.mh-mindmap-node-delete,
.mh-mindmap-node-add{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  width:22px!important;
  height:22px!important;
  margin:0;
  padding:0;
  flex:none;
  display:grid;
  place-items:center;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#7798b5;
  transform:none!important;
  box-shadow:none;
  touch-action:none;
  opacity:1;
  pointer-events:auto;
}
.mh-mindmap-node-add{cursor:crosshair;color:#f4fbff;border:1px solid rgba(255,255,255,.24)!important;background:rgba(255,255,255,.055)!important}
.mh-mindmap-node-add span{transform:none!important;font-size:15px!important;font-weight:600!important;line-height:1!important}
.mh-mindmap-node-add:hover,.mh-mindmap-node-add:focus-visible,.mh-mindmap-node-add.is-connecting{
  color:#fff;
  border-color:rgba(255,255,255,.62)!important;
  background:rgba(255,255,255,.14)!important;
  box-shadow:0 0 12px rgba(220,242,255,.14)!important;
  outline:none;
}
.mh-mindmap-node-grab{margin-top:auto;cursor:grab}
.mh-mindmap-node.is-link-source{border-color:rgba(var(--mh-node-rgb),.88);box-shadow:0 0 0 2px rgba(var(--mh-node-rgb),.10),0 18px 38px rgba(0,0,0,.38)}
.mh-mindmap-node.is-connection-target{
  border-color:rgba(126,218,255,.96)!important;
  box-shadow:0 0 0 3px rgba(84,184,255,.16),0 0 24px rgba(61,156,255,.20)!important;
}
.mh-mindmap-node-brancher,.mh-mindmap-node-branch{display:none!important}
.mh-mindmap-links path{fill:none;stroke:rgba(89,174,238,.72);stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.mh-mindmap-links path.is-preview{stroke:rgba(121,210,255,.92);stroke-width:1.7;stroke-dasharray:5 5;filter:drop-shadow(0 0 3px rgba(85,188,255,.28))}

/* Library cards use the same colour family as nodes. */
.mh-mindmap-card{--mh-card-rgb:74,157,255;overflow:visible;background:linear-gradient(145deg,rgba(var(--mh-card-rgb),.20),rgba(7,25,43,.91) 72%);border-color:rgba(var(--mh-card-rgb),.33)}
.mh-mindmap-card:hover{border-color:rgba(var(--mh-card-rgb),.58);background:linear-gradient(145deg,rgba(var(--mh-card-rgb),.27),rgba(8,29,50,.94) 72%)}
.mh-mindmap-card.is-active{border-color:rgba(var(--mh-card-rgb),.72);box-shadow:inset 0 0 0 1px rgba(var(--mh-card-rgb),.12),0 0 18px rgba(var(--mh-card-rgb),.10)}
.mh-mindmap-folder-card{background:linear-gradient(145deg,rgba(var(--mh-card-rgb),.25),rgba(8,29,50,.94) 72%);border-color:rgba(var(--mh-card-rgb),.38)}
.mh-mindmap-card.is-card-color-slate{--mh-card-rgb:114,132,154}.mh-mindmap-card.is-card-color-blue{--mh-card-rgb:74,157,255}.mh-mindmap-card.is-card-color-cyan{--mh-card-rgb:67,213,203}.mh-mindmap-card.is-card-color-mint{--mh-card-rgb:105,217,177}.mh-mindmap-card.is-card-color-green{--mh-card-rgb:101,207,120}.mh-mindmap-card.is-card-color-lime{--mh-card-rgb:168,207,95}.mh-mindmap-card.is-card-color-amber{--mh-card-rgb:229,170,77}.mh-mindmap-card.is-card-color-orange{--mh-card-rgb:237,136,74}.mh-mindmap-card.is-card-color-red{--mh-card-rgb:233,99,109}.mh-mindmap-card.is-card-color-rose{--mh-card-rgb:228,109,130}.mh-mindmap-card.is-card-color-pink{--mh-card-rgb:227,126,197}.mh-mindmap-card.is-card-color-violet{--mh-card-rgb:155,130,231}
.mh-mindmap-card-tools{position:absolute;z-index:12;top:3px;right:3px;width:18px;display:flex;flex-direction:column;align-items:center;gap:2px}
.mh-mindmap-card-color,.mh-mindmap-card-delete{width:17px;height:17px;padding:0;border:0;border-radius:5px;background:rgba(5,20,35,.38);color:#7392ad;display:grid;place-items:center;cursor:pointer}
.mh-mindmap-card-color:hover{background:rgba(var(--mh-card-rgb),.18);color:#e2f4ff}.mh-mindmap-card-delete:hover{background:rgba(233,99,109,.14);color:#ff929a}
.mh-mindmap-card-color span{width:7px;height:7px;border-radius:50%;background:rgb(var(--mh-card-rgb));border:1px solid rgba(255,255,255,.24);box-shadow:0 0 0 1px rgba(4,17,30,.78)}
.mh-mindmap-card-delete svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mh-mindmap-card-color-menu{position:absolute;z-index:40;right:20px;top:0;display:grid;grid-template-columns:repeat(4,12px);gap:4px;padding:6px;border:1px solid rgba(100,168,235,.25);border-radius:8px;background:rgba(5,20,35,.99);box-shadow:0 10px 24px rgba(0,0,0,.42)}
.mh-mindmap-card-color-menu[hidden]{display:none!important}
.mh-mindmap-card-color-choice{width:12px;height:12px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.18)}
.mh-mindmap-card-color-choice:hover{transform:scale(1.14)}.mh-mindmap-card-color-choice.is-active{box-shadow:0 0 0 1px #07172a,0 0 0 2px rgba(173,211,248,.72)}
.mh-mindmap-card-color-choice.is-slate{background:#72849a}.mh-mindmap-card-color-choice.is-blue{background:#4a9dff}.mh-mindmap-card-color-choice.is-cyan{background:#43d5cb}.mh-mindmap-card-color-choice.is-mint{background:#69d9b1}.mh-mindmap-card-color-choice.is-green{background:#65cf78}.mh-mindmap-card-color-choice.is-lime{background:#a8cf5f}.mh-mindmap-card-color-choice.is-amber{background:#e5aa4d}.mh-mindmap-card-color-choice.is-orange{background:#ed884a}.mh-mindmap-card-color-choice.is-red{background:#e9636d}.mh-mindmap-card-color-choice.is-rose{background:#e46d82}.mh-mindmap-card-color-choice.is-pink{background:#e37ec5}.mh-mindmap-card-color-choice.is-violet{background:#9b82e7}


/* v1.1.8 — four-side centre connection ports */
.mh-mindmap-node-add,
.mh-mindmap-node-add:hover,
.mh-mindmap-node-add:focus-visible,
.mh-mindmap-node-add.is-connecting{color:#fff}

/* v1.1.9 — collision-safe node movement + multi-selection */
.mh-mindmap-node.is-selected{
  border-color:rgba(138,216,255,.96)!important;
  box-shadow:0 0 0 2px rgba(83,181,255,.18),0 0 22px rgba(53,157,244,.16),0 16px 34px rgba(0,0,0,.35)!important;
}
.mh-mindmap-node.is-selected.is-moving{
  border-color:#b8e8ff!important;
  box-shadow:0 0 0 3px rgba(91,190,255,.22),0 0 28px rgba(69,169,250,.20),0 20px 42px rgba(0,0,0,.42)!important;
}
.mh-mindmap-selection-box{
  position:absolute;
  z-index:55;
  pointer-events:none;
  box-sizing:border-box;
  border:1px dashed rgba(126,207,255,.90);
  border-radius:5px;
  background:rgba(62,160,239,.085);
  box-shadow:inset 0 0 0 1px rgba(7,31,52,.28),0 0 14px rgba(57,155,239,.08);
}
.mh-mindmap-selection-box[hidden]{display:none!important}
.mh-mindmap-canvas.is-selecting{cursor:crosshair}


/* v1.1.10 — smoother collision sliding, selection deletion, larger library controls */
.mh-mindmap-card-tools{top:5px;right:5px;width:26px;gap:4px}
.mh-mindmap-card-color,.mh-mindmap-card-delete{width:24px;height:24px;border-radius:7px}
.mh-mindmap-card-color span{width:10px;height:10px}
.mh-mindmap-card-delete svg{width:13px;height:13px}
.mh-mindmap-card-color-menu{right:30px}


/* v1.1.11 — pointer-anchored fluid node displacement */


/* v1.1.12 — hierarchical node shades, removable connections and richer library */
/* Three pleasant hierarchy tones per family: root/mother = dark, first child =
   medium, second child (and deeper) = light. */
.mh-mindmap-node.is-color-slate.is-shade-0{--mh-node-rgb:72,88,108;--mh-node-accent:#48586c}
.mh-mindmap-node.is-color-slate.is-shade-1{--mh-node-rgb:114,132,154;--mh-node-accent:#72849a}
.mh-mindmap-node.is-color-slate.is-shade-2{--mh-node-rgb:164,179,196;--mh-node-accent:#a4b3c4}
.mh-mindmap-node.is-color-blue.is-shade-0{--mh-node-rgb:31,88,145;--mh-node-accent:#275f9b}
.mh-mindmap-node.is-color-blue.is-shade-1{--mh-node-rgb:74,157,255;--mh-node-accent:#4a9dff}
.mh-mindmap-node.is-color-blue.is-shade-2{--mh-node-rgb:135,199,255;--mh-node-accent:#87c7ff}
.mh-mindmap-node.is-color-cyan.is-shade-0{--mh-node-rgb:24,108,110;--mh-node-accent:#186c6e}
.mh-mindmap-node.is-color-cyan.is-shade-1{--mh-node-rgb:67,213,203;--mh-node-accent:#43d5cb}
.mh-mindmap-node.is-color-cyan.is-shade-2{--mh-node-rgb:139,238,229;--mh-node-accent:#8beee5}
.mh-mindmap-node.is-color-mint.is-shade-0{--mh-node-rgb:42,112,88;--mh-node-accent:#2a7058}
.mh-mindmap-node.is-color-mint.is-shade-1{--mh-node-rgb:105,217,177;--mh-node-accent:#69d9b1}
.mh-mindmap-node.is-color-mint.is-shade-2{--mh-node-rgb:166,239,211;--mh-node-accent:#a6efd3}
.mh-mindmap-node.is-color-green.is-shade-0{--mh-node-rgb:46,108,59;--mh-node-accent:#2e6c3b}
.mh-mindmap-node.is-color-green.is-shade-1{--mh-node-rgb:101,207,120;--mh-node-accent:#65cf78}
.mh-mindmap-node.is-color-green.is-shade-2{--mh-node-rgb:166,232,177;--mh-node-accent:#a6e8b1}
.mh-mindmap-node.is-color-lime.is-shade-0{--mh-node-rgb:99,121,45;--mh-node-accent:#63792d}
.mh-mindmap-node.is-color-lime.is-shade-1{--mh-node-rgb:168,207,95;--mh-node-accent:#a8cf5f}
.mh-mindmap-node.is-color-lime.is-shade-2{--mh-node-rgb:210,232,157;--mh-node-accent:#d2e89d}
.mh-mindmap-node.is-color-amber.is-shade-0{--mh-node-rgb:132,91,27;--mh-node-accent:#845b1b}
.mh-mindmap-node.is-color-amber.is-shade-1{--mh-node-rgb:229,170,77;--mh-node-accent:#e5aa4d}
.mh-mindmap-node.is-color-amber.is-shade-2{--mh-node-rgb:247,211,143;--mh-node-accent:#f7d38f}
.mh-mindmap-node.is-color-orange.is-shade-0{--mh-node-rgb:143,72,30;--mh-node-accent:#8f481e}
.mh-mindmap-node.is-color-orange.is-shade-1{--mh-node-rgb:237,136,74;--mh-node-accent:#ed884a}
.mh-mindmap-node.is-color-orange.is-shade-2{--mh-node-rgb:250,186,139;--mh-node-accent:#faba8b}
.mh-mindmap-node.is-color-red.is-shade-0{--mh-node-rgb:137,49,59;--mh-node-accent:#89313b}
.mh-mindmap-node.is-color-red.is-shade-1{--mh-node-rgb:233,99,109;--mh-node-accent:#e9636d}
.mh-mindmap-node.is-color-red.is-shade-2{--mh-node-rgb:248,160,167;--mh-node-accent:#f8a0a7}
.mh-mindmap-node.is-color-rose.is-shade-0{--mh-node-rgb:132,52,70;--mh-node-accent:#843446}
.mh-mindmap-node.is-color-rose.is-shade-1{--mh-node-rgb:228,109,130;--mh-node-accent:#e46d82}
.mh-mindmap-node.is-color-rose.is-shade-2{--mh-node-rgb:244,169,184;--mh-node-accent:#f4a9b8}
.mh-mindmap-node.is-color-pink.is-shade-0{--mh-node-rgb:129,62,112;--mh-node-accent:#813e70}
.mh-mindmap-node.is-color-pink.is-shade-1{--mh-node-rgb:227,126,197;--mh-node-accent:#e37ec5}
.mh-mindmap-node.is-color-pink.is-shade-2{--mh-node-rgb:243,183,225;--mh-node-accent:#f3b7e1}
.mh-mindmap-node.is-color-violet.is-shade-0{--mh-node-rgb:79,64,134;--mh-node-accent:#4f4086}
.mh-mindmap-node.is-color-violet.is-shade-1{--mh-node-rgb:155,130,231;--mh-node-accent:#9b82e7}
.mh-mindmap-node.is-color-violet.is-shade-2{--mh-node-rgb:201,185,247;--mh-node-accent:#c9b9f7}

/* Remove-connection control lives at the mathematical midpoint of each spline. */
.mh-mindmap-links .mh-mindmap-edge-delete{pointer-events:all;cursor:pointer;opacity:.25;transition:opacity .14s ease;outline:none}
.mh-mindmap-links .mh-mindmap-edge-delete:hover,
.mh-mindmap-links .mh-mindmap-edge-delete:focus{opacity:1}
.mh-mindmap-links .mh-mindmap-edge-delete circle{fill:rgba(5,20,35,.96);stroke:rgba(218,240,255,.58);stroke-width:1;vector-effect:non-scaling-stroke;filter:drop-shadow(0 2px 4px rgba(0,0,0,.28))}
.mh-mindmap-links .mh-mindmap-edge-delete path{fill:none;stroke:#f1f8ff;stroke-width:1.25;stroke-linecap:round;vector-effect:non-scaling-stroke;filter:none}

/* Library density is user-controlled: fewer columns naturally make every square
   card larger while keeping the same grid ordering. */
.mh-mindmap-grid{grid-template-columns:repeat(var(--mh-mindmap-columns,4),minmax(0,1fr));scrollbar-width:thin;scrollbar-color:rgba(82,157,221,.55) rgba(4,18,31,.42)}
.mh-mindmap-grid::-webkit-scrollbar{width:8px}
.mh-mindmap-grid::-webkit-scrollbar-track{background:rgba(4,18,31,.42);border-radius:999px}
.mh-mindmap-grid::-webkit-scrollbar-thumb{border:2px solid rgba(4,18,31,.84);border-radius:999px;background:rgba(82,157,221,.58)}
.mh-mindmap-grid::-webkit-scrollbar-thumb:hover{background:rgba(105,190,255,.78)}
.mh-mindmap-grid::-webkit-scrollbar-corner{background:transparent}

.mh-mindmap-card{padding:10px 8px 8px;gap:7px}
.mh-mindmap-card-name{
  width:calc(100% - 8px);min-width:0;height:22px;padding:2px 4px;border:1px solid transparent;border-radius:5px;
  background:transparent;color:#dceeff;outline:none;text-align:center;font-size:10px;font-weight:750;line-height:1.15;
  text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:text
}
.mh-mindmap-folder-card .mh-mindmap-card-name{font-size:10.5px;color:#edf7ff}
.mh-mindmap-card-name:hover{background:rgba(255,255,255,.025)}
.mh-mindmap-card-name:focus{border-color:rgba(var(--mh-card-rgb),.48);background:rgba(4,18,31,.52);box-shadow:0 0 0 2px rgba(var(--mh-card-rgb),.08)}

/* Clear, larger folder silhouette. */
.mh-mindmap-folder-stack{position:relative;width:50px;height:38px;flex:none;margin-top:2px}
.mh-mindmap-folder-stack i{display:none}
.mh-mindmap-folder-stack:before{
  content:"";position:absolute;left:4px;top:7px;width:21px;height:9px;border-radius:6px 6px 0 0;
  border:1px solid rgba(var(--mh-card-rgb),.70);border-bottom:0;background:rgba(var(--mh-card-rgb),.25)
}
.mh-mindmap-folder-stack:after{
  content:"";position:absolute;left:2px;right:2px;top:12px;bottom:2px;border:1px solid rgba(var(--mh-card-rgb),.72);
  border-radius:7px;background:linear-gradient(155deg,rgba(var(--mh-card-rgb),.34),rgba(7,25,43,.90));
  box-shadow:0 6px 13px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.04)
}

/* Let the visual preview and typography grow with the card when the user chooses
   3, 2 or 1 item per row. */
.mh-mindmap-grid[data-columns="3"] .mh-mindmap-card-name{font-size:11px;height:24px}
.mh-mindmap-grid[data-columns="3"] .mh-mindmap-card-node{transform:scale(1.16)}
.mh-mindmap-grid[data-columns="3"] .mh-mindmap-folder-stack{transform:scale(1.12)}
.mh-mindmap-grid[data-columns="2"] .mh-mindmap-card-name{font-size:12px;height:27px}
.mh-mindmap-grid[data-columns="2"] .mh-mindmap-card small{font-size:8px}
.mh-mindmap-grid[data-columns="2"] .mh-mindmap-card-node{transform:scale(1.42)}
.mh-mindmap-grid[data-columns="2"] .mh-mindmap-folder-stack{transform:scale(1.34)}
.mh-mindmap-grid[data-columns="1"] .mh-mindmap-card-name{font-size:14px;height:31px}
.mh-mindmap-grid[data-columns="1"] .mh-mindmap-card small{font-size:9px}
.mh-mindmap-grid[data-columns="1"] .mh-mindmap-card-node{transform:scale(1.75)}
.mh-mindmap-grid[data-columns="1"] .mh-mindmap-folder-stack{transform:scale(1.62)}

.mh-mindmap-density{
  flex:none;min-height:34px;margin-top:5px;padding:6px 4px 1px;display:grid;grid-template-columns:18px minmax(70px,1fr) 52px;
  align-items:center;gap:8px;border-top:1px solid rgba(118,180,255,.08);color:#65829d;font-size:7.5px;font-weight:700
}
.mh-mindmap-density-icon{color:#8bb5d7;font-size:14px;line-height:1}
.mh-mindmap-density input[type="range"]{width:100%;height:16px;margin:0;direction:rtl;accent-color:#4a9dff;cursor:pointer}
.mh-mindmap-density [data-mindmap-grid-columns-label]{text-align:right;white-space:nowrap;color:#7998b4}


/* v1.1.13 — library context menus/pinning, aligned cards and stronger hierarchy fills */
/* Use the hierarchy colour on the actual panel surface, not only its border/accent. */
.mh-mindmap-node{
  background:linear-gradient(145deg,rgba(var(--mh-node-rgb),var(--mh-node-fill-a,.30)),rgba(var(--mh-node-rgb),var(--mh-node-fill-b,.105)) 48%,rgba(6,22,39,.985) 88%);
}
.mh-mindmap-node.is-shade-0{--mh-node-fill-a:.38;--mh-node-fill-b:.15}
.mh-mindmap-node.is-shade-1{--mh-node-fill-a:.31;--mh-node-fill-b:.115}
.mh-mindmap-node.is-shade-2{--mh-node-fill-a:.34;--mh-node-fill-b:.12}

/* A fixed visual row gives maps and folders exactly the same title baseline. */
.mh-mindmap-card{justify-content:flex-start;padding-top:9px}
.mh-mindmap-card-visual{height:49px;width:100%;display:grid;place-items:center;flex:none;margin-top:3px}
.mh-mindmap-card-name{flex:none;margin:0;height:24px;font-size:11.5px;line-height:18px}
.mh-mindmap-folder-card .mh-mindmap-card-name{font-size:12px}
.mh-mindmap-card small{margin-top:0}
.mh-mindmap-folder-stack{width:59px;height:44px;margin:0}
.mh-mindmap-folder-stack:before{left:6px;top:5px;width:26px;height:11px}
.mh-mindmap-folder-stack:after{left:2px;right:2px;top:11px;bottom:1px;border-radius:8px}
.mh-mindmap-card-node{margin:0}

/* Pin sits independently in the upper-left corner, matching the Notes pattern. */
.mh-mindmap-card-pin{
  position:absolute;z-index:14;left:5px;top:5px;width:25px;height:25px;padding:0;border:0;border-radius:7px;
  display:grid;place-items:center;background:rgba(5,20,35,.36);color:#6f8ea9;font-size:15px;line-height:1;cursor:pointer;
  transition:background .12s ease,color .12s ease,transform .12s ease
}
.mh-mindmap-card-pin:hover{background:rgba(var(--mh-card-rgb),.16);color:#e8f6ff;transform:scale(1.04)}
.mh-mindmap-card-pin.is-active{color:#ffd36c;text-shadow:0 0 10px rgba(255,195,69,.28)}
.mh-mindmap-card.is-pinned{box-shadow:inset 0 0 0 1px rgba(var(--mh-card-rgb),.08),0 0 15px rgba(var(--mh-card-rgb),.065)}

/* The library has its own contextual menu; submenu opens as a compact side panel. */
.mh-mindmap-library-context-menu{z-index:90;min-width:174px}
.mh-mindmap-context-submenu-wrap{position:relative}
.mh-mindmap-context-submenu-wrap>[data-mindmap-library-context-sort]{position:relative}
.mh-mindmap-context-submenu-wrap .mh-context-arrow{margin-left:auto!important;color:#7798b5!important;font-size:16px!important}
.mh-mindmap-context-submenu{left:calc(100% + 6px);top:-5px;min-width:175px;z-index:95}
.mh-mindmap-library-context-menu.is-submenu-left .mh-mindmap-context-submenu{left:auto;right:calc(100% + 6px)}
.mh-mindmap-context-submenu button.is-active{background:rgba(61,156,255,.15);color:#fff}
.mh-mindmap-context-submenu button.is-active:after{content:"✓";margin-left:auto;color:#79c9ff;font-size:10px}
.mh-mindmap-library{position:relative;overflow:visible}

/* Scale the fixed visual slot together with density so names stay aligned at every setting. */
.mh-mindmap-grid[data-columns="3"] .mh-mindmap-card-visual{height:57px}
.mh-mindmap-grid[data-columns="2"] .mh-mindmap-card-visual{height:72px}
.mh-mindmap-grid[data-columns="1"] .mh-mindmap-card-visual{height:92px}
.mh-mindmap-grid[data-columns="3"] .mh-mindmap-folder-stack{transform:scale(1.15)}
.mh-mindmap-grid[data-columns="2"] .mh-mindmap-folder-stack{transform:scale(1.38)}
.mh-mindmap-grid[data-columns="1"] .mh-mindmap-folder-stack{transform:scale(1.72)}

/* v1.1.14 — Mind Map fit-view, recovery, Quick Notes import and library polish */
/* Library names deliberately sit in a shared lower title zone. */
.mh-mindmap-card{padding-bottom:10px}
.mh-mindmap-card-name{margin-top:auto!important;margin-bottom:0!important}
.mh-mindmap-card small{margin-top:1px!important;margin-bottom:1px}

/* Make hierarchy depth obvious on the panel surface: dark root -> brighter child -> light child. */
.mh-mindmap-node.is-shade-0{--mh-node-fill-a:.42;--mh-node-fill-b:.18}
.mh-mindmap-node.is-shade-1{--mh-node-fill-a:.58;--mh-node-fill-b:.30}
.mh-mindmap-node.is-shade-2{--mh-node-fill-a:.72;--mh-node-fill-b:.40}
.mh-mindmap-node{
  background:linear-gradient(145deg,
    rgba(var(--mh-node-rgb),var(--mh-node-fill-a,.42)) 0%,
    rgba(var(--mh-node-rgb),var(--mh-node-fill-b,.18)) 58%,
    rgba(5,19,34,.97) 100%);
}
.mh-mindmap-node.is-shade-1{box-shadow:inset 0 0 22px rgba(var(--mh-node-rgb),.055),0 5px 14px rgba(0,0,0,.31),0 0 12px rgba(var(--mh-node-rgb),.14)}
.mh-mindmap-node.is-shade-2{box-shadow:inset 0 0 28px rgba(var(--mh-node-rgb),.095),0 5px 14px rgba(0,0,0,.29),0 0 14px rgba(var(--mh-node-rgb),.16)}

/* Deleted toggle occupies the same compact upper-right library slot as Quick Notes. */
.mh-mindmap-deleted-toggle{
  position:relative;flex:none;width:28px;height:28px;padding:0;border:0;border-radius:7px;
  display:grid;place-items:center;background:transparent;color:#5f7d99;
  transition:.14s color,.14s background,.14s transform
}
.mh-mindmap-deleted-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mh-mindmap-deleted-toggle:hover,.mh-mindmap-deleted-toggle.is-active{color:#fff;background:rgba(73,152,235,.09)}
.mh-mindmap-deleted-toggle:disabled{opacity:.28;cursor:default;background:transparent}
.mh-mindmap-deleted-toggle [data-mindmap-deleted-count]{
  position:absolute;right:-2px;top:-3px;min-width:13px;height:13px;padding:0 3px;border-radius:8px;
  display:grid;place-items:center;background:#163d63;border:1px solid rgba(113,184,239,.3);
  color:#beddff;font-size:7px;line-height:1;font-weight:700
}
.mh-mindmap-deleted-toggle [data-mindmap-deleted-count][hidden]{display:none!important}
.mh-mindmap-deleted-card{cursor:default;opacity:.83;filter:saturate(.72)}
.mh-mindmap-deleted-card:hover{opacity:1;filter:none;transform:none}
.mh-mindmap-deleted-tools{position:absolute;z-index:14;top:5px;right:5px;width:26px;display:flex;flex-direction:column;gap:4px}
.mh-mindmap-deleted-tools button{width:24px;height:24px;padding:0;border:0;border-radius:7px;display:grid;place-items:center;background:rgba(5,20,35,.40);color:#8fb5d5;font-size:15px;line-height:1;cursor:pointer}
.mh-mindmap-deleted-tools button:hover{background:rgba(61,156,255,.14);color:#fff}
.mh-mindmap-deleted-tools button.is-danger{color:#c98289}
.mh-mindmap-deleted-tools button.is-danger:hover{background:rgba(233,99,109,.14);color:#ff9aa2}
.mh-mindmap-deleted-tools svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Quick Notes -> Mind Map picker. */
.mh-mindmap-import-notes{
  position:absolute;z-index:88;width:min(292px,calc(100% - 16px));max-height:min(390px,calc(100% - 16px));
  padding:9px;border:1px solid rgba(104,181,242,.30);border-radius:11px;
  background:rgba(5,20,35,.985);box-shadow:0 18px 42px rgba(0,0,0,.48);color:#d9edff
}
.mh-mindmap-import-notes[hidden]{display:none!important}
.mh-mindmap-import-head{height:27px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 1px 6px}
.mh-mindmap-import-head strong{font-size:10px;letter-spacing:.01em;color:#eef8ff}
.mh-mindmap-import-head button{width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:#7897b2;font-size:17px;line-height:1}
.mh-mindmap-import-head button:hover{background:rgba(61,156,255,.10);color:#fff}
.mh-mindmap-import-notes input[type="search"]{
  width:100%;height:31px;margin:0 0 7px;padding:5px 9px;border:1px solid rgba(107,177,234,.20);border-radius:8px;
  outline:none;background:#071b2f;color:#eaf7ff;font-size:9px
}
.mh-mindmap-import-notes input[type="search"]:focus{border-color:rgba(99,190,255,.55);box-shadow:0 0 0 2px rgba(61,156,255,.08)}
.mh-mindmap-import-list{max-height:294px;display:grid;gap:4px;overflow:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:rgba(82,157,221,.58) rgba(4,18,31,.42)}
.mh-mindmap-import-list::-webkit-scrollbar{width:7px}.mh-mindmap-import-list::-webkit-scrollbar-track{background:rgba(4,18,31,.42);border-radius:999px}.mh-mindmap-import-list::-webkit-scrollbar-thumb{border:2px solid rgba(4,18,31,.84);border-radius:999px;background:rgba(82,157,221,.60)}
.mh-mindmap-import-list button{min-width:0;padding:8px 9px;border:1px solid rgba(112,179,232,.12);border-radius:8px;background:rgba(12,40,66,.62);text-align:left;color:#cde7fb;cursor:pointer}
.mh-mindmap-import-list button:hover,.mh-mindmap-import-list button:focus-visible{border-color:rgba(103,190,255,.42);background:rgba(24,69,107,.78);outline:none}
.mh-mindmap-import-list button strong,.mh-mindmap-import-list button small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mh-mindmap-import-list button strong{font-size:9px;color:#edf8ff}.mh-mindmap-import-list button small{margin-top:3px;font-size:7.5px;color:#7897b2}
.mh-mindmap-import-empty{padding:14px 8px;text-align:center;color:#6f8da8;font-size:9px}.mh-mindmap-import-empty.is-error{color:#d9979d}

/* v1.1.15 — three-line library names, bright-to-dark hierarchy, library multi-select */
/* Put map/folder names back directly beneath their visual and let long names wrap
   naturally for up to three lines instead of escaping horizontally. */
.mh-mindmap-card{padding-bottom:8px;gap:5px}
.mh-mindmap-card-visual{height:42px;margin-top:3px}
.mh-mindmap-card-name{
  flex:none!important;margin:0!important;width:calc(100% - 8px);height:36px!important;min-height:36px;max-height:36px;
  padding:2px 4px;border:1px solid transparent;border-radius:5px;background:transparent;color:#dceeff;outline:none;
  text-align:center;font-family:inherit;font-size:10.5px;font-weight:750;line-height:11px;white-space:pre-wrap;
  overflow:hidden;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;resize:none;box-sizing:border-box
}
textarea.mh-mindmap-card-name{scrollbar-width:none}
textarea.mh-mindmap-card-name::-webkit-scrollbar{display:none}
div.mh-mindmap-card-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.mh-mindmap-folder-card .mh-mindmap-card-name{font-size:11px;line-height:11.5px}
.mh-mindmap-card small{margin:0!important}
.mh-mindmap-grid[data-columns="3"] .mh-mindmap-card-visual{height:50px}
.mh-mindmap-grid[data-columns="3"] .mh-mindmap-card-name{height:39px!important;min-height:39px;max-height:39px;font-size:11px;line-height:12px}
.mh-mindmap-grid[data-columns="2"] .mh-mindmap-card-visual{height:65px}
.mh-mindmap-grid[data-columns="2"] .mh-mindmap-card-name{height:45px!important;min-height:45px;max-height:45px;font-size:12px;line-height:13.5px}
.mh-mindmap-grid[data-columns="1"] .mh-mindmap-card-visual{height:84px}
.mh-mindmap-grid[data-columns="1"] .mh-mindmap-card-name{height:54px!important;min-height:54px;max-height:54px;font-size:14px;line-height:16px}

/* Reverse hierarchy emphasis: root/mother is the brightest member of the colour
   family, first child is medium, second child and deeper are the darkest. */
.mh-mindmap-node.is-color-slate.is-shade-0{--mh-node-rgb:164,179,196;--mh-node-accent:#a4b3c4}
.mh-mindmap-node.is-color-slate.is-shade-1{--mh-node-rgb:114,132,154;--mh-node-accent:#72849a}
.mh-mindmap-node.is-color-slate.is-shade-2{--mh-node-rgb:72,88,108;--mh-node-accent:#48586c}
.mh-mindmap-node.is-color-blue.is-shade-0{--mh-node-rgb:135,199,255;--mh-node-accent:#87c7ff}
.mh-mindmap-node.is-color-blue.is-shade-1{--mh-node-rgb:74,157,255;--mh-node-accent:#4a9dff}
.mh-mindmap-node.is-color-blue.is-shade-2{--mh-node-rgb:31,88,145;--mh-node-accent:#275f9b}
.mh-mindmap-node.is-color-cyan.is-shade-0{--mh-node-rgb:139,238,229;--mh-node-accent:#8beee5}
.mh-mindmap-node.is-color-cyan.is-shade-1{--mh-node-rgb:67,213,203;--mh-node-accent:#43d5cb}
.mh-mindmap-node.is-color-cyan.is-shade-2{--mh-node-rgb:24,108,110;--mh-node-accent:#186c6e}
.mh-mindmap-node.is-color-mint.is-shade-0{--mh-node-rgb:166,239,211;--mh-node-accent:#a6efd3}
.mh-mindmap-node.is-color-mint.is-shade-1{--mh-node-rgb:105,217,177;--mh-node-accent:#69d9b1}
.mh-mindmap-node.is-color-mint.is-shade-2{--mh-node-rgb:42,112,88;--mh-node-accent:#2a7058}
.mh-mindmap-node.is-color-green.is-shade-0{--mh-node-rgb:166,232,177;--mh-node-accent:#a6e8b1}
.mh-mindmap-node.is-color-green.is-shade-1{--mh-node-rgb:101,207,120;--mh-node-accent:#65cf78}
.mh-mindmap-node.is-color-green.is-shade-2{--mh-node-rgb:46,108,59;--mh-node-accent:#2e6c3b}
.mh-mindmap-node.is-color-lime.is-shade-0{--mh-node-rgb:210,232,157;--mh-node-accent:#d2e89d}
.mh-mindmap-node.is-color-lime.is-shade-1{--mh-node-rgb:168,207,95;--mh-node-accent:#a8cf5f}
.mh-mindmap-node.is-color-lime.is-shade-2{--mh-node-rgb:99,121,45;--mh-node-accent:#63792d}
.mh-mindmap-node.is-color-amber.is-shade-0{--mh-node-rgb:247,211,143;--mh-node-accent:#f7d38f}
.mh-mindmap-node.is-color-amber.is-shade-1{--mh-node-rgb:229,170,77;--mh-node-accent:#e5aa4d}
.mh-mindmap-node.is-color-amber.is-shade-2{--mh-node-rgb:132,91,27;--mh-node-accent:#845b1b}
.mh-mindmap-node.is-color-orange.is-shade-0{--mh-node-rgb:250,186,139;--mh-node-accent:#faba8b}
.mh-mindmap-node.is-color-orange.is-shade-1{--mh-node-rgb:237,136,74;--mh-node-accent:#ed884a}
.mh-mindmap-node.is-color-orange.is-shade-2{--mh-node-rgb:143,72,30;--mh-node-accent:#8f481e}
.mh-mindmap-node.is-color-red.is-shade-0{--mh-node-rgb:248,160,167;--mh-node-accent:#f8a0a7}
.mh-mindmap-node.is-color-red.is-shade-1{--mh-node-rgb:233,99,109;--mh-node-accent:#e9636d}
.mh-mindmap-node.is-color-red.is-shade-2{--mh-node-rgb:137,49,59;--mh-node-accent:#89313b}
.mh-mindmap-node.is-color-rose.is-shade-0{--mh-node-rgb:244,169,184;--mh-node-accent:#f4a9b8}
.mh-mindmap-node.is-color-rose.is-shade-1{--mh-node-rgb:228,109,130;--mh-node-accent:#e46d82}
.mh-mindmap-node.is-color-rose.is-shade-2{--mh-node-rgb:132,52,70;--mh-node-accent:#843446}
.mh-mindmap-node.is-color-pink.is-shade-0{--mh-node-rgb:243,183,225;--mh-node-accent:#f3b7e1}
.mh-mindmap-node.is-color-pink.is-shade-1{--mh-node-rgb:227,126,197;--mh-node-accent:#e37ec5}
.mh-mindmap-node.is-color-pink.is-shade-2{--mh-node-rgb:129,62,112;--mh-node-accent:#813e70}
.mh-mindmap-node.is-color-violet.is-shade-0{--mh-node-rgb:201,185,247;--mh-node-accent:#c9b9f7}
.mh-mindmap-node.is-color-violet.is-shade-1{--mh-node-rgb:155,130,231;--mh-node-accent:#9b82e7}
.mh-mindmap-node.is-color-violet.is-shade-2{--mh-node-rgb:79,64,134;--mh-node-accent:#4f4086}
.mh-mindmap-node.is-shade-0{--mh-node-fill-a:.72;--mh-node-fill-b:.40;box-shadow:inset 0 0 28px rgba(var(--mh-node-rgb),.095),0 5px 14px rgba(0,0,0,.29),0 0 15px rgba(var(--mh-node-rgb),.17)}
.mh-mindmap-node.is-shade-1{--mh-node-fill-a:.58;--mh-node-fill-b:.30;box-shadow:inset 0 0 22px rgba(var(--mh-node-rgb),.055),0 5px 14px rgba(0,0,0,.31),0 0 12px rgba(var(--mh-node-rgb),.14)}
.mh-mindmap-node.is-shade-2{--mh-node-fill-a:.42;--mh-node-fill-b:.18;box-shadow:0 5px 14px rgba(0,0,0,.34),0 0 8px rgba(var(--mh-node-rgb),.09)}

/* All Mindmaps marquee + selected-card state. */
.mh-mindmap-card.is-library-selected{
  border-color:rgba(139,218,255,.98)!important;
  box-shadow:0 0 0 2px rgba(83,181,255,.20),0 0 20px rgba(53,157,244,.15),inset 0 0 0 1px rgba(220,244,255,.06)!important
}
.mh-mindmap-card.is-library-selected:before{
  content:"✓";position:absolute;z-index:18;left:6px;bottom:6px;width:17px;height:17px;border-radius:50%;
  display:grid;place-items:center;background:#4aa7ea;border:1px solid rgba(225,247,255,.75);color:#fff;font-size:10px;font-weight:900;
  box-shadow:0 2px 8px rgba(0,0,0,.28)
}
.mh-mindmap-grid.is-selecting{cursor:crosshair;user-select:none}
.mh-mindmap-library-selection-box{
  position:fixed;z-index:99999;pointer-events:none;box-sizing:border-box;border:1px dashed rgba(126,207,255,.92);border-radius:6px;
  background:rgba(62,160,239,.09);box-shadow:inset 0 0 0 1px rgba(7,31,52,.28),0 0 14px rgba(57,155,239,.08)
}
.mh-mindmap-library-selection-box[hidden]{display:none!important}

/* Deleted selection mirrors the Notes recovery workflow. */
.mh-mindmap-deleted-select-all{
  flex:none;border:0;background:transparent;color:#5f7d99;font-size:9px;font-weight:700;padding:5px 4px;border-radius:5px;letter-spacing:.02em;cursor:pointer
}
.mh-mindmap-deleted-select-all:hover,.mh-mindmap-deleted-select-all.is-active{color:#fff;background:rgba(73,152,235,.08)}
.mh-mindmap-deleted-select-all:disabled{opacity:.3;cursor:default}
.mh-mindmap-deleted-bulk{
  flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:31px;padding:3px 4px 5px;
  border-bottom:1px solid rgba(118,180,255,.08);color:#7995af;font-size:9px
}
.mh-mindmap-deleted-bulk[hidden]{display:none!important}
.mh-mindmap-deleted-bulk>div{display:flex;align-items:center;gap:3px}
.mh-mindmap-deleted-bulk button{width:24px;height:24px;padding:0;border:0;border-radius:6px;display:grid;place-items:center;background:transparent;color:#6f91ae;font-size:15px;cursor:pointer}
.mh-mindmap-deleted-bulk button:hover{color:#fff;background:rgba(61,156,255,.10)}
.mh-mindmap-deleted-bulk button.is-danger{color:#c98289}
.mh-mindmap-deleted-bulk button.is-danger:hover{color:#ff929a;background:rgba(233,99,109,.12)}
.mh-mindmap-deleted-bulk svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* The sidebar has an older broad textarea rule for Quick Notes. Override it
   specifically for library-name editors so the three-line card layout wins. */
.mh-notes-rail textarea.mh-mindmap-card-name{
  flex:none!important;width:calc(100% - 8px)!important;height:36px!important;min-height:36px!important;max-height:36px!important;
  margin:0!important;padding:2px 4px!important;resize:none!important;border:1px solid transparent!important;border-radius:5px!important;
  background:transparent!important;color:#dceeff!important;box-shadow:none!important;outline:none!important;text-align:center!important;
  font-family:inherit!important;font-size:10.5px!important;font-weight:750!important;line-height:11px!important;white-space:pre-wrap!important;
  overflow:hidden!important;overflow-wrap:anywhere!important;word-break:break-word!important
}
.mh-notes-rail textarea.mh-mindmap-card-name:hover{background:rgba(255,255,255,.025)!important}
.mh-notes-rail textarea.mh-mindmap-card-name:focus{border-color:rgba(var(--mh-card-rgb),.48)!important;background:rgba(4,18,31,.52)!important;box-shadow:0 0 0 2px rgba(var(--mh-card-rgb),.08)!important}
.mh-mindmap-grid[data-columns="3"] .mh-notes-rail textarea.mh-mindmap-card-name,
.mh-notes-rail .mh-mindmap-grid[data-columns="3"] textarea.mh-mindmap-card-name{height:39px!important;min-height:39px!important;max-height:39px!important;font-size:11px!important;line-height:12px!important}
.mh-mindmap-grid[data-columns="2"] .mh-notes-rail textarea.mh-mindmap-card-name,
.mh-notes-rail .mh-mindmap-grid[data-columns="2"] textarea.mh-mindmap-card-name{height:45px!important;min-height:45px!important;max-height:45px!important;font-size:12px!important;line-height:13.5px!important}
.mh-mindmap-grid[data-columns="1"] .mh-notes-rail textarea.mh-mindmap-card-name,
.mh-notes-rail .mh-mindmap-grid[data-columns="1"] textarea.mh-mindmap-card-name{height:54px!important;min-height:54px!important;max-height:54px!important;font-size:14px!important;line-height:16px!important}


/* v1.1.16 — interaction polish: native text selection, reliable marquee, full-height library names */
.mh-mindmap-canvas:focus,.mh-mindmap-canvas:focus-visible{outline:none!important;box-shadow:none!important}
.mh-mindmap-node textarea[data-mindmap-node-text]{user-select:text;-webkit-user-select:text;cursor:text}
/* Let names consume the remaining card height instead of clamping to three lines. */
.mh-mindmap-card-name{height:auto!important;min-height:0!important;max-height:none!important;flex:1 1 auto!important;overflow:hidden!important;white-space:pre-wrap!important;overflow-wrap:anywhere;word-break:break-word}
div.mh-mindmap-card-name{display:block!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important}
textarea.mh-mindmap-card-name{resize:none!important}

.mh-note-title-inline{width:100%;min-width:0;padding:1px 3px;border:1px solid transparent;border-radius:4px;background:transparent;color:inherit;font:inherit;font-weight:700;outline:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-note-title-inline[readonly]{cursor:text}
.mh-note-title-inline.is-editing,.mh-note-title-inline:focus{border-color:rgba(91,174,240,.38);background:rgba(4,18,31,.48);box-shadow:0 0 0 2px rgba(74,157,255,.07)}
.mh-note-title-inline::placeholder{color:#7890a6;font-weight:600}

/* v1.1.16 final — allow active map/folder names to use every remaining line
   down to the metadata row at every library density. This deliberately outranks
   the older three-line/density rules above. */
.mh-notes-rail .mh-mindmap-grid[data-columns] textarea.mh-mindmap-card-name{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}


/* v1.1.17 — easier node grabbing, native card-name selection/autogrow */
/* Invisible drag rails increase grab tolerance without changing the visible node border. */
.mh-mindmap-node-drag-edge{
  position:absolute;
  z-index:6;
  display:block;
  background:transparent;
  cursor:grab;
  touch-action:none;
}
.mh-mindmap-node-drag-edge.is-top{left:13px;right:13px;top:-3px;height:15px}
.mh-mindmap-node-drag-edge.is-bottom{left:13px;right:13px;bottom:-3px;height:15px}
.mh-mindmap-node-drag-edge.is-left{left:-3px;top:13px;bottom:13px;width:15px}
.mh-mindmap-node-drag-edge.is-right{right:-3px;top:13px;bottom:13px;width:15px}
.mh-mindmap-node.is-moving .mh-mindmap-node-drag-edge{cursor:grabbing}

/* Make the six-dot move target easier to catch while keeping the dots themselves unchanged. */
.mh-mindmap-node-grab{width:28px!important;height:27px!important;margin-right:-3px!important;margin-bottom:-3px!important}

/* Library names behave like real text fields: one line at first, growing only as
   wrapping requires, up to the remaining card height. */
.mh-notes-rail .mh-mindmap-grid[data-columns] textarea.mh-mindmap-card-name,
.mh-mindmap-card-name{
  flex:0 0 auto!important;
  min-height:20px!important;
  height:20px!important;
  max-height:none!important;
  overflow-y:hidden;
  user-select:text;
  -webkit-user-select:text;
  cursor:text;
}


/* v1.1.18 — drag-first nodes with explicit text edit mode */
.mh-mindmap-panel .mh-mindmap-node-text[readonly]{cursor:grab;user-select:none;-webkit-user-select:none}
.mh-mindmap-panel .mh-mindmap-node.is-text-editing .mh-mindmap-node-text{cursor:text;user-select:text;-webkit-user-select:text}

/* v1.1.20 — collision-safe organiser, library hold-select, canvas new-map control */
.mh-mindmap-canvas-add{
  position:absolute!important;
  top:9px!important;
  left:9px!important;
  z-index:55!important;
  margin:0!important;
  box-shadow:0 5px 16px rgba(0,0,0,.24);
  backdrop-filter:blur(5px);
}
.mh-mindmap-canvas-add:hover{transform:none!important}

/* Selection mode is deliberately quiet: only items actually selected show a tick. */
.mh-mindmap-grid.is-selection-mode .mh-mindmap-card{cursor:pointer}
.mh-mindmap-card.is-library-selected:before{
  width:18px!important;height:18px!important;border-radius:5px!important;
  background:#4aa7ea!important;border:1px solid rgba(225,247,255,.82)!important;
  box-shadow:0 2px 9px rgba(0,0,0,.32),0 0 0 2px rgba(74,167,234,.08)!important;
}
.mh-mindmap-card.is-hold-selected{animation:mhMindmapHoldSelect .34s ease}
@keyframes mhMindmapHoldSelect{
  0%{transform:scale(1)}
  48%{transform:scale(.965)}
  100%{transform:scale(1)}
}

/* v1.1.21 — + style organiser, 1s library hold-select, reliable canvas new-map button */


/* v1.1.22 — unified trader-tools edge handle: click to hide, drag to resize */
@media (min-width:1051px){
  /* The old full-height resize hit-strip is retired on desktop. The centred
     edge handle now owns both collapse and width resizing. */
  .mh-notes-width-resizer{display:none!important}

  .mh-notes-collapse{
    left:0;
    top:50%;
    transform:translate(-50%,-50%);
    width:32px;
    height:56px;
    z-index:30;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:0;
    border:1px solid rgba(112,190,255,.34);
    border-radius:11px;
    background:
      linear-gradient(180deg,rgba(14,44,73,.98),rgba(7,25,43,.98));
    color:#c8e7ff;
    font-size:19px;
    font-weight:500;
    line-height:1;
    box-shadow:
      0 10px 28px rgba(0,0,0,.34),
      0 0 0 1px rgba(35,117,194,.08),
      inset 0 1px 0 rgba(255,255,255,.055);
    cursor:ew-resize;
    touch-action:none;
    user-select:none;
    transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;
  }
  .mh-notes-collapse:before{
    content:"";
    width:12px;
    height:7px;
    opacity:.62;
    background:
      radial-gradient(circle,rgba(166,211,248,.95) 1.2px,transparent 1.35px) 0 0/6px 6px;
  }
  .mh-notes-collapse:hover,
  .mh-notes-collapse:focus-visible,
  .mh-notes-collapse.is-resizing{
    color:#fff;
    border-color:rgba(102,196,255,.72);
    background:linear-gradient(180deg,rgba(18,58,95,.99),rgba(8,31,53,.99));
    box-shadow:0 12px 32px rgba(0,0,0,.38),0 0 18px rgba(61,156,255,.16),inset 0 1px 0 rgba(255,255,255,.075);
    outline:none;
  }
  .mh-notes-collapse:active{cursor:ew-resize}

  /* A collapsed rail occupies no page width at all. The handle remains visible
     just inside the right viewport edge so one click can bring the tools back. */
  .mh-workspace-enabled .mh-app.mh-notes-collapsed{grid-template-columns:214px minmax(0,1fr) 0}
  .mh-notes-rail.is-collapsed{width:0;min-width:0;border-left:0;padding:0;background:transparent}
  .mh-notes-rail.is-collapsed .mh-notes-collapse{
    left:0;
    top:50%;
    transform:translate(-100%,-50%);
  }
}
@media (min-width:1051px) and (max-width:1320px){
  .mh-workspace-enabled .mh-app.mh-notes-collapsed{grid-template-columns:84px minmax(0,1fr) 0}
}

/* v1.1.24 — full-height neon separator dock + movable unified handle */
@media (min-width:1051px){
  .mh-tools-rail{
    padding-top:28px;
    --mh-tools-handle-y:56%;
  }

  /* The dock is now the separator itself: no floating capsule, just a slim
     illuminated spine with launchers at the very top and Settings at bottom. */
  .mh-tools-menu{
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    transform:translateX(-50%);
    z-index:42;
    width:54px;
    height:auto;
    min-height:0;
    max-height:none;
    padding:14px 6px 15px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:7px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
    pointer-events:none;
  }
  .mh-tools-menu:before{
    content:"";
    position:absolute;
    z-index:0;
    left:50%;
    top:0;
    bottom:0;
    width:1px;
    transform:translateX(-50%);
    background:linear-gradient(
      180deg,
      rgba(74,185,255,.66) 0%,
      rgba(74,185,255,.28) 10%,
      rgba(74,185,255,.16) 28%,
      rgba(74,185,255,.30) 50%,
      rgba(74,185,255,.15) 72%,
      rgba(74,185,255,.30) 91%,
      rgba(74,185,255,.62) 100%
    );
    box-shadow:0 0 7px rgba(61,166,255,.34),0 0 18px rgba(61,166,255,.12);
    pointer-events:none;
  }
  .mh-tools-menu:after{
    content:"";
    position:absolute;
    z-index:0;
    left:50%;
    top:0;
    bottom:0;
    width:10px;
    transform:translateX(-50%);
    background:linear-gradient(180deg,rgba(55,162,255,.08),transparent 15%,transparent 85%,rgba(55,162,255,.06));
    filter:blur(5px);
    pointer-events:none;
  }

  .mh-tools-dock-list{
    position:relative;
    z-index:2;
    width:104px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:7px;
    /* Leave room for the full button shadows inside the scrolling dock.
       The margins offset the extra padding so the shortcuts stay in place. */
    max-height:calc(100% - 68px);
    margin-block:-14px -30px;
    padding:20px 31px 30px;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:none;
    pointer-events:none;
  }
  .mh-tools-dock-list::-webkit-scrollbar{display:none}
  /* Collapsed tools occupy no page width, while the launcher dock and handle
     remain immediately accessible just inside the right edge of the main page. */
  .mh-workspace-enabled .mh-app.mh-notes-collapsed{grid-template-columns:214px minmax(0,1fr) 0}
  .mh-notes-rail.is-collapsed{width:0;min-width:0;border-left:0;padding:0;background:transparent}
  .mh-notes-rail.is-collapsed .mh-notes-collapse{
    left:0;
    top:var(--mh-tools-handle-y,56%);
    transform:translate(-100%,-50%);
  }
  .mh-notes-rail.is-collapsed .mh-tools-menu{transform:translateX(-100%)}
}
@media (min-width:1051px) and (max-width:1320px){
  .mh-workspace-enabled .mh-app.mh-notes-collapsed{grid-template-columns:84px minmax(0,1fr) 0}
}


/* Shared dock components: the reference appearance applies at every edge. */
.mh-tool-dock-item{
  position:relative;
  flex:none;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  pointer-events:auto;
}
.mh-tool-dock-item[hidden]{display:none!important}

.mh-tools-menu.is-editing .mh-tool-dock-remove{display:grid}
.mh-tools-menu.is-editing .mh-tool-dock-item:not(.is-dock-dragging) .mh-tool-tab{
  border-color:rgba(112,204,255,.48);
  box-shadow:0 0 16px rgba(56,169,255,.16),inset 0 1px 0 rgba(255,255,255,.05);
  animation:mhToolDockReady .48s ease-in-out infinite alternate;
  cursor:grab;
}
.mh-tools-menu.is-editing .mh-tool-dock-item:nth-child(even) .mh-tool-tab{animation-delay:-.24s}
.mh-tool-dock-item.is-dock-dragging{z-index:9}
.mh-tool-dock-item.is-dock-dragging .mh-tool-tab{
  cursor:grabbing;
  transform:scale(1.08);
  background:rgba(48,137,226,.27);
  border-color:rgba(116,212,255,.78);
  box-shadow:0 10px 24px rgba(0,0,0,.30),0 0 21px rgba(69,182,255,.28);
}
@keyframes mhToolDockReady{
  from{transform:translateY(-.7px) rotate(-.65deg)}
  to{transform:translateY(.7px) rotate(.65deg)}
}

.mh-tool-add-menu{
  position:absolute;
  z-index:70;
  right:calc(100% + 10px);
  top:112px;
  width:205px;
  padding:8px;
  border:1px solid rgba(101,177,243,.25);
  border-radius:13px;
  background:linear-gradient(180deg,#081c31,#061524);
  box-shadow:0 18px 46px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.035);
  pointer-events:auto;
}
.mh-tool-add-menu[hidden]{display:none!important}
.mh-tool-add-menu-head{padding:4px 6px 7px;color:#7898b7;font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.mh-tool-add-menu button{
  width:100%;min-height:39px;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:7px;
  padding:6px 8px;border:0;border-radius:8px;background:transparent;color:#d9eaff;text-align:left;font-size:10px
}
.mh-tool-add-menu button svg{width:18px;height:18px;fill:none;stroke:#77bdf5;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.mh-tool-add-menu button:hover:not(:disabled){background:rgba(60,151,240,.11)}
.mh-tool-add-menu button:disabled{opacity:.46;cursor:default}
.mh-tool-add-menu button small{color:#6e8aa5;font-size:8px}
.mh-tool-add-menu p{margin:5px 6px 3px;color:#607e9a;font-size:9px;line-height:1.45}


.mh-tool-tab,
.mh-tool-dock-add,
.mh-tool-dock-settings{
  position:relative;
  z-index:2;
  width:40px;
  height:40px;
  min-width:40px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(111,186,248,.18);
  border-radius:11px;
  background:linear-gradient(180deg,rgba(10,34,58,.97),rgba(6,23,40,.97));
  color:#7f9fbc;
  box-shadow:
    0 7px 18px rgba(0,0,0,.30),
    0 0 0 1px rgba(38,119,193,.04),
    inset 0 1px 0 rgba(255,255,255,.035);
  transition:color .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
  pointer-events:auto;
}
.mh-tool-tab svg,
.mh-tool-dock-add svg,
.mh-tool-dock-settings svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.mh-tool-tab:hover,
.mh-tool-dock-add:hover,
.mh-tool-dock-settings:hover,
.mh-tool-tab:focus-visible,
.mh-tool-dock-add:focus-visible,
.mh-tool-dock-settings:focus-visible{
  color:#edf9ff;
  border-color:rgba(105,199,255,.54);
  background:linear-gradient(180deg,rgba(25,75,119,.98),rgba(8,35,59,.98));
  box-shadow:0 8px 22px rgba(0,0,0,.32),0 0 18px rgba(67,175,255,.17),inset 0 1px 0 rgba(255,255,255,.055);
  outline:none;
}
.mh-tool-tab.is-active{
  color:#f5fbff;
  border-color:rgba(116,211,255,.86);
  background:linear-gradient(180deg,rgba(50,142,226,.40),rgba(16,71,126,.29));
  /* Keep the neon separator behind the button from showing through its icon. */
  background-color:#061728;
  box-shadow:
    0 8px 22px rgba(0,0,0,.32),
    0 0 0 2px rgba(64,166,255,.10),
    0 0 19px rgba(69,183,255,.32),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.mh-tool-dock-add{
  margin-top:0;
  color:#acd2ef;
  border-style:dashed;
}
.mh-tool-dock-add:hover{transform:scale(1.04)}
.mh-tool-dock-settings{
  margin-top:auto;
  color:#8da8c1;
}

.mh-tool-dock-remove{
  display:none;
  position:absolute;
  z-index:7;
  right:-3px;
  top:-4px;
  width:17px;
  height:17px;
  padding:0;
  place-items:center;
  border:1px solid rgba(255,116,126,.43);
  border-radius:6px;
  background:#122033;
  color:#ff7a83;
  box-shadow:0 4px 12px rgba(0,0,0,.36);
}
.mh-tool-dock-remove svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mh-tool-dock-remove:hover{background:#321822;color:#ffb0b5;border-color:rgba(255,118,130,.68)}

/* Unified hide/resize/Y-position handle. Its vertical position is stored as a
   CSS custom property so it can slide freely along the glowing separator. */
.mh-notes-collapse{
  left:0;
  top:var(--mh-tools-handle-y,56%);
  transform:translate(-50%,-50%);
  width:62px;
  height:34px;
  z-index:58;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0;
  border:1px solid rgba(112,202,255,.62);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(13,50,82,.99),rgba(6,27,47,.99));
  color:#d9f1ff;
  font-size:19px;
  font-weight:600;
  line-height:1;
  box-shadow:
    0 12px 30px rgba(0,0,0,.40),
    0 0 0 2px rgba(58,159,244,.08),
    0 0 18px rgba(64,180,255,.28),
    inset 0 1px 0 rgba(255,255,255,.08);
  cursor:ew-resize;
  touch-action:none;
  user-select:none;
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.mh-notes-collapse:before,.mh-notes-collapse:after{
  content:"";flex:none;width:3px;height:12px;opacity:.78;
  background:radial-gradient(circle,rgba(194,231,255,.98) 1.15px,transparent 1.35px) center 0/3px 6px;
}
.mh-tools-rail.mh-toolbar-layout-right .mh-notes-collapse{
  width:34px;height:62px;flex-direction:column;
}
.mh-tools-rail.mh-toolbar-layout-right .mh-notes-collapse:before,
.mh-tools-rail.mh-toolbar-layout-right .mh-notes-collapse:after{
  width:12px;height:3px;
  background:radial-gradient(circle,rgba(194,231,255,.98) 1.15px,transparent 1.35px) 0 center/6px 3px;
}
.mh-notes-collapse:hover,
.mh-notes-collapse:focus-visible,
.mh-notes-collapse.is-resizing,
.mh-notes-collapse.is-positioning{
  color:#fff;
  border-color:rgba(131,221,255,.95);
  background:linear-gradient(180deg,rgba(20,75,117,.99),rgba(8,39,67,.99));
  box-shadow:0 13px 34px rgba(0,0,0,.42),0 0 0 2px rgba(65,173,255,.11),0 0 24px rgba(65,190,255,.38),inset 0 1px 0 rgba(255,255,255,.11);
  outline:none;
}
.mh-notes-collapse:active{cursor:ew-resize}
.mh-notes-collapse.is-positioning{cursor:ns-resize}



.mh-notes-collapse svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.mh-notes-collapse.is-positioning,
.mh-notes-collapse.is-positioning:hover,
.mh-notes-collapse.is-positioning:focus-visible{
  border-color:rgba(84,224,184,.8);background:linear-gradient(180deg,rgba(18,79,71,.98),rgba(7,44,43,.98));
  color:#b9ffe5;box-shadow:0 8px 20px rgba(0,0,0,.34),0 0 17px rgba(72,224,184,.25),inset 0 1px 0 rgba(255,255,255,.07);
}
.mh-notes-collapse.is-positioning:before,.mh-notes-collapse.is-positioning:after{display:none}
.mh-notes-collapse.is-positioning svg{width:20px;height:20px;stroke-width:2.2}


.mh-tool-settings-window{
  position:fixed;
  z-index:1000;
  left:50%;
  top:50%;
  width:min(760px,calc(100vw - 42px));
  height:min(610px,calc(100vh - 72px));
  min-width:min(420px,calc(100vw - 24px));
  min-height:300px;
  transform:translate(-50%,-50%);
  overflow:hidden;
  border:1px solid rgba(104,184,250,.27);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(7,26,45,.99),rgba(4,17,30,.99));
  box-shadow:0 30px 90px rgba(0,0,0,.60),0 0 0 1px rgba(43,132,211,.06),inset 0 1px 0 rgba(255,255,255,.04);
}
.mh-tool-settings-window[hidden]{display:none!important}
.mh-tool-settings-window-head{
  height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 17px 0 20px;
  border-bottom:1px solid rgba(108,177,239,.13);
  background:linear-gradient(180deg,rgba(13,43,72,.72),rgba(7,26,45,.42));
  cursor:move;
  user-select:none;
  touch-action:none;
}
.mh-tool-settings-window-head>div{display:flex;flex-direction:column;gap:1px}
.mh-tool-settings-window-head span{color:#6687a6;font-size:8px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.mh-tool-settings-window-head strong{color:#e7f3ff;font-family:Georgia,serif;font-size:20px;font-weight:600}
.mh-tool-settings-window-head button{
  width:32px;height:32px;padding:0;border:1px solid rgba(108,177,239,.16);border-radius:9px;background:rgba(9,30,51,.72);color:#86a5c2;font-size:21px;line-height:1
}
.mh-tool-settings-window-head button:hover{color:#fff;border-color:rgba(105,192,255,.42);background:rgba(42,123,205,.13)}
.mh-tool-settings-window-body{
  height:calc(100% - 62px);
  background:
    linear-gradient(rgba(86,155,218,.024) 1px,transparent 1px),
    linear-gradient(90deg,rgba(86,155,218,.024) 1px,transparent 1px),
    radial-gradient(circle at 50% 36%,rgba(47,137,226,.055),transparent 38%);
  background-size:28px 28px,28px 28px,auto;
}
.mh-tool-settings-window.is-dragging{box-shadow:0 34px 100px rgba(0,0,0,.66),0 0 24px rgba(45,144,232,.10)}

@media(max-width:1050px){
  .mh-tool-settings-window{width:min(720px,calc(100vw - 24px));height:min(560px,calc(100vh - 24px));min-width:0}
}

/* v1.1.25 — separator dock spacing + exact handle alignment -----------------
   Keep the neon dock visually centred on its spine while reserving enough
   breathing room that it never sits on top of the open tool content or the
   main-page header/search when the tool panel is collapsed. */
@media (min-width:1051px){
  /* Open state: the dock remains centred on the real separator, but the tool
     content begins far enough to the right that 40px shortcut tiles never
     overlap headings, canvases, scrollbars or library controls. */
  .mh-tools-rail.mh-toolbar-layout-right:not(.is-collapsed){padding-left:44px}
  .mh-tools-rail.mh-toolbar-layout-right:not(.is-collapsed) .mh-notes-shell{
    margin-left:0;width:100%;max-width:100%;
  }
  .mh-tools-rail.mh-toolbar-layout-right .mh-note-tools{flex-wrap:wrap}

  /* The handle and the neon spine share exactly the same X coordinate. */
  .mh-notes-rail:not(.is-collapsed) .mh-tools-menu{
    left:0;
    transform:translateX(-50%);
  }
  .mh-notes-rail:not(.is-collapsed) .mh-notes-collapse{
    left:0;
    transform:translate(-50%,-50%);
  }

  /* Closed state: reserve a narrow permanent launcher gutter instead of
     overlaying the dock on top of the main page. This keeps the search/header
     completely clear while still leaving the dock available at all times. */
  .mh-workspace-enabled .mh-app.mh-notes-collapsed{
    grid-template-columns:214px minmax(0,1fr) 70px;
  }
  .mh-notes-rail.is-collapsed{
    width:70px;
    min-width:70px;
    border-left:0;
    padding:0;
    background:transparent;
  }
  .mh-notes-rail.is-collapsed .mh-tools-menu{
    left:50%;
    transform:translateX(-50%);
  }
  .mh-notes-rail.is-collapsed .mh-notes-collapse{
    left:50%;
    top:var(--mh-tools-handle-y,56%);
    transform:translate(-50%,-50%);
  }
}
@media (min-width:1051px) and (max-width:1320px){
  .mh-workspace-enabled .mh-app.mh-notes-collapsed{
    grid-template-columns:84px minmax(0,1fr) 70px;
  }
}


/* v1.1.26 — responsive Trader Tools dock + per-user placement settings -------- */

/* Settings panel now has real toolbar preferences instead of being an empty
   placeholder. */
.mh-tool-settings-window-body{
  padding:22px;
  overflow:auto;
}
.mh-tool-settings-section{
  width:min(620px,100%);
  margin:0 auto;
  border:1px solid rgba(100,180,248,.17);
  border-radius:15px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(9,31,53,.86),rgba(6,22,38,.86));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.mh-tool-settings-section-head{
  min-height:64px;
  padding:13px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid rgba(104,180,244,.10);
  background:rgba(20,57,92,.20);
}
.mh-tool-settings-section-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.mh-tool-settings-section-head span{color:#6385a5;font-size:8px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.mh-tool-settings-section-head strong{color:#e8f4ff;font-size:14px;font-weight:750}
.mh-tool-settings-section-head>small{min-width:82px;text-align:right;color:#64849f;font-size:9px;font-weight:700}
.mh-tool-settings-section-head>small[data-state="ok"]{color:#72c5a8}
.mh-tool-settings-section-head>small[data-state="saving"]{color:#8fbce5}
.mh-tool-settings-section-head>small[data-state="error"]{color:#d7a856}
.mh-tool-setting-row{
  position:relative;min-height:78px;padding:14px 16px;display:flex;align-items:center;
  justify-content:space-between;gap:16px;border-bottom:1px solid rgba(104,180,244,.075);
  transition:background .14s ease;
}
.mh-tool-setting-row:last-child{border-bottom:0}
.mh-tool-setting-row:hover{background:rgba(67,151,230,.055)}
.mh-tool-setting-row>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.mh-tool-setting-row strong{color:#dcecff;font-size:11px;font-weight:750}
.mh-tool-setting-row small{max-width:490px;color:#718ba5;font-size:9px;line-height:1.5}
.mh-tool-setting-controls{flex:none;display:flex;align-items:center;gap:12px}
.mh-toolbar-edge-options{display:flex;gap:5px}
.mh-toolbar-edge-options button{
  width:30px;height:30px;display:grid;place-items:center;padding:0;border:1px solid rgba(111,186,248,.22);
  border-radius:8px;background:linear-gradient(180deg,#0a223a,#061728);color:#7f9fbc;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);transition:color .15s,border-color .15s,background .15s;
}
.mh-toolbar-edge-options button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mh-toolbar-edge-options button:hover:not(:disabled){color:#fff;border-color:rgba(105,199,255,.54)}
.mh-toolbar-edge-options button.is-selected{color:#eaf8ff;border-color:rgba(116,211,255,.8);background:linear-gradient(180deg,rgba(50,142,226,.4),rgba(16,71,126,.29));box-shadow:0 0 12px rgba(69,183,255,.2)}
.mh-toolbar-edge-options button:disabled{opacity:.35;cursor:default}
.mh-toolbar-edge-options button:focus-visible{outline:2px solid #72c6ff;outline-offset:3px}
.mh-tool-setting-switch{position:relative;display:block;flex:none;width:35px;height:20px;cursor:pointer}
.mh-tool-setting-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.mh-tool-setting-switch i{display:block;width:35px;height:20px;border:1px solid rgba(112,178,236,.25);border-radius:999px;background:#07192b;box-shadow:inset 0 2px 6px rgba(0,0,0,.24);transition:.16s ease}
.mh-tool-setting-switch i:after{content:"";position:absolute;left:3px;top:4px;width:12px;height:12px;border-radius:50%;background:#66839f;box-shadow:0 2px 5px rgba(0,0,0,.35);transition:.16s ease}
.mh-tool-setting-switch input:checked+i{border-color:rgba(89,195,255,.62);background:rgba(45,139,221,.26);box-shadow:0 0 12px rgba(56,165,245,.1),inset 0 1px 4px rgba(0,0,0,.22)}
.mh-tool-setting-switch input:checked+i:after{left:20px;background:#72d3ff;box-shadow:0 0 9px rgba(87,200,255,.48)}
.mh-tool-setting-switch input:focus-visible+i{outline:2px solid #72c6ff;outline-offset:3px}
@media(max-width:480px){
  .mh-tool-settings-window-body{padding:12px}
  .mh-tool-setting-row{flex-wrap:wrap;gap:10px}
  .mh-tool-setting-controls{margin-left:auto}
}

/* Folder/map previews scale down with genuinely tiny library cards instead of
   escaping the card when the user makes the right rail very narrow. */
.mh-mindmap-card{container-type:inline-size}
@container (max-width:72px){
  .mh-mindmap-folder-stack{transform:scale(.76)!important;transform-origin:center center}
  .mh-mindmap-card-node{transform:scale(.82)!important;transform-origin:center center}
  .mh-mindmap-card-tools{transform:scale(.86);transform-origin:top right}
  .mh-mindmap-card-pin{transform:scale(.86);transform-origin:top left}
}
@container (max-width:56px){
  .mh-mindmap-folder-stack{transform:scale(.61)!important}
  .mh-mindmap-card-node{transform:scale(.68)!important}
  .mh-mindmap-card-tools{transform:scale(.72)}
  .mh-mindmap-card-pin{transform:scale(.72)}
}

/* Horizontal layouts are used automatically on narrow browsers and may also
   be enabled on wide browsers with a separately selected top or bottom edge. */
.mh-workspace-enabled .mh-app.mh-toolbar-layout-bottom,
.mh-workspace-enabled .mh-app.mh-toolbar-layout-top{
  grid-template-columns:214px minmax(0,1fr)!important;
}
.mh-workspace-enabled .mh-app:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top){
  --mh-tools-sidebar-width:214px;--mh-tools-tray-space:var(--mh-tools-horizontal-height,390px);
}
.mh-workspace-enabled .mh-app:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top).mh-notes-collapsed{--mh-tools-tray-space:58px}
.mh-workspace-enabled .mh-app:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top)>.mh-main{overflow:clip}
.mh-workspace-enabled .mh-app.mh-toolbar-layout-bottom>.mh-main{padding-bottom:var(--mh-tools-tray-space)}
.mh-workspace-enabled .mh-app.mh-toolbar-layout-top>.mh-main{padding-top:var(--mh-tools-tray-space)}
.mh-workspace-enabled .mh-app.mh-toolbar-layout-top .mh-topbar{top:var(--mh-tools-tray-space)}
.mh-workspace-enabled .mh-app.mh-toolbar-layout-top .mh-cal-day-divider{top:calc(var(--mh-tools-tray-space) + 66px)}
.mh-workspace-enabled .mh-app:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top)>.mh-sidebar{z-index:80}

@media(max-width:1320px){
  .mh-workspace-enabled .mh-app.mh-toolbar-layout-bottom,
  .mh-workspace-enabled .mh-app.mh-toolbar-layout-top{grid-template-columns:84px minmax(0,1fr)!important;--mh-tools-sidebar-width:84px}
}
@media(max-width:800px){
  .mh-workspace-enabled .mh-app.mh-toolbar-layout-bottom,
  .mh-workspace-enabled .mh-app.mh-toolbar-layout-top{display:block!important;--mh-tools-sidebar-width:0px}
  .mh-workspace-enabled .mh-sidebar.is-open .mh-sidebar-card{display:block}
}

.mh-tools-rail.mh-toolbar-layout-bottom,
.mh-tools-rail.mh-toolbar-layout-top{
  --mh-tools-handle-x:50%;
  position:fixed!important;
  left:var(--mh-tools-sidebar-width,0px)!important;
  right:0!important;
  width:calc(100% - var(--mh-tools-sidebar-width,0px))!important;
  max-width:none!important;
  min-width:0!important;
  height:var(--mh-tools-horizontal-height,390px)!important;
  max-height:min(72vh,620px)!important;
  margin:0!important;
  z-index:70!important;
  overflow:visible!important;
  border-radius:0!important;
  border-left:0!important;
  background:linear-gradient(180deg,rgba(5,18,32,.995),rgba(4,14,25,.995))!important;
  box-shadow:0 -22px 50px rgba(0,0,0,.27)!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom{
  top:auto!important;
  bottom:0!important;
  padding:58px 14px 12px!important;
  border-top:1px solid rgba(91,186,255,.30)!important;
  border-bottom:0!important;
}
.mh-tools-rail.mh-toolbar-layout-top{
  top:0!important;
  bottom:auto!important;
  padding:12px 14px 58px!important;
  border-top:0!important;
  border-bottom:1px solid rgba(91,186,255,.30)!important;
  box-shadow:0 22px 50px rgba(0,0,0,.27)!important;
}
.admin-bar .mh-tools-rail.mh-toolbar-layout-top{top:32px!important}
@media(max-width:782px){.admin-bar .mh-tools-rail.mh-toolbar-layout-top{top:46px!important}}

.mh-tools-rail.mh-toolbar-layout-bottom:before,
.mh-tools-rail.mh-toolbar-layout-top:before{
  content:"";
  position:absolute;
  z-index:0;
  left:0;
  right:0;
  top:auto;bottom:auto;width:auto;transform:none;height:1px;
  background:linear-gradient(90deg,rgba(74,185,255,.44),rgba(74,185,255,.78) 18%,rgba(74,185,255,.30) 50%,rgba(74,185,255,.78) 82%,rgba(74,185,255,.44));
  box-shadow:0 0 7px rgba(61,166,255,.36),0 0 20px rgba(61,166,255,.13);
  pointer-events:none;
}
.mh-tools-rail.mh-toolbar-layout-bottom:before{top:27px}
.mh-tools-rail.mh-toolbar-layout-top:before{bottom:27px}

.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-shell,
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-shell{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  margin:0!important;
}

.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-notes-width-resizer{display:none!important}

/* One horizontal dock layout serves both top and bottom. Visual components
   inherit the same button, SVG, glow, grip and popover rules as the side dock. */
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-tools-menu{
  position:absolute;z-index:42;left:10px;right:10px;width:auto;height:54px;min-height:0;max-height:54px;
  padding:6px 4px;transform:none;display:flex;flex-direction:row;align-items:center;
  justify-content:flex-start;gap:7px;border:0;border-radius:0;background:transparent;
  box-shadow:none;backdrop-filter:none;pointer-events:none;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-tools-menu{top:0;bottom:auto}
.mh-tools-rail.mh-toolbar-layout-top .mh-tools-menu{top:auto;bottom:0}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-tools-menu:before,
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-tools-menu:after{display:none}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-tools-dock-list{
  position:relative;z-index:2;width:auto;min-width:0;max-width:calc(100% - 180px);
  height:42px;max-height:none;flex:0 1 auto;display:flex;flex-direction:row;align-items:center;
  gap:7px;overflow:visible;scrollbar-width:none;pointer-events:none;
}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-tool-dock-item{flex:none}
@media(max-width:360px){
  .mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-tools-dock-list{
    overflow-x:auto;overflow-y:hidden;pointer-events:auto;
  }
}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-tool-dock-add{flex:none;margin:0}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-tool-dock-settings{flex:none;margin:0 0 0 auto}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-tool-add-menu{right:auto;z-index:90}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-notes-collapse{
  left:var(--mh-tools-handle-x,50%);width:62px;height:34px;flex-direction:row;
  gap:7px;transform:translate(-50%,-50%);cursor:ns-resize;z-index:58;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-collapse{top:27px;bottom:auto}
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-collapse{top:auto;bottom:27px;transform:translate(-50%,50%)}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-notes-collapse.is-positioning{cursor:ew-resize}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top).is-collapsed{
  width:calc(100% - var(--mh-tools-sidebar-width,0px))!important;min-width:0!important;height:58px!important;padding:0!important;
  background:linear-gradient(180deg,rgba(5,18,32,.985),rgba(4,14,25,.985))!important;
}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top).is-collapsed .mh-tools-menu{transform:none}

/* Horizontal Mind Map uses the extra width intelligently: canvas on the left,
   library on the right. */
.mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-panel:not([hidden]),
.mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-panel:not([hidden]){
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.65fr) minmax(250px,.72fr)!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:8px 14px!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-panel>.mh-mindmap-head,
.mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-panel>.mh-mindmap-head{grid-column:1/-1;grid-row:1;margin:0!important;padding-bottom:6px!important}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-stage,
.mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-stage{
  grid-column:1;
  grid-row:2;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-library-wrap,
.mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-library-wrap{
  grid-column:2;
  grid-row:2;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  flex:initial!important;
  margin:0!important;
  padding-left:13px;
  border-top:0!important;
  border-left:1px solid rgba(118,180,255,.11);
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-library-resizer,
.mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-library-resizer{display:none!important}

/* Quick Notes gets the same two-column treatment: writing area left, library
   right. This avoids a stretched full-width editor in the bottom/top tray. */
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-panel:not([hidden]),
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-panel:not([hidden]){
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.45fr) minmax(250px,.68fr)!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  gap:8px 14px!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-panel>.mh-notes-rail-head,
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-panel>.mh-notes-rail-head{grid-column:1/-1;grid-row:1;margin:0!important;padding-bottom:6px!important}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-note-editor,
.mh-tools-rail.mh-toolbar-layout-top .mh-note-editor{grid-column:1;grid-row:2/4;min-height:0!important;height:auto!important;margin:0!important}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-library-wrap,
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-library-wrap{
  grid-column:2;grid-row:2;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;
  padding-left:13px;border-top:0!important;border-left:1px solid rgba(118,180,255,.11)
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-library-resizer,
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-library-resizer{display:none!important}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-scale-control,
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-scale-control{grid-column:2;grid-row:3;margin:0!important}

/* When the viewport becomes exceptionally narrow, keep the horizontal tray
   usable by stacking canvas/editor above its library rather than crushing both. */
@media(max-width:680px){
  .mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-panel:not([hidden]),
  .mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-panel:not([hidden]),
  .mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-panel:not([hidden]),
  .mh-tools-rail.mh-toolbar-layout-top .mh-notes-panel:not([hidden]){
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
  }
  .mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-library-wrap,
  .mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-library-wrap,
  .mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-library-wrap,
  .mh-tools-rail.mh-toolbar-layout-top .mh-notes-library-wrap{
    flex:0 0 140px!important;
    height:140px!important;
    padding-left:0!important;
    border-left:0!important;
    border-top:1px solid rgba(118,180,255,.11)!important;
  }
  .mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-scale-control,
  .mh-tools-rail.mh-toolbar-layout-top .mh-notes-scale-control{flex:none!important}
}

.mh-is-resizing-notes-height,.mh-is-resizing-notes-height *{cursor:ns-resize!important;user-select:none!important}
/* Tiny-card safety: keep previews visually inside their square even at the
   minimum rail width / dense library settings. */
@container (max-width:72px){
  .mh-mindmap-card-visual{overflow:hidden}
  .mh-mindmap-folder-stack{transform:scale(.66)!important}
  .mh-mindmap-card-node{transform:scale(.74)!important}
}
@container (max-width:56px){
  .mh-mindmap-folder-stack{transform:scale(.50)!important}
  .mh-mindmap-card-node{transform:scale(.58)!important}
}

/* Horizontal Quick Notes: restore a visible/draggable split between the editor
   and the All notes library. */
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-panel:not([hidden]),
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-panel:not([hidden]){
  grid-template-columns:minmax(0,1fr) minmax(220px,var(--mh-notes-horizontal-library-width,268px))!important;
  column-gap:16px!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-library-wrap,
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-library-wrap{
  position:relative!important;
  width:var(--mh-notes-horizontal-library-width,268px)!important;
  overflow:visible!important;
  padding-left:15px!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-library-resizer,
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-library-resizer{
  display:block!important;
  position:absolute!important;
  left:-8px!important;
  right:auto!important;
  top:0!important;
  bottom:0!important;
  width:14px!important;
  height:auto!important;
  z-index:8!important;
  cursor:ew-resize!important;
  touch-action:none!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-library-resizer:after,
.mh-tools-rail.mh-toolbar-layout-top .mh-notes-library-resizer:after{
  left:6px!important;
  right:auto!important;
  top:16px!important;
  bottom:16px!important;
  width:1px!important;
  height:auto!important;
}

/* Horizontal Mind Map: same split-pane treatment for canvas vs library. */
.mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-panel:not([hidden]),
.mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-panel:not([hidden]){
  grid-template-columns:minmax(0,1fr) minmax(225px,var(--mh-mindmap-horizontal-library-width,280px))!important;
  column-gap:16px!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-library-wrap,
.mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-library-wrap{
  position:relative!important;
  width:var(--mh-mindmap-horizontal-library-width,280px)!important;
  overflow:visible!important;
  padding-left:15px!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-library-resizer,
.mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-library-resizer{
  display:block!important;
  position:absolute!important;
  left:-8px!important;
  right:auto!important;
  top:0!important;
  bottom:0!important;
  width:14px!important;
  height:auto!important;
  z-index:8!important;
  cursor:ew-resize!important;
  touch-action:none!important;
}
.mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-library-resizer:after,
.mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-library-resizer:after{
  left:6px!important;
  right:auto!important;
  top:16px!important;
  bottom:16px!important;
  width:1px!important;
  height:auto!important;
}

@media(max-width:680px){
  .mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-library-wrap,
  .mh-tools-rail.mh-toolbar-layout-top .mh-notes-library-wrap,
  .mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-library-wrap,
  .mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-library-wrap{
    width:auto!important;
    padding-left:0!important;
  }
  .mh-tools-rail.mh-toolbar-layout-bottom .mh-notes-library-resizer,
  .mh-tools-rail.mh-toolbar-layout-top .mh-notes-library-resizer,
  .mh-tools-rail.mh-toolbar-layout-bottom .mh-mindmap-library-resizer,
  .mh-tools-rail.mh-toolbar-layout-top .mh-mindmap-library-resizer{
    display:none!important;
  }
}

/* v1.2.0 — Squares private spreadsheet workspace ---------------------------
   A compact spreadsheet/file workspace designed to behave like the existing
   Notes and Mind Map tools in right, top and bottom toolbar layouts. */
.mh-squares-panel{
  --mh-squares-library-height:205px;
  --mh-squares-library-width:300px;
  position:relative;
  overflow:hidden;
  min-height:0;
}
.mh-squares-head{flex:none;align-items:center!important}
.mh-squares-head-actions{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0}
.mh-squares-save-status{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#718da7;font-size:8px;letter-spacing:.025em}
.mh-squares-save-status[data-state="ok"]{color:#67b69a}
.mh-squares-save-status[data-state="saving"],.mh-squares-save-status[data-state="loading"]{color:#79afe0}
.mh-squares-save-status[data-state="dirty"]{color:#d9a456}
.mh-squares-save-status[data-state="error"]{color:#ff8d96}
.mh-squares-head-actions>button,
.mh-squares-file-actions>button,
.mh-squares-library-action,
.mh-squares-deleted-toggle,
.mh-squares-back{
  width:30px;height:30px;min-width:30px;padding:0;display:grid;place-items:center;
  border:1px solid rgba(105,178,240,.24);border-radius:8px;
  background:linear-gradient(180deg,rgba(11,36,61,.96),rgba(7,25,43,.96));
  color:#a7c8e3;box-shadow:inset 0 1px 0 rgba(255,255,255,.035);transition:.15s ease;
}
.mh-squares-head-actions>button{font-size:21px;line-height:1}
.mh-squares-head-actions>button:hover,
.mh-squares-file-actions>button:hover,
.mh-squares-library-action:hover,
.mh-squares-deleted-toggle:hover,
.mh-squares-back:hover,.mh-squares-back.is-drop-target{
  color:#f1f9ff;border-color:rgba(105,202,255,.58);background:linear-gradient(180deg,rgba(26,76,119,.98),rgba(8,37,62,.98));box-shadow:0 0 16px rgba(56,164,247,.16)
}
.mh-squares-file-actions svg,.mh-squares-library-action svg,.mh-squares-deleted-toggle svg{
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round
}

.mh-squares-stage{
  flex:1;min-height:190px;margin-top:8px;position:relative;display:flex;overflow:hidden;
  border:1px solid rgba(118,180,255,.11);border-radius:11px;
  background:linear-gradient(rgba(88,160,226,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(88,160,226,.025) 1px,transparent 1px),linear-gradient(180deg,rgba(7,24,42,.72),rgba(5,17,30,.78));
  background-size:22px 22px,22px 22px,auto;
}
.mh-squares-empty{margin:auto;width:min(92%,285px);padding:22px;text-align:center;color:#7993ad}
.mh-squares-empty-icon{width:62px;height:62px;margin:0 auto 12px;display:grid;place-items:center;border:1px solid rgba(99,186,255,.18);border-radius:17px;background:rgba(46,139,224,.07);box-shadow:0 0 30px rgba(39,137,219,.08)}
.mh-squares-empty-icon svg{width:40px;height:40px;fill:none;stroke:#75bcea;stroke-width:1.35;opacity:.84}
.mh-squares-empty strong{display:block;color:#deecfa;font-family:Georgia,serif;font-size:18px;font-weight:600}
.mh-squares-empty p{margin:7px auto 13px;max-width:260px;color:#748da7;font-size:9px;line-height:1.55}
.mh-squares-empty-actions{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}
.mh-squares-empty-actions button{
  min-height:31px;padding:0 12px;border:1px solid rgba(91,180,255,.36);border-radius:8px;background:linear-gradient(180deg,rgba(34,113,185,.35),rgba(14,65,113,.28));color:#dff2ff;font-size:9px;font-weight:700
}
.mh-squares-empty-actions button.is-secondary{background:rgba(9,31,52,.72);color:#9eb9d1;border-color:rgba(101,169,229,.20)}
.mh-squares-empty-actions button:hover{border-color:rgba(112,207,255,.68);color:#fff}

.mh-squares-editor{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#061525}
.mh-squares-editor[hidden]{display:none!important}
.mh-squares-filebar{flex:none;min-height:36px;padding:3px 5px 4px 7px;display:flex;align-items:center;gap:6px;border-bottom:1px solid rgba(107,171,231,.12);background:linear-gradient(180deg,rgba(8,29,50,.98),rgba(6,22,38,.98))}
.mh-squares-filebar>input{
  flex:1;min-width:0;height:28px;padding:0 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#dcecff;outline:0;font-size:10px;font-weight:700;text-overflow:ellipsis
}
.mh-squares-filebar>input:hover{border-color:rgba(105,174,235,.13);background:rgba(255,255,255,.015)}
.mh-squares-filebar>input:focus{border-color:rgba(88,185,255,.38);background:rgba(6,21,36,.82);box-shadow:0 0 0 2px rgba(54,139,229,.055)}
.mh-squares-file-actions{display:flex;align-items:center;gap:4px;flex:none}
.mh-squares-file-actions>button{width:28px;height:28px;min-width:28px;border-radius:7px}
.mh-squares-file-actions>button svg{width:15px;height:15px}
.mh-squares-library-wrap{
  position:relative;flex:0 0 var(--mh-squares-library-height,205px);height:var(--mh-squares-library-height,205px);min-height:125px;min-width:0;margin-top:8px;padding-top:8px;display:flex;flex-direction:column;border-top:1px solid rgba(118,180,255,.11)
}
.mh-squares-library-resizer{position:absolute;left:0;right:0;top:-6px;height:12px;z-index:12;cursor:ns-resize;touch-action:none}
.mh-squares-library-resizer:after{content:"";position:absolute;left:22%;right:22%;top:5px;height:1px;background:rgba(113,174,235,.17);transition:.15s ease}
.mh-squares-library-resizer:hover:after,.mh-is-resizing-squares-height .mh-squares-library-resizer:after{background:rgba(92,181,255,.72);box-shadow:0 0 11px rgba(61,156,255,.27)}
.mh-squares-library-bar{flex:none;height:31px;display:flex;align-items:center;gap:5px;min-width:0}
.mh-squares-back{width:27px;height:27px;min-width:27px;font-size:14px}
.mh-squares-library-heading{display:flex;align-items:center;gap:6px;min-width:0;margin-right:auto}
.mh-squares-library-heading>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b7caDC;font-size:10px;font-weight:800}
.mh-squares-library-heading>small{min-width:19px;height:17px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:rgba(62,135,203,.11);color:#7395b5;font-size:7px}
.mh-squares-library-action,.mh-squares-deleted-toggle{width:27px;height:27px;min-width:27px;border-radius:7px}
.mh-squares-deleted-toggle{position:relative}
.mh-squares-deleted-toggle>span{position:absolute;right:-4px;top:-5px;min-width:14px;height:14px;padding:0 3px;display:grid;place-items:center;border-radius:8px;background:#153b60;border:1px solid rgba(102,190,255,.34);color:#d9f2ff;font-size:6px}
.mh-tool-library-search{flex:none;height:30px;margin:4px 0 6px;position:relative}
.mh-tool-library-search svg{position:absolute;left:8px;top:7px;width:15px;height:15px;fill:none;stroke:#6f8ca7;stroke-width:1.6;pointer-events:none}
.mh-tool-library-search input{width:100%;height:30px;padding:0 8px 0 28px;border:1px solid rgba(104,170,229,.14);border-radius:8px;background:rgba(5,21,37,.72);color:#dcecff;outline:0;font-size:9px}
.mh-tool-library-search input:focus{border-color:rgba(88,181,255,.38);box-shadow:0 0 0 2px rgba(54,139,229,.05)}
.mh-squares-library{position:relative;flex:1;min-height:0;overflow:auto;padding:2px 2px 22px;scrollbar-width:thin;scrollbar-color:#286fa8 #071827;outline:0}
.mh-squares-library::-webkit-scrollbar{width:7px;height:7px}.mh-squares-library::-webkit-scrollbar-track{background:#071827}.mh-squares-library::-webkit-scrollbar-thumb{background:#286fa8;border-radius:8px;border:2px solid #071827}
.mh-squares-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:7px;align-content:start}
.mh-squares-library-empty{grid-column:1/-1;padding:20px 8px;text-align:center;color:#66819b;font-size:9px;line-height:1.5}
.mh-squares-library-hint{position:absolute;left:4px;right:4px;bottom:1px;padding:3px 5px;background:linear-gradient(180deg,transparent,#071827 45%);color:#4f6d87;font-size:6px;line-height:1.25;text-align:center;pointer-events:none}

.mh-squares-card{
  --sq:#4b9ff1;position:relative;min-width:0;min-height:92px;padding:7px 7px 7px;border:1px solid rgba(102,172,232,.15);border-radius:10px;background:linear-gradient(155deg,rgba(12,35,58,.94),rgba(7,24,41,.96));color:#dcecff;cursor:default;user-select:none;transition:border-color .14s,box-shadow .14s,transform .14s,background .14s
}
.mh-squares-card:hover{border-color:color-mix(in srgb,var(--sq) 52%,transparent);box-shadow:0 7px 16px rgba(0,0,0,.20),0 0 13px color-mix(in srgb,var(--sq) 10%,transparent);background:linear-gradient(155deg,rgba(15,43,70,.98),rgba(8,28,48,.98))}
.mh-squares-card.is-selected{border-color:color-mix(in srgb,var(--sq) 82%,white 4%);box-shadow:0 0 0 2px color-mix(in srgb,var(--sq) 15%,transparent),0 0 18px color-mix(in srgb,var(--sq) 17%,transparent)}
.mh-squares-card.is-folder-drop{border-color:#6dd3ff;box-shadow:0 0 0 2px rgba(83,190,255,.15),0 0 22px rgba(62,174,255,.23);transform:translateY(-1px)}
.mh-squares-card.is-dragging{opacity:.42}
.mh-squares-card.is-deleted{opacity:.70;filter:saturate(.68)}
.mh-squares-card.is-slate{--sq:#8393a7}.mh-squares-card.is-blue{--sq:#4d9cff}.mh-squares-card.is-cyan{--sq:#43cae9}.mh-squares-card.is-mint{--sq:#49cfa8}.mh-squares-card.is-green{--sq:#50c885}.mh-squares-card.is-lime{--sq:#9bc94d}.mh-squares-card.is-amber{--sq:#d9a64e}.mh-squares-card.is-orange{--sq:#e68a4f}.mh-squares-card.is-red{--sq:#e5636a}.mh-squares-card.is-rose{--sq:#df6e8b}.mh-squares-card.is-pink{--sq:#da70b3}.mh-squares-card.is-violet{--sq:#9b7ce3}
.mh-squares-card-pin{position:absolute;right:5px;top:4px;z-index:2;width:20px;height:20px;padding:0;border:0;background:transparent;color:#54738f;font-size:13px;line-height:1}
.mh-squares-card-pin:hover,.mh-squares-card-pin.is-pinned{color:var(--sq);text-shadow:0 0 8px color-mix(in srgb,var(--sq) 50%,transparent)}
.mh-squares-card-visual{height:45px;margin:1px 18px 4px 0;display:grid;place-items:center;color:var(--sq)}
.mh-squares-card-visual svg{width:57px;height:46px;max-width:100%;fill:color-mix(in srgb,var(--sq) 7%,#071827);stroke:currentColor;stroke-width:1.15;opacity:.90;filter:drop-shadow(0 0 9px color-mix(in srgb,var(--sq) 13%,transparent))}
.mh-squares-card-visual.is-folder svg{width:61px;fill:color-mix(in srgb,var(--sq) 15%,#091c2d);stroke-width:1.2}
.mh-squares-card-copy{min-width:0}.mh-squares-card-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dbeaff;font-size:9px;font-weight:750;line-height:1.25}.mh-squares-card-copy small{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5f7d98;font-size:6.5px}
.mh-squares-inline-rename{width:100%;height:24px;padding:0 5px;border:1px solid rgba(85,184,255,.45);border-radius:6px;background:#071a2c;color:#e7f3ff;outline:0;font-size:9px;box-shadow:0 0 0 2px rgba(55,147,229,.07)}

.mh-squares-context-menu{
  position:absolute;z-index:110;min-width:154px;padding:5px;border:1px solid rgba(97,171,235,.24);border-radius:10px;background:linear-gradient(180deg,#091d31,#061625);box-shadow:0 18px 45px rgba(0,0,0,.48),0 0 18px rgba(52,148,227,.07);backdrop-filter:blur(12px)
}
.mh-squares-context-menu[hidden]{display:none!important}
.mh-squares-context-menu button{width:100%;min-height:30px;padding:0 8px;display:grid;grid-template-columns:20px 1fr;align-items:center;gap:5px;border:0;border-radius:7px;background:transparent;color:#b8cee2;text-align:left;font-size:8.5px}
.mh-squares-context-menu button:hover{background:rgba(61,151,235,.10);color:#eef8ff}.mh-squares-context-menu button.is-danger{color:#ef8990}.mh-squares-context-menu button.is-danger:hover{background:rgba(221,73,84,.10);color:#ffadb2}
.mh-squares-context-menu button>span:first-child{text-align:center;color:#6fa7d3;font-size:12px}.mh-squares-context-menu button.is-danger>span:first-child{color:inherit}

.mh-squares-confirm{position:absolute;inset:0;z-index:180;display:grid;place-items:center;padding:16px;background:rgba(3,12,22,.70);backdrop-filter:blur(5px)}
.mh-squares-confirm[hidden]{display:none!important}.mh-squares-confirm-card{width:min(100%,330px);padding:20px;border:1px solid rgba(112,177,238,.22);border-radius:14px;background:linear-gradient(180deg,#0a2138,#061625);box-shadow:0 24px 65px rgba(0,0,0,.52);text-align:center}.mh-squares-confirm-icon{width:34px;height:34px;margin:0 auto 9px;display:grid;place-items:center;border-radius:50%;background:rgba(224,78,87,.10);border:1px solid rgba(232,91,100,.26);color:#ff8991;font-size:19px}.mh-squares-confirm-card strong{display:block;color:#eef6ff;font-size:12px}.mh-squares-confirm-card p{margin:7px auto 15px;color:#7894ae;font-size:9px;line-height:1.5}.mh-squares-confirm-card>div:last-child{display:flex;justify-content:center;gap:7px}.mh-squares-confirm-card button{min-height:31px;padding:0 12px;border:1px solid rgba(101,173,235,.22);border-radius:8px;background:#0a2137;color:#b8cee1;font-size:8.5px}.mh-squares-confirm-card button.is-danger{border-color:rgba(232,91,100,.32);background:rgba(156,38,49,.17);color:#ff9ca2}

/* The current toolbar system automatically exposes Squares in side/top/bottom
   docks. In horizontal layouts, give the spreadsheet the large left region and
   keep the Files library as a resizable right pane. */
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-panel:not([hidden]){
  height:100%!important;min-height:0!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(230px,var(--mh-squares-library-width,300px))!important;
  grid-template-rows:auto minmax(0,1fr)!important;gap:7px 15px!important;overflow:visible!important
}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-head{grid-column:1/-1;grid-row:1;margin:0!important;padding-bottom:3px!important}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-stage{grid-column:1;grid-row:2;height:auto!important;min-height:0!important;margin:0!important}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-library-wrap{
  grid-column:2;grid-row:2;position:relative!important;flex:initial!important;width:var(--mh-squares-library-width,300px)!important;height:auto!important;min-height:0!important;margin:0!important;padding:0 0 0 14px!important;border-top:0!important;border-left:1px solid rgba(118,180,255,.11)!important;overflow:visible!important
}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-library-resizer{left:-8px!important;right:auto!important;top:0!important;bottom:0!important;width:14px!important;height:auto!important;cursor:ew-resize!important}
.mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-library-resizer:after{left:6px!important;right:auto!important;top:16px!important;bottom:16px!important;width:1px!important;height:auto!important}
.mh-is-resizing-squares-width,.mh-is-resizing-squares-width *{cursor:ew-resize!important;user-select:none!important}.mh-is-resizing-squares-height,.mh-is-resizing-squares-height *{cursor:ns-resize!important;user-select:none!important}

/* Full-screen work mode keeps the same Squares UI, simply giving the editor the
   whole viewport. It deliberately does not mutate the user's toolbar position. */
body.mh-squares-maximized-open{overflow:hidden!important}
.mh-squares-panel.is-squares-maximized{
  position:fixed!important;inset:12px!important;z-index:10050!important;width:auto!important;height:auto!important;min-width:0!important;max-width:none!important;padding:13px!important;display:flex!important;flex-direction:column!important;
  border:1px solid rgba(91,180,255,.28)!important;border-radius:16px!important;background:linear-gradient(180deg,#071a2d,#05121f)!important;box-shadow:0 28px 100px rgba(0,0,0,.68),0 0 34px rgba(47,143,225,.10)!important;overflow:hidden!important
}
.mh-squares-panel.is-squares-maximized .mh-squares-stage{flex:1!important;min-height:280px!important;margin-top:8px!important}
.mh-squares-panel.is-squares-maximized .mh-squares-library-wrap{position:relative!important;flex:0 0 var(--mh-squares-library-height,205px)!important;width:auto!important;height:var(--mh-squares-library-height,205px)!important;min-height:125px!important;margin-top:8px!important;padding:8px 0 0!important;border-left:0!important;border-top:1px solid rgba(118,180,255,.11)!important}
.mh-squares-panel.is-squares-maximized .mh-squares-library-resizer{left:0!important;right:0!important;top:-6px!important;bottom:auto!important;width:auto!important;height:12px!important;cursor:ns-resize!important}.mh-squares-panel.is-squares-maximized .mh-squares-library-resizer:after{left:34%!important;right:34%!important;top:5px!important;bottom:auto!important;width:auto!important;height:1px!important}
.mh-squares-panel.is-squares-maximized .mh-squares-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))}

@media(max-width:680px){
  .mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-panel:not([hidden]){display:flex!important;flex-direction:column!important;gap:7px!important}
  .mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-stage{flex:1!important;min-height:160px!important}
  .mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-library-wrap{flex:0 0 var(--mh-squares-library-height,140px)!important;width:auto!important;height:var(--mh-squares-library-height,140px)!important;min-height:110px!important;margin-top:0!important;padding:7px 0 0!important;border-left:0!important;border-top:1px solid rgba(118,180,255,.11)!important}
  .mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-library-resizer{left:0!important;right:0!important;top:-6px!important;bottom:auto!important;width:auto!important;height:12px!important;cursor:ns-resize!important}
  .mh-tools-rail:is(.mh-toolbar-layout-bottom,.mh-toolbar-layout-top) .mh-squares-library-resizer:after{left:28%!important;right:28%!important;top:5px!important;bottom:auto!important;width:auto!important;height:1px!important}
  .mh-squares-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
  .mh-squares-panel.is-squares-maximized{inset:5px!important;padding:8px!important;border-radius:11px!important}
}


/* v1.2.1 — reliable full-screen tool workspaces ----------------------------
   Maximized tools are moved to <body> by tools.js before this class is applied,
   so transformed/sticky ancestors can no longer push or clip them off-screen. */
body.mh-tool-maximized-open{overflow:hidden!important}
.mh-tool-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto}
.mh-tool-expand{
  width:30px;height:30px;min-width:30px;padding:0;display:grid;place-items:center;
  border:1px solid rgba(96,177,241,.24);border-radius:8px;
  background:linear-gradient(180deg,rgba(15,49,81,.92),rgba(7,28,49,.92));
  color:#8fbedf;box-shadow:inset 0 1px 0 rgba(255,255,255,.035);appearance:none
}
.mh-tool-expand svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.mh-tool-expand:hover,.mh-tool-expand:focus-visible{color:#eef9ff;border-color:rgba(104,202,255,.62);background:linear-gradient(180deg,rgba(24,78,121,.98),rgba(8,38,64,.98));box-shadow:0 0 18px rgba(65,181,255,.18);outline:0}
.mh-tools-panel.is-tool-maximized{
  position:fixed!important;inset:10px!important;z-index:10050!important;
  width:auto!important;height:auto!important;min-width:0!important;max-width:none!important;
  padding:14px!important;margin:0!important;display:flex!important;flex-direction:column!important;
  border:1px solid rgba(91,180,255,.29)!important;border-radius:16px!important;
  background:linear-gradient(180deg,#071a2d,#05121f)!important;
  box-shadow:0 28px 100px rgba(0,0,0,.70),0 0 34px rgba(47,143,225,.10)!important;
  overflow:hidden!important
}
.mh-tools-panel.is-tool-maximized>.mh-notes-rail-head{flex:none!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin:0!important;padding:0 0 8px!important}
.mh-notes-panel.is-tool-maximized .mh-note-editor{flex:1 1 auto!important;min-height:220px!important}
.mh-notes-panel.is-tool-maximized .mh-notes-library-wrap{position:relative!important;flex:0 0 var(--mh-library-height,330px)!important;height:var(--mh-library-height,330px)!important;max-height:45vh!important;min-height:130px!important;margin-top:8px!important}
.mh-notes-panel.is-tool-maximized .mh-notes-library-resizer{display:block!important}
.mh-mindmap-panel.is-tool-maximized .mh-mindmap-stage{flex:1 1 auto!important;min-height:260px!important;margin-top:8px!important}
.mh-mindmap-panel.is-tool-maximized .mh-mindmap-library-wrap{position:relative!important;flex:0 0 var(--mh-mindmap-library-height,214px)!important;height:var(--mh-mindmap-library-height,214px)!important;max-height:40vh!important;min-height:130px!important;margin-top:8px!important}
.mh-mindmap-panel.is-tool-maximized .mh-mindmap-library-resizer{display:block!important}
/* Squares already has a tailored maximized split-pane layout; the generic
   body-level class fixes its viewport anchoring while retaining that layout. */
.mh-squares-panel.is-tool-maximized{inset:10px!important}
@media(max-width:680px){.mh-tools-panel.is-tool-maximized{inset:4px!important;padding:8px!important;border-radius:11px!important}}
/* Keep the new workspace expand actions aligned in every toolbar layout. */
.mh-notes-panel>.mh-notes-rail-head,
.mh-mindmap-panel>.mh-notes-rail-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px
}


/* v1.2.2 — shared library controls and self-contained expanded workspaces. */
.mh-tools-panel [hidden]{display:none!important}
.mh-notes-panel{
  --mh-notes-font-boost:0px;--mh-notes-space-boost:0px;
  --mh-notes-row-boost:0px;--mh-notes-control-boost:0px;
}
.mh-tool-library-search{flex:none}
.mh-notes-library-bar,.mh-mindmap-library-bar,.mh-squares-library-bar{display:flex;align-items:center;gap:5px;min-height:32px;flex:none}
.mh-notes-library-toggle,.mh-mindmap-library-heading,.mh-squares-library-heading{min-width:0;flex:1;margin-right:auto}
.mh-tools-panel .mh-tool-library-new{
  flex:none;width:28px!important;height:28px!important;min-width:28px!important;
  margin:0!important;padding:0!important;display:grid;place-items:center;
  border:1px solid rgba(96,177,241,.24)!important;border-radius:8px!important;
  background:linear-gradient(180deg,rgba(15,49,81,.92),rgba(7,28,49,.92))!important;
  color:#a7d7fb!important;font-size:19px!important;line-height:1!important;
}
.mh-tools-panel .mh-tool-library-new:hover{color:#fff!important;border-color:rgba(104,202,255,.62)!important;background:rgba(49,135,240,.20)!important}
.mh-tools-panel .mh-tool-library-new svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.mh-notes-panel.is-library-open .mh-notes-library-wrap{
  height:var(--mh-library-height,330px);min-height:130px;display:flex;flex-direction:column;flex:none;
}
.mh-notes-panel.is-selecting .mh-item-check{display:grid}
.mh-note-richtext{padding:calc(12px + var(--mh-notes-space-boost,0px));font-size:calc(12px + var(--mh-notes-font-boost,0px));box-sizing:border-box}
.mh-notes-panel.is-tool-maximized .mh-notes-library-wrap{min-height:90px!important;display:flex;flex-direction:column}
.mh-notes-panel.is-tool-maximized .mh-notes-library-resizer,
.mh-mindmap-panel.is-tool-maximized .mh-mindmap-library-resizer{
  position:absolute!important;left:0!important;right:0!important;top:-7px!important;bottom:auto!important;
  width:auto!important;height:14px!important;cursor:ns-resize!important;touch-action:none!important;
}
.mh-notes-panel.is-tool-maximized .mh-note-editor,.mh-mindmap-panel.is-tool-maximized .mh-mindmap-stage{min-height:0!important}
.mh-mindmap-panel.is-tool-maximized .mh-mindmap-grid{grid-template-columns:repeat(var(--mh-mindmap-columns,4),minmax(0,110px));justify-content:start}
.mh-squares-panel.is-tool-maximized .mh-squares-grid{grid-template-columns:repeat(auto-fill,minmax(100px,110px));justify-content:start}
.mh-squares-filebar{flex-wrap:wrap;gap:5px}
.mh-squares-filebar>[data-squares-name]{order:0;flex:1;min-width:70px}
.mh-squares-filebar>.mh-squares-save-status{order:2;flex-basis:100%;font-size:8px;text-align:left}
.mh-squares-filebar>.mh-squares-file-actions{order:1}
.mh-squares-select-all{flex:none;padding:3px 5px;border:1px solid rgba(96,177,241,.2);border-radius:6px;background:#0a2239;color:#a7c7e5;font-size:9px;white-space:nowrap}
.mh-squares-bulk-toolbar{display:flex;align-items:center;gap:5px;flex:none;padding:5px 0;font-size:9px;color:#8db8db}
.mh-squares-bulk-toolbar>span{margin-right:auto}
.mh-squares-bulk-toolbar button{width:26px;height:26px;padding:4px;border:1px solid rgba(96,177,241,.24);border-radius:7px;background:#0a2239;color:#93d5ca}
.mh-squares-bulk-toolbar button.is-danger{color:#ef8993}
.mh-squares-bulk-toolbar svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7}
.mh-squares-card.is-current{border-color:rgba(90,179,255,.58)}
.mh-squares-card.is-selected{border-color:#75ceff;box-shadow:0 0 0 2px rgba(90,181,255,.22),0 0 16px rgba(56,156,236,.18)}
.mh-squares-selection-box{position:absolute;z-index:30;pointer-events:none;border:1px solid #66c7ff;background:rgba(70,162,242,.16);border-radius:3px}
.mh-squares-context-menu{position:fixed!important;z-index:10090!important}
.mh-squares-card{touch-action:pan-y}
@media(max-height:600px){
  .mh-tools-panel.is-tool-maximized{padding:8px!important}
  .mh-notes-panel.is-tool-maximized .mh-notes-library-wrap,.mh-mindmap-panel.is-tool-maximized .mh-mindmap-library-wrap,.mh-squares-panel.is-tool-maximized .mh-squares-library-wrap{max-height:38vh!important;min-height:90px!important}
}

.mh-tools-panel>.mh-notes-rail-head{display:flex;align-items:flex-start!important;justify-content:space-between;gap:12px}
.mh-squares-filebar>.mh-squares-save-status{max-width:none}

.mh-notes-panel .mh-notes-scale-control input{accent-color:#4a9dff}


/* v1.2.3 — Squares cell-edit UX, middle-mouse pan, and file card controls. */


/* File/folder cards use one consistent right-side action rail:
   pin at the top, colour in the middle, delete at the bottom. */
.mh-squares-card-visual{margin-right:22px!important}
.mh-squares-card-copy{padding-right:20px}
.mh-squares-card-pin,
.mh-squares-card-color,
.mh-squares-card-delete{
  position:absolute;right:5px;z-index:8;width:20px;height:20px;padding:0;
  display:grid;place-items:center;border:0;border-radius:6px;background:transparent;
  line-height:1;appearance:none;-webkit-appearance:none
}
.mh-squares-card-pin{top:4px}
.mh-squares-card-color{top:50%;transform:translateY(-50%);color:var(--sq)}
.mh-squares-card-delete{bottom:4px;color:#6d8398}
.mh-squares-card-color i{display:block;width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 8px color-mix(in srgb,currentColor 35%,transparent);border:1px solid color-mix(in srgb,currentColor 82%,white 8%)}
.mh-squares-card-delete svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.mh-squares-card-color:hover,.mh-squares-card-color:focus-visible{background:color-mix(in srgb,var(--sq) 11%,transparent);outline:0;box-shadow:0 0 11px color-mix(in srgb,var(--sq) 15%,transparent)}
.mh-squares-card-delete:hover,.mh-squares-card-delete:focus-visible{color:#ff8991;background:rgba(224,78,87,.09);outline:0}

.mh-squares-card-color-menu{
  position:absolute;right:29px;top:50%;z-index:40;transform:translateY(-50%);
  width:78px;padding:6px;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;
  border:1px solid rgba(98,177,241,.25);border-radius:9px;
  background:linear-gradient(180deg,#0a2036,#061522);
  box-shadow:0 14px 34px rgba(0,0,0,.50),0 0 16px rgba(52,148,227,.07)
}
.mh-squares-card-color-menu[hidden]{display:none!important}
.mh-squares-card-color-menu button{width:13px;height:13px;padding:0;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:none;appearance:none;-webkit-appearance:none}
.mh-squares-card-color-menu button:hover,.mh-squares-card-color-menu button.is-active{transform:scale(1.15);box-shadow:0 0 0 2px rgba(213,238,255,.15),0 0 10px currentColor}
.mh-squares-card-color-menu .is-slate{background:#8393a7;color:#8393a7}.mh-squares-card-color-menu .is-blue{background:#4d9cff;color:#4d9cff}.mh-squares-card-color-menu .is-cyan{background:#43cae9;color:#43cae9}.mh-squares-card-color-menu .is-mint{background:#49cfa8;color:#49cfa8}.mh-squares-card-color-menu .is-green{background:#50c885;color:#50c885}.mh-squares-card-color-menu .is-lime{background:#9bc94d;color:#9bc94d}.mh-squares-card-color-menu .is-amber{background:#d9a64e;color:#d9a64e}.mh-squares-card-color-menu .is-orange{background:#e68a4f;color:#e68a4f}.mh-squares-card-color-menu .is-red{background:#e5636a;color:#e5636a}.mh-squares-card-color-menu .is-rose{background:#df6e8b;color:#df6e8b}.mh-squares-card-color-menu .is-pink{background:#da70b3;color:#da70b3}.mh-squares-card-color-menu .is-violet{background:#9b7ce3;color:#9b7ce3}

/* v1.2.4 — a plain Squares grid and category settings pages. */
.mh-squares-grid-scroll{position:relative;flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;background:#071522;scrollbar-color:#244968 #071522}
.mh-squares-worksheet{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;color:#dceafa;font-size:11px}
.mh-squares-worksheet th,.mh-squares-worksheet td{box-sizing:border-box;padding:0;width:110px;min-width:110px;height:30px;border-right:1px solid #20384d;border-bottom:1px solid #20384d}
.mh-squares-worksheet thead th{position:sticky;top:0;z-index:3;background:#10273b;color:#91b4d2;text-align:center;font-size:10px;font-weight:600}
.mh-squares-worksheet tbody th,.mh-squares-worksheet th.mh-squares-corner{position:sticky;left:0;z-index:2;width:38px;min-width:38px;background:#10273b;color:#91b4d2;text-align:center;font-size:10px;font-weight:600}
.mh-squares-worksheet th.mh-squares-corner{z-index:4;top:0}
.mh-squares-grid-scroll .mh-squares-cell{display:block;box-sizing:border-box;width:100%;min-width:0;height:30px;margin:0;padding:5px 7px;border:0;border-radius:0;background:transparent;color:#dceafa;font:11px/20px Inter,ui-sans-serif,system-ui,sans-serif;outline:0;box-shadow:none}
.mh-squares-grid-scroll .mh-squares-cell:focus{background:#0d2940;box-shadow:inset 0 0 0 1px #60c3ff}
.mh-squares-grid-scroll.is-middle-panning,.mh-squares-grid-scroll.is-middle-panning *{cursor:grabbing!important;user-select:none!important}
.mh-settings-home{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-content:start}
.mh-settings-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:13px;min-width:0;min-height:130px;padding:18px;border:1px solid rgba(101,183,246,.22);border-radius:16px;background:linear-gradient(145deg,#0d2b46,#081c30);color:#d9edff;text-align:left;cursor:pointer}
.mh-settings-tile:hover,.mh-settings-tile:focus-visible{outline:0;border-color:#69c5ff;background:linear-gradient(145deg,#123959,#0a243d);box-shadow:0 0 18px rgba(61,159,229,.12)}
.mh-settings-tile svg{width:26px;height:26px;fill:none;stroke:#77bdf0;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.mh-settings-tile strong{font-size:13px;font-weight:600}
.mh-settings-tile>span{position:absolute;right:12px;top:14px;color:#7394b1;font-size:20px}
.mh-settings-tile.is-general{grid-column:1/-1;min-height:98px;flex-direction:row;align-items:center;justify-content:flex-start;gap:18px}
.mh-settings-tile.is-general strong{font-size:17px}
.mh-settings-page-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.mh-settings-page-head h2{margin:0;color:#e1f0ff;font:21px Georgia,serif;outline:0}
.mh-settings-page-head button{padding:7px 11px;border:1px solid #29516e;border-radius:9px;background:#0c2942;color:#afdaff;font-size:11px;cursor:pointer}
.mh-settings-page-head button:hover{border-color:#74c5ff;color:#fff}
.mh-settings-page[hidden],.mh-settings-home[hidden]{display:none!important}
.mh-settings-number{box-sizing:border-box;width:88px;min-width:70px;padding:8px 10px;border:1px solid #315c7a;border-radius:9px;background:#081e31;color:#e1f1ff;font-size:14px;outline:none;color-scheme:dark}
.mh-settings-number:focus{border-color:#73c8ff;box-shadow:0 0 0 2px rgba(89,180,246,.12)}
.mh-settings-number[aria-invalid=true]{border-color:#e78d97}
.mh-settings-help,.mh-settings-placeholder{color:#8eabc4;font-size:12px;line-height:1.7}
.mh-settings-help{margin:14px auto;max-width:620px}
.mh-settings-save-status{display:block;margin-top:18px;color:#83cdb8;font-size:10px}
.mh-settings-save-status[data-state=error]{color:#eea2a9}
@media(max-width:480px){
 .mh-settings-home{gap:7px}
 .mh-settings-tile{min-height:100px;gap:10px;padding:10px 7px;border-radius:12px}
 .mh-settings-tile strong{font-size:10px}
 .mh-settings-tile svg{width:22px;height:22px}
 .mh-settings-tile>span{right:6px;top:8px;font-size:16px}
 .mh-settings-tile.is-general{min-height:80px;padding:14px;gap:12px}
 .mh-settings-tile.is-general strong{font-size:15px}
 .mh-settings-page-head h2{font-size:18px}
}


/* v1.2.5 — simple Squares range selection + keyboard cell navigation -------
   Keep the spreadsheet deliberately lightweight: click-drag selects a
   rectangular group of cells, and the active selection can be moved around
   the worksheet with Arrow keys / Enter / Tab. */
.mh-squares-worksheet td{
  position:relative;
  background:#071a2c;
  transition:background .06s ease,box-shadow .06s ease;
}
.mh-squares-worksheet td.is-selected{
  background:rgba(54,148,224,.14);
  box-shadow:inset 0 0 0 1px rgba(83,177,244,.34);
}
.mh-squares-worksheet td.is-active{
  z-index:1;
  background:rgba(57,157,235,.20);
  box-shadow:inset 0 0 0 2px #62c6ff,0 0 0 1px rgba(98,198,255,.14);
}
.mh-squares-worksheet td.is-selected .mh-squares-cell,
.mh-squares-worksheet td.is-active .mh-squares-cell{
  background:transparent!important;
  box-shadow:none!important;
}
.mh-squares-grid-scroll.is-range-selecting,
.mh-squares-grid-scroll.is-range-selecting *{
  cursor:cell!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}

/* v1.2.6 — selected cells, explicit text editing, grid-only zoom. */
.mh-squares-grid-scroll .mh-squares-cell[readonly]{cursor:cell;caret-color:transparent;user-select:none;-webkit-user-select:none}
.mh-squares-grid-scroll .mh-squares-cell[readonly]::selection{background:transparent;color:inherit}
.mh-squares-grid-scroll .mh-squares-cell.is-editing{cursor:text;caret-color:#e4f5ff;user-select:text;-webkit-user-select:text;background:#102f49!important;box-shadow:inset 0 0 0 2px #85d6ff!important}
.mh-squares-grid-scroll .mh-squares-cell.is-editing::selection{background:#265e8a;color:#fff}
.mh-squares-worksheet th,.mh-squares-worksheet td{width:calc(110px * var(--mh-grid-zoom,1));min-width:calc(110px * var(--mh-grid-zoom,1));height:calc(30px * var(--mh-grid-zoom,1))}
.mh-squares-worksheet thead th,.mh-squares-worksheet tbody th{font-size:calc(10px * var(--mh-grid-zoom,1))}
.mh-squares-worksheet tbody th,.mh-squares-worksheet th.mh-squares-corner{width:calc(38px * var(--mh-grid-zoom,1));min-width:calc(38px * var(--mh-grid-zoom,1))}
.mh-squares-grid-scroll .mh-squares-cell{height:calc(30px * var(--mh-grid-zoom,1));padding:calc(5px * var(--mh-grid-zoom,1)) calc(7px * var(--mh-grid-zoom,1));font-size:calc(11px * var(--mh-grid-zoom,1));line-height:calc(20px * var(--mh-grid-zoom,1))}
.mh-squares-zoom{flex:none;width:auto!important;min-width:42px;padding:4px 6px!important;border:1px solid #2a5474!important;border-radius:7px!important;background:#0b2942!important;color:#9dcbef!important;font-size:10px!important;cursor:pointer}


/* Keep the edit badges above the animated tool tile and make their full hit
   target visible in every dock orientation. */
.mh-tools-menu.is-editing .mh-tool-dock-item{overflow:visible}
.mh-tools-menu.is-editing .mh-tool-dock-remove{z-index:12}


/* v1.2.9 — Quick Notes editor simplification --------------------------------
   Note names now live exclusively in the Notes Library. The editor no longer
   exposes a duplicate title field or Created/Edited metadata row. In the
   standard right-side tool panel only, the writing surface comes first and
   the colour/format/highlight toolbar sits directly beneath it. */
.mh-note-editor > [data-note-title],
.mh-note-editor > .mh-note-meta{
  display:none!important;
}

@media (min-width:1051px){
  .mh-tools-rail.mh-toolbar-layout-right .mh-note-editor > .mh-note-richtext{
    order:1;
    margin-top:0;
    margin-bottom:4px;
  }
  .mh-tools-rail.mh-toolbar-layout-right .mh-note-editor > .mh-note-tools{
    order:2;
    padding-top:4px;
    padding-bottom:5px;
  }
  .mh-tools-rail.mh-toolbar-layout-right .mh-note-editor > .mh-notes-rail-foot{
    order:3;
  }
}

/* v1.2.10 — grid growth, folder hints and shared library divider limits. */
.mh-squares-filebar{flex-wrap:nowrap;align-items:center}
.mh-squares-filebar>.mh-squares-save-status{order:0;flex:1;flex-basis:auto}
.mh-squares-filebar>.mh-squares-zoom{order:1;margin-left:auto}
.mh-squares-worksheet .mh-squares-append-column,
.mh-squares-worksheet .mh-squares-append-spacer{width:calc(30px * var(--mh-grid-zoom,1));min-width:calc(30px * var(--mh-grid-zoom,1));padding:0;background:#0d253b}
.mh-squares-worksheet .mh-squares-append-column{position:sticky;right:0;z-index:5}
.mh-squares-worksheet tfoot th{position:sticky;left:0;padding:0;background:#142d42;z-index:2}
.mh-squares-worksheet tfoot td{background:#091e31}
.mh-squares-worksheet [data-squares-add]{display:block;width:100%;height:calc(30px * var(--mh-grid-zoom,1));padding:0;border:0;background:transparent;color:#8fd4ff;font-size:calc(19px * var(--mh-grid-zoom,1));cursor:pointer}
.mh-squares-worksheet [data-squares-add]:hover{background:#164268;color:white}
.mh-squares-append-menu{position:fixed;z-index:10150;max-width:calc(100vw - 16px);padding:10px;border:1px solid #356789;border-radius:12px;background:#0a2138;color:#dceeff;box-shadow:0 12px 34px #0008;font-size:11px}
.mh-squares-append-menu>span{display:block;margin-bottom:8px;font-weight:700}
.mh-squares-append-menu>div{display:flex;align-items:center;gap:5px}
.mh-squares-append-menu button{width:28px;height:28px;padding:0;border:1px solid #315d80;border-radius:7px;background:#103451;color:#a6d8ff;font-size:17px;cursor:pointer}
.mh-squares-append-menu button[data-append-apply]{color:#85e1b5;margin-left:3px}
.mh-squares-append-menu input{width:62px;min-width:0;height:28px;padding:3px;border:1px solid #426f93;border-radius:6px;background:#07192b;color:#eff8ff;text-align:center;font-size:12px;appearance:textfield}
.mh-squares-append-menu input::-webkit-inner-spin-button,.mh-squares-append-menu input::-webkit-outer-spin-button{appearance:none;margin:0}
.mh-squares-append-menu small{display:block;margin-top:7px;color:#779ebc;font-size:9px}
.mh-squares-card{aspect-ratio:1/1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.mh-squares-card-copy{width:100%;text-align:center}
.mh-squares-card-name{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:text}
.mh-squares-card.is-folder-drop:after{content:attr(data-drop-hint);position:absolute;inset:17%;display:grid;place-items:center;border:1px dashed rgba(117,207,255,.82);border-radius:8px;background:rgba(12,46,78,.88);color:#e6f6ff;font-size:7px;font-weight:800;letter-spacing:.035em;text-transform:uppercase;text-align:center;box-shadow:0 0 18px rgba(70,166,247,.16);pointer-events:none;z-index:4}
.mh-mindmap-panel .mh-mindmap-library-wrap{max-height:var(--mh-mindmap-library-max-height,480px)}
.mh-squares-panel .mh-squares-library-wrap{max-height:var(--mh-squares-library-max-height,480px)}
.mh-notes-panel.is-library-open .mh-notes-library-wrap,.mh-mindmap-panel .mh-mindmap-library-wrap,.mh-squares-panel .mh-squares-library-wrap{min-height:90px!important}
.mh-tools-panel.is-tool-maximized .mh-notes-library-wrap{max-height:var(--mh-library-max-height,480px)!important}
.mh-tools-panel.is-tool-maximized .mh-mindmap-library-wrap{max-height:var(--mh-mindmap-library-max-height,480px)!important}
.mh-tools-panel.is-tool-maximized .mh-squares-library-wrap{max-height:var(--mh-squares-library-max-height,480px)!important}
/* In wide horizontal trays the divider resizes library width instead. */
@media(min-width:681px){
 .mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-tools-panel:not(.is-tool-maximized) .mh-mindmap-library-wrap,
 .mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-tools-panel:not(.is-tool-maximized) .mh-squares-library-wrap{max-height:none}
}
.mh-squares-worksheet tfoot .mh-squares-append-row{width:calc(38px * var(--mh-grid-zoom,1));min-width:calc(38px * var(--mh-grid-zoom,1))}
@media(max-width:680px){
 .mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-notes-library-wrap{flex:0 0 var(--mh-library-height,140px)!important;height:var(--mh-library-height,140px)!important}
 .mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-mindmap-library-wrap{flex:0 0 var(--mh-mindmap-library-height,140px)!important;height:var(--mh-mindmap-library-height,140px)!important}
 .mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-notes-library-resizer,
 .mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-mindmap-library-resizer{display:block!important;left:0!important;right:0!important;top:-6px!important;bottom:auto!important;width:auto!important;height:12px!important;cursor:ns-resize!important}
 .mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-notes-library-resizer:after,
 .mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-mindmap-library-resizer:after{left:28%!important;right:28%!important;top:5px!important;bottom:auto!important;width:auto!important;height:1px!important}
}

/* v1.2.11 — Squares library follows Mindmap's density and control layout. */
.mh-squares-panel .mh-squares-grid{grid-template-columns:repeat(var(--mh-squares-columns,4),minmax(0,1fr));gap:7px;justify-content:normal}
.mh-squares-panel.is-tool-maximized .mh-squares-grid{grid-template-columns:repeat(var(--mh-squares-columns,4),minmax(0,110px));justify-content:start}
.mh-squares-card{container-type:inline-size;padding:9px 6px 8px;justify-content:flex-start;gap:5px}
.mh-squares-card-visual{height:49px;width:100%;flex:none;margin:3px 0 0!important}
.mh-squares-card-visual svg{max-width:70%;max-height:100%}
.mh-squares-card-copy{padding-right:0}
.mh-squares-card-name{font-size:clamp(7px,9cqi,14px);line-height:1.2}
.mh-squares-card-copy small{font-size:clamp(6px,6cqi,9px)}
.mh-squares-card-pin{left:5px!important;right:auto!important;top:5px!important;width:25px!important;height:25px!important;border-radius:7px!important;background:rgba(5,20,35,.36)!important;color:#6f8ea9;font-size:15px!important;transform:none}
.mh-squares-card-pin.is-pinned{color:#ffd36c}
.mh-squares-card-tools{top:5px;right:5px;width:26px;gap:4px}
.mh-squares-card-tools .mh-squares-card-color,.mh-squares-card-tools .mh-squares-card-delete{position:static!important;width:24px!important;height:24px!important;padding:0!important;border:0!important;border-radius:7px!important;display:grid;place-items:center;background:rgba(5,20,35,.38);transform:none!important}
.mh-squares-card-color i{width:10px;height:10px}
.mh-squares-card-delete svg{width:13px;height:13px;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mh-squares-card-color-menu{right:30px;top:0;width:108px}
.mh-squares-card.is-drop-before{box-shadow:-4px 0 0 rgba(103,190,255,.68),inset 0 0 0 1px rgba(103,190,255,.08)}
.mh-squares-card.is-drop-after{box-shadow:4px 0 0 rgba(103,190,255,.68),inset 0 0 0 1px rgba(103,190,255,.08)}
.mh-squares-card.is-dragging{opacity:.35;transform:scale(.94)}
.mh-squares-library{padding:2px 2px 0}
.mh-squares-library-hint{position:static;flex:none;padding:5px 2px 0;background:none;font-size:7px;line-height:1.35}
.mh-squares-density{margin-top:5px}
.mh-squares-density [data-squares-grid-columns-label]{text-align:right;white-space:nowrap;color:#7998b4}
.mh-squares-library-bar{padding:6px 1px 5px;gap:5px;overflow:visible}
.mh-squares-library-heading{gap:7px;color:#cfe6fa;font-size:10px;font-weight:700}
.mh-squares-library-heading>span{font-size:10px;font-weight:700;color:#cfe6fa}
.mh-squares-library-heading>small{height:18px;min-width:19px;padding:0 5px;border:1px solid rgba(118,180,255,.14);background:rgba(61,156,255,.06);color:#7393af;font-size:8px;font-weight:700}
.mh-squares-deleted-toggle{flex:none;min-width:28px;width:28px;height:28px;padding:0;border:0;border-radius:7px;display:grid;place-items:center;background:transparent;color:#5f7d99}
.mh-squares-deleted-toggle svg{width:15px;height:15px;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mh-squares-deleted-toggle:hover{color:white;background:rgba(73,152,235,.09)}
.mh-mindmap-deleted-toggle [data-mindmap-deleted-count],.mh-squares-deleted-toggle [data-squares-deleted-count]{right:0;top:-2px;min-width:14px;height:14px;padding:0 3px;line-height:1;font-size:7px;font-weight:700;z-index:2;overflow:visible}
.mh-squares-zoom-controls{display:flex;align-items:center;gap:4px;flex:none;margin-left:auto}
.mh-squares-zoom-controls>[data-squares-zoom-step]{width:23px;height:23px;padding:0;border:1px solid #2a5474;border-radius:6px;background:#0b2942;color:#9dcbef;font-size:15px;line-height:1;cursor:pointer}
.mh-squares-zoom-controls>button:hover{color:white;background:#144065!important}
/* Keep the column append control at its actual column, with vertical header stickiness only. */
.mh-squares-worksheet .mh-squares-append-column{right:auto;left:auto}
@container(max-width:90px){
 .mh-squares-card-visual{height:35px}
 .mh-squares-card-pin{transform:scale(.86);transform-origin:top left}
}
@container(max-width:66px){
 .mh-squares-card-visual{height:23px;margin-top:2px!important}
 .mh-squares-card-pin{transform:scale(.72)}
 .mh-squares-card{padding:5px 3px;gap:2px}
}
@media(min-width:1051px){
 .mh-tools-rail.mh-toolbar-layout-right:not(.is-collapsed){padding-left:28px}
}
.mh-squares-library-bar{height:auto}
/* Previews fit their allotted slot at every density; tiny cards keep controls clear of names. */
.mh-squares-card{padding-bottom:6px;gap:2px}
.mh-squares-card-visual svg{height:100%;max-height:none}
@container(max-width:56px){
 .mh-squares-card-visual{height:24px;margin-top:0!important}
 .mh-squares-card-name{font-size:6px;line-height:6.5px}
 .mh-squares-card-copy small{display:none}
 .mh-squares-card-tools{transform:scale(.58)}
 .mh-squares-card-pin{transform:scale(.58)}
}

/* v1.2.12 — one stable drag interaction for both file libraries. */
[data-squares-card],[data-grid-key]{touch-action:none}
.mh-mindmap-card:hover,.mh-squares-card:hover{transform:none}
.mh-library-dragging,.mh-library-dragging *{cursor:grabbing!important;user-select:none!important}
.mh-library-drag-source{opacity:.24!important;transform:none!important;transition:none!important}
.mh-library-drag-ghost{position:fixed!important;z-index:10200!important;pointer-events:none!important;margin:0!important;opacity:.92!important;transform:none!important;transition:none!important;box-shadow:0 12px 32px #0007,0 0 0 1px #72caff!important;overflow:hidden!important}
.mh-library-ghost-name{font-size:10px;line-height:1.2;text-align:center;color:#dceeff;overflow:hidden;max-height:2.4em}
.mh-library-insertion{position:fixed;z-index:10210;width:3px;border-radius:2px;background:#79d6ff;box-shadow:0 0 9px #4badf9;pointer-events:none}
.mh-library-insertion[hidden]{display:none}
.mh-library-folder-target:after{content:attr(data-library-drop-hint);position:absolute;inset:17%;display:grid;place-items:center;border:1px dashed #75cfff;border-radius:8px;background:#0c2e4ee8;color:#e6f6ff;font-size:7px;font-weight:800;text-transform:uppercase;text-align:center;box-shadow:0 0 18px #46a6f729;pointer-events:none;z-index:20}
.mh-library-root-target{outline:2px solid #75cfff;outline-offset:2px}
.mh-library-saving{cursor:progress}
.mh-library-color-popover{position:fixed!important;z-index:10220!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:7px!important;width:124px!important;padding:10px!important;max-width:calc(100vw - 16px);border:1px solid #32658b!important;border-radius:10px!important;background:#091e33!important;box-shadow:0 12px 32px #0007!important;transform:none!important}
.mh-library-color-popover[hidden]{display:none!important}
.mh-library-color-popover button{width:18px!important;height:18px!important;padding:0!important;justify-self:center}
@media(prefers-reduced-motion:reduce){.mh-library-drag-ghost,.mh-library-insertion{transition:none!important}}

/* Keep library save feedback visible even before a spreadsheet is opened. */
.mh-squares-library-feedback{flex:none;min-height:12px;padding:3px 2px 0;line-height:1.2}
.mh-squares-library-feedback .mh-squares-save-status{display:block;max-width:none;white-space:normal;overflow-wrap:anywhere}


/* v1.2.16 — shared tool titles + Mind Map library-control parity -------------
   Keep the three tool headers visually aligned, remove the editor-level note
   colour control, and standardise Notes/Squares library pin/colour/delete
   controls on the exact Mind Map interaction language. */

/* Keep all three tool titles at exactly the same visual size. Quick Notes no
   longer grows its title with the Notes UI-scale slider. */
.mh-notes-panel>.mh-notes-rail-head h2,
.mh-mindmap-panel>.mh-notes-rail-head h2,
.mh-squares-panel>.mh-notes-rail-head h2{
  font-size:19px!important;
}

/* With the note colour picker removed, formatting starts at the original
   left edge of the toolbar without a dead spacer. */
.mh-notes-panel .mh-note-tools{justify-content:flex-start!important}
.mh-notes-panel .mh-note-format-tools{margin-left:0!important}

/* Feed the Mind Map colour-dot controls from the parent note/folder colour. */
.mh-note-row.is-slate,.mh-note-folder.is-slate{--mh-card-rgb:114,132,154}
.mh-note-row.is-blue,.mh-note-folder.is-blue{--mh-card-rgb:74,157,255}
.mh-note-row.is-cyan,.mh-note-folder.is-cyan{--mh-card-rgb:67,213,203}
.mh-note-row.is-mint,.mh-note-folder.is-mint{--mh-card-rgb:105,217,177}
.mh-note-row.is-green,.mh-note-folder.is-green{--mh-card-rgb:101,207,120}
.mh-note-row.is-lime,.mh-note-folder.is-lime{--mh-card-rgb:168,207,95}
.mh-note-row.is-amber,.mh-note-folder.is-amber{--mh-card-rgb:229,170,77}
.mh-note-row.is-orange,.mh-note-folder.is-orange{--mh-card-rgb:237,136,74}
.mh-note-row.is-red,.mh-note-folder.is-red{--mh-card-rgb:233,99,109}
.mh-note-row.is-rose,.mh-note-folder.is-rose{--mh-card-rgb:228,109,130}
.mh-note-row.is-pink,.mh-note-folder.is-pink{--mh-card-rgb:227,126,197}
.mh-note-row.is-violet,.mh-note-folder.is-violet{--mh-card-rgb:155,130,231}

/* Notes library: use Mind Map's exact compact controls, but keep them inside
   the existing row/folder flow instead of absolutely positioning them. */
.mh-notes-panel .mh-note-library-color,
.mh-notes-panel .mh-note-library-delete{
  position:static!important;
  flex:none!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  padding:0!important;
  border:0!important;
  border-radius:7px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(5,20,35,.38)!important;
  color:#7392ad!important;
  transform:none!important;
  transition:background .12s ease,color .12s ease,transform .12s ease!important;
}
.mh-notes-panel .mh-note-library-color span{
  width:10px!important;
  height:10px!important;
  border-radius:50%!important;
  background:rgb(var(--mh-card-rgb))!important;
  border:1px solid rgba(255,255,255,.24)!important;
  box-shadow:0 0 0 1px rgba(4,17,30,.78)!important;
}
.mh-notes-panel .mh-note-library-color:hover{
  background:rgba(var(--mh-card-rgb),.18)!important;
  color:#e2f4ff!important;
}
.mh-notes-panel .mh-note-library-delete:hover{
  background:rgba(233,99,109,.14)!important;
  color:#ff929a!important;
}
.mh-notes-panel .mh-note-library-delete svg{
  width:13px!important;height:13px!important;fill:none!important;stroke:currentColor!important;
  stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
.mh-notes-panel .mh-note-library-pin{
  position:static!important;
  flex:none!important;
  width:25px!important;height:25px!important;min-width:25px!important;
  padding:0!important;border:0!important;border-radius:7px!important;
  display:grid!important;place-items:center!important;
  background:rgba(5,20,35,.36)!important;color:#6f8ea9!important;
  font-size:15px!important;line-height:1!important;transform:none;
  transition:background .12s ease,color .12s ease,transform .12s ease!important;
}
.mh-notes-panel .mh-note-library-pin:hover{
  background:rgba(var(--mh-card-rgb),.16)!important;
  color:#e8f6ff!important;
  transform:scale(1.04)!important;
}
.mh-notes-panel .mh-note-library-pin.is-active{
  color:#ffd36c!important;
  text-shadow:0 0 10px rgba(255,195,69,.28)!important;
}
.mh-notes-panel .mh-row-color-picker,
.mh-notes-panel .mh-folder-color-picker{flex:none!important}
.mh-notes-panel .mh-row-actions{min-width:53px!important;gap:4px!important}

/* Squares already follows the Mind Map placement. These final declarations
   remove the last icon/style differences so the three actions feel identical. */
.mh-squares-card .mh-squares-card-pin{
  background:rgba(5,20,35,.36)!important;
  color:#6f8ea9!important;
  transition:background .12s ease,color .12s ease,transform .12s ease!important;
}
.mh-squares-card .mh-squares-card-pin:hover{
  background:color-mix(in srgb,var(--sq) 16%,transparent)!important;
  color:#e8f6ff!important;
  transform:scale(1.04)!important;
}
.mh-squares-card .mh-squares-card-pin.is-active,
.mh-squares-card .mh-squares-card-pin.is-pinned{
  color:#ffd36c!important;
  text-shadow:0 0 10px rgba(255,195,69,.28)!important;
}
.mh-squares-card .mh-squares-card-color,
.mh-squares-card .mh-squares-card-delete{
  background:rgba(5,20,35,.38)!important;
  color:#7392ad!important;
  transition:background .12s ease,color .12s ease,transform .12s ease!important;
}
.mh-squares-card .mh-squares-card-color:hover{
  background:color-mix(in srgb,var(--sq) 18%,transparent)!important;
  color:#e2f4ff!important;
}
.mh-squares-card .mh-squares-card-delete:hover{
  background:rgba(233,99,109,.14)!important;
  color:#ff929a!important;
}
.mh-squares-card .mh-squares-card-color span{
  width:10px!important;height:10px!important;border-radius:50%!important;
  background:var(--sq)!important;border:1px solid rgba(255,255,255,.24)!important;
  box-shadow:0 0 0 1px rgba(4,17,30,.78)!important;
}


/* v1.2.17 — cohesive folder icon + Squares empty-library context menu -------- */
/* Mind Map folders now use the same SVG silhouette as Squares folders. */
.mh-mindmap-folder-icon{
  width:61px;height:49px;max-width:100%;display:block;
  color:rgb(var(--mh-card-rgb));
  fill:rgba(var(--mh-card-rgb),.15);
  stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;
  opacity:.90;filter:drop-shadow(0 0 9px rgba(var(--mh-card-rgb),.13));
  transform-origin:center center;transition:transform .14s ease,filter .14s ease,opacity .14s ease
}
.mh-mindmap-folder-card:hover .mh-mindmap-folder-icon{filter:drop-shadow(0 0 11px rgba(var(--mh-card-rgb),.20));opacity:.98}
.mh-mindmap-grid[data-columns="3"] .mh-mindmap-folder-icon{transform:scale(1.15)}
.mh-mindmap-grid[data-columns="2"] .mh-mindmap-folder-icon{transform:scale(1.38)}
.mh-mindmap-grid[data-columns="1"] .mh-mindmap-folder-icon{transform:scale(1.72)}

/* Empty-space Squares menu deliberately reuses the Mind Map context-menu UI. */
.mh-squares-library-context-menu{position:absolute!important;z-index:135!important;min-width:174px}
.mh-squares-library-context-menu .mh-mindmap-context-submenu{z-index:140}

/* v1.2.18 — Economic Calendar Trader Tool ---------------------------------- */
.mh-economic-calendar-panel{
  min-height:0;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  container-type:inline-size;
}
.mh-economic-calendar-head{flex:none;align-items:center!important}
.mh-economic-calendar-panel>.mh-notes-rail-head h2{font-size:25px!important;line-height:1.05!important}
.mh-ecal-shell{
  flex:1 1 auto;
  min-height:0;
  margin-top:8px;
  padding:0 2px 8px 0;
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow:hidden;
  scrollbar-width:thin;
  scrollbar-color:#2369a9 #061426;
}
.mh-ecal-shell::-webkit-scrollbar{width:7px;height:7px}
.mh-ecal-shell::-webkit-scrollbar-track{background:#061426;border-radius:10px}
.mh-ecal-shell::-webkit-scrollbar-thumb{background:#2369a9;border-radius:10px;border:1px solid #07182a}

.mh-ecal-hero{
  position:relative;
  flex:none;
  min-height:112px;
  overflow:hidden;
  padding:16px 132px 14px 15px;
  border:1px solid rgba(87,173,246,.22);
  border-radius:13px;
  background:
    linear-gradient(90deg,rgba(5,18,33,.96) 0%,rgba(7,25,44,.96) 53%,rgba(5,22,40,.80) 100%),
    radial-gradient(circle at 82% 45%,rgba(18,113,206,.28),transparent 43%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 12px 30px rgba(0,0,0,.18);
}
.mh-ecal-hero:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;
  background-image:linear-gradient(rgba(70,158,236,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(70,158,236,.16) 1px,transparent 1px);
  background-size:34px 34px;
}
.mh-ecal-hero-copy{position:relative;z-index:2}
.mh-ecal-live{display:flex;align-items:center;gap:5px;color:#43dfa9;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.11em}
.mh-ecal-live span{width:6px;height:6px;border-radius:50%;background:#43dfa9;box-shadow:0 0 11px rgba(67,223,169,.72)}
.mh-ecal-hero-copy p{max-width:190px;margin:10px 0 0;color:#9bb3ca;font-size:10px;line-height:1.45}
.mh-ecal-globe{
  position:absolute;z-index:1;right:-28px;top:-34px;width:178px;height:178px;border-radius:50%;
  border:1px solid rgba(52,153,239,.30);
  background:
    radial-gradient(circle at 42% 38%,rgba(71,176,255,.20),transparent 32%),
    repeating-radial-gradient(circle at 50% 50%,transparent 0 13px,rgba(77,175,255,.07) 14px 15px),
    linear-gradient(145deg,rgba(16,65,111,.38),rgba(4,18,32,.12));
  box-shadow:inset -22px -24px 50px rgba(0,0,0,.52),0 0 35px rgba(37,145,235,.18);
}
.mh-ecal-globe:before,.mh-ecal-globe:after{content:"";position:absolute;border:1px solid rgba(64,181,255,.30);border-radius:50%;pointer-events:none}
.mh-ecal-globe:before{inset:39px -38px;transform:rotate(-18deg)}
.mh-ecal-globe:after{inset:65px -45px;transform:rotate(27deg)}
.mh-ecal-globe span{position:absolute;inset:31px;background-image:radial-gradient(circle,rgba(87,194,255,.76) 1px,transparent 1.5px);background-size:9px 9px;mask-image:radial-gradient(circle at 58% 50%,#000 0 45%,transparent 47%);opacity:.60}
.mh-ecal-next{
  position:absolute;z-index:3;right:13px;bottom:13px;min-width:92px;padding:7px 9px;border:1px solid rgba(71,181,255,.20);border-radius:8px;
  background:rgba(5,25,45,.82);backdrop-filter:blur(8px);box-shadow:0 8px 20px rgba(0,0,0,.22)
}
.mh-ecal-next small{display:block;color:#647f99;font-size:6px;font-weight:800;letter-spacing:.13em}
.mh-ecal-next strong{display:block;margin-top:2px;color:#45e7bd;font:700 13px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;text-shadow:0 0 12px rgba(69,231,189,.22)}

.mh-ecal-date-card,.mh-ecal-events-card{
  flex:none;
  border:1px solid rgba(82,169,244,.20);
  border-radius:13px;
  background:linear-gradient(180deg,rgba(7,27,47,.98),rgba(5,20,36,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 10px 28px rgba(0,0,0,.16);
}
.mh-ecal-date-card{padding:9px 9px 10px}
.mh-ecal-date-head{display:grid;grid-template-columns:27px minmax(0,1fr) 27px auto;gap:5px;align-items:center}
.mh-ecal-nav,.mh-ecal-today,.mh-ecal-month-toggle{
  border:1px solid rgba(86,169,239,.15);background:#081d33;color:#9dbbd5;appearance:none;-webkit-appearance:none
}
.mh-ecal-nav{width:27px;height:27px;padding:0;display:grid;place-items:center;border-radius:8px}
.mh-ecal-nav svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mh-ecal-nav:hover{color:#eaf8ff;border-color:rgba(93,193,255,.48);background:#0d2946;box-shadow:0 0 13px rgba(57,169,255,.12)}
.mh-ecal-month-toggle{min-width:0;height:29px;padding:0 8px;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:750;color:#d8eafd;white-space:nowrap}
.mh-ecal-month-toggle svg{width:12px;height:12px;fill:none;stroke:#72bff5;stroke-width:2;transition:transform .18s ease}
.mh-ecal-month-toggle.is-expanded svg{transform:rotate(180deg)}
.mh-ecal-month-toggle:hover{border-color:rgba(91,188,255,.42);background:#0b2947}
.mh-ecal-today{height:27px;padding:0 8px;border-radius:8px;font-size:8px;font-weight:800;color:#56b8ff}
.mh-ecal-today:hover,.mh-ecal-today.is-current{color:#dff5ff;border-color:rgba(62,165,255,.48);background:rgba(31,128,219,.17)}

.mh-ecal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:8px}
.mh-ecal-week-day,.mh-ecal-month-day{
  min-width:0;padding:0;border:1px solid transparent;background:transparent;color:#a7bdd0;border-radius:8px;appearance:none;-webkit-appearance:none
}
.mh-ecal-week-day{height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.mh-ecal-week-day>span{font-size:7px;font-weight:700;color:#6987a1;text-transform:uppercase}
.mh-ecal-week-day>strong{font-size:11px;line-height:1;color:#9eb7ce}
.mh-ecal-week-day.is-outside{opacity:.48}
.mh-ecal-week-day:hover,.mh-ecal-month-day:hover{background:rgba(32,111,184,.10);border-color:rgba(83,172,242,.17)}
.mh-ecal-week-day.is-selected,.mh-ecal-month-day.is-selected{
  color:#fff;border-color:#2f9dff;background:radial-gradient(circle at 50% 45%,rgba(66,166,255,.38),rgba(12,65,112,.37));
  box-shadow:0 0 0 1px rgba(74,175,255,.14),0 0 16px rgba(44,154,255,.34),inset 0 0 15px rgba(66,159,245,.18)
}
.mh-ecal-week-day.is-selected>strong,.mh-ecal-month-day.is-selected>strong{color:#fff}
.mh-ecal-week-day.is-today:not(.is-selected)>strong,.mh-ecal-month-day.is-today:not(.is-selected)>strong{color:#51c8ff}
.mh-ecal-marker-space{height:5px;display:block}
.mh-ecal-markers{height:5px;display:flex;align-items:center;justify-content:center;gap:2px}
.mh-ecal-markers i{display:block;width:4px;height:4px;border-radius:50%;box-shadow:0 0 6px currentColor}
.mh-ecal-markers .is-high{background:#ff5965;color:#ff5965}.mh-ecal-markers .is-medium{background:#ff8c24;color:#ff8c24}.mh-ecal-markers .is-low{background:#49dda6;color:#49dda6}.mh-ecal-markers .is-holiday{background:#57bdfd;color:#57bdfd}

.mh-ecal-month{margin-top:9px;padding-top:8px;border-top:1px solid rgba(94,165,225,.11)}
.mh-ecal-weekdays,.mh-ecal-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.mh-ecal-weekdays{margin-bottom:4px}
.mh-ecal-weekdays span{text-align:center;color:#667f98;font-size:7px;font-weight:800;text-transform:uppercase}
.mh-ecal-month-day{height:38px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.mh-ecal-month-day>strong{font-size:10px;color:#afc2d5}
.mh-ecal-month-day.is-outside{opacity:.30}

.mh-ecal-events-card{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.mh-ecal-events-head{flex:none;min-height:44px;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid rgba(92,163,224,.11)}
.mh-ecal-events-head>div{min-width:0}
.mh-ecal-events-head strong{display:block;color:#ddecfa;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-ecal-events-head small{display:block;margin-top:2px;color:#667f98;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-ecal-event-count{min-width:23px;height:19px;padding:0 6px;display:grid;place-items:center;border:1px solid rgba(78,168,244,.18);border-radius:10px;background:#071b2f;color:#6ebcf5;font-size:8px}
.mh-ecal-table-head,.mh-ecal-event-row{
  display:grid;
  grid-template-columns:35px 44px 46px minmax(60px,1fr) 40px 40px 40px;
  gap:4px;
  align-items:center;
}
.mh-ecal-table-head{flex:none;padding:6px 8px;border-bottom:1px solid rgba(92,163,224,.09);color:#5f7891;font-size:5.7px;font-weight:800;text-transform:uppercase;letter-spacing:.025em}
.mh-ecal-events{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;scrollbar-width:thin;scrollbar-color:#1f619d #061426}
.mh-ecal-events::-webkit-scrollbar{width:6px}.mh-ecal-events::-webkit-scrollbar-track{background:#061426}.mh-ecal-events::-webkit-scrollbar-thumb{background:#1f619d;border-radius:8px}
.mh-ecal-event-row{min-height:35px;padding:5px 8px;border-bottom:1px solid rgba(86,154,215,.075);color:#9fb5ca;font-size:8px}
.mh-ecal-event-row:last-child{border-bottom:0}
.mh-ecal-event-row:hover{background:rgba(37,113,182,.06)}
.mh-ecal-time{color:#a9c1d7;font-variant-numeric:tabular-nums}
.mh-ecal-currency{display:flex;align-items:center;gap:3px;color:#e2edf7;font-weight:800}.mh-ecal-currency i{font-style:normal;font-size:9px}
.mh-ecal-impact{display:inline-flex;max-width:100%;height:16px;padding:0 5px;align-items:center;border-radius:8px;border:1px solid currentColor;font-size:6.2px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-ecal-impact.is-high{color:#ff7982;background:rgba(255,89,101,.09)}.mh-ecal-impact.is-medium{color:#ff8c24;background:rgba(255,140,36,.12)}.mh-ecal-impact.is-low{color:#ffdd59;background:rgba(255,221,89,.07)}.mh-ecal-impact.is-holiday{color:#70c8ff;background:rgba(87,189,253,.08)}
.mh-ecal-event-title{min-width:0;color:#d6e4f1;font-size:7.7px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-ecal-value{min-width:0;color:#9ab0c4;font-size:7.3px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mh-ecal-value.is-actual{font-weight:800}
.mh-ecal-empty,.mh-ecal-loading{min-height:96px;padding:18px 12px;display:flex;align-items:center;justify-content:center;gap:7px;text-align:center;color:#708ba4;font-size:9px;line-height:1.45}
.mh-ecal-empty.is-error{color:#df8f98}.mh-ecal-loading i{width:8px;height:8px;border-radius:50%;border:1px solid #2d80c8;border-top-color:#76cbff;animation:mhEcalSpin .75s linear infinite}@keyframes mhEcalSpin{to{transform:rotate(360deg)}}
.mh-ecal-foot{flex:none;padding:2px 2px 0;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#5f7891;font-size:7px}.mh-ecal-foot a{color:#55b9f9;font-weight:700;white-space:nowrap}.mh-ecal-foot a:hover{color:#bde9ff}

/* In a horizontal top/bottom tray the calendar becomes a compact two-column
   workspace: overview/date selector left, live event list right. */
.mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-economic-calendar-panel:not([hidden]){height:100%!important;min-height:0!important}
.mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-economic-calendar-panel:not([hidden]) .mh-ecal-shell{
  display:grid;
  grid-template-columns:minmax(250px,.82fr) minmax(0,1.55fr);
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:8px 12px;
  overflow:hidden;
}
.mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-economic-calendar-panel:not([hidden]) .mh-ecal-hero{grid-column:1;grid-row:1;min-height:82px;padding-top:12px;padding-bottom:10px}
.mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-economic-calendar-panel:not([hidden]) .mh-ecal-date-card{grid-column:1;grid-row:2;min-height:0;overflow:auto}
.mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-economic-calendar-panel:not([hidden]) .mh-ecal-events-card{grid-column:2;grid-row:1/3;min-height:0;display:flex;flex-direction:column}
.mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-economic-calendar-panel:not([hidden]) .mh-ecal-events{flex:1 1 auto;max-height:none}
.mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-economic-calendar-panel:not([hidden]) .mh-ecal-foot{grid-column:1/-1;grid-row:3}

/* Expanded tool view gets the same two-column composition on larger screens. */
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-shell{display:grid;grid-template-columns:minmax(300px,430px) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:12px 16px;overflow:hidden}
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-hero{grid-column:1;grid-row:1}.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-date-card{grid-column:1;grid-row:2;min-height:0;overflow:auto}.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card{grid-column:2;grid-row:1/3;min-height:0;display:flex;flex-direction:column}.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events{flex:1 1 auto;max-height:none}.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-foot{grid-column:1/-1;grid-row:3}
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-table-head,.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-event-row{grid-template-columns:55px 70px 78px minmax(150px,1fr) 72px 72px 72px;font-size:10px}.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-table-head{font-size:7px}.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-event-title{font-size:10px}.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-value{font-size:9px}.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-impact{font-size:7.5px}

@media(max-width:680px){
  .mh-tools-rail:is(.mh-toolbar-layout-top,.mh-toolbar-layout-bottom) .mh-economic-calendar-panel:not([hidden]) .mh-ecal-shell,
  .mh-economic-calendar-panel.is-tool-maximized .mh-ecal-shell{display:flex;flex-direction:column;overflow:hidden}
  .mh-ecal-hero{padding-right:112px}
  .mh-ecal-globe{right:-46px}
}


/* v1.2.19 — Economic Calendar horizontal date carousel -------------------- */
.mh-ecal-week{
  display:flex!important;
  grid-template-columns:none!important;
  gap:4px!important;
  margin-top:8px;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  /* JS owns date snapping; browser re-snapping during layout causes drift. */
  scroll-snap-type:none;
  scroll-behavior:auto;
  overflow-anchor:none;
  scrollbar-width:none;
  cursor:grab;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
}
.mh-ecal-week[hidden]{display:none!important}
.mh-ecal-week::-webkit-scrollbar{display:none}
.mh-ecal-week.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.mh-ecal-week-day{
  flex:0 0 calc((100% - 24px)/7);
  min-width:calc((100% - 24px)/7);
  scroll-snap-align:start;
  scroll-snap-stop:normal;
}
/* Weekdays are deliberately brighter than weekends so the trading week reads
   immediately, while Saturday/Sunday keep the original muted treatment. */
.mh-ecal-week-day.is-weekday>span{color:#78c8f6}
.mh-ecal-week-day.is-weekday>strong{color:#b7d9ef}
.mh-ecal-week-day.is-weekend>span{color:#6987a1}
.mh-ecal-week-day.is-weekend>strong{color:#9eb7ce}
.mh-ecal-week-day.is-selected>span{color:#aee4ff}
.mh-ecal-week-day.is-selected>strong{color:#fff}


/* v1.2.20 — calendar date click + dual today/selection states -------------
   Today remains permanently highlighted, while the user-selected date gets a
   separate softer cyan treatment. This makes "today" and "viewing" two
   independent states instead of one replacing the other. */
.mh-ecal-week-day.is-today,
.mh-ecal-month-day.is-today{
  color:#fff!important;
  border-color:#2f9dff!important;
  background:radial-gradient(circle at 50% 45%,rgba(66,166,255,.38),rgba(12,65,112,.37))!important;
  box-shadow:0 0 0 1px rgba(74,175,255,.14),0 0 16px rgba(44,154,255,.34),inset 0 0 15px rgba(66,159,245,.18)!important;
}
.mh-ecal-week-day.is-today>span,
.mh-ecal-month-day.is-today>span{color:#aee4ff!important}
.mh-ecal-week-day.is-today>strong,
.mh-ecal-month-day.is-today>strong{color:#fff!important}

.mh-ecal-week-day.is-selected:not(.is-today),
.mh-ecal-month-day.is-selected:not(.is-today){
  color:#f4fdff!important;
  border-color:rgba(78,214,255,.82)!important;
  background:linear-gradient(180deg,rgba(25,117,165,.24),rgba(8,52,84,.30))!important;
  box-shadow:0 0 0 1px rgba(72,215,255,.09),0 0 13px rgba(62,201,255,.20),inset 0 0 12px rgba(74,193,255,.09)!important;
}
.mh-ecal-week-day.is-selected:not(.is-today)>span,
.mh-ecal-month-day.is-selected:not(.is-today)>span{color:#bcefff!important}
.mh-ecal-week-day.is-selected:not(.is-today)>strong,
.mh-ecal-month-day.is-selected:not(.is-today)>strong{color:#eefcff!important}


/* v1.4.8 — date-state cleanup ---------------------------------------------
   A holiday is calendar content, not a date-selection state. Ordinary holiday
   dates keep the normal day surface and are indicated only by their marker dot.
   Today remains the permanent blue highlight; a user-selected non-today date
   keeps the separate cyan selection treatment defined above. */
.mh-ecal-week-day.is-bank-holiday:not(.is-today):not(.is-selected),
.mh-ecal-month-day.is-bank-holiday:not(.is-today):not(.is-selected){
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
.mh-ecal-week-day.is-bank-holiday:not(.is-today):not(.is-selected)>span,
.mh-ecal-month-day.is-bank-holiday:not(.is-today):not(.is-selected)>span{color:inherit!important}
.mh-ecal-week-day.is-bank-holiday:not(.is-today):not(.is-selected)>strong,
.mh-ecal-month-day.is-bank-holiday:not(.is-today):not(.is-selected)>strong{color:inherit!important}
/* Holiday stays visible as a dot without painting the whole day. */
.mh-ecal-markers .is-holiday{background:#ff5c68!important;color:#ff5c68!important}

/* Reuse the exact Squares/Mind Map bottom range-control language for both the
   calendar size control and Notepad size control. */
.mh-notes-scale-control.mh-mindmap-density,
.mh-ecal-size-control.mh-mindmap-density{
  grid-template-columns:18px minmax(70px,1fr) 52px!important;
  min-height:34px!important;margin-top:5px!important;padding:6px 4px 1px!important;
  gap:8px!important;color:#65829d!important;font-size:7.5px!important;font-weight:700!important;
}
.mh-notes-scale-control.mh-mindmap-density input[type="range"],
.mh-ecal-size-control.mh-mindmap-density input[type="range"]{
  width:100%!important;height:16px!important;margin:0!important;background:transparent!important;
  accent-color:#4a9dff!important;cursor:pointer!important;direction:ltr!important;appearance:auto!important;-webkit-appearance:auto!important;
}
.mh-notes-scale-control.mh-mindmap-density [data-notes-scale-label],
.mh-ecal-size-control [data-ecal-size-label]{text-align:right;white-space:nowrap;color:#7998b4}
.mh-notes-scale-control.mh-mindmap-density .mh-mindmap-density-icon{font-size:12px}

/* Calendar interface sizing. The slider scales the calendar workspace as one
   unit while preserving its container width; Chrome/Edge support CSS zoom and
   it produces much cleaner text than transform scaling. */
.mh-ecal-shell{zoom:var(--mh-ecal-ui-scale,1)}
.mh-ecal-size-control{flex:none}
@supports not (zoom:1){
  .mh-ecal-shell{font-size:calc(100% * var(--mh-ecal-ui-scale,1))}
}


/* v1.2.23 — event-table-only zoom + bottom slider + trader holiday focus ---- */
/* The calendar zoom control is a true tool footer, just like the other tools. */
.mh-economic-calendar-panel>.mh-ecal-size-control{
  flex:none!important;
  width:100%!important;
  margin-top:auto!important;
  padding-top:6px!important;
  padding-bottom:1px!important;
}
.mh-economic-calendar-panel>.mh-ecal-shell{
  flex:1 1 auto!important;
  min-height:0!important;
  zoom:1!important;
  font-size:100%!important;
  padding-bottom:4px!important;
}

/* Notes uses the same bottom-slider visual language as Squares. */
.mh-notes-scale-control.mh-squares-density .mh-mindmap-density-icon,
.mh-ecal-size-control.mh-squares-density .mh-mindmap-density-icon{
  font-size:14px!important;
  color:#8bb5d7!important;
}

/* Only the economic EVENTS card responds to the percentage slider. The date
   carousel, hero, month calendar and overall tool panel stay at 100%. */
.mh-ecal-events-card{--mh-ecal-events-scale:1}
.mh-ecal-events-card .mh-ecal-events-head{
  min-height:calc(44px * var(--mh-ecal-events-scale));
  padding:calc(9px * var(--mh-ecal-events-scale)) calc(10px * var(--mh-ecal-events-scale));
  gap:calc(8px * var(--mh-ecal-events-scale));
}
.mh-ecal-events-card .mh-ecal-events-head strong{font-size:calc(10px * var(--mh-ecal-events-scale))}
.mh-ecal-events-card .mh-ecal-events-head small{margin-top:calc(2px * var(--mh-ecal-events-scale));font-size:calc(7px * var(--mh-ecal-events-scale))}
.mh-ecal-events-card .mh-ecal-event-count{
  min-width:calc(23px * var(--mh-ecal-events-scale));
  height:calc(19px * var(--mh-ecal-events-scale));
  padding:0 calc(6px * var(--mh-ecal-events-scale));
  border-radius:calc(10px * var(--mh-ecal-events-scale));
  font-size:calc(8px * var(--mh-ecal-events-scale));
}
.mh-ecal-events-card .mh-ecal-table-head,
.mh-ecal-events-card .mh-ecal-event-row{
  grid-template-columns:
    calc(35px * var(--mh-ecal-events-scale))
    calc(44px * var(--mh-ecal-events-scale))
    calc(46px * var(--mh-ecal-events-scale))
    minmax(calc(60px * var(--mh-ecal-events-scale)),1fr)
    calc(40px * var(--mh-ecal-events-scale))
    calc(40px * var(--mh-ecal-events-scale))
    calc(40px * var(--mh-ecal-events-scale));
  gap:calc(4px * var(--mh-ecal-events-scale));
}
.mh-ecal-events-card .mh-ecal-table-head{
  padding:calc(6px * var(--mh-ecal-events-scale)) calc(8px * var(--mh-ecal-events-scale));
  font-size:calc(5.7px * var(--mh-ecal-events-scale));
}
.mh-ecal-events-card .mh-ecal-events{max-height:none}
.mh-ecal-events-card .mh-ecal-event-row{
  min-height:calc(35px * var(--mh-ecal-events-scale));
  padding:calc(5px * var(--mh-ecal-events-scale)) calc(8px * var(--mh-ecal-events-scale));
  font-size:calc(8px * var(--mh-ecal-events-scale));
}
.mh-ecal-events-card .mh-ecal-currency{gap:calc(3px * var(--mh-ecal-events-scale))}
.mh-ecal-events-card .mh-ecal-currency i{font-size:calc(9px * var(--mh-ecal-events-scale))}
.mh-ecal-events-card .mh-ecal-impact{
  height:calc(16px * var(--mh-ecal-events-scale));
  padding:0 calc(5px * var(--mh-ecal-events-scale));
  border-radius:calc(8px * var(--mh-ecal-events-scale));
  font-size:calc(6.2px * var(--mh-ecal-events-scale));
}
.mh-ecal-events-card .mh-ecal-event-title{font-size:calc(7.7px * var(--mh-ecal-events-scale))}
.mh-ecal-events-card .mh-ecal-value{font-size:calc(7.3px * var(--mh-ecal-events-scale))}
.mh-ecal-events-card .mh-ecal-empty,
.mh-ecal-events-card .mh-ecal-loading{
  min-height:calc(96px * var(--mh-ecal-events-scale));
  padding:calc(18px * var(--mh-ecal-events-scale)) calc(12px * var(--mh-ecal-events-scale));
  gap:calc(7px * var(--mh-ecal-events-scale));
  font-size:calc(9px * var(--mh-ecal-events-scale));
}

/* Preserve the larger expanded-mode column proportions while still respecting
   the event-table zoom percentage. */
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-table-head,
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-event-row{
  grid-template-columns:
    calc(55px * var(--mh-ecal-events-scale))
    calc(70px * var(--mh-ecal-events-scale))
    calc(78px * var(--mh-ecal-events-scale))
    minmax(calc(150px * var(--mh-ecal-events-scale)),1fr)
    calc(72px * var(--mh-ecal-events-scale))
    calc(72px * var(--mh-ecal-events-scale))
    calc(72px * var(--mh-ecal-events-scale));
}
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-table-head{font-size:calc(7px * var(--mh-ecal-events-scale))}
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-event-title{font-size:calc(10px * var(--mh-ecal-events-scale))}
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-value{font-size:calc(9px * var(--mh-ecal-events-scale))}
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-impact{font-size:calc(7.5px * var(--mh-ecal-events-scale))}


/* v1.2.24 — calendar zoom headroom + resize-stable date carousel ----------- */
/* v1.2.25 — resize preserves the date position without toggling CSS snapping.
   Smooth motion is requested only by calendar navigation/drag completion. */

/* Event-table zoom now has extra headroom up to 150%. 120% remains the same
   useful mid/high setting; larger values are optional for users who prefer a
   more readable event table. */
.mh-ecal-size-control [data-ecal-size-label]{min-width:34px}

/* v1.2.26 — keep tool scrolling inside every dock/expanded panel. */
[data-mh-tools], [data-mh-tool-panel],
[data-mh-tools] *, [data-mh-tool-panel] *{overscroll-behavior:contain}
/* Clipped note rows and folders must pass wheel input to the library scroller. */
.mh-notes-library *{overscroll-behavior:auto}

/* v1.2.28 — Economic Calendar sorting and event filters. */
.mh-ecal-events-head .mh-ecal-heading-copy{flex:1;min-width:0}
.mh-ecal-events-head .mh-ecal-filter-bar{flex:none;display:flex;align-items:center;gap:4px;padding:0;border:0}
.mh-ecal-filter-bar button{min-width:0;display:flex;align-items:center;gap:4px;height:27px;padding:0 7px;border:1px solid #244969;border-radius:7px;background:#081d33;color:#b9d8ef;font-size:9px;cursor:pointer}
.mh-ecal-filter-bar button span{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mh-ecal-filter-bar button i{font-style:normal;color:#6faad4}
.mh-ecal-filter-bar button.is-active{border-color:#3c82b5;color:#8ed5ff;background:#0d2b43}
.mh-ecal-filter-bar button[hidden]{display:none}
.mh-ecal-filter-popover{position:fixed;z-index:10250;box-sizing:border-box;width:218px;max-width:calc(100vw - 16px);max-height:320px;overflow:auto;padding:10px;font-family:Inter,system-ui,sans-serif;border:1px solid #32658b;border-radius:10px;background:#091e33;color:#cbe2f5;box-shadow:0 14px 35px #0008;scrollbar-width:thin;scrollbar-color:#286fa8 #071827;overscroll-behavior:contain}
.mh-ecal-filter-popover>*{overscroll-behavior:contain}
.mh-ecal-filter-popover>strong{display:block;font-size:11px;margin-bottom:3px}
.mh-ecal-filter-popover>small{display:block;color:#7f9ab2;font-size:9px;margin-bottom:7px}
.mh-ecal-filter-option{min-height:31px;display:flex;align-items:center;gap:7px;border-radius:5px;font-size:11px}
.mh-ecal-filter-option:hover{background:#12324e}
.mh-ecal-filter-option label,.mh-ecal-filter-option.is-all{display:flex;align-items:center;gap:8px;flex:1;cursor:pointer;padding:3px 5px}
.mh-ecal-filter-option.is-all{border-bottom:1px solid #244969;border-radius:0;margin-bottom:4px;padding-bottom:7px}
.mh-ecal-filter-option input{width:13px;height:13px;flex:none;margin:0;accent-color:#4bb9ff;cursor:pointer}
.mh-ecal-currency-star{width:26px;height:26px;flex:none;border:0;border-radius:5px;background:transparent;color:#688da8;font-size:18px;cursor:pointer}
.mh-ecal-currency-star:hover,.mh-ecal-currency-star.is-favourite{color:#ffd16b;background:#ffd16b0c}
.mh-ecal-filter-popover :focus-visible{outline:1px solid #64c6ff;outline-offset:2px}
.mh-ecal-table-head [data-ecal-sort]{min-width:0;display:flex;align-items:center;gap:2px;border:0;padding:0;background:transparent;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;text-align:left;cursor:pointer}
.mh-ecal-table-head [data-ecal-sort] i{font-size:.8em;font-style:normal;color:#5b9bc9}
.mh-ecal-table-head [data-ecal-sort]:hover,.mh-ecal-table-head [data-ecal-sort].is-active{color:#8ed5ff}
.mh-ecal-table-head [data-ecal-sort]:focus-visible,.mh-ecal-filter-bar :focus-visible{outline:1px solid #64c6ff;outline-offset:2px}

/* Source-reported result and revision colouring. */
.mh-ecal-value.is-better{color:#53e1bd}.mh-ecal-value.is-worse{color:#ff7982}
.mh-ecal-impact.is-non-economic,.mh-ecal-impact.is-unknown{color:#a1aab8;background:rgba(161,170,184,.07)}

/* Article search results can be dropped into either mindmap canvas. */
[data-mindmap-canvas].is-article-drop-target,.mh-nm-canvas.is-article-drop-target{box-shadow:inset 0 0 0 2px #6fc5eb88}
[data-mindmap-canvas].is-article-drop-target:after,.mh-nm-canvas.is-article-drop-target:after{content:"Drop article here";position:absolute;z-index:30;left:50%;bottom:48px;transform:translateX(-50%);padding:7px 12px;border:1px solid #6fc5eb66;border-radius:7px;background:#102c43;box-shadow:0 4px 12px #0005;color:#d8f1ff;font-size:12px;pointer-events:none}

/* v1.3.14 — Market Horizones editorial sidebar navigation. */
.mh-nav{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(103,162,224,.35) transparent}
.mh-nav a{gap:11px;padding:12px 17px;font-size:13px;line-height:1.3;min-height:46px}
.mh-nav a svg{width:19px;height:19px;flex:0 0 19px}
.mh-nav a span{min-width:0;overflow-wrap:break-word;text-wrap:pretty}
.mh-reports-content{margin-top:20px;padding:30px 36px;min-height:220px}
.mh-reports-empty{text-align:center;padding:38px 14px;color:var(--mh-muted)}
.mh-reports-empty h2{font-family:Georgia,serif;font-size:26px;color:var(--mh-text);margin:0 0 12px}
.mh-reports-empty p{max-width:620px;margin:0 auto}
.mh-reports-editor-content{color:#c8d8e8;font-size:15px;line-height:1.7}
.mh-reports-editor-content a{color:var(--mh-blue2);text-decoration:underline}
@media(max-width:1320px) and (min-width:801px){
  .mh-workspace-enabled .mh-nav a{padding:15px 10px;justify-content:center}
}
@media(max-width:1180px) and (min-width:801px){
  .mh-nav a{padding:15px 10px;justify-content:center}
}
@media(max-width:800px){
  .mh-sidebar{left:-252px;width:244px}
  .mh-nav a,.mh-workspace-enabled .mh-nav a{justify-content:flex-start;padding:13px 18px}
  .mh-nav a span,.mh-workspace-enabled .mh-nav a span{display:inline}
  .mh-reports-content{padding:22px}
}

/* All visitors can use the workspace; saved guests stay browser-local. */
.mh-workspace-access{flex:none;margin:0 0 10px;padding:0 2px;color:#a9c9ec;font-size:11px;line-height:1.5}
.mh-workspace-access a{color:#86c3ff;text-decoration:underline;margin-left:6px}
.mh-workspace-access small{display:block;color:#8ea5bf;margin-top:2px}
.mh-workspace-access:empty{display:none}


/* v1.4.7 — compact Economic Calendar header + filtered next-event countdown. */
.mh-workspace-access{margin-bottom:5px}
.mh-economic-calendar-head{
  flex:none!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:end!important;
  gap:8px!important;
  padding:0 2px 7px!important;
}
.mh-economic-calendar-title{min-width:0}
.mh-economic-calendar-panel>.mh-notes-rail-head h2{margin-top:2px!important;font-size:25px!important;line-height:1.02!important}
.mh-economic-calendar-head-meta{display:contents}
.mh-economic-calendar-head .mh-tool-head-actions{display:flex;align-items:center;margin:0}
.mh-ecal-next-inline{
  position:static!important;
  appearance:none;
  min-width:112px;
  max-width:154px;
  padding:6px 9px!important;
  border:1px solid rgba(71,181,255,.25)!important;
  border-radius:8px;
  background:rgba(5,25,45,.88)!important;
  color:inherit;
  backdrop-filter:blur(8px);
  box-shadow:0 5px 15px rgba(0,0,0,.18);
  text-align:left;
  cursor:pointer;
  overflow:hidden;
}
.mh-ecal-next-inline:hover,.mh-ecal-next-inline[aria-expanded="true"]{border-color:rgba(71,181,255,.55)!important;background:rgba(9,38,65,.96)!important}
.mh-ecal-next-inline:focus-visible{outline:1px solid #64c6ff;outline-offset:2px}
.mh-ecal-next-inline small{display:block;color:#708aa4;font-size:6px;font-weight:800;letter-spacing:.13em;line-height:1}
.mh-ecal-next-inline strong{display:block;margin-top:3px;color:#45e7bd;font:700 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-shadow:0 0 12px rgba(69,231,189,.22);white-space:nowrap}
.mh-ecal-next-inline span{display:block;margin-top:3px;color:#8faac2;font-size:7px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-economic-calendar-panel .mh-ecal-shell{margin-top:5px;gap:7px}
.mh-economic-calendar-panel .mh-ecal-foot{justify-content:flex-start}

.mh-ecal-next-popover{
  position:fixed;z-index:2147483600;width:min(300px,calc(100vw - 16px));max-height:min(440px,calc(100vh - 16px));overflow:auto;
  padding:11px;border:1px solid #28567b;border-radius:10px;background:#0b2338;box-shadow:0 16px 42px rgba(0,0,0,.48);color:#d9e9f7;font-size:11px
}
.mh-ecal-next-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px;padding-bottom:8px;border-bottom:1px solid #244969}
.mh-ecal-next-popover-head strong{display:block;color:#f2f8ff;font-size:12px}
.mh-ecal-next-popover-head small{display:block;margin-top:2px;color:#82a0b9;font-size:9px;line-height:1.35}
.mh-ecal-next-popover-section+ .mh-ecal-next-popover-section{margin-top:10px;padding-top:9px;border-top:1px solid rgba(45,84,115,.65)}
.mh-ecal-next-popover-section>strong{display:block;margin-bottom:6px;color:#8db0ca;font-size:8px;text-transform:uppercase;letter-spacing:.10em}
.mh-ecal-next-impact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.mh-ecal-next-impact-grid label,.mh-ecal-next-currency-grid label,.mh-ecal-next-all-currencies{display:flex;align-items:center;gap:6px;min-height:29px;padding:5px 7px;border:1px solid rgba(75,136,181,.18);border-radius:6px;background:rgba(8,34,55,.62);cursor:pointer}
.mh-ecal-next-impact-grid label:hover,.mh-ecal-next-currency-grid label:hover,.mh-ecal-next-all-currencies:hover{background:#12324e}
.mh-ecal-next-popover input{width:13px;height:13px;margin:0;accent-color:#4bb9ff;cursor:pointer;flex:none}
.mh-ecal-next-currency-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:6px}
.mh-ecal-next-all-currencies{margin-bottom:6px}
.mh-ecal-next-popover-current{margin-top:10px;padding:8px;border:1px solid rgba(69,231,189,.15);border-radius:7px;background:rgba(69,231,189,.04);color:#93b2c9;line-height:1.4}
.mh-ecal-next-popover-current b{color:#dcecf8;font-weight:700}
.mh-ecal-next-popover :focus-visible{outline:1px solid #64c6ff;outline-offset:2px}

@media(max-width:520px){
  .mh-economic-calendar-head{grid-template-columns:minmax(0,1fr) auto auto;gap:5px!important;align-items:end!important}
  .mh-ecal-next-inline{min-width:88px;max-width:112px;padding:5px 7px!important}
  .mh-ecal-next-inline strong{font-size:10px}
  .mh-ecal-next-inline span{font-size:6px}
}


/* v1.4.9 — cohesive dark-glass styling for calendar filter popovers. */
.mh-ecal-filter-popover,
.mh-ecal-next-popover{
  background:linear-gradient(180deg,rgba(8,30,49,.98),rgba(5,24,42,.98));
  border:1px solid rgba(100,187,255,.22);
  box-shadow:0 18px 44px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter:blur(12px);
}
.mh-ecal-filter-popover>strong,
.mh-ecal-next-popover-head strong,
.mh-ecal-next-popover-section>strong{color:#edf7ff}
.mh-ecal-filter-popover>small,
.mh-ecal-next-popover-head small{color:#84a7c3}
.mh-ecal-filter-popover>small{margin-bottom:9px}
.mh-ecal-filter-option,
.mh-ecal-next-impact-grid label,
.mh-ecal-next-currency-grid label,
.mh-ecal-next-all-currencies{
  position:relative;
  min-height:34px;
  border:1px solid transparent;
  border-radius:9px;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.mh-ecal-filter-option:hover,
.mh-ecal-next-impact-grid label:hover,
.mh-ecal-next-currency-grid label:hover,
.mh-ecal-next-all-currencies:hover{
  background:linear-gradient(180deg,rgba(18,56,84,.82),rgba(11,42,66,.82));
  border-color:rgba(108,188,255,.18);
}
.mh-ecal-filter-option label,
.mh-ecal-filter-option.is-all,
.mh-ecal-next-impact-grid label,
.mh-ecal-next-currency-grid label,
.mh-ecal-next-all-currencies{
  border-radius:inherit;
  color:#d7e8f7;
}
.mh-ecal-filter-option label span,
.mh-ecal-filter-option.is-all span,
.mh-ecal-next-impact-grid label span,
.mh-ecal-next-currency-grid label span,
.mh-ecal-next-all-currencies span{font-weight:600;letter-spacing:.01em}
.mh-ecal-filter-option.is-all{margin-bottom:6px;padding-bottom:9px;border-bottom:1px solid rgba(77,120,155,.45)}
.mh-ecal-filter-option input,
.mh-ecal-next-popover input{
  appearance:none;
  -webkit-appearance:none;
  width:16px;
  height:16px;
  margin:0;
  flex:none;
  border-radius:5px;
  border:1px solid rgba(117,167,205,.48);
  background:linear-gradient(180deg,rgba(9,29,45,.95),rgba(6,21,36,.98));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.04), inset 0 0 0 1px rgba(0,0,0,.18);
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease;
}
.mh-ecal-filter-option input:hover,
.mh-ecal-next-popover input:hover{border-color:rgba(131,205,255,.72)}
.mh-ecal-filter-option input:checked,
.mh-ecal-next-popover input:checked{
  border-color:#68c7ff;
  background:
    radial-gradient(circle at 50% 50%, #f6fbff 0 2.2px, transparent 2.4px),
    linear-gradient(180deg,rgba(62,168,255,.95),rgba(24,114,232,.95));
  box-shadow:0 0 0 2px rgba(98,193,255,.16),0 0 12px rgba(72,193,255,.24),inset 0 0 0 1px rgba(255,255,255,.18);
}
.mh-ecal-filter-option input:focus-visible,
.mh-ecal-next-popover input:focus-visible{outline:1px solid #64c6ff;outline-offset:2px}
.mh-ecal-filter-option label:has(input:checked),
.mh-ecal-filter-option.is-all:has(input:checked),
.mh-ecal-next-impact-grid label:has(input:checked),
.mh-ecal-next-currency-grid label:has(input:checked),
.mh-ecal-next-all-currencies:has(input:checked){
  background:linear-gradient(180deg,rgba(17,65,98,.92),rgba(10,45,72,.92));
  border-color:rgba(99,192,255,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 8px 20px rgba(0,0,0,.12);
}
.mh-ecal-currency-star{
  width:28px;height:28px;
  border:1px solid rgba(91,135,168,.28);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(10,34,53,.72),rgba(7,26,42,.84));
  color:#7b9bbc;
  font-size:14px;
  line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
  transition:all .15s ease;
}
.mh-ecal-currency-star:hover{border-color:rgba(255,209,107,.32);color:#ffd16b;background:linear-gradient(180deg,rgba(65,53,17,.35),rgba(34,27,8,.28))}
.mh-ecal-currency-star.is-favourite{
  border-color:rgba(255,209,107,.45);
  color:#ffd66f;
  background:linear-gradient(180deg,rgba(73,58,17,.46),rgba(36,28,8,.3));
  box-shadow:0 0 14px rgba(255,209,107,.12), inset 0 0 0 1px rgba(255,232,176,.06);
}
.mh-ecal-filter-popover::-webkit-scrollbar,
.mh-ecal-next-popover::-webkit-scrollbar{width:8px}
.mh-ecal-filter-popover::-webkit-scrollbar-track,
.mh-ecal-next-popover::-webkit-scrollbar-track{background:rgba(4,18,32,.65);border-radius:999px}
.mh-ecal-filter-popover::-webkit-scrollbar-thumb,
.mh-ecal-next-popover::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(67,150,219,.72),rgba(33,100,164,.78));border-radius:999px;border:2px solid transparent;background-clip:padding-box}


/* v1.5.0 — split month/year navigator + subtle weekend shading. */
.mh-ecal-date-head{grid-template-columns:27px minmax(0,1fr) 27px auto}
.mh-ecal-period-control{
  min-width:0;height:29px;padding:2px 3px 2px 4px;
  display:flex;align-items:center;justify-content:center;gap:3px;
  border:1px solid rgba(86,169,239,.15);border-radius:8px;
  background:linear-gradient(180deg,#092038,#071a2e);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.mh-ecal-period-control:hover,.mh-ecal-period-control.is-expanded{
  border-color:rgba(91,188,255,.36);background:linear-gradient(180deg,#0b2947,#082039);
}
.mh-ecal-period-part{
  appearance:none;-webkit-appearance:none;border:0;border-radius:6px;
  height:23px;min-width:0;padding:0 7px;background:transparent;
  color:#d8eafd;font-size:10px;font-weight:800;line-height:1;cursor:pointer;
  transition:background .14s ease,color .14s ease,box-shadow .14s ease;
}
.mh-ecal-month-picker{flex:0 1 auto;max-width:112px}
.mh-ecal-year-picker{flex:0 0 auto}
.mh-ecal-period-part:hover,.mh-ecal-period-part[aria-expanded="true"]{
  color:#f5fbff;background:rgba(58,156,236,.16);box-shadow:inset 0 0 0 1px rgba(92,190,255,.16)
}
.mh-ecal-period-divider{width:1px;height:13px;background:rgba(101,153,196,.22);flex:none}
.mh-ecal-period-control .mh-ecal-month-toggle{
  width:23px;min-width:23px;height:23px;padding:0;margin-left:auto;border:0!important;border-radius:6px;
  background:transparent!important;box-shadow:none!important;color:#72bff5;display:grid;place-items:center
}
.mh-ecal-period-control .mh-ecal-month-toggle:hover{background:rgba(58,156,236,.15)!important;color:#dff5ff}
.mh-ecal-period-control .mh-ecal-month-toggle svg{width:11px;height:11px}
.mh-ecal-period-control.is-expanded .mh-ecal-month-toggle svg{transform:rotate(180deg)}

.mh-ecal-period-popover{
  position:fixed;z-index:2147483601;box-sizing:border-box;
  padding:10px;border:1px solid rgba(100,187,255,.24);border-radius:11px;
  background:linear-gradient(180deg,rgba(8,30,49,.985),rgba(5,23,40,.99));
  color:#d9e9f7;box-shadow:0 18px 44px rgba(0,0,0,.54),inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter:blur(12px);font-family:Inter,system-ui,sans-serif
}
.mh-ecal-period-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px;padding:1px 1px 8px;border-bottom:1px solid rgba(79,127,166,.38)}
.mh-ecal-period-popover-head strong{display:block;color:#f1f8ff;font-size:11px}
.mh-ecal-period-popover-head small{display:block;margin-top:2px;color:#7f9fb9;font-size:8px}
.mh-ecal-period-popover-head button{width:24px;height:24px;border:1px solid rgba(91,153,199,.18);border-radius:7px;background:#0a2238;color:#83a6c1;font-size:16px;line-height:1;cursor:pointer}
.mh-ecal-period-popover-head button:hover{border-color:rgba(104,195,255,.38);background:#10304b;color:#e7f7ff}
.mh-ecal-month-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.mh-ecal-month-picker-grid button,.mh-ecal-year-picker-grid button{
  min-height:32px;border:1px solid rgba(82,139,181,.13);border-radius:8px;
  background:linear-gradient(180deg,rgba(10,37,58,.72),rgba(7,29,48,.80));
  color:#a9c4d9;font-size:10px;font-weight:700;cursor:pointer;transition:all .14s ease
}
.mh-ecal-month-picker-grid button:hover,.mh-ecal-year-picker-grid button:hover{
  border-color:rgba(100,190,255,.34);background:linear-gradient(180deg,rgba(17,62,93,.90),rgba(10,45,70,.90));color:#edf9ff
}
.mh-ecal-month-picker-grid button.is-active,.mh-ecal-year-picker-grid button.is-active{
  border-color:rgba(75,190,255,.72);background:linear-gradient(180deg,rgba(26,105,159,.56),rgba(11,61,97,.64));color:#f3fbff;
  box-shadow:0 0 0 1px rgba(78,194,255,.08),0 0 14px rgba(59,177,255,.14)
}
.mh-ecal-month-picker-grid button.is-current:not(.is-active),.mh-ecal-year-picker-grid button.is-current:not(.is-active){
  color:#64d9ff;border-color:rgba(82,199,255,.28)
}
.mh-ecal-year-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-height:238px;overflow:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:#286fa8 #071827}
.mh-ecal-year-picker-grid::-webkit-scrollbar{width:7px}.mh-ecal-year-picker-grid::-webkit-scrollbar-track{background:#071827;border-radius:99px}.mh-ecal-year-picker-grid::-webkit-scrollbar-thumb{background:#246da4;border-radius:99px}

/* Weekend surfaces are muted, but today and explicit selection always win. */
.mh-ecal-week-day.is-weekend:not(.is-today):not(.is-selected),
.mh-ecal-month-day.is-weekend:not(.is-today):not(.is-selected){
  background:linear-gradient(180deg,rgba(146,156,169,.065),rgba(109,122,139,.035))!important;
  border-color:rgba(144,159,177,.06)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.012)!important;
}
.mh-ecal-week-day.is-weekend:not(.is-today):not(.is-selected):hover,
.mh-ecal-month-day.is-weekend:not(.is-today):not(.is-selected):hover{
  background:linear-gradient(180deg,rgba(146,156,169,.11),rgba(109,122,139,.065))!important;
  border-color:rgba(144,169,197,.15)!important
}
.mh-ecal-weekdays span:nth-child(6),.mh-ecal-weekdays span:nth-child(7){color:#7b8795}


/* v1.5.1 — currency filter cleanup.
   The imported pseudo-currency "ALL" is data metadata, not a user-facing currency. */


/* v1.5.2 — compact event table + clickable Actual history charts. */
.mh-ecal-table-head,.mh-ecal-event-row{
  grid-template-columns:30px 40px 28px minmax(78px,1fr) 44px 44px 44px;
  gap:3px;
}
.mh-ecal-events-card .mh-ecal-table-head,
.mh-ecal-events-card .mh-ecal-event-row{
  grid-template-columns:
    calc(30px * var(--mh-ecal-events-scale))
    calc(40px * var(--mh-ecal-events-scale))
    calc(28px * var(--mh-ecal-events-scale))
    minmax(calc(78px * var(--mh-ecal-events-scale)),1fr)
    calc(44px * var(--mh-ecal-events-scale))
    calc(44px * var(--mh-ecal-events-scale))
    calc(44px * var(--mh-ecal-events-scale));
  gap:calc(3px * var(--mh-ecal-events-scale));
}
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-table-head,
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-event-row,
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-table-head,
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-event-row{
  grid-template-columns:
    calc(46px * var(--mh-ecal-events-scale))
    calc(58px * var(--mh-ecal-events-scale))
    calc(42px * var(--mh-ecal-events-scale))
    minmax(calc(180px * var(--mh-ecal-events-scale)),1fr)
    calc(76px * var(--mh-ecal-events-scale))
    calc(76px * var(--mh-ecal-events-scale))
    calc(76px * var(--mh-ecal-events-scale));
}
.mh-ecal-impact-cell{display:flex;align-items:center;justify-content:center;min-width:0}
.mh-ecal-impact{
  width:22px;min-width:22px;height:16px;padding:0!important;justify-content:center;
  border-radius:6px!important;font-size:6.5px!important;font-weight:900;letter-spacing:.02em;
  overflow:visible;text-overflow:clip;
}
.mh-ecal-impact.is-holiday,.mh-ecal-impact.is-non-economic{width:25px;min-width:25px;font-size:5.2px!important}
.mh-ecal-table-head>span:nth-child(n+5),
.mh-ecal-table-head>[data-ecal-sort]:nth-child(n+5){justify-content:center;text-align:center}
.mh-ecal-event-row>.mh-ecal-value{text-align:center;justify-self:stretch}
.mh-ecal-history-trigger{
  appearance:none;border:1px solid rgba(78,178,255,.12);border-radius:5px;background:rgba(43,143,224,.045);
  padding:3px 2px;margin:0;line-height:1;color:inherit;font:inherit;font-weight:800;cursor:pointer;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.mh-ecal-history-trigger:hover{
  border-color:rgba(78,178,255,.34);background:rgba(43,143,224,.12);box-shadow:0 0 12px rgba(54,167,255,.08);
}
.mh-ecal-history-trigger:active{transform:translateY(1px)}
.mh-ecal-history-trigger:focus-visible{outline:1px solid #64c6ff;outline-offset:1px}
.mh-ecal-history-trigger.is-better{color:#53e1bd}.mh-ecal-history-trigger.is-worse{color:#ff7982}

html.mh-ecal-history-open{overflow:hidden}
.mh-ecal-history-modal{
  position:fixed;inset:0;z-index:2147483605;display:grid;place-items:center;padding:18px;
  background:rgba(2,10,19,.68);backdrop-filter:blur(7px);
}
.mh-ecal-history-dialog{
  width:min(820px,calc(100vw - 24px));max-height:min(650px,calc(100vh - 24px));overflow:hidden;
  display:flex;flex-direction:column;border:1px solid rgba(91,181,251,.27);border-radius:15px;
  background:linear-gradient(180deg,rgba(8,30,50,.99),rgba(5,20,36,.99));
  box-shadow:0 30px 90px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.035);color:#dbeaf7;
}
.mh-ecal-history-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 14px;border-bottom:1px solid rgba(95,164,220,.13)}
.mh-ecal-history-dialog>header small{display:inline-flex;align-items:center;min-height:20px;padding:0 7px;border:1px solid rgba(75,166,237,.24);border-radius:6px;background:rgba(37,118,188,.10);color:#75c9ff;font-size:9px;font-weight:900;letter-spacing:.06em}
.mh-ecal-history-dialog h3{margin:7px 0 0;font-family:Georgia,serif;font-size:25px;line-height:1.1;color:#f4f9ff;font-weight:600}
.mh-ecal-history-dialog header p{margin:5px 0 0;color:#7f9bb5;font-size:10px}
.mh-ecal-history-dialog [data-ecal-history-close]{width:31px;height:31px;display:grid;place-items:center;border:1px solid rgba(92,174,239,.23);border-radius:8px;background:#091d32;color:#8fb5d1;font-size:18px;line-height:1}
.mh-ecal-history-dialog [data-ecal-history-close]:hover{color:#fff;border-color:rgba(100,198,255,.52);background:#0d2b46}
.mh-ecal-history-chart{position:relative;min-height:340px;padding:10px 14px 4px;overflow:hidden}
.mh-ecal-history-chart svg{display:block;width:100%;height:auto;min-height:300px;overflow:visible}
.mh-ecal-history-grid-line{stroke:rgba(119,170,211,.12);stroke-width:1;vector-effect:non-scaling-stroke}
.mh-ecal-history-axis-label{fill:#6f8ba5;font:9px Inter,system-ui,sans-serif}
.mh-ecal-history-line{fill:none;stroke:#4bbcff;stroke-width:2.25;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 4px rgba(75,188,255,.18))}
.mh-ecal-history-dot{fill:#57c6ff;stroke:#081c30;stroke-width:1.2;vector-effect:non-scaling-stroke}
.mh-ecal-history-dot.is-better{fill:#50dfb3}.mh-ecal-history-dot.is-worse{fill:#ff6e78}.mh-ecal-history-dot.is-focused{r:5;stroke:#fff;stroke-width:1.4}
.mh-ecal-history-empty-svg{fill:#7896af;font:12px Inter,system-ui,sans-serif}
.mh-ecal-history-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;color:#7393ae;font-size:11px}
.mh-ecal-history-loading i{width:10px;height:10px;border-radius:50%;border:1px solid #2677b7;border-top-color:#70caff;animation:mhEcalSpin .75s linear infinite}
.mh-ecal-history-tooltip{position:absolute;z-index:4;min-width:104px;padding:8px 9px;border:1px solid rgba(100,190,255,.26);border-radius:8px;background:rgba(5,22,38,.96);box-shadow:0 12px 28px rgba(0,0,0,.38);pointer-events:none}
.mh-ecal-history-tooltip strong{display:block;color:#ecf8ff;font-size:12px}.mh-ecal-history-tooltip span{display:block;margin-top:2px;color:#77bde9;font-size:8px}.mh-ecal-history-tooltip small{display:block;margin-top:2px;color:#7f99b1;font-size:8px}
.mh-ecal-history-dialog>footer{display:flex;justify-content:space-between;gap:12px;padding:10px 20px 12px;border-top:1px solid rgba(95,164,220,.11);color:#607f99;font-size:8px}
@media(max-width:620px){
  .mh-ecal-history-modal{padding:8px}.mh-ecal-history-dialog{width:100%;max-height:calc(100vh - 16px);border-radius:12px}
  .mh-ecal-history-dialog>header{padding:14px 14px 11px}.mh-ecal-history-dialog h3{font-size:20px}
  .mh-ecal-history-chart{min-height:280px;padding:6px 4px}.mh-ecal-history-chart svg{min-height:270px}
  .mh-ecal-history-dialog>footer{padding:9px 14px;flex-direction:column;gap:2px}
}


/* v1.5.3 — smooth history zoom, fixed details card, calendar chart settings. */
.mh-ecal-history-chart{cursor:crosshair;overscroll-behavior:contain}
.mh-ecal-history-tooltip{
  position:absolute!important;
  top:14px!important;
  right:18px!important;
  left:auto!important;
  min-width:118px;
  max-width:170px;
  padding:9px 10px;
  background:linear-gradient(180deg,rgba(7,28,47,.97),rgba(5,21,36,.98));
  border-color:rgba(100,190,255,.30);
  box-shadow:0 14px 34px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter:blur(10px);
}
.mh-ecal-history-zoom-hint{
  position:absolute;left:50%;bottom:8px;transform:translateX(-50%);z-index:3;
  padding:4px 8px;border:1px solid rgba(90,165,222,.12);border-radius:999px;
  background:rgba(4,19,33,.72);color:#6688a3;font-size:7px;letter-spacing:.02em;
  pointer-events:none;opacity:.72;white-space:nowrap;
}
.mh-calendar-history-presets{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0 2px}
.mh-calendar-history-presets button{
  min-width:42px;height:30px;padding:0 10px;border:1px solid rgba(76,143,193,.30);border-radius:8px;
  background:linear-gradient(180deg,rgba(10,35,56,.92),rgba(7,26,44,.94));color:#8fb5d1;
  font-size:10px;font-weight:800;cursor:pointer;transition:all .15s ease;
}
.mh-calendar-history-presets button:hover,.mh-calendar-history-presets button:focus-visible{
  color:#eaf7ff;border-color:rgba(99,193,255,.55);background:#0d304d;outline:0;
}
.mh-calendar-history-presets button.is-selected{
  color:#eaf8ff;border-color:rgba(84,194,255,.62);background:linear-gradient(180deg,rgba(28,103,159,.62),rgba(13,61,99,.76));
  box-shadow:0 0 14px rgba(69,178,255,.12),inset 0 0 0 1px rgba(255,255,255,.03);
}
@media(max-width:620px){
  .mh-ecal-history-tooltip{top:10px!important;right:10px!important;min-width:108px;max-width:145px}
  .mh-ecal-history-zoom-hint{bottom:5px;font-size:6px}
}


/* v1.5.4 — chart header details, drag panning, precise nearest-point hover and pinning. */
.mh-ecal-history-dialog>header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(155px,190px) 31px;
  align-items:start!important;
  gap:14px!important;
}
.mh-ecal-history-heading{min-width:0}
.mh-ecal-history-tooltip{
  position:static!important;
  top:auto!important;right:auto!important;left:auto!important;
  width:100%;min-width:0;max-width:none;
  min-height:70px;
  align-self:start;
  padding:9px 10px;
  border:1px solid rgba(100,190,255,.22);
  border-radius:9px;
  background:linear-gradient(180deg,rgba(7,28,47,.92),rgba(5,21,36,.95));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  pointer-events:none;
}
.mh-ecal-history-tooltip .mh-ecal-history-detail-top{display:flex;align-items:center;justify-content:space-between;gap:7px}
.mh-ecal-history-tooltip em{font-style:normal;font-size:6px;letter-spacing:.10em;color:#58e1b5;border:1px solid rgba(80,220,174,.25);background:rgba(80,220,174,.07);padding:2px 4px;border-radius:4px}
.mh-ecal-history-tooltip.is-pinned{border-color:rgba(80,220,174,.30);box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 0 18px rgba(61,213,168,.05)}
.mh-ecal-history-chart{cursor:grab;touch-action:none;user-select:none}
.mh-ecal-history-chart.is-panning{cursor:grabbing}
.mh-ecal-history-dot{transition:r .10s ease,stroke-width .10s ease,filter .10s ease}
.mh-ecal-history-dot.is-focused{r:5;stroke:#fff;stroke-width:1.4;filter:drop-shadow(0 0 5px rgba(255,255,255,.35))}
.mh-ecal-history-dot.is-locked{r:5.3;stroke:#e8fff8;stroke-width:1.6;filter:drop-shadow(0 0 7px rgba(80,224,179,.55))}
.mh-ecal-history-zoom-hint{pointer-events:none}
@media(max-width:620px){
  .mh-ecal-history-dialog>header{grid-template-columns:minmax(0,1fr) 31px;gap:9px!important}
  .mh-ecal-history-tooltip{grid-column:1/-1;grid-row:2;min-height:58px}
  .mh-ecal-history-dialog [data-ecal-history-close]{grid-column:2;grid-row:1}
}


/* v1.5.5 — independent hover highlight while pinned + cleaner coloured history details. */
.mh-ecal-history-tooltip .mh-ecal-history-detail-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
}
.mh-ecal-history-tooltip .mh-ecal-history-detail-top>strong{
  margin:0;
  font-size:14px;
  line-height:1.05;
}
.mh-ecal-history-tooltip .mh-ecal-history-detail-date{
  margin:0;
  color:#a9c8df;
  font-size:10px;
  font-weight:800;
  letter-spacing:.015em;
  line-height:1.1;
  text-align:right;
  white-space:nowrap;
}
.mh-ecal-history-detail-values{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:7px;
}
.mh-ecal-history-detail-values small{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin:0!important;
  padding:3px 6px;
  border:1px solid rgba(88,158,211,.26);
  border-radius:5px;
  background:rgba(20,72,111,.48);
  color:#78bde9!important;
  font-size:8px!important;
  line-height:1.15;
  white-space:nowrap;
}
.mh-ecal-history-detail-values small b{color:inherit;font-weight:800}
.mh-ecal-history-tooltip strong.is-better,
.mh-ecal-history-detail-values small.is-better{color:#50dfb3!important}
.mh-ecal-history-tooltip strong.is-worse,
.mh-ecal-history-detail-values small.is-worse{color:#ff6e78!important}
.mh-ecal-history-tooltip strong.is-neutral,
.mh-ecal-history-detail-values small.is-neutral{color:#ffbe55!important}
.mh-ecal-history-detail-values small.is-forecast{color:#79c9ff!important}
.mh-ecal-history-tooltip.is-pinned{border-color:rgba(100,190,255,.26);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.mh-ecal-history-tooltip em{display:none!important}
/* A locked point stays visibly selected while hover can independently glow another dot. */
.mh-ecal-history-dot.is-locked{r:5.3;stroke:#e8fff8;stroke-width:1.6;filter:drop-shadow(0 0 7px rgba(80,224,179,.55))}
.mh-ecal-history-dot.is-focused{r:5;stroke:#fff;stroke-width:1.5;filter:drop-shadow(0 0 6px rgba(255,255,255,.42))}
.mh-ecal-history-dot.is-locked.is-focused{r:5.6;stroke:#fff;stroke-width:1.7;filter:drop-shadow(0 0 8px rgba(130,238,255,.62))}


/* v1.5.6 — year picker now starts at 2010 to match retained calendar archive. */


/* v1.5.7 — history chart grid guides, detail card polish, and Actual-button wheel scroll fix. */
.mh-ecal-history-zoom-hint{
  top:10px;
  bottom:auto;
  transform:translateX(-50%);
  background:rgba(4,19,33,.66);
}
.mh-ecal-history-tooltip{
  min-height:76px;
}
.mh-ecal-history-tooltip .mh-ecal-history-detail-top>strong{
  font-size:20px;
  line-height:1;
}
.mh-ecal-history-tooltip .mh-ecal-history-detail-date{
  font-size:12px;
  line-height:1.1;
}
.mh-ecal-history-detail-values small{
  font-size:10px!important;
  padding:4px 8px;
}
.mh-ecal-history-vline-month{
  stroke:rgba(182,197,210,.075);
  stroke-width:1;
  vector-effect:non-scaling-stroke;
}
.mh-ecal-history-vline-year{
  stroke:rgba(198,211,222,.16);
  stroke-width:1.6;
  vector-effect:non-scaling-stroke;
}
@media(max-width:620px){
  .mh-ecal-history-zoom-hint{top:8px;font-size:6px}
  .mh-ecal-history-tooltip .mh-ecal-history-detail-top>strong{font-size:17px}
  .mh-ecal-history-tooltip .mh-ecal-history-detail-date{font-size:11px}
  .mh-ecal-history-detail-values small{font-size:9px!important}
}


/* v1.5.9 — total tool quota includes active + Deleted + folders. */
[data-squares-new].is-limit-reached,
[data-squares-empty-new].is-limit-reached,
[data-squares-library-new].is-limit-reached{
  opacity:.42!important;
  cursor:not-allowed!important;
  filter:saturate(.55);
}


/* v1.5.10 — one-click Squares rename + roomier economic-event titles. */
/* Keep the three result columns pinned to the right while reclaiming width for Event. */
.mh-ecal-table-head,.mh-ecal-event-row{
  grid-template-columns:27px 36px 25px minmax(94px,1fr) 42px 42px 42px;
  column-gap:2px;
}
.mh-ecal-events-card .mh-ecal-table-head,
.mh-ecal-events-card .mh-ecal-event-row{
  grid-template-columns:
    calc(27px * var(--mh-ecal-events-scale))
    calc(36px * var(--mh-ecal-events-scale))
    calc(25px * var(--mh-ecal-events-scale))
    minmax(calc(94px * var(--mh-ecal-events-scale)),1fr)
    calc(42px * var(--mh-ecal-events-scale))
    calc(42px * var(--mh-ecal-events-scale))
    calc(42px * var(--mh-ecal-events-scale));
  column-gap:calc(2px * var(--mh-ecal-events-scale));
}
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-table-head,
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-event-row,
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-table-head,
.mh-economic-calendar-panel.is-tool-maximized .mh-ecal-events-card .mh-ecal-event-row{
  grid-template-columns:
    calc(42px * var(--mh-ecal-events-scale))
    calc(54px * var(--mh-ecal-events-scale))
    calc(38px * var(--mh-ecal-events-scale))
    minmax(calc(210px * var(--mh-ecal-events-scale)),1fr)
    calc(72px * var(--mh-ecal-events-scale))
    calc(72px * var(--mh-ecal-events-scale))
    calc(72px * var(--mh-ecal-events-scale));
}
.mh-ecal-table-head>span:nth-child(5),
.mh-ecal-table-head>span:nth-child(6),
.mh-ecal-table-head>span:nth-child(7),
.mh-ecal-table-head>[data-ecal-sort]:nth-child(5),
.mh-ecal-table-head>[data-ecal-sort]:nth-child(6),
.mh-ecal-table-head>[data-ecal-sort]:nth-child(7){
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.mh-ecal-event-row>.mh-ecal-value{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  text-align:center;
  justify-self:stretch;
}
.mh-ecal-history-trigger{width:100%}
.mh-squares-card-name{cursor:text}


/* v1.5.11 — impact badge palette aligned with calendar result colours. */
.mh-ecal-impact.is-high{
  color:#ff7982!important;
  background:rgba(255,121,130,.075)!important;
  border-color:#ff7982!important;
  box-shadow:0 0 10px rgba(255,121,130,.045);
}
.mh-ecal-impact.is-medium{
  color:#ffbe55!important;
  background:rgba(255,190,85,.07)!important;
  border-color:#ffbe55!important;
  box-shadow:0 0 10px rgba(255,190,85,.04);
}
.mh-ecal-impact.is-low{
  color:#53e1bd!important;
  background:rgba(83,225,189,.07)!important;
  border-color:#53e1bd!important;
  box-shadow:0 0 10px rgba(83,225,189,.04);
}


/* v1.5.12 — exact calendar header/data column alignment.
   The event rows live beside a 6px scrollbar while the header does not.
   Reserve the same gutter in the header so every column centre is identical. */
.mh-ecal-events{
  scrollbar-gutter:stable;
}
.mh-ecal-table-head{
  margin-right:6px;
}
/* Result headings and result values share the same alignment model. */
.mh-ecal-table-head>span:nth-child(5),
.mh-ecal-table-head>span:nth-child(6),
.mh-ecal-table-head>span:nth-child(7){
  display:flex;
  width:100%;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.mh-ecal-event-row>.mh-ecal-value{
  display:flex;
  width:100%;
  min-width:0;
  align-items:center;
  justify-content:center;
  text-align:center;
}


/* v1.5.13 — history chart right-edge lock for wheel zooming. */
.mh-ecal-history-right-lock{
  display:inline-flex;align-items:center;gap:7px;margin-top:8px;width:max-content;
  min-height:26px;padding:4px 8px;border:1px solid rgba(91,169,226,.20);border-radius:7px;
  background:rgba(8,31,51,.66);color:#8eacc4;font-size:8px;font-weight:700;cursor:pointer;
  user-select:none;transition:border-color .15s ease,background .15s ease,color .15s ease,box-shadow .15s ease;
}
.mh-ecal-history-right-lock:hover{border-color:rgba(98,194,255,.38);background:rgba(12,43,69,.82);color:#c8e6f8}
.mh-ecal-history-right-lock input{
  appearance:none;-webkit-appearance:none;width:14px;height:14px;margin:0;flex:none;border-radius:4px;
  border:1px solid rgba(112,166,205,.52);background:#071a2d;cursor:pointer;position:relative;
}
.mh-ecal-history-right-lock input:checked{
  border-color:#62c7ff;background:linear-gradient(180deg,#38aaff,#2477e6);
  box-shadow:0 0 0 2px rgba(84,193,255,.12),0 0 10px rgba(60,177,255,.16);
}
.mh-ecal-history-right-lock input:checked:after{
  content:"";position:absolute;left:3px;top:1px;width:5px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.mh-ecal-history-right-lock:has(input:checked){color:#bfeaff;border-color:rgba(98,199,255,.34);background:rgba(12,52,82,.72)}
@media(max-width:620px){.mh-ecal-history-right-lock{margin-top:6px;font-size:7px;min-height:24px}}


/* v1.5.14 — synchronized month/year timeline labels for history charts. */
.mh-ecal-history-month-label{
  fill:#7690a6;
  font:8px Inter,system-ui,sans-serif;
  letter-spacing:.015em;
}
.mh-ecal-history-year-label{
  fill:#a4b8c9;
  font:700 8.5px Inter,system-ui,sans-serif;
  letter-spacing:.05em;
}
.mh-ecal-history-year-tick{
  stroke:rgba(204,216,226,.22);
  stroke-width:1.7;
  vector-effect:non-scaling-stroke;
}
@media(max-width:620px){
  .mh-ecal-history-month-label{font-size:7px}
  .mh-ecal-history-year-label{font-size:7.5px}
}
