* { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  :root {
    color-scheme: light;
    --gh-canvas: #ffffff;
    --gh-canvas-subtle: #f6f8fa;
    --gh-canvas-inset: #f6f8fa;
    --gh-border: #d0d7de;
    --gh-border-muted: #d8dee4;
    --gh-fg: #1f2328;
    --gh-muted: #59636e;
    --gh-accent: #0969da;
    --gh-accent-subtle: #ddf4ff;
    --gh-header: #1f2937;
    --gh-shadow: 0 8px 24px rgba(140, 149, 159, 0.18);
    --bg: var(--gh-canvas);
    --surface: var(--gh-canvas);
    --text: var(--gh-fg);
    --muted: var(--gh-muted);
    --border: var(--gh-border);
    --brand: var(--gh-accent);
    --panel: var(--gh-canvas);
    --panel-strong: var(--gh-canvas);
    --panel-soft: var(--gh-canvas-subtle);
    --line: var(--gh-border);
    --line-strong: color-mix(in oklab, var(--gh-border), var(--gh-fg) 28%);
    --ink-strong: var(--gh-fg);
    --ink-soft: var(--gh-muted);
    --brand-soft: var(--gh-accent-subtle);
    --brand-strong: var(--gh-accent);
    --shadow-md: var(--gh-shadow);
    --shadow-lg: 0 16px 40px rgba(140, 149, 159, 0.22);
    --radius-xl: 16px;
  }

  [data-theme="dark"] {
    color-scheme: dark;
    --gh-canvas: #0d1117;
    --gh-canvas-subtle: #161b22;
    --gh-canvas-inset: #010409;
    --gh-border: #30363d;
    --gh-border-muted: #21262d;
    --gh-fg: #e6edf3;
    --gh-muted: #8b949e;
    --gh-accent: #2f81f7;
    --gh-accent-subtle: rgba(56, 139, 253, 0.14);
    --gh-header: #010409;
    --gh-shadow: 0 8px 24px rgba(1, 4, 9, 0.38);
    --bg: var(--gh-canvas);
    --surface: var(--gh-canvas);
    --text: var(--gh-fg);
    --muted: var(--gh-muted);
    --border: var(--gh-border);
    --brand: var(--gh-accent);
    --panel: var(--gh-canvas);
    --panel-strong: color-mix(in oklab, var(--gh-canvas), white 4%);
    --panel-soft: var(--gh-canvas-subtle);
    --line: var(--gh-border);
    --line-strong: color-mix(in oklab, var(--gh-border), white 18%);
    --ink-strong: var(--gh-fg);
    --ink-soft: var(--gh-muted);
    --brand-soft: var(--gh-accent-subtle);
    --brand-strong: var(--gh-accent);
    --shadow-md: var(--gh-shadow);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.45);
  }

  button,
  input {
    font: inherit;
  }

  .intro {
    text-align: left;
    color: var(--muted);
    font-size: 1.08rem;
    margin: 0 0 1rem;
    max-width: 880px;
    line-height: 1.62;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .shell,
  .search-stage,
  .guide-card,
  .hub-card,
  .popular-card,
  .library-card,
  .content-card,
  .faq-item,
  .footer-shell,
  .modal-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .home-main {
    display: grid;
    gap: 14px;
    margin-top: 16px;
  }

  .shell {
    border-radius: var(--radius-xl);
    padding: 16px;
  }

  .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
  }

  .section-kicker {
    margin: 0 0 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
  }

  .section-head h2 {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.6rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
    color: var(--ink-strong);
  }

  .section-head p {
    max-width: 920px;
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.68;
  }

  .search-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
    gap: 14px;
    border-radius: var(--radius-xl);
    padding: 16px;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .search-title {
    margin: 12px 0 8px;
    color: var(--ink-strong);
    font-size: clamp(1rem, 1.4vw, 1.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .search-copy {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.68;
    max-width: 760px;
  }

  .search-stack {
    display: grid;
    gap: 8px;
  }

  .search-frame {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  }

  .search-frame:focus-within {
    border-color: color-mix(in oklab, var(--brand), white 20%);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand), transparent 84%);
    transform: translateY(-1px);
  }

  .search-ico {
    position: absolute;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--brand);
    pointer-events: none;
  }

  .search-ico svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 2.15;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #homepageSearch {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink-strong);
    font-size: 1rem;
    padding: 15px 16px 15px 58px;
  }

  #homepageSearch::placeholder {
    color: color-mix(in oklab, var(--ink-soft), transparent 14%);
  }

  .search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.84rem;
  }

  .search-meta span {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
  }

  .result-popover {
    display: none;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    box-shadow: var(--shadow-md);
    overflow: hidden;
  }

  .result-popover.is-open {
    display: block;
  }

  .result-list {
    max-height: min(420px, 52vh);
    overflow-y: auto;
    padding: 6px;
  }

  .result-item,
  .result-empty {
    display: block;
    width: 100%;
    border-radius: 14px;
    padding: 11px 12px;
  }

  .result-item {
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  }

  .result-item strong {
    display: block;
    color: var(--ink-strong);
    font-size: 0.98rem;
    line-height: 1.36;
  }

  .result-item span,
  .result-empty {
    display: block;
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .result-item:hover,
  .result-item.is-active {
    background: var(--brand-soft);
    border-color: color-mix(in oklab, var(--brand), transparent 72%);
    transform: translateY(-1px);
  }

  .hero-rail {
    display: grid;
    gap: 10px;
    align-content: start;
  }

  .rail-card {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--panel-soft), white 10%), var(--panel-strong));
    border: 1px solid var(--line);
    min-width: 0;
  }

  .rail-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--ink-strong);
    letter-spacing: -0.02em;
  }

  .rail-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-box {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
  }

  .metric-box span {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
  }

  .metric-box strong {
    display: block;
    color: var(--ink-strong);
    font-size: 1.34rem;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  #categoryStatsGrid .metric-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  #categoryStatsGrid .metric-box span {
    min-width: 0;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #categoryStatsGrid .metric-box strong {
    font-size: 1rem;
    white-space: nowrap;
  }

  .hub-grid,
  .popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
  }

  .hub-card,
  .popular-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .hub-card:hover,
  .popular-card:hover,
  .library-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--brand), transparent 66%);
    box-shadow: var(--shadow-lg);
  }

  .card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .card-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--brand);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .card-count {
    color: var(--ink-soft);
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hub-card h3,
  .popular-card h3,
  .library-card h3,
  .content-card h3,
  .faq-item h3 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 1rem;
    line-height: 1.34;
    letter-spacing: -0.02em;
  }
   .content-card h3{margin-bottom: 5px;}

  .hub-card p,
  .popular-card p,
  .library-card p,
  .content-card p,
  .faq-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .reference-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 6px;
    object-fit: cover;
    background: var(--panel-soft);
  }

  .card-linkrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
  }

  .mini-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
  }

  .library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .library-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    min-width: 0;
    height: 100%;
  }

  .library-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
  }

  .library-head > div:first-child {
    min-width: 0;
    flex: 1;
  }

  .library-head h3 {
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .count-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .preview-stack {
    display: grid;
    gap: 8px;
    align-content: start;
    flex: 1 1 auto;
  }

  .preview-link {
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel-soft), white 8%);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  }

  .preview-link:hover {
    border-color: color-mix(in oklab, var(--brand), transparent 68%);
    background: var(--brand-soft);
    transform: translateY(-1px);
  }

  .preview-link strong {
    color: var(--ink-strong);
    font-size: 0.94rem;
    line-height: 1.36;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .preview-link small {
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 2px;
  }

  .card-actions span {
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .guide-grid,
  .text-columns,
  .faq-grid {
    display: grid;
    gap: 12px;
  }

  .guide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .guide-card {
    border-radius: 18px;
    padding: 14px;
  }

  .guide-step {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 10px;
  }

  .guide-card h3 {
    margin: 0 0 8px;
    color: var(--ink-strong);
    font-size: 1rem;
    letter-spacing: -0.02em;
  }

  .guide-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .text-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-card,
  .faq-item {
    border-radius: 18px;
    padding: 14px;
  }

  .content-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
    line-height: 1.7;
  }

  .content-card li + li {
    margin-top: 6px;
  }

  .faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-item {
    display: grid;
    gap: 8px;
  }

  .footer {
    margin-top: 16px;
  }

  .footer-shell {
    border-radius: var(--radius-xl);
    padding: 16px;
  }

  .footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .footer-brand h2 {
    margin: 0 0 8px;
    color: var(--ink-strong);
    font-size: 1.18rem;
    letter-spacing: -0.02em;
  }

  .footer-brand p {
    max-width: 760px;
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.68;
    font-size: 0.95rem;
  }

  .footer-statgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 14px;
  }

  .footer-col h3 {
    margin: 0 0 10px;
    color: var(--ink-strong);
    font-size: 0.95rem;
    letter-spacing: -0.02em;
  }

  .footer-links,
  .footer-meta {
    display: grid;
    gap: 8px;
  }

  .footer-link,
  .footer-meta a {
    text-decoration: none;
    color: var(--ink-soft);
    transition: color 0.18s ease;
  }

  .footer-link:hover,
  .footer-meta a:hover {
    color: var(--brand);
  }

  .footer-meta span {
    color: var(--ink-soft);
    line-height: 1.55;
    font-size: 0.9rem;
  }

  .footer-copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 15, 28, 0.56);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
  }

  .modal.is-open {
    display: flex;
  }

  .modal-panel {
    width: min(1080px, 100%);
    max-height: min(90dvh, 920px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 24px;
    overflow: hidden;
    background:
      radial-gradient(circle at top right, color-mix(in oklab, var(--brand), transparent 86%) 0%, transparent 28%),
      linear-gradient(180deg, color-mix(in oklab, var(--panel-strong), white 4%), var(--panel));
    box-shadow: var(--shadow-lg);
  }

  .modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex: none;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel), white 2%);
  }

  .modal-overline {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .modal-head h2 {
    margin: 0 0 8px;
    color: var(--ink-strong);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
  }

  .modal-head p {
    max-width: 760px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.66;
  }

  .modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .modal-meta span,
  .modal-meta a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink-soft);
    font-size: 0.82rem;
    text-decoration: none;
  }

  .modal-close {
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--panel-soft), white 4%);
    color: var(--ink-soft);
    cursor: pointer;
    flex: none;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .modal-close:hover {
    background: var(--brand-soft);
    color: var(--brand);
    transform: rotate(90deg);
  }

  .modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 18px 22px 28px;
    overscroll-behavior: contain;
    scroll-padding-bottom: 28px;
  }

  .modal-groups {
    display: grid;
    gap: 16px;
  }

  .modal-group {
    display: grid;
    gap: 10px;
  }

  .modal-group h3 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 0.95rem;
    letter-spacing: -0.02em;
  }

  .modal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .modal-link {
    display: grid;
    gap: 5px;
    padding: 12px 13px;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel-soft), white 8%);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  }

  .modal-link:hover {
    border-color: color-mix(in oklab, var(--brand), transparent 68%);
    background: var(--brand-soft);
    transform: translateY(-1px);
  }

  .modal-link strong {
    color: var(--ink-strong);
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .modal-link small {
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .loading-card {
    padding: 14px;
    border-radius: 18px;
    border: 1px dashed var(--line);
    color: var(--ink-soft);
    background: var(--panel-soft);
  }

  @media (max-width: 1024px) {
    .search-stage,
    .footer-top,
    .footer-bottom,
    .text-columns {
      grid-template-columns: 1fr;
    }

    .guide-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 720px) {
    .search-stage,
    .shell,
    .footer-shell {
      padding-left: 12px;
      padding-right: 12px;
    }

    .search-copy,
    .section-head p,
    .footer-brand p {
      font-size: 0.94rem;
    }

    .intro {
      font-size: 1rem;
      margin-bottom: .9rem;
    }

    .search-frame {
      min-height: 54px;
    }

    .search-ico {
      left: 14px;
      width: 32px;
      height: 32px;
    }

    .search-ico svg {
      width: 28px;
      height: 28px;
    }

    #homepageSearch {
      padding: 14px 14px 14px 54px;
    }

    .faq-grid,
    .guide-grid,
    .modal-list {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .footer-statgrid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
      justify-items: center;
      text-align: center;
    }

    .footer-col {
      text-align: center;
    }

    .footer-links,
    .footer-meta {
      justify-items: center;
    }

    .footer-copyright {
      justify-content: center;
      text-align: center;
    }

    .hub-grid,
    .popular-grid,
    .library-grid {
      grid-template-columns: 1fr;
    }

    .library-card {
      min-height: 0;
    }

    .library-head {
      min-height: 0;
    }

    .card-actions {
      align-items: flex-start;
      flex-direction: column;
    }

    .modal {
      padding: 8px;
      align-items: flex-start;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .modal-panel {
      width: min(100vw - 8px, 100%);
      height: auto;
      min-height: auto;
      max-height: none;
      border-radius: 22px;
    }

    .modal-head,
    .modal-scroll {
      padding-left: 12px;
      padding-right: 12px;
    }

    .modal-head {
      padding-top: 14px;
      padding-bottom: 12px;
    }

    .modal-scroll {
      flex: none;
      min-height: auto;
      overflow: visible;
      padding-top: 14px;
      padding-bottom: 22px;
    }
  }
  /* GitHub-inspired homepage skin */

  body {
    margin: 0;
    background: var(--gh-canvas);
    color: var(--gh-fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  }

  .wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .github-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 24px;
    background: var(--gh-header);
    color: #f0f6fc;
  }

  .github-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 36px;
    border-radius: 1px;    
    overflow: hidden;
    flex: none;
    
  }

  .github-mark img {
    width: auto;
    height: 56px;
    object-fit: contain;
  }  

  .topbar-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
  }

  .topbar-links a,
  .repo-actions a {
    color: inherit;
    text-decoration: none;
  }

  .topbar-links a,
  .topbar-theme-button {
    font-weight: 600;
    font-size: 0.92rem;
  }

  .topbar-theme-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: inherit;
  }

  .topbar-theme-button:hover {
    color: inherit;
    text-decoration: none;
  }

  .topbar-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    margin-left: auto;
    border: 1px solid rgba(240, 246, 252, 0.22);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(240, 246, 252, 0.08), rgba(240, 246, 252, 0.02));
    color: #f0f6fc;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  }

  .topbar-menu-button:hover,
  .topbar-menu-button[aria-expanded="true"] {
    border-color: rgba(240, 246, 252, 0.42);
    background: rgba(240, 246, 252, 0.12);
    box-shadow: inset 0 0 0 1px rgba(240, 246, 252, 0.04);
  }

  .topbar-menu-button svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-menu-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 10px 10px;
    background: rgba(1, 4, 9, 0.64);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .mobile-menu-modal.is-open {
    display: flex;
  }

  .mobile-menu-panel {
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    max-height: calc(100dvh - 80px);
    min-height: 0;
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    background: var(--gh-canvas);
    color: var(--gh-fg);
    box-shadow: 0 18px 44px rgba(1, 4, 9, 0.34);
    overflow: hidden;
    transform: translateY(-6px);
    animation: mobileMenuIn 0.16s ease forwards;
  }

  @keyframes mobileMenuIn {
    to {
      transform: translateY(0);
    }
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gh-border);
    background: var(--gh-canvas-subtle);
  }

  .mobile-menu-head h2 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--gh-border);
    border-radius: 8px;
    background: var(--gh-canvas);
    color: var(--gh-muted);
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }

  .mobile-menu-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
  }

  .mobile-menu-close:hover {
    border-color: var(--gh-accent);
    background: var(--gh-accent-subtle);
    color: var(--gh-accent);
  }

  .mobile-menu-links {
    display: grid;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 8px;
  }

  .mobile-menu-links a,
  .mobile-theme-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--gh-fg);
    background: transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  }

  .mobile-menu-links a::after,
  .mobile-theme-button::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.52;
  }

  .mobile-menu-links a:hover,
  .mobile-theme-button:hover {
    border-color: var(--gh-border);
    background: var(--gh-canvas-subtle);
    color: var(--gh-accent);
  }

  .repo-hero {
    background: var(--gh-canvas-subtle);
    border-bottom: 1px solid var(--gh-border);
  }

  .repo-context,
  .repo-tabs,
  .home-main,
  .footer {
    width: min(1280px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
  }

  .repo-context {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 10px;
  }

  .repo-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0 0 8px;
    color: var(--gh-muted);
    font-size: 1.28rem;
    font-weight: 400;
  }

  .repo-title strong {
    color: var(--gh-accent);
    font-weight: 600;
  }

  .repo-title svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: currentColor;
  }

  .repo-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border: 1px solid var(--gh-border);
    border-radius: 999px;
    color: var(--gh-muted);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.5;
  }

  .repo-subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--gh-muted);
    line-height: 1.55;
  }

  .repo-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex: none;
  }

  .gh-button,
  .card-button,
  .modal-close {
    border-radius: 6px;
  }

  .gh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid var(--gh-border);
    background: var(--gh-canvas);
    color: var(--gh-fg);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .gh-button.primary {
    border-color: var(--gh-accent);
    background: var(--gh-accent);
    color: #ffffff;
  }

  .gh-button.primary:hover {
    background: color-mix(in oklab, var(--gh-accent), black 12%);
  }

  .repo-tabs {
    position: relative;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 0;
  }

  .repo-tab-indicator {
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--tab-indicator-width, 0px);
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: #fd8c73;
    transform: translateX(var(--tab-indicator-left, 0px));
    transition: transform 0.18s ease, width 0.18s ease;
    pointer-events: none;
  }

  .repo-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    color: var(--gh-fg);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .repo-tabs a.active {
    font-weight: 600;
  }

  .repo-tabs a:hover,
  .repo-tabs a:focus-visible {
    color: var(--gh-accent);
  }

  .repo-tabs .counter {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--gh-muted), transparent 84%);
    color: var(--gh-fg);
    font-size: 0.76rem;
    text-align: center;
  }

  .home-main {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 16px;
    margin-top: 24px;
  }

  .search-stage,
  #browse-categories {
    grid-column: 1 / -1;
  }

  #featured-hubs,
  #popular-tools,
  #guided-paths,
  #homepage-depth,
  #homepage-faq {
    grid-column: 1;
  }

  .shell,
  .search-stage,
  .guide-card,
  .hub-card,
  .popular-card,
  .library-card,
  .content-card,
  .faq-item,
  .footer-shell,
  .modal-panel {
    border-color: var(--gh-border);
    border-radius: 6px;
    background: var(--gh-canvas);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .search-stage {
    grid-template-columns: minmax(0, 1fr) 320px;
    padding: 0;
    overflow: hidden;
  }

  .search-stage > div:first-child,
  .hero-rail {
    padding: 24px;
  }

  .hero-rail {
    border-left: 1px solid var(--gh-border);
    background: var(--gh-canvas-subtle);
  }

  .search-title {
    margin: 0 0 8px;
    color: var(--gh-fg);
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    line-height: 1.16;
    letter-spacing: 0;
  }

  .search-copy,
  .section-head p,
  .rail-card p,
  .hub-card p,
  .popular-card p,
  .library-card p,
  .content-card p,
  .faq-item p,
  .footer-brand p,
  .footer-meta span {
    color: var(--gh-muted);
  }

  .search-frame {
    min-height: 46px;
    border-color: var(--gh-border);
    border-radius: 6px;
    background: var(--gh-canvas);
    box-shadow: inset 0 1px 0 rgba(208, 215, 222, 0.2);
    transform: none;
  }

  .search-frame:focus-within {
    border-color: var(--gh-accent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--gh-accent), transparent 78%);
    transform: none;
  }

  .search-ico,
  .section-kicker,
  .card-tag,
  .count-pill,
  .mini-chip,
  .modal-overline {
    color: var(--gh-accent);
  }

  .search-ico {
    left: 12px;
    width: 24px;
    height: 24px;
  }

  .search-ico svg {
    width: 18px;
    height: 18px;
  }

  #homepageSearch {
    color: var(--gh-fg);
    padding: 11px 12px 11px 42px;
    font-size: 0.95rem;
  }

  .search-meta span,
  .card-tag,
  .count-pill,
  .mini-chip,
  .modal-meta span,
  .modal-meta a {
    border-color: var(--gh-border);
    border-radius: 999px;
    background: var(--gh-accent-subtle);
  }

  .result-popover,
  .rail-card,
  .metric-box,
  .preview-link,
  .modal-link,
  .loading-card {
    border-color: var(--gh-border);
    border-radius: 6px;
    background: var(--gh-canvas);
    box-shadow: var(--gh-shadow);
  }

  .rail-card,
  .metric-box,
  .preview-link,
  .modal-link,
  .loading-card {
    box-shadow: none;
  }

  .metric-box,
  .rail-card {
    background: var(--gh-canvas);
  }

  .section-head {
    align-items: center;
    margin: -16px -16px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gh-border);
    background: var(--gh-canvas-subtle);
  }

  .section-head h2,
  .hub-card h3,
  .popular-card h3,
  .library-card h3,
  .content-card h3,
  .faq-item h3,
  .rail-card h3,
  .footer-brand h2,
  .footer-col h3,
  .modal-head h2,
  .modal-group h3 {
    color: var(--gh-fg);
    letter-spacing: 0;
  }

  .section-kicker {
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.84rem;
  }

  .hub-grid,
  .popular-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .library-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .hub-card,
  .popular-card,
  .library-card,
  .guide-card,
  .content-card,
  .faq-item {
    padding: 16px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
  }

  .hub-card:hover,
  .popular-card:hover,
  .library-card:hover,
  .preview-link:hover,
  .modal-link:hover,
  .result-item:hover,
  .result-item.is-active {
    transform: none;
    border-color: var(--gh-accent);
    background: var(--gh-canvas-subtle);
    box-shadow: none;
  }

  .card-button {
    border: 1px solid var(--gh-border);
    border-radius: 6px;
    padding: 7px 12px;
    background: var(--gh-canvas-subtle);
    color: var(--gh-accent);
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  }

  .card-button:hover {
    border-color: var(--gh-accent);
    background: var(--gh-accent-subtle);
    color: var(--gh-accent);
    box-shadow: none;
    transform: none;
    filter: none;
  }

  .guide-step {
    border-radius: 6px;
    background: var(--gh-accent-subtle);
    color: var(--gh-accent);
  }

  .footer {
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .footer-shell {
    background: var(--gh-canvas-subtle);
  }

  .footer-top,
  .footer-bottom,
  .footer-copyright,
  .modal-head {
    border-color: var(--gh-border);
  }

  .footer-link,
  .footer-meta a {
    color: var(--gh-accent);
  }

  .modal {
    background: rgba(1, 4, 9, 0.56);
  }

  .modal-panel {
    background: var(--gh-canvas);
    box-shadow: var(--gh-shadow);
  }

  .modal-head {
    background: var(--gh-canvas-subtle);
  }

  .modal-close {
    background: var(--gh-canvas);
    border: 1px solid var(--gh-border);
    color: var(--gh-muted);
  }

  .modal-close:hover {
    transform: none;
    background: var(--gh-canvas-subtle);
    color: var(--gh-fg);
  }

  @media (max-width: 900px) {
    .github-topbar {
      padding: 12px 16px;
    }

    .topbar-links {
      display: none;
    }

    .topbar-menu-button {
      display: inline-flex;
    }

    .repo-context {
      flex-direction: column;
    }

    .repo-actions {
      justify-content: flex-start;
    }

    .home-main,
    .search-stage {
      grid-template-columns: 1fr;
    }

    .hero-rail {
      border-left: 0;
      border-top: 1px solid var(--gh-border);
    }
  }

  @media (max-width: 720px) {
    .repo-context,
    .repo-tabs,
    .home-main,
    .footer {
      width: min(100% - 20px, 1280px);
    }

    .search-stage > div:first-child,
    .hero-rail {
      padding: 16px;
    }

    .section-head {
      margin-left: -12px;
      margin-right: -12px;
      padding-left: 12px;
      padding-right: 12px;
    }
  }
 .github-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex: 0 0 auto;
}

.github-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.github-mark img {
  display: block;
  width: auto;
  height: 56px;   /* 원하는 기존 로고 높이로 고정 */
  max-width: none;
  flex-shrink: 0;
}

.topbar-links-left {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 0px; /* 메뉴만 살짝 아래로 */
  flex: 0 0 auto;
}

.topbar-links-right {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 0px; /* 메뉴만 살짝 아래로 */
  flex: 0 0 auto;
}

.topbar-links-left a,
.topbar-links-right a {
  white-space: nowrap;
  text-decoration: none;
}

.mobile-menu-section {
  display: grid;
  gap: 3px;
}

.mobile-menu-section + .mobile-menu-section {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--gh-border);
}

.mobile-menu-label {
  padding: 3px 10px;
  color: var(--gh-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .github-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
  }

  .topbar-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .search-meta,
  .search-copy,
  .hero-rail,
  .topbar-links,
  .topbar-links-left,
  .topbar-links-right {
    display: none !important;
  }

  .topbar-menu-button {
    display: inline-flex !important;
    flex: 0 0 auto;
    margin-left: 12px;
  }

  .github-mark {
    min-width: 0;
  }

  .github-mark img {
    max-width: min(220px, calc(100vw - 96px));
    height: 50px;
    object-fit: contain;
  }
}

#categoryModal.modal {
  z-index: 120;
  align-items: flex-start;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 70px 10px 10px;
  overflow: hidden;
  background: rgba(1, 4, 9, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#categoryModal .modal-panel {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: calc(100dvh - 80px);
  min-height: 0;
  border: 1px solid var(--gh-border);
  border-radius: 10px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
  box-shadow: 0 18px 44px rgba(1, 4, 9, 0.34);
  overflow: hidden;
  transform: translateY(-6px);
  animation: mobileMenuIn 0.16s ease forwards;
}

#categoryModal .modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gh-border);
  background: var(--gh-canvas-subtle);
}

#categoryModal .modal-overline {
  margin: 0 0 4px;
  color: var(--gh-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

#categoryModal .modal-head h2 {
  margin: 0;
  color: var(--gh-fg);
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: 0;
}

#categoryModal .modal-head p {
  margin-top: 6px;
  color: var(--gh-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

#categoryModal .modal-meta {
  margin-top: 8px;
}

#categoryModal .modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: var(--gh-canvas);
  color: var(--gh-muted);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

#categoryModal .modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
}

#categoryModal .modal-close:hover {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
  color: var(--gh-accent);
  transform: none;
}

#categoryModal .modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

#categoryModal .modal-groups {
  gap: 8px;
}

#categoryModal .modal-group {
  gap: 6px;
}

#categoryModal .modal-group h3 {
  padding: 3px 8px;
  color: var(--gh-muted);
  font-size: 0.78rem;
  letter-spacing: 0;
}

#categoryModal .modal-link {
  border-radius: 8px;
}

@media (max-width: 720px) {
  #categoryModal .modal-panel {
    width: min(440px, 100%);
  }
}

/* Funify Notes */
.notes-main {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 0;
}

.notes-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.notes-sidebar,
.notes-panel,
.notes-empty,
.notes-view,
.notes-editor {
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-sidebar {
  position: sticky;
  top: 80px;
  overflow: hidden;
}

.notes-sidebar-head,
.notes-panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gh-border);
  background: var(--gh-canvas-subtle);
}

.notes-sidebar-title,
.notes-panel-title {
  margin: 0;
  color: var(--gh-fg);
  font-size: 1rem;
  line-height: 1.35;
}

.notes-sidebar-copy,
.notes-panel-copy {
  margin: 6px 0 0;
  color: var(--gh-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.notes-sidebar-tools {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--gh-border);
}

.notes-search {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  outline: none;
  background: var(--gh-canvas);
  color: var(--gh-fg);
}

.notes-search:focus,
.notes-title-input:focus,
.notes-editor:focus {
  border-color: var(--gh-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gh-accent), transparent 78%);
}

.notes-tool-group {
  display: grid;
  gap: 8px;
}

.notes-tool-label {
  color: var(--gh-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.notes-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.notes-button-grid.single {
  grid-template-columns: 1fr;
}

.notes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
  color: var(--gh-fg);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.notes-panel-actions .notes-btn {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 0.84rem;
}

.notes-btn:hover,
.notes-btn.active {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
  color: var(--gh-accent);
}

.notes-btn.primary {
  border-color: var(--gh-accent);
  background: var(--gh-accent);
  color: #ffffff;
}

.notes-btn.danger {
  color: #cf222e;
}

.notes-btn.ok {
  color: #1a7f37;
}

[data-theme="dark"] .notes-btn.danger {
  color: #ff7b72;
}

[data-theme="dark"] .notes-btn.ok {
  color: #7ee787;
}

.notes-tree-wrap {
  max-height: calc(100dvh - 390px);
  min-height: 300px;
  overflow: auto;
  padding: 8px;
}

.notes-tree,
.tree-node,
.tree-children {
  gap: 0px;
}

.notes-tree {
  display: grid; 
}

.tree-node {
  display: grid; 
}

.tree-children {
  display: grid;
  margin-left: 10px;
  padding-left: 4px;
  border-left: 1px solid var(--gh-border);
}

.tree-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
  align-items: center;
  min-height: 10px;
  padding: 1px 1px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--gh-fg);
  cursor: pointer;
}

.tree-item.is-highlighted .node-title-text {
  color: var(--gh-accent);
  font-weight: 800;
}

.tree-menu-button {
  width: 28px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--gh-muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.tree-item:hover .tree-menu-button,
.tree-item:focus-within .tree-menu-button,
.tree-menu-button[aria-expanded="true"] {
  opacity: 1;
  pointer-events: auto;
}

.tree-menu-button:hover {
  border-color: var(--gh-border);
  background: var(--gh-canvas);
  color: var(--gh-accent);
}

.tree-context-menu {
  position: fixed;
  z-index: 200;
  display: grid;
  min-width: 120px;
  padding: 6px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
  box-shadow: var(--gh-shadow);
}

.tree-context-menu button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gh-fg);
  text-align: left;
  cursor: pointer;
}

.tree-context-menu button:hover {
  background: var(--gh-canvas-subtle);
  color: var(--gh-accent);
}

.tree-item:hover {
  background: var(--gh-canvas-subtle);
}

.tree-item.active {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
}

.tree-item[data-drop-position="inside"] {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
}

.tree-item[data-drop-position="before"],
.tree-item[data-drop-position="after"] {
  position: relative;
}

.tree-item[data-drop-position="before"]::before,
.tree-item[data-drop-position="after"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gh-accent);
}

.tree-item[data-drop-position="before"]::before {
  top: -2px;
}

.tree-item[data-drop-position="after"]::after {
  bottom: -2px;
}

.caret {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--gh-muted);
}

.caret:hover {
  background: var(--gh-canvas);
  color: var(--gh-accent);
}

.node-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.9rem;
}

.node-icon {
  color: var(--gh-muted);
  flex: 0 0 auto;
}

.node-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-badge {
  padding: 2px 7px;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: var(--gh-canvas);
  color: var(--gh-muted);
  font-size: 0.72rem;
}

.notes-sidebar-footer {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--gh-border);
  color: var(--gh-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.notes-panel {
  min-width: 0;
  overflow: visible;
}

.notes-panel-head {
  position: sticky;
  top: 64px;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--gh-border);
  background: var(--gh-canvas-subtle);
}

.notes-panel-actions,
.notes-meta-row,
.notes-formatbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.notes-document {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.notes-title-input {
  width: 100%;
  min-height: 48px;
  padding: 6px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  background: transparent;
  color: var(--gh-fg);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.18;
}

.notes-title-input:disabled {
  color: var(--gh-fg);
}

.notes-meta-row {
  color: var(--gh-muted);
  font-size: 0.84rem;
}

.notes-status.ok {
  color: #1a7f37;
}

.notes-status.warn {
  color: #9a6700;
}

[data-theme="dark"] .notes-status.ok {
  color: #7ee787;
}

[data-theme="dark"] .notes-status.warn {
  color: #d29922;
}

.notes-formatbar {
  position: sticky;
  top: 146px;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: start;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
  overflow: visible;
  box-shadow: 0 8px 18px rgba(140, 149, 159, 0.16);
}

.notes-formatbar[hidden] {
  display: none;
}

.notes-toolbar-group {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 1px;
  width: fit-content;
  max-width: 100%;
  min-width: fit-content;
  padding: 3px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-toolbar-select {
  height: 30px;
  min-width: 64px;
  padding: 0 22px 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  background: transparent;
  color: var(--gh-muted);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.notes-toolbar-select.font {
  min-width: 126px;
}

.notes-font-input {
  width: 168px;
  cursor: text;
  border-color: var(--gh-border);
  background: color-mix(in oklab, var(--gh-canvas), var(--gh-canvas-subtle) 35%);
}

.notes-font-options {
  position: fixed;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: var(--gh-canvas);
  box-shadow: 0 16px 36px rgba(31, 35, 40, 0.18);
}

.notes-font-options[hidden] {
  display: none;
}

.notes-font-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gh-fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notes-font-option:hover,
.notes-font-option:focus {
  background: var(--gh-canvas-subtle);
  outline: none;
}

.notes-font-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-font-option small {
  flex: 0 0 auto;
  color: var(--gh-muted);
  font-size: 0.72rem;
}

.notes-font-empty {
  padding: 10px 8px;
  color: var(--gh-muted);
  font-size: 0.84rem;
}

.notes-local-font-btn {
  width: 34px;
  min-width: 34px;
  font-weight: 700;
}

.notes-toolbar-select.small {
  border-color: var(--gh-border);
  background: color-mix(in oklab, var(--gh-canvas), var(--gh-canvas-subtle) 35%);
  min-width: 38px;
  width: 42px;
  padding: 0 14px 0 5px;
}

.notes-toolbar-select.quote {
  min-width: 76px;
  width: 86px;
  padding-right: 18px;
}


.notes-color-input {
  width: 22px;
  height: 22px;
  padding: 2px;
  border: 1px solid var(--gh-border);
  border-radius: 5px;
  background: var(--gh-canvas);
  cursor: pointer;
}

.notes-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.notes-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 3px;
}

.notes-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 3px;
}

.notes-font-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 28px;
  color: var(--gh-muted);
  font-weight: 800;
  line-height: 1;
}

.notes-toolbar-select:hover,
.notes-toolbar-select:focus {
  border-color: var(--gh-border);
  background: var(--gh-canvas);
  color: var(--gh-accent);
}

.notes-icon-btn {
  width: 30px;
  min-width: 30px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--gh-muted);
  font-size: 0.86rem;
  line-height: 1;
}

.notes-icon-btn.wide {
  width: 36px;
  min-width: 36px;
}

.notes-icon-btn.strong {
  font-weight: 800;
}

.notes-icon-btn.italic {
  font-style: italic;
}

.notes-icon-btn.underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notes-icon-btn.strike {
  text-decoration: line-through;
}

.notes-toolbar-svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes-icon-btn:hover,
.notes-icon-btn.active {
  border-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
  color: var(--gh-accent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--gh-accent), transparent 78%);
}

.notes-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--gh-muted);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.notes-insert-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-insert-panel.is-floating {
  position: fixed;
  z-index: 180;
  top: 198px;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
  box-shadow: var(--gh-shadow);
}

.notes-insert-panel[hidden],
.notes-insert-mode[hidden] {
  display: none;
}

.notes-insert-tabs,
.notes-insert-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.notes-insert-input {
  min-height: 34px;
  min-width: min(360px, 100%);
  flex: 1 1 260px;
  padding: 6px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
  font: inherit;
}

.notes-insert-input:focus {
  border-color: var(--gh-accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gh-accent), transparent 78%);
}

.notes-template-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.notes-template-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
  color: var(--gh-fg);
  cursor: pointer;
  text-align: left;
}

.notes-template-card span {
  color: var(--gh-muted);
  font-size: 0.8rem;
}

.notes-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 35, 40, 0.42);
}

.notes-modal[hidden] {
  display: none;
}

.notes-modal-card {
  width: min(860px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
  box-shadow: var(--gh-shadow);
}

.notes-modal-head,
.notes-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notes-modal-head {
  margin-bottom: 14px;
}

.notes-modal-head div {
  display: grid;
  gap: 3px;
}

.notes-modal-head span {
  color: var(--gh-muted);
  font-size: 0.86rem;
}

.notes-modal-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.notes-chart-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.notes-chart-settings label,
.notes-chart-check {
  display: grid;
  gap: 5px;
  color: var(--gh-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.notes-chart-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
  color: var(--gh-fg);
}

.notes-chart-settings input[type="range"] {
  width: 100%;
}

.notes-chart-settings input[type="color"],
.notes-chart-row input[type="color"] {
  width: 42px;
  min-height: 34px;
  padding: 2px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
}

.notes-chart-row-head,
.notes-chart-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(100px, 140px) 56px 42px;
  gap: 8px;
  align-items: center;
}

.notes-chart-row-head {
  margin-bottom: 6px;
  color: var(--gh-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.notes-chart-rows {
  display: grid;
  gap: 8px;
}

.notes-attachment-bar {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
}

.notes-attachment-bar[hidden] {
  display: none;
}

.notes-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.notes-attachment {
  padding: 4px 8px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  color: var(--gh-accent);
  background: var(--gh-canvas);
  text-decoration: none;
  font-size: 0.82rem;
}

.notes-view,
.notes-editor,
.notes-empty {
  min-height: 1123px;
  padding: 22px;
  line-height: 1.75;
}

.notes-editor,
.notes-html-editor {
  outline: none;
}

.notes-editor[hidden],
.notes-html-editor[hidden],
.notes-view[hidden],
.notes-empty[hidden] {
  display: none;
}

.notes-html-editor {
  width: 100%;
  min-height: 1123px;
  padding: 18px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
  font: 0.92rem/1.65 Consolas, "Courier New", monospace;
  resize: vertical;
}

.notes-view h1,
.notes-view h2,
.notes-view h3,
.notes-editor h1,
.notes-editor h2,
.notes-editor h3 {
  margin: 1.15em 0 0.5em;
  color: var(--gh-fg);
  line-height: 1.25;
}

.notes-view h1:first-child,
.notes-view h2:first-child,
.notes-view h3:first-child,
.notes-editor h1:first-child,
.notes-editor h2:first-child,
.notes-editor h3:first-child {
  margin-top: 0;
}

.notes-view p,
.notes-view ul,
.notes-view ol,
.notes-view blockquote,
.notes-view table,
.notes-view pre,
.notes-editor p,
.notes-editor ul,
.notes-editor ol,
.notes-editor blockquote,
.notes-editor table,
.notes-editor pre {
  margin: 0 0 1em;
}

.notes-view a,
.notes-editor a {
  color: var(--gh-accent);
}

.notes-view blockquote,
.notes-editor blockquote {
  display: inline-block;
  margin-left: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--gh-accent);
  border-radius: 6px;
  background: var(--gh-accent-subtle);
  color: var(--gh-muted);
}

.notes-view blockquote.note-quote-default,
.notes-editor blockquote.note-quote-default,
.notes-view blockquote[data-quote-style="default"],
.notes-editor blockquote[data-quote-style="default"] {
  display: inline-block;
  border-left-color: var(--gh-accent);
  background: var(--gh-accent-subtle);
  color: var(--gh-muted);
}

.notes-view blockquote.note-quote-emphasis,
.notes-editor blockquote.note-quote-emphasis,
.notes-view blockquote[data-quote-style="emphasis"],
.notes-editor blockquote[data-quote-style="emphasis"] {
  display: inline-block;
  border-left-color: #8250df;
  background: rgba(130, 80, 223, 0.1);
  color: var(--gh-fg);
  font-weight: 600;
}

.notes-view blockquote.note-quote-info,
.notes-editor blockquote.note-quote-info,
.notes-view blockquote[data-quote-style="info"],
.notes-editor blockquote[data-quote-style="info"] {
  display: inline-block;
  border-left-color: #0969da;
  background: rgba(9, 105, 218, 0.09);
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-warning,
.notes-editor blockquote.note-quote-warning,
.notes-view blockquote[data-quote-style="warning"],
.notes-editor blockquote[data-quote-style="warning"] {
  display: inline-block;
  border-left-color: #bf8700;
  background: rgba(191, 135, 0, 0.12);
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-success,
.notes-editor blockquote.note-quote-success,
.notes-view blockquote[data-quote-style="success"],
.notes-editor blockquote[data-quote-style="success"] {
  display: inline-block;
  border-left-color: #1a7f37;
  background: rgba(26, 127, 55, 0.1);
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-question,
.notes-editor blockquote.note-quote-question,
.notes-view blockquote[data-quote-style="question"],
.notes-editor blockquote[data-quote-style="question"] {
  display: inline-block;
  border-left-color: #d1242f;
  background: rgba(209, 36, 47, 0.09);
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal,
.notes-editor blockquote.note-quote-minimal,
.notes-view blockquote[data-quote-style="minimal"],
.notes-editor blockquote[data-quote-style="minimal"] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: var(--gh-border);
  border-radius: 0;
  background: transparent;
  color: var(--gh-muted);
}

.notes-view blockquote.note-quote-minimal-gray,
.notes-editor blockquote.note-quote-minimal-gray,
.notes-view blockquote[data-quote-style="minimal-gray"],
.notes-editor blockquote[data-quote-style="minimal-gray"] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: var(--gh-border);
  border-radius: 0;
  background: transparent;
  color: var(--gh-muted);
}

.notes-view blockquote.note-quote-minimal-red,
.notes-editor blockquote.note-quote-minimal-red,
.notes-view blockquote[data-quote-style="minimal-red"],
.notes-editor blockquote[data-quote-style="minimal-red"] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #d1242f;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-orange,
.notes-editor blockquote.note-quote-minimal-orange,
.notes-view blockquote[data-quote-style="minimal-orange"],
.notes-editor blockquote[data-quote-style="minimal-orange"] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #bf8700;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-yellow,
.notes-editor blockquote.note-quote-minimal-yellow,
.notes-view blockquote[data-quote-style="minimal-yellow"],
.notes-editor blockquote[data-quote-style="minimal-yellow"] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #9a6700;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-green,
.notes-editor blockquote.note-quote-minimal-green,
.notes-view blockquote[data-quote-style="minimal-green"],
.notes-editor blockquote[data-quote-style="minimal-green"] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #1a7f37;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-blue,
.notes-editor blockquote.note-quote-minimal-blue,
.notes-view blockquote[data-quote-style="minimal-blue"],
.notes-editor blockquote[data-quote-style="minimal-blue"] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #0969da;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-purple,
.notes-editor blockquote.note-quote-minimal-purple,
.notes-view blockquote[data-quote-style="minimal-purple"],
.notes-editor blockquote[data-quote-style="minimal-purple"] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #8250df;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-minimal-pink,
.notes-editor blockquote.note-quote-minimal-pink,
.notes-view blockquote[data-quote-style="minimal-pink"],
.notes-editor blockquote[data-quote-style="minimal-pink"] {
  display: inline-block;
  padding: 6px 0 6px 14px;
  border-left-color: #d61a7f;
  border-radius: 0;
  background: transparent;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-bubble,
.notes-editor blockquote.note-quote-bubble,
.notes-view blockquote[data-quote-style="bubble"],
.notes-editor blockquote[data-quote-style="bubble"] {
  display: inline-block;
  padding: 12px 16px;
  background: var(--gh-canvas-inset);
  border: 2px solid var(--gh-accent);
  border-radius: 18px;
  position: relative;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-bubble::after,
.notes-editor blockquote.note-quote-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--gh-accent);
}

.notes-view blockquote.note-quote-postit,
.notes-editor blockquote.note-quote-postit,
.notes-view blockquote[data-quote-style="postit"],
.notes-editor blockquote[data-quote-style="postit"] {
  display: inline-block;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  color: #92400e;
  position: relative;
}

.notes-view blockquote.note-quote-postit::before,
.notes-editor blockquote.note-quote-postit::before {
  content: '';
  position: absolute;
  top: -2px;
  right: 20px;
  width: 20px;
  height: 20px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.notes-view blockquote.note-quote-corner-frame,
.notes-editor blockquote.note-quote-corner-frame,
.notes-view blockquote[data-quote-style="corner-frame"],
.notes-editor blockquote[data-quote-style="corner-frame"] {
  display: inline-block;
  padding: 16px 20px;
  background: var(--gh-canvas-inset);
  border: 2px solid var(--gh-border);
  border-radius: 0;
  position: relative;
  color: var(--gh-fg);
}

.notes-view blockquote.note-quote-corner-frame::before,
.notes-editor blockquote.note-quote-corner-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-top: 4px solid var(--gh-accent);
  border-left: 4px solid var(--gh-accent);
}

.notes-view blockquote.note-quote-corner-frame::after,
.notes-editor blockquote.note-quote-corner-frame::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-bottom: 4px solid var(--gh-accent);
  border-right: 4px solid var(--gh-accent);
}

.notes-view code,
.notes-editor code {
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.notes-view pre,
.notes-editor pre {
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
}

.code-keyword {
  color: #cf222e;
  font-weight: 700;
}

.code-function {
  color: #8250df;
}

.notes-view table,
.notes-editor table {
  width: 100%;
  border-collapse: collapse;
}

.notes-editor table.is-selected {
  outline: 2px solid var(--gh-accent);
  outline-offset: 3px;
}

.notes-table-resize-overlay {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
}

.notes-table-resize-handle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: col-resize;
  pointer-events: auto;
  transform: translateX(-50%);
}

.notes-table-resize-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--gh-accent), transparent 28%);
  opacity: 0.7;
}

.notes-table-resize-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 26px;
  border: 1px solid var(--gh-accent);
  border-radius: 6px;
  background: var(--gh-canvas);
  box-shadow: 0 2px 8px rgba(31, 35, 40, 0.16);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.notes-table-resize-handle:hover::before,
.notes-table-resize-handle:focus-visible::before,
.notes-table-resizing .notes-table-resize-handle::before {
  opacity: 1;
}

.notes-table-resize-handle:hover::after,
.notes-table-resize-handle:focus-visible::after,
.notes-table-resizing .notes-table-resize-handle::after {
  opacity: 1;
}

.notes-table-resize-handle.is-table::before {
  width: 3px;
}

.notes-table-resizing,
.notes-table-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.notes-view img,
.notes-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.note-resizable {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  height: auto !important;
  min-width: 80px;
  line-height: 0;
  resize: horizontal;
  overflow: hidden;
  vertical-align: middle;
}

.note-resizable img,
.note-resizable video {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 100%;
  border-radius: 6px;
}

.notes-editor video {
  resize: horizontal;
  overflow: hidden;
  display: inline-block;
  min-width: 80px;
  height: auto;
}

.note-video-resizable {
  width: min(520px, 100%);
}

.note-video-figure {
  display: block;
  width: min(560px, 100%);
  max-width: 100%;
  margin: 8px 0 1em;
  resize: horizontal;
  overflow: hidden;
  vertical-align: middle;
}

.note-video-figure iframe,
.note-video-figure video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 6px;
  background: #000;
}

.note-video-figure figcaption {
  margin-top: 6px;
  color: var(--gh-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.note-video-figure[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
}

.note-video-figure[data-align="right"] {
  margin-left: auto;
  margin-right: 0;
}

.note-video,
.notes-view video,
.notes-editor video {
  max-width: 100%;
  border-radius: 6px;
}

.note-link-preview {
  display: grid;
  gap: 6px;
  margin: 8px 0 1em;
  padding: 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
}

.note-link-preview span,
.note-link-preview figcaption {
  color: var(--gh-muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.note-link-preview iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 6px;
  background: var(--gh-canvas);
}

.note-dropcap::first-letter {
  float: left;
  margin: 0 8px 0 0;
  font-size: 3em;
  line-height: 0.9;
  font-weight: 700;
}

.note-chart {
  display: grid;
  gap: 10px;
  width: min(520px, 100%);
  box-sizing: border-box;
  margin: 0 0 1em;
  padding: 14px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
  box-shadow: 0 8px 18px rgba(31, 35, 40, 0.06);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.note-chart.is-selected {
  outline: 2px solid var(--gh-accent);
  outline-offset: 2px;
}

.note-chart figcaption {
  color: var(--gh-fg);
  font-weight: 700;
  text-align: center;
}

.note-chart::selection,
.note-chart *::selection {
  background: transparent;
}

.note-chart > * {
  pointer-events: none;
}

.note-chart-help {
  display: block;
  padding-top: 8px;
  border-top: 1px solid var(--gh-border);
  color: var(--gh-muted);
  font-size: 0.72rem;
  text-align: right;
}

.note-chart-body {
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas-subtle);
  height: 180px;
  min-height: 180px;
  overflow: hidden;
}

.note-chart-bars {
  inline-size: 100%;
  min-width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  justify-content: stretch;
  gap: 10px;
  padding: 16px 12px 30px;
}

.note-chart-svg {
  display: grid;
  padding: 16px;
}

.note-chart-svg svg {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
}

.note-chart-svg text {
  font-size: 11px;
  dominant-baseline: middle;
}

.note-chart-label,
.note-chart-line text {
  fill: var(--gh-muted);
}

.note-chart-value,
.note-chart-percent {
  font-weight: 700;
}

.note-chart-bar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  justify-self: center;
  width: min(var(--bar-size, 30px), 100%);
  max-width: 72px;
  height: var(--bar-height, 20%);
  min-height: 18px;
  background: var(--chart-color, var(--gh-accent));
  border-radius: 6px 6px 0 0;
  color: #fff;
}

.note-chart-bar span,
.note-chart-hbar b {
  padding-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.note-chart-bar em,
.note-chart-hbar em {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.note-chart-bar small {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  max-width: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  color: var(--gh-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-chart.note-chart-bar {
  display: grid;
  align-items: initial;
  justify-content: initial;
  gap: 10px;
  width: min(520px, 100%);
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 1em;
  padding: 14px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-canvas);
  color: var(--gh-fg);
}

.note-chart-hbars {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.note-chart-vbars,
.note-chart-line {
  gap: 0;
}

.note-chart-hbar {
  display: grid;
  grid-template-columns: minmax(64px, 110px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.note-chart-hbar small {
  overflow: hidden;
  color: var(--gh-muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-chart-hbar span {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: var(--bar-width, 10%);
  min-width: 24px;
  height: var(--bar-size, 30px);
  padding-left: 8px;
  border-radius: 0 6px 6px 0;
  background: var(--chart-color, var(--gh-accent));
  color: #fff;
}

.note-chart-line svg {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.note-chart-line text {
  fill: var(--gh-muted);
  font-size: 11px;
}

.note-chart-axis {
  stroke: var(--gh-border);
  stroke-width: 1;
}

.note-chart-radial-wrap {
  display: grid;
  grid-template-columns: minmax(130px, 150px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.note-chart-radial {
  position: relative;
  width: min(150px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--gh-border);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.note-chart-radial.is-doughnut::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--gh-canvas-subtle);
}

.note-chart-radial.is-doughnut span {
  position: absolute;
  inset: 26%;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--gh-fg);
  font-weight: 700;
}

.note-chart-polar {
  position: relative;
  width: min(150px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--gh-border);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 28%, color-mix(in oklab, var(--gh-border), transparent 60%) 29% 30%, transparent 31% 58%, color-mix(in oklab, var(--gh-border), transparent 60%) 59% 60%, transparent 61%);
}

.note-chart-polar span {
  position: absolute;
  inset: calc((100% - var(--polar-size)) / 2);
  border-radius: 50%;
  background: color-mix(in oklab, var(--chart-color), transparent 32%);
  border: 2px solid var(--chart-color);
  transform: rotate(calc(360deg / var(--polar-count, 1) * var(--i, 0)));
}

.note-chart-polar span:nth-child(1) { --i: 0; }
.note-chart-polar span:nth-child(2) { --i: 1; }
.note-chart-polar span:nth-child(3) { --i: 2; }
.note-chart-polar span:nth-child(4) { --i: 3; }
.note-chart-polar span:nth-child(5) { --i: 4; }
.note-chart-polar span:nth-child(6) { --i: 5; }
.note-chart-polar span:nth-child(7) { --i: 6; }
.note-chart-polar span:nth-child(8) { --i: 7; }

.note-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.note-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--gh-muted);
  font-size: 0.8rem;
}

.note-chart-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
}

.notes-view th,
.notes-view td,
.notes-editor th,
.notes-editor td {
  border: 1px solid var(--gh-border);
  padding: 8px 10px;
  text-align: left;
}

.notes-empty {
  color: var(--gh-muted);
}

.notes-empty strong {
  color: var(--gh-fg);
}

.notes-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 980px) {
  .notes-shell {
    grid-template-columns: 1fr;
  }

  .notes-sidebar {
    position: static;
  }

  .notes-tree-wrap {
    max-height: 360px;
  }
}

@media (max-width: 720px) {
  .notes-main {
    width: min(100% - 20px, 1280px);
    margin-top: 16px;
  }

  .notes-panel-head {
    top: 58px;
    display: grid;
  }

  .notes-formatbar {
    top: 174px;
  }

  .notes-toolbar-group {
    flex-wrap: wrap;
    min-width: 0;
  }

  .notes-button-grid {
    grid-template-columns: 1fr;
  }

  .notes-view,
  .notes-editor,
  .notes-empty {
    min-height: 1123px;
    padding: 16px;
  }

  .notes-template-list {
    grid-template-columns: 1fr;
  }

  .notes-chart-settings,
  .notes-chart-row-head,
  .notes-chart-row {
    grid-template-columns: 1fr;
  }

  .notes-chart-row-head {
    display: none;
  }

  .note-chart-radial-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media print {
  .github-topbar,
  .repo-hero,
  .notes-sidebar,
  .notes-panel-head,
  .notes-formatbar,
  .notes-insert-panel,
  .notes-modal,
  .notes-attachment-bar,
  .footer {
    display: none !important;
  }

  .notes-main,
  .notes-shell,
  .notes-panel {
    width: 100%;
    margin: 0;
    display: block;
    border: 0;
  }

  .notes-view {
    min-height: auto;
    border: 0;
    padding: 0;
  }
}

/* Shared calculator page template */
.calculator-page {
  display: grid;
  gap: 14px;
  width: min(1280px, calc(100% - 32px));
  margin: 16px auto 0;
}

.calculator-cover,
.calculator-panel,
.calculator-guide-section,
.calculator-related-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.calculator-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-actions,
.calculator-chip-row,
.calculator-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.calculator-actions {
  margin-top: 16px;
}

.calculator-button,
.calculator-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.calculator-button {
  border: 1px solid #909693;
  background: #5c6268;
  color: #fff;
}

.calculator-button:hover {
  border-color: #6e7781;
  background: #6e7781;
  color: #fff;
}

html[data-theme="dark"] .calculator-button {
  border-color: #8b949e;
  background: #30363d;
  color: #f0f6fc;
}

html[data-theme="dark"] .calculator-button:hover {
  border-color: #c9d1d9;
  background: #484f58;
  color: #ffffff;
}

.calculator-ghost-button {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink-strong);
}

#resetBtn {
  border-color: #8c959f;
  background: #f6f8fa;
  color: #57606a;
}

#resetBtn:hover {
  border-color: #6e7781;
  background: #eef1f4;
  color: #24292f;
}

[data-theme="dark"] #resetBtn {
  border-color: #6e7681;
  background: #161b22;
  color: #c9d1d9;
}

[data-theme="dark"] #resetBtn:hover {
  border-color: #8b949e;
  background: #21262d;
  color: #f0f6fc;
}

.calculator-ghost-button:hover {
  border-color: var(--brand);
}

.calculator-chip-row {
  margin-top: 16px;
}

.calculator-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--panel-soft);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.calculator-cover {
  overflow: hidden;
  background: var(--panel-soft);
}

.calculator-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.calculator-cover figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.calculator-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.calculator-panel,
.calculator-guide-section,
.calculator-related-section {
  padding: 16px;
}

.calculator-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calculator-panel h2,
.calculator-guide-section h2,
.calculator-related-section h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.calculator-panel p,
.calculator-guide-section p,
.calculator-related-section p {
  color: var(--ink-soft);
  line-height: 1.68;
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calculator-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.calculator-field.full {
  grid-column: 1 / -1;
}

.calculator-field.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.calculator-field.actions .calculator-button {
  min-width: 168px;
}

.calculator-field label {
  color: var(--ink-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.calculator-field input,
.calculator-field select,
.calculator-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--panel-strong);
  color: var(--ink-strong);
  outline: none;
}

.calculator-field textarea {
  min-height: 96px;
  resize: vertical;
}

.calculator-field input:focus,
.calculator-field select:focus,
.calculator-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), transparent 84%);
}

.calculator-result {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 14px;
  background: var(--panel-soft);
}

.calculator-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calculator-result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.calculator-result-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calculator-result-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-strong);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.1;
}

.calculator-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calculator-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--panel);
}

.calculator-table th,
.calculator-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.calculator-table thead th {
  background: var(--panel-soft);
  color: var(--ink-strong);
  font-size: 0.84rem;
}

.calculator-howto {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.calculator-howto li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.calculator-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.calculator-howto h3,
.calculator-faq h3 {
  margin: 0 0 4px;
  color: var(--ink-strong);
  font-size: 1rem;
}

.calculator-howto p,
.calculator-faq p {
  margin: 0;
}

.calculator-guide-body {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.calculator-guide-body h3 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 1.12rem;
}

.calculator-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
  color: var(--ink-soft);
  line-height: 1.65;
}

.calculator-faq {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.calculator-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.calculator-faq summary {
  cursor: pointer;
  padding: 12px;
  color: var(--ink-strong);
  font-weight: 700;
}

.calculator-faq details > div {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.calculator-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.calculator-related-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
}

.calculator-related-card strong {
  display: block;
  color: var(--ink-strong);
  line-height: 1.35;
}

.calculator-related-card span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .calculator-page {
    width: min(100% - 20px, 1280px);
  }

  .calculator-panel,
  .calculator-guide-section,
  .calculator-related-section {
    padding: 14px;
  }

  .calculator-form,
  .calculator-result-grid {
    grid-template-columns: 1fr;
  }

  .calculator-field.actions {
    justify-content: stretch;
  }

  .calculator-field.actions .calculator-button {
    width: 100%;
  }
}

@media print {
  .calculator-actions,
  .calculator-button-row,
  .calculator-related-section {
    display: none !important;
  }

  .calculator-panel,
  .calculator-guide-section {
    box-shadow: none;
  }
}
