    /* mobile app UI customizations, generated as the default UI */
    .mobile-target-toggle { display: none; }
    .section-nav a { gap: 8px; }
    .section-nav .nav-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      flex: 0 0 22px;
    }
    .section-nav .nav-icon svg {
      width: 22px;
      height: 22px;
      stroke: currentColor;
    }
    .section-nav .nav-my {
      width: auto;
      min-width: 22px;
      font-weight: 800;
    }
    .section-nav .nav-sos {
      width: auto;
      min-width: 34px;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0;
    }
    .risk-data-note { display: none; }
    @media (min-width: 721px) {
      body.presentation-mode main { padding-top: 68px; }
      body.presentation-mode .dashboard { gap: 12px; }
    }
    @media (max-width: 720px) {
      body {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
        font-family: "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Yu Gothic", sans-serif;
        font-size: 15px;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        --fixed-period-top: 48px;
        --fixed-period-left: 14px;
        --fixed-period-right: 14px;
        --fixed-search-top: 58px;
        --fixed-period-offset: 108px;
        --risk-mobile-tools-gap: 0.5px;
        --risk-mobile-tools-top: calc(var(--fixed-search-top) + env(safe-area-inset-top));
        --risk-mobile-content-gap: 0px;
        --risk-mobile-panel-padding: 238px;
        --memo-mobile-map-height: 30vh;
        --memo-mobile-map-gap: 0.5px;
        --memo-mobile-map-top: calc(var(--fixed-search-top) + env(safe-area-inset-top));
        --memo-mobile-editor-gap: 14px;
        --memo-mobile-editor-top: calc(var(--fixed-search-top) + var(--memo-mobile-map-height) + 52px + env(safe-area-inset-top));
        --bottom-nav-height: 82px;
      }
      header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        display: block;
        padding: 8px 14px;
        border-bottom: 0;
        background: var(--active-target-color, var(--women));
        color: #fff;
        box-shadow: 0 6px 14px var(--active-target-shadow, rgba(241, 138, 155, 0.24));
      }
      .header-inner {
        position: relative;
        display: flex;
        justify-content: center;
        gap: 0;
      }
      .brand-row { justify-content: center; gap: 8px; }
      .brand-logo {
        display: block;
        width: 28px;
        height: 28px;
        filter: drop-shadow(0 4px 8px rgba(199, 70, 100, 0.16));
      }
      .brand-text h1 {
        margin: 0;
        font-size: 0;
        line-height: 1.2;
        text-align: center;
      }
      .brand-text h1::after {
        content: attr(data-mobile-title);
        font-size: 18px;
        font-weight: 400;
        color: #fff;
      }
      header p { display: none; }
      .mobile-target-toggle {
        position: absolute;
        top: 50%;
        right: 0;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-height: 28px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 999px;
        padding: 0 9px;
        background: #fff;
        color: var(--target-color, var(--women));
        font-size: 12px;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(31, 36, 48, 0.12);
        transform: translateY(-50%);
      }
      .mobile-target-toggle .target-dot {
        width: 7px;
        height: 7px;
        background: currentColor;
        opacity: 0.92;
      }
      .target-toggle { display: none; }
      body.presentation-mode main,
      main { padding: 14px; gap: 14px; }
      body.presentation-mode main { padding-top: 54px; }
      .dashboard { gap: 14px; }
      .section-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        top: auto;
        z-index: 8000;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        width: auto;
        max-width: none;
        margin: 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
      }
      .section-nav a {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        padding: 0 4px;
        gap: 3px;
        flex: none;
        flex-direction: column;
        justify-self: stretch;
        border-radius: 16px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.08;
        white-space: nowrap;
        overflow: hidden;
      }
      .section-nav a.active {
        background: var(--active-target-color, var(--women));
        color: #fff;
        box-shadow: 0 6px 16px var(--active-target-shadow-strong, rgba(241, 138, 155, 0.32));
      }
      .section-nav .nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
      width: 22px;
      height: 22px;
      flex-basis: 22px;
    }
    .section-nav .nav-icon svg {
      width: 22px;
      height: 22px;
      stroke: currentColor;
    }
    .section-nav .nav-my {
        font-size: 13px;
        font-weight: 700;
      }
      .section-nav .nav-sos {
        font-size: 13px;
        font-weight: 900;
      }
      #riskPanel h2 { display: none; }
      #riskPanel { overflow: visible; }
      .risk-fixed-tools {
        position: fixed;
        top: var(--risk-mobile-tools-top);
        left: var(--fixed-period-left);
        right: var(--fixed-period-right);
        z-index: 4999;
        display: grid;
        gap: 8px;
        padding: 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 6px 14px rgba(31, 36, 48, 0.06);
        backdrop-filter: blur(10px);
      }
      .risk-search-box {
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
      }
      .risk-search-controls { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
      .risk-search-controls input { font-weight: 600; }
      .risk-search-controls button { font-weight: 700; }
      .risk-period-box {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        margin: 0;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 18px rgba(31, 36, 48, 0.06);
        padding: 5px;
        backdrop-filter: blur(10px);
        scroll-snap-type: x mandatory;
        scroll-padding-left: 76px;
      }
      .risk-period-box::-webkit-scrollbar { display: none; }
      .risk-period-label {
        position: sticky;
        left: 0;
        z-index: 1;
        flex: 0 0 auto;
        align-self: stretch;
        display: inline-flex;
        align-items: center;
        padding: 0 8px 0 4px;
        background: inherit;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
      }
      .risk-period-option {
        flex: 1 0 86px;
        justify-content: center;
        min-height: 34px;
        padding: 0 10px;
        border: 0;
        background: transparent;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
        scroll-snap-align: center;
      }
      .risk-period-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
      }
      .risk-period-option:has(input:checked) {
        background: var(--active-target-color, var(--women));
        color: #fff;
      }
      .risk-fixed-tools .risk-search-note {
        margin: 0 2px;
        font-size: 13px;
        line-height: 1.35;
      }
      body[data-view="mytown"] #riskPanel {
        min-height: 0;
        margin-top: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }
      body:not([data-view="mytown"]) .risk-fixed-tools { display: none; }
      body[data-view="mytown"] .risk-content-area {
        position: fixed;
        top: var(--risk-mobile-panel-padding);
        left: var(--fixed-period-left);
        right: var(--fixed-period-right);
        bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
        z-index: 1;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        background: var(--bg);
      }
      body[data-view="mytown"] .risk-grid { gap: 6px; }
      .risk-dismiss { display: none; }
      body[data-view="mytown"] .risk-data-note {
        display: block;
        margin: 8px 0 0;
        padding: 8px 0 0;
        border-top: 1px solid var(--line);
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.5;
      }
      body[data-view="mytown"] .site-footer { display: none; }
      body:not([data-view="mytown"]) .risk-content-area { position: relative; z-index: 0; }
      body[data-view="report"] #memoPanel {
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }
      body[data-view="report"] #memoPanel h2 { display: none; }
      body[data-view="report"] .memo-layout {
        display: block;
      }
      body[data-view="report"] .memo-map-wrap {
        position: fixed;
        top: var(--memo-mobile-map-top);
        left: var(--fixed-period-left);
        right: var(--fixed-period-right);
        z-index: 4999;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 6px 14px rgba(31, 36, 48, 0.06);
        backdrop-filter: blur(10px);
      }
      body[data-view="report"] .memo-map {
        height: var(--memo-mobile-map-height);
        min-height: 170px;
        max-height: 260px;
      }
      body[data-view="report"] .memo-hint {
        margin: 6px 0 0;
        font-size: 13px;
        line-height: 1.35;
      }
      body[data-view="report"] .memo-editor {
        position: fixed;
        top: var(--memo-mobile-editor-top);
        left: var(--fixed-period-left);
        right: var(--fixed-period-right);
        bottom: calc(var(--bottom-nav-height) + 12px + env(safe-area-inset-bottom));
        z-index: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0 20px;
      }
      .risk-card { min-height: 0; border-left-width: 7px; padding: 6px 52px 7px 10px; }
      .risk-place { font-weight: 700; }
      .risk-total { margin-top: 5px; }
      .risk-breakdown { gap: 3px; margin-top: 5px; }
      .risk-breakdown-row { line-height: 1.22; }
      .risk-total,
      .risk-time,
      .risk-breakdown-time { font-weight: 600; }
      .risk-breakdown-name,
      .risk-breakdown-count { font-weight: 700; }
      .risk-tag { font-weight: 600; }
      .chart-toggle-row { gap: 6px; margin: 3px 0 8px; }
      .chart-toggle { gap: 5px; padding: 4px 7px; font-size: 12px; font-weight: 700; }
      .chart-toggle-swatch { width: 14px; height: 3px; }
    }
