:root {
  --paper: #f8f7f3;
  --white: #fffefa;
  --ink: #202b2b;
  --muted: #53605d;
  --line: #dfdfd6;
  --accent: #9b3e27;
  --pine: #173a3d;
}
.niummgt-site, .niummgt-site * { box-sizing: border-box; }
body.niummgt-site {
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}
.niummgt-site a { color: inherit; text-decoration: none; }
.niummgt-site a:focus-visible, .niummgt-site button:focus-visible, .niummgt-site input:focus-visible, .niummgt-site select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.niummgt-site article, .niummgt-site h1, .niummgt-site h2, .niummgt-site h3, .niummgt-site p, .niummgt-site figure { margin: 0; }
.niummgt-site img { display: block; max-width: 100%; object-fit: contain; }
.frame { width: min(1128px, calc(100% - 48px)); margin-inline: auto; }
.skip-to-content, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-to-content:focus { clip-path: none; width: auto; height: auto; left: 16px; top: 12px; padding: 6px 10px; background: var(--white); z-index: 5; }
.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead-row { display: flex; align-items: center; gap: clamp(16px,4vw,42px); min-height: 65px; }
.wordmark { display: inline-flex; gap: 9px; align-items: center; white-space: nowrap; font-size: 1.18rem; font-weight: 770; }
.wordmark .brand-mark { width: 34px; height: 34px; }
.wordmark span { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: var(--pine); border-radius: 9px; font-size: 1rem; }
.top-nav { display: flex; gap: clamp(12px,2.6vw,30px); align-items: center; }
.top-nav a { font-size: .94rem; font-weight: 650; display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; }
.top-nav a:hover, .text-action:hover, .app-info:hover, .site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; }
.site-search { display: flex; align-items: center; height: 34px; margin-inline-start: auto; border: 1px solid var(--line); border-radius: 7px; }
.site-search input { width: 138px; min-width: 0; border: 0; padding: 4px 0 4px 10px; color: var(--ink); font: inherit; font-size: .875rem; background: transparent; }
.site-search button { border: 0; background: transparent; color: var(--pine); display: grid; place-items: center; min-width: 34px; height: 32px; cursor: pointer; }
.site-search button span { display: block; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.site-search button span::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: currentColor; right: -5px; bottom: -2px; transform: rotate(45deg); }
.hero { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(20px,5vw,74px); align-items: center; padding-block: clamp(30px,6vw,76px) clamp(30px,4.5vw,55px); }
.hero-rule { width: 34px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem,4.6vw,4.15rem); line-height: 1.13; font-weight: 810; letter-spacing: -.052em; }
.hero-text > p { color: var(--muted); max-width: 29em; font-size: clamp(1rem,1.45vw,1.12rem); margin-block: 16px 17px; }
.hero-actions, .app-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 5px 14px; border: 1px solid var(--pine); border-radius: 7px; font-size: .93rem; font-weight: 700; }
.niummgt-site .pill.solid { background: var(--pine); color: white; }
.niummgt-site .pill.outlined { background: transparent; color: var(--pine); }
.niummgt-site .pill:hover { background: #2a4e50; color: #fff; }
.product-stage {
  --slide-light: #376161;
  --slide-dark: #17313a;
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.55;
  display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.2fr); gap: clamp(8px,2vw,18px);
  align-items: center; padding: clamp(12px,2.2vw,27px);
  background: radial-gradient(ellipse at 67% 28%,var(--slide-light),transparent 72%),var(--slide-dark);
  color: #fff; border: 1px solid #17363e; border-radius: 14px;
}
.product-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .24; background: repeating-linear-gradient(130deg,transparent 0 33px,#aac0b627 33px 34px,transparent 34px 66px); }
.product-stage.teal { --slide-light: #26677a; --slide-dark: #102b37; }
.product-stage.blue { --slide-light: #514b81; --slide-dark: #242741; }
.product-stage.plum, .product-stage.lilac { --slide-light: #61467c; --slide-dark: #2d2141; }
.product-stage.amber { --slide-light: #417261; --slide-dark: #1c3c33; }
.product-stage.slate { --slide-light: #3b617f; --slide-dark: #1e3249; }
.product-stage.rust { --slide-light: #825348; --slide-dark: #43281f; }
.product-stage figcaption { display: grid; align-content: center; justify-items: start; gap: 8px; min-width: 0; line-height: 1.4; }
.product-stage figcaption strong { font-size: clamp(1.37rem,3vw,2.12rem); line-height: 1.13; overflow-wrap: anywhere; letter-spacing: -.035em; }
.product-stage figcaption span { color: #edf3ee; }
.product-stage figcaption a { display: inline-flex; align-items: center; color: white; padding-inline: 8px; min-height: 32px; border: 1px solid #ffffff75; border-radius: 5px; font-size: .875rem; font-weight: 670; }
.product-stage figcaption a:hover { background: #ffffff21; }
.product-stage figcaption a:focus-visible { outline-color: #fff; }
.slide-art { display: flex; gap: 6px; align-items: center; justify-content: center; height: 100%; min-width: 0; }
.slide-art img { width: 100%; height: auto; max-height: 100%; border: 1px solid #ffffff45; box-shadow: 0 10px 22px #14201965; border-radius: 7px; }
.slide-art.phone img { width: min(46%, 150px); }
.slide-count { position: absolute; right: 9px; bottom: 4px; font-size: .8125rem; color: #edf3ee; font-variant-numeric: tabular-nums; }
.section { padding-block: 24px 33px; scroll-margin-top: 14px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-heading h2 { font-size: clamp(1.5rem,2.5vw,2rem); line-height: 1.2; letter-spacing: -.018em; font-weight: 790; }
.apps { border-top: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.app-card { scroll-margin-top: 14px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-top: 2px solid var(--app-tint); background: var(--white); border-radius: 9px; padding: 12px 14px; }
.teal { --app-tint: #006276; } .blue { --app-tint: #444b9f; } .plum { --app-tint: #5942ad; }
.lilac { --app-tint: #5732a4; } .amber { --app-tint: #176254; } .slate { --app-tint: #295c88; } .rust { --app-tint: #9c3526; }
.app-identity { display: flex; gap: 9px; align-items: center; }
.app-identity img { width: 50px; height: 50px; border-radius: 12px; }
.app-card h3, .guide-card h3, .post-card h3 { font-size: 1.1rem; line-height: 1.28; overflow-wrap: anywhere; }
.app-card h3 a:hover, .guide-card h3 a:hover, .post-card h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.app-card .platform, .guide-app, .post-card time { font-size: .875rem; color: var(--muted); }
.app-summary, .guide-card > p:last-child, .post-card > p { color: var(--muted); line-height: 1.55; }
.app-actions { margin-top: auto; align-items: center; gap: 5px 9px; }
.app-actions a, .text-action { display: inline-flex; align-items: center; min-height: 32px; font-size: .875rem; font-weight: 670; }
.niummgt-site .app-download { padding-inline: 9px; background: #edf1ee; border-radius: 5px; color: var(--pine); }
.niummgt-site .app-download:hover { color: #fff; background: var(--pine); }
.guide-strip { background: #ecefe7; border-block: 1px solid #dce2d7; }
.guide-grid, .post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.guide-card { padding: 12px 14px; background: #f9faf5; border: 1px solid #dae1d8; border-radius: 8px; }
.guide-card h3 { margin-block: 4px 5px; }
.guide-card h3 a { text-decoration: underline; text-underline-offset: .19em; text-decoration-color: #7b8e7f; }
.post-card { border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; background: var(--white); }
.post-card h3 { margin-block: 3px; }
.post-lead { border-left: 3px solid var(--accent); }
.post-card > p { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.archive-link { margin-top: 14px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: var(--white); }
.footer-row, .footer-row nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer-row { min-height: 56px; padding-block: 5px; font-size: .875rem; }
.footer-row a { display: inline-flex; align-items: center; min-height: 32px; }
@media (min-width: 901px) {
  .app-grid { grid-template-columns: repeat(12,minmax(0,1fr)); }
  .app-card { grid-column: span 3; }
  .app-card:nth-child(-n+3) { grid-column: span 4; }
}
@media (max-width: 900px) {
  .app-grid, .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 32px); }
  .masthead-row { gap: 0 10px; min-height: 0; flex-wrap: wrap; }
  .wordmark, .top-nav a, .pill, .app-actions a, .text-action, .footer-row a { min-height: 44px; }
  .top-nav { margin-left: auto; gap: 12px; }
  .site-search { width: 100%; height: 44px; margin: 0 0 8px; }
  .site-search input { width: auto; min-width: 0; flex: 1; height: 44px; font-size: 1rem; }
  .site-search button { height: 44px; min-width: 44px; }
  .hero { grid-template-columns: 1fr; gap: 17px; padding-block: 23px 26px; }
  .hero-rule { margin-bottom: 10px; }
  .hero-text > p { margin-block: 10px 12px; }
  .product-stage { aspect-ratio: 1.62; min-height: 183px; padding: 11px; }
  .product-stage figcaption { gap: 4px; }
  .product-stage figcaption strong { font-size: clamp(1.16rem,4.7vw,1.5rem); }
  .product-stage figcaption span { font-size: .9rem; }
  .product-stage figcaption a { min-height: 44px; }
  .section { padding-block: 18px 24px; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 495px) {
  .app-grid, .post-grid { grid-template-columns: 1fr; gap: 8px; }
}

.app-carousel { display: grid; min-width: 0; }
.carousel-slides { grid-row: 1; position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; background: var(--pine); }
.product-stage.carousel-ghost { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.carousel-controls { grid-row: 2; display: flex; align-items: stretch; margin-top: 6px; gap: 5px; }
.carousel-controls select { appearance: none; display: block; min-width: 0; max-width: 170px; flex: 1; overflow: hidden; text-overflow: ellipsis; padding: 0 24px 0 8px; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(45deg,transparent 50%,var(--pine) 50%) right 12px center / 4px 4px no-repeat,linear-gradient(135deg,var(--pine) 50%,transparent 50%) right 8px center / 4px 4px no-repeat,var(--white); color: var(--pine); font: inherit; font-size: .875rem; }
.carousel-controls .rotation-button { min-width: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); }
.rotation-icon { width: 10px; height: 12px; display: block; border-inline: 3px solid currentColor; }
.rotation-button[data-playing="false"] .rotation-icon { width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; margin-left: 2px; }
.carousel-controls[hidden] { display: none; }
.carousel-controls button { padding: 0 8px; border: 0; border-radius: 5px; cursor: pointer; min-height: 32px; background: transparent; color: var(--pine); font: inherit; font-size: .875rem; font-weight: 670; }
.carousel-controls button:hover { background: #e8ede8; }
.carousel-pages { display: flex; margin-left: auto; gap: 0; white-space: nowrap; }
.carousel-slides .product-stage[hidden] { display: none; }
.topics { border-top: 1px solid var(--line); padding-block: 19px 22px; }
.inside-main .topics { width: 100%; margin-top: 26px; }
.topic-groups { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.topic-group { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
.topic-group h3 { font-size: .9rem; color: var(--muted); font-weight: 670; }
.topic-links, .story-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-links a, .story-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 5px; font-size: .875rem; color: var(--pine); background: var(--white); }
.topic-links a:hover, .story-tags a:hover { border-color: var(--pine); text-decoration: underline; }
.footer-disclosure { padding-bottom: 9px; font-size: .875rem; }
.footer-disclosure summary { cursor: pointer; width: fit-content; min-height: 32px; align-content: center; }
.footer-disclosure p { max-width: 74ch; }

.inside-main { padding-block: 22px 40px; }
.crumb { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; color: var(--muted); font-size: .875rem; font-weight: 640; }
.crumb a { display: inline-flex; align-items: center; min-height: 32px; }
.crumb a:hover, .story-meta a:hover, .archive-grid h2 a:hover { color: var(--accent); text-decoration: underline; }
.reading-story, .story-extras, .story-comments { max-width: 860px; margin-inline: auto; }
.niummgt-site .reading-story { margin-inline: auto; }
.story-header { margin-bottom: 17px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.story-header h1, .listing-header h1 { font-size: clamp(1.8rem,4.5vw,3.15rem); line-height: 1.2; letter-spacing: -.026em; overflow-wrap: anywhere; }
.story-meta { display: flex; align-items: center; gap: 5px 12px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: .875rem; }
.reading-copy { font-size: 1.0625rem; line-height: 1.78; overflow-wrap: anywhere; }
.reading-copy p, .reading-copy ul, .reading-copy ol, .reading-copy blockquote, .reading-copy figure,
.reading-copy pre, .reading-copy table { margin-block: .7em; }
.reading-copy h2, .reading-copy h3, .reading-copy h4 { line-height: 1.32; margin: 1.05em 0 .38em; }
.reading-copy h2 { font-size: 1.48rem; padding-bottom: .34em; border-bottom: 1px solid var(--line); }
.reading-copy h3 { font-size: 1.18rem; }
.reading-copy li + li { margin-top: .28em; }
.reading-copy :where(a, .page-links a), .story-subscribe a { color: #174949; text-decoration: underline; text-underline-offset: .18em; }
.reading-copy blockquote { padding: .5em .8em; border-inline-start: 3px solid #3f7169; background: #edf2ec; }
.reading-copy pre { overflow-x: auto; padding: .7em; border: 1px solid var(--line); border-radius: 6px; background: white; }
.reading-copy table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.reading-copy :where(th,td) { padding: .3em .6em; border: 1px solid var(--line); }
.reading-copy img { height: auto; max-width: 100%; }
.reading-copy iframe { max-width: 100%; }
.reading-copy figcaption { color: var(--muted); font-size: .9rem; }
.reading-copy .niummgt-app-note p { margin: 0; }
.reading-copy .tutorial-phone { max-width: 310px; margin-inline: auto; }
.reading-copy .tutorial-phone img { width: 100%; height: auto; }
.story-tags { margin: 13px 0 16px; }
.story-extras h2 { font-size: 1.25rem; }
.story-extras .post-grid, .archive-grid { margin-top: 10px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-block: 15px; }
.post-navigation .nav-links a { display: grid; height: 100%; align-content: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.post-navigation span { font-size: .875rem; color: var(--muted); }
.post-navigation strong { font-size: .95rem; line-height: 1.35; }
.post-navigation a:hover strong { color: var(--accent); }
.story-subscribe { margin-top: 15px; border-top: 1px solid var(--line); }
.story-subscribe summary { cursor: pointer; min-height: 32px; align-content: center; font-weight: 650; }
.story-comments { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 13px; }
.story-comments .comment-form { display: grid; gap: 8px; max-width: 540px; }
.comment-form label { font-size: .875rem; }
.comment-form :is(input:not([type="checkbox"]), textarea) { padding: 5px 8px; min-height: 32px; border: 1px solid #b5bcb7; border-radius: 5px; font: inherit; max-width: 100%; }
.comment-form textarea { display: block; width: 100%; min-height: 92px; }
.comment-form .submit { background: var(--pine); color: white; cursor: pointer; }
.listing-header { border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.listing-header p { margin-top: 8px; color: var(--muted); }
.archive-grid .post-card h2 { font-size: 1.13rem; line-height: 1.34; margin-block: 4px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 15px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; padding-inline: 7px; border: 1px solid var(--line); border-radius: 5px; }
.pagination .current { color: #fff; background: var(--pine); }
.empty-state { margin-block: 14px; }
@media (max-width: 680px) {
  .carousel-controls .rotation-button { min-width: 44px; }
  .carousel-controls button, .topic-links a, .story-tags a, .pagination .page-numbers, .crumb a, .footer-disclosure summary, .story-subscribe summary { min-height: 44px; }
  .inside-main { padding-top: 11px; }
  .inside-main .topics { margin-top: 17px; }
  .topic-groups { gap: 5px 16px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .comment-form :is(input:not([type="checkbox"]),textarea) { min-height: 44px; }
}
