:root{
  --ink:#0b1220; --muted:#475569; --brand:#0ea5e9; --brand2:#38bdf8;
  --soft:#f1f5f9; --line:#e2e8f0; --bg:#ffffff; --card:#ffffff;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;line-height:1.55}
a{color:var(--brand);text-decoration:none}
.container{max-width:1080px;margin:0 auto;padding:0 16px}
.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);z-index:5}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:16px}
.brand{display:flex;align-items:center;gap:12px}
.brand h1{font-size:16px;margin:0}
.brand p{font-size:12px;color:var(--muted);margin:2px 0 0}
.logo{height:48px;width:auto;border-radius:8px}

.nav{display:flex;gap:10px;flex-wrap:wrap}
.nav a{padding:8px 10px;border-radius:10px;border:1px solid transparent;color:var(--ink)}
.nav a:hover{background:#dfecff; transform:translateY(-2px); border: 1px solid silver;}

.cta{padding:8px 12px;border-radius:10px;background:#0f172a;color:#fff}
.cta:hover{transform:translateY(-2px);}

.hero{padding:28px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#e0f2fe,#f8fafc)}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#ecfeff;border:1px solid #bae6fd;color:#075985;font-size:12px;font-weight:700}
.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

.btn{background:#547BD8;color:#fff;padding:10px 12px;border-radius:10px;display:inline-block}
.btn:hover{background:#35508E; transform:translateY(-2px);}
.btn.secondary{background:#eaeaea;border:1px solid silver;color:var(--ink)}
.btn.secondary:hover{background:#dfecff; transform:translateY(-2px); border:1px solid silver;}

.grid{display:grid;gap:16px}
@media (min-width:640px){.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:960px){.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}

.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;transition:transform .12s ease, box-shadow .12s ease}
.card:hover{transform:translateY(0px); box-shadow:0 8px 24px rgba(2,8,23,.06)}
.card h3{margin:0 0 6px}
.card p{margin:0;color:var(--muted);font-size:14px}

.cardlink{background:var(--cardlink);border:1px solid var(--line);border-radius:16px;padding:16px;transition:transform .12s ease, box-shadow .12s ease}
.cardlink:hover{background:#e1f3fe; transform:translateY(-2px); box-shadow:0 8px 24px rgba(2,8,23,.06)}
.cardlink h3{margin:0 0 6px}
.cardlink p{margin:0;color:var(--muted);font-size:14px}

.list{padding-left:18px;margin:0}
footer{border-top:1px solid var(--line);margin-top:32px}
.footer-inner{display:flex;justify-content:space-between;align-items:center;padding:16px 0;gap:12px;flex-wrap:wrap}
.section{margin:24px 0}
.section h2{margin:.25rem 0 .25rem}
.kv{display:grid;grid-template-columns:160px 1fr;gap:10px}
.kv div{padding:6px 0;border-bottom:1px dashed var(--line)}

a.cta, a.cta:link, a.cta:visited, a.cta:hover, a.cta:active, .nav a.cta { color:#fff !important; }
a.cta:hover { background:#547BD8; }

.tutorials .level {
  margin-top:2rem;
  padding:.5rem .75rem;
  background:#f5f7fa;
  border-left:4px solid #0077cc;
  color:#2c3e50;
  border-radius:4px;
}
.tutorials h3 {
  margin-top:1.2rem;
  color:#34495e;
  font-weight:500;
  border-bottom:1px solid #eee;
  padding-bottom:.2rem;
}

.grid-divider {
  grid-column:1 / -1;
  padding:.35rem .5rem;
  font-weight:700;
  color:#1f2d3d;
  background:#dfecff;
  border-top:1px solid #71a8ff;
  border-bottom:1px solid #c5daff;
  margin-bottom:.25rem;
  border-radius:6px;
}

/* ============ SHARED “SHELL” LAYOUT (user-guide & tutorial) ============ */
:root { --panel-h: 80dvh; } /* adjust if needed */

.shell-layout{
  max-width:1200px; margin:14px auto 0; padding:0 16px 16px;
  display:grid; gap:14px; grid-template-columns:300px 1fr; align-items:start;
}
@media (max-width:900px){ .shell-layout{ grid-template-columns:1fr } }

.shell-panel{
  background:#fff; border:1px solid var(--line);
  border-radius:14px; box-shadow:0 2px 6px rgba(0,0,0,.08);
}

.shell-nav, .shell-viewer{
  position:sticky; top:0; height:var(--panel-h);
  display:flex; flex-direction:column; overflow:hidden;
}

.shell-search{ padding:10px; border-bottom:1px solid var(--line); display:flex; gap:8px; align-items:center; background:#fff; z-index:1 }
.shell-search input{
  width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:10px; outline:0;
}

.shell-toc{
  list-style:none; margin:0; padding:8px 0 12px;
  flex:1 1 auto; overflow:auto; overscroll-behavior:contain;
}
.shell-toc .level{
  margin:10px 12px 6px; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.5px;
}
.shell-item{
  display:block; text-decoration:none; color:var(--ink);
  padding:8px 12px; border-left:3px solid transparent; border-radius:8px; margin:2px 8px;
  white-space:nowrap; text-overflow:ellipsis; overflow:hidden;
}
.shell-item.h1{ font-weight:700; }
.shell-item.h2{ color:var(--muted); padding-left:24px; }
.shell-item:hover{ background:#f3f6fb; }
.shell-item.active{ background:#f0f6ff; border-left-color:var(--brand2); }

.shell-bar{ padding:10px 12px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:10px; background:#fff; }
.shell-crumb{ font-size:13px; color:var(--muted); }
.shell-crumb strong{ color:#1c345e; }

.shell-actions{ margin-left:auto; display:flex; gap:8px; align-items:center; }
.btn-ghost{
  padding:6px 10px; border:1px solid var(--line); background:#fff; color:var(--ink);
  border-radius:10px; font-size:13px; cursor:pointer;
}
.btn-ghost:hover{ background:#f3f6fb; }

.shell-content{
  padding:16px; flex:1 1 auto; overflow:auto; overscroll-behavior:contain;
}

/* Images inside shells: fit width + subtle border + shadow */
.shell-content img{
  max-width:100%; height:auto; display:block;
  border:1px solid #5BA3F9;
  box-shadow: 1px 1px 3px 3px #BBBBBC;
  border-radius:4px; margin:8px 0;
}

/* Wide-content safety */
.shell-content table{ display:block; overflow-x:auto; max-width:100% }
.shell-content pre, .shell-content code{ overflow:auto; max-width:100% }

/* Simple inline toast */
.toast{
  position:fixed; right:16px; bottom:16px; z-index:9999;
  background:#0f172a; color:#fff; border-radius:10px; padding:8px 12px;
  box-shadow:0 8px 24px rgba(2,8,23,.22); font-size:13px;
  opacity:0; transform:translateY(6px); transition:.18s ease;
}
.toast.show{ opacity:1; transform:translateY(0) }
.shell-error{ padding:12px; border:1px solid #fecaca; background:#fff1f2; color:#7f1d1d; border-radius:10px }

/* --- Normalize Word-style list spacing (list-tight1, etc.) --- */
.list-tight1,
.list-tight2,
.list-tight3,
.list-tightParagraph,
.list-tightParagraphCxSpFirst,
.list-tightParagraphCxSpMiddle,
.list-tightParagraphCxSpLast {
  margin-top: 0.2em !important;
  margin-bottom: 0.2em !important;
  line-height: 1.3 !important;
  padding-left: 1.2em; /* small indent for bullets/numbers */
}

.list-tight2{
	padding-left: 2.0em; /* small indent for bullets/numbers */
}
.list-tight3{
	padding-left: 3.0em; /* small indent for bullets/numbers */
}


/* ensure bullets/numbers align cleanly */
.list-tight1 li,
.list-tightParagraph li {
  margin-bottom: 0.2em !important;
  line-height: 1.3 !important;
}

.h4 {
  margin-top: 0.6em;
  margin-bottom: 0.3em;
  line-height: 1.25;
  font-weight: 600;
}

/* --- Highlighted H4 headers (strong visual band) --- */
h4,
.MsoHeading4,
.Heading4,
p.MsoHeading4 {
  background: #b0cfff66;           /* translucent blue band */
  border-top: 2px solid #71a8ff;   /* bright accent line */
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
  line-height: 1.25;
  font-weight: 600;
}

/* --- Quick Tooltips (no coordinates) --- */
.qt-wrap { position: relative; display:block; max-width:100%; }
.qt-wrap img { display:block; width:100%; height:auto; }

/* One-row bar: tooltip grows; actions fixed on right */
.qt-bar{
  display:flex;
  align-items:center;
  gap:12px;
  margin:8px 0 6px;
  flex-wrap:wrap;                 /* wraps nicely on small screens */
}

/* Tooltip grows to fill leftover space */
.qt-tooltip{
  position:relative;
  display:inline-block;
  background:#0f172a; color:#fff;
  border-radius:10px; padding:10px 12px;
  font-size:13px; line-height:1.35;
  box-shadow:0 10px 30px rgba(2,6,23,.35);
  margin-left:0; margin-bottom:6px;
  flex:1 1 auto;                  /* fluid width */
  min-width:220px;                /* optional floor for nicer wrap */
}
.qt-tooltip .qt-num{ font-weight:700; margin-right:6px; color:#7dd3fc; }

/* Right-aligned, fixed width button group */
.qt-actions{
  margin-left:auto;               /* push to far right */
  flex:0 0 150px;                 /* fixed 150px rail */
  display:flex;
  justify-content:space-between;  /* space buttons inside rail */
  gap:8px;
}

/* Fixed-width buttons */
.qt-actions .btn-ghost{
  width:64px;                     /* each button 64px */
  text-align:center;
  padding:6px 0;                  /* vertical padding only */
  font-size:13px;
}

.step-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  font-weight: 600;
  border-radius: 0;
  margin-top: 0;
  height: 42px;
  line-height: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guide-frame {
  border: 1px solid #e5e7eb;
  border-radius: 0 0 10px 10px;
  padding: 0;
  margin-bottom: 16px;
  overflow: visible; /* allow sticky banner to work */
}
ol.procedure ul {
  margin-left: -14px !important;
  padding-left: 0px !important;
  list-style: none;
}
