﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eef1f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
}

.hidden {
    display: none !important;
}

.site-app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
    backdrop-filter: blur(12px);
}

.site-app-header-inner {
    max-width: 750px;
    min-height: 62px;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.site-app-logo {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #172033;
    text-decoration: none;
}

.site-app-logo-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff7ed, #fee2e2);
    border: 1px solid rgba(169, 15, 26, .16);
    overflow: hidden;
    flex: 0 0 auto;
}

.site-app-logo-box img {
    width: 24px;
    height: 24px;
    display: block;
}

.site-app-logo-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.site-app-logo-text strong {
    color: #111827;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-app-logo-text small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-app-header-actions,
.hero-actions {
    position: relative;
    flex: 0 0 auto;
}

.hero-menu-btn {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(169, 15, 26, .16);
    background: #fff7ed;
    color: #9f1239;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
}

.hero-menu-icon {
    font-size: 13px;
    line-height: 1;
}

.hero-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    width: 154px;
    padding: 7px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}

.hero-menu-item {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.hero-menu-item:hover {
    background: #fff7ed;
    color: #a90f1a;
}

.app-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .08);
    backdrop-filter: blur(12px);
}

.app-tabbar-inner {
    max-width: 750px;
    margin: 0 auto;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}

.app-tab {
    min-width: 0;
    min-height: 44px;
    border-radius: 10px;
    color: #7a8495;
    text-decoration: none;
    display: grid;
    place-items: center;
    gap: 2px;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 700;
}

.app-tab svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-tab:hover {
    color: #a90f1a;
    background: #fff7ed;
}

.page {
    width: 100%;
    max-width: 750px;
    min-height: 100vh;
    margin: 0 auto;
    background: #f7f8fb;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.hero {
    padding: 20px 18px 18px;
    background: linear-gradient(135deg, #a90f1a 0%, #d92d38 52%, #f4aa3c 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -78px;
    top: -92px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}

.hero::before {
    content: "";
    position: absolute;
    width: 138px;
    height: 138px;
    left: -56px;
    bottom: -68px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
}

.topbar, .hero-main, .hero-dashboard {
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .3px;
}

.tag {
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.32);
    background: rgba(255,255,255,.16);
    font-size: 12px;
    white-space: nowrap;
}

.hero-main {
    margin-top: 24px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.24;
    font-weight: 900;
    letter-spacing: -.5px;
}

.hero p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    opacity: .95;
    max-width: 610px;
}

.hero-dashboard {
    margin-top: 18px;
    padding: 14px;
    border-radius: 13px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 12px 26px rgba(85,15,20,.16);
    backdrop-filter: blur(6px);
}

.ring-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.ring-card {
    min-height: 142px;
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
}

.ring {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#fff 0deg, rgba(255,255,255,.24) 0deg);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.ring::before {
    content: "";
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(174, 19, 29, .86);
    box-shadow: inset 0 0 14px rgba(0,0,0,.10);
}

.ring-value {
    position: relative;
    z-index: 1;
    font-size: 18px;
    line-height: 1;
    font-weight: 950;
    color: #fff;
    letter-spacing: -.4px;
}

.ring-label {
    margin-top: 9px;
    font-size: 12px;
    color: rgba(255,255,255,.86);
    font-weight: 800;
}

.hero-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.18);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.summary-line {
    min-width: 0;
}

.summary-line .k {
    font-size: 11px;
    color: rgba(255,255,255,.74);
    margin-bottom: 4px;
}

.summary-line .v {
    font-size: 15px;
    color: #fff;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-strip {
    margin-top: 12px;
    padding: 10px 11px;
    border-radius: 11px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    display: flex;
    align-items: center;
    gap: 9px;
}

.badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.92);
    color: #b81420;
    font-size: 20px;
    flex: 0 0 auto;
    box-shadow: 0 6px 14px rgba(85,15,20,.16);
}

.badge-strip strong {
    display: block;
    font-size: 13px;
    color: #fff;
    margin-bottom: 3px;
}

.badge-strip span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.76);
    line-height: 1.4;
}

.target-card {
    margin: 14px;
    background: #fff;
    border: 1px solid #e9edf4;
    border-radius: 10px;
    overflow: hidden;
}

.target-grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.target-box {
    border-radius: 9px;
    border: 1px solid #eef0f4;
    background: #f9fafb;
    padding: 12px;
}

.target-box .k {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.target-box .v {
    font-size: 20px;
    color: #111827;
    font-weight: 950;
}

.target-progress {
    margin-top: 10px;
    height: 7px;
    border-radius: 999px;
    background: #edf0f5;
    overflow: hidden;
}

.target-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: #d92d38;
    border-radius: 999px;
}

.medal-grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.medal {
    border-radius: 10px;
    border: 1px solid #eceff5;
    background: #f9fafb;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-height: 82px;
    opacity: .58;
    filter: grayscale(.35);
}

.medal.unlocked {
    opacity: 1;
    filter: none;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border-color: #fed7aa;
}

.medal .ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 18px;
    flex: 0 0 auto;
}

.medal.unlocked .ico {
    background: #fff7ed;
    border-color: #fdba74;
    box-shadow: 0 5px 12px rgba(251,146,60,.18);
}

.medal strong {
    display: block;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.medal span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.tabs {
    margin: -13px 14px 14px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31,41,55,.12);
}

.tab {
    height: 42px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 850;
    color: #6b7280;
    cursor: pointer;
}

.tab.active {
    background: #d92d38;
    color: #fff;
    box-shadow: 0 7px 16px rgba(217,45,56,.22);
}

.panel {
    display: none;
}

.panel.active {
    display: block;
}

.section {
    margin: 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9edf4;
    overflow: hidden;
}

.section-title {
    padding: 14px 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #f0f1f4;
}

.section-title h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #111827;
}

.section-title span {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.form-grid {
    padding: 14px;
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    grid-template-columns: 108px 1fr 38px;
    align-items: center;
    gap: 8px;
}

.field label {
    font-size: 14px;
    color: #374151;
    font-weight: 700;
}

.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
    color: #111827;
    outline: none;
    background: #fff;
    font-family: inherit;
}

.field input, .field select {
    height: 42px;
}

.field textarea {
    min-height: 70px;
    padding-top: 10px;
    line-height: 1.55;
    resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
    border-color: #d92d38;
    box-shadow: 0 0 0 3px rgba(217,45,56,.08);
}

.field .unit {
    font-size: 13px;
    color: #6b7280;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 14px 14px;
}

.btn {
    border: none;
    border-radius: 8px;
    height: 44px;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    font-family: inherit;
}

.btn.primary {
    color: #fff;
    background: #d92d38;
    box-shadow: 0 8px 18px rgba(217,45,56,.22);
}

.btn.secondary {
    color: #b81420;
    background: #fff5f5;
    border: 1px solid #ffd0d0;
}

.btn.full {
    width: 100%;
}

.result-box {
    padding: 14px;
}

.big-result {
    border-radius: 10px;
    background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
    border: 1px solid #ffd8d8;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.big-result .small {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.big-result .number {
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
    color: #b81420;
    letter-spacing: -.5px;
}

.pressure {
    min-width: 82px;
    text-align: center;
    border-radius: 8px;
    padding: 10px 8px;
    background: #fff;
    border: 1px solid #f1c2c2;
}

.pressure .level {
    font-size: 16px;
    font-weight: 950;
    color: #b81420;
    margin-bottom: 4px;
}

.pressure .score {
    font-size: 12px;
    color: #6b7280;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.metric {
    padding: 12px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #eef0f4;
}

.metric .k {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.metric .v {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

.advice {
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 14px;
}

.advice-title {
    font-size: 15px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 8px;
}

.advice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
}

.scenario-list {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.scenario {
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.scenario strong {
    font-size: 14px;
    color: #111827;
    display: block;
    margin-bottom: 4px;
}

.scenario span {
    font-size: 12px;
    color: #6b7280;
}

.scenario button, .mini-btn {
    border: 1px solid #e6b5b5;
    color: #b81420;
    background: #fff7f7;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.view-switch {
    margin: 14px 14px 0;
    padding: 6px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.view-btn {
    height: 36px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    font-family: inherit;
}

.view-btn.active {
    background: #fff;
    color: #b81420;
    box-shadow: 0 5px 12px rgba(31,41,55,.08);
}

.calendar-view {
    display: none;
}

.calendar-view.active {
    display: block;
}

.month-head {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.month-title {
    font-size: 20px;
    font-weight: 950;
    color: #111827;
    text-align: center;
}

.day-view-card {
    margin: 14px;
    border-radius: 10px;
    border: 1px solid #e9edf4;
    background: #fff;
    overflow: hidden;
}

.day-view-head {
    padding: 16px 14px;
    background: linear-gradient(135deg, #fff7f7 0%, #fffaf0 100%);
    border-bottom: 1px solid #f1e4e4;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.day-view-head strong {
    display: block;
    font-size: 20px;
    color: #111827;
    margin-bottom: 5px;
}

.day-view-head span {
    font-size: 12px;
    color: #6b7280;
}

.day-status-badge {
    min-width: 78px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    background: #f3f4f6;
    color: #6b7280;
    white-space: nowrap;
}

.day-status-badge.good {
    background: #dcfce7;
    color: #15803d;
}

.day-status-badge.normal {
    background: #dbeafe;
    color: #1d4ed8;
}

.day-status-badge.low {
    background: #fef3c7;
    color: #b45309;
}

.day-status-badge.bad {
    background: #fee2e2;
    color: #b91c1c;
}

.day-detail-grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.day-detail-item {
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #eef0f4;
    padding: 12px;
}

.day-detail-item .k {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 7px;
}

.day-detail-item .v {
    font-size: 17px;
    color: #111827;
    font-weight: 950;
}

.day-note {
    margin: 0 14px 14px;
    border-radius: 9px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 13px;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.year-head {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.year-title {
    font-size: 20px;
    font-weight: 950;
    color: #111827;
    text-align: center;
}

.year-grid {
    padding: 0 14px 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.year-month {
    min-height: 96px;
    border-radius: 10px;
    border: 1px solid #e9edf4;
    background: #fff;
    padding: 10px;
    cursor: pointer;
}

.year-month .m {
    font-size: 14px;
    font-weight: 950;
    color: #111827;
    margin-bottom: 8px;
}

.year-month .bar {
    height: 7px;
    border-radius: 999px;
    background: #edf0f5;
    overflow: hidden;
    margin-bottom: 8px;
}

.year-month .bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #d92d38;
    width: 0%;
}

.year-month .s {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.55;
}

.year-month.empty {
    background: #f9fafb;
}

.year-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    padding: 0 14px 14px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 14px 12px;
    color: #6b7280;
    font-size: 12px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.dot.good {
    background: #16a34a;
}

.dot.normal {
    background: #2563eb;
}

.dot.low {
    background: #f59e0b;
}

.dot.bad {
    background: #dc2626;
}

.dot.empty {
    background: #d1d5db;
}

.calendar {
    padding: 0 14px 14px;
}

.weekdays, .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

.weekdays div {
    text-align: center;
    font-size: 12px;
    color: #8a94a6;
    padding: 4px 0;
    font-weight: 800;
}

.day {
    position: relative;
    min-height: 58px;
    border-radius: 8px;
    border: 1px solid #e8ecf2;
    background: #f7f8fb;
    padding: 7px 6px;
    cursor: pointer;
    overflow: hidden;
}

.day.blank {
    border: none;
    background: transparent;
    cursor: default;
}

.day .num {
    font-size: 13px;
    font-weight: 850;
    color: #111827;
}

.day .sale {
    margin-top: 7px;
    font-size: 11px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.day.good {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.day.normal {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.day.low {
    background: #fffbeb;
    border-color: #fde68a;
}

.day.bad {
    background: #fef2f2;
    border-color: #fecaca;
}

.day.today {
    box-shadow: 0 0 0 2px rgba(217,45,56,.18) inset;
}

.day.good::after {
    background: #16a34a;
}

.day.normal::after {
    background: #2563eb;
}

.day.low::after {
    background: #f59e0b;
}

.day.bad::after {
    background: #dc2626;
}

.month-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    padding: 0 14px 14px;
}

.month-card {
    border-radius: 8px;
    border: 1px solid #edf0f5;
    background: #fff;
    padding: 10px 8px;
    text-align: center;
}

.month-card .k {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
}

.month-card .v {
    font-size: 15px;
    color: #111827;
    font-weight: 950;
    white-space: nowrap;
}

.record-wrap {
    padding: 14px;
}

.selected-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 9px;
    background: #f9fafb;
    border: 1px solid #edf0f5;
    margin-bottom: 12px;
}

.selected-date strong {
    display: block;
    font-size: 16px;
    color: #111827;
    margin-bottom: 4px;
}

.selected-date span {
    font-size: 12px;
    color: #6b7280;
}

.record-field {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
}

.record-field label {
    font-size: 14px;
    font-weight: 800;
    color: #374151;
}

.record-inline {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 8px;
    align-items: center;
}

.record-field input, .record-field select, .record-field textarea {
    width: 100%;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
    color: #111827;
    outline: none;
    background: #fff;
    font-family: inherit;
}

.record-field input, .record-field select {
    height: 42px;
}

.record-field textarea {
    min-height: 72px;
    padding-top: 10px;
    resize: vertical;
    line-height: 1.55;
}

.record-field small {
    color: #6b7280;
    font-size: 12px;
}

.record-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px;
}

.mini-note {
    margin: 10px 14px 0;
    color: #8a94a6;
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
}

@media (max-width: 520px) {
    .site-app-header-inner {
        min-height: 56px;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 6px 8px;
        gap: 8px;
    }

    .site-app-logo-text small {
        max-width: 190px;
    }

    .hero-menu-btn {
        min-height: 34px;
        padding: 0 10px;
    }

    .hero-menu {
        width: 146px;
    }

    .app-tabbar-inner {
        padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
    }

    .app-tab {
        min-height: 42px;
        font-size: 10px;
    }

    .app-tab svg {
        width: 19px;
        height: 19px;
    }

    .ring-grid, .hero-summary, .month-summary {
        grid-template-columns: 1fr 1fr;
    }

    .field {
        grid-template-columns: 96px 1fr 34px;
    }

    .big-result {
        align-items: stretch;
        flex-direction: column;
    }

    .pressure {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .day {
        min-height: 50px;
        padding: 6px 5px;
    }

    .day .sale {
        display: none;
    }
}
