:root {
    --paper: #fff8e9;
    --paper-light: #fffdf6;
    --paper-deep: #fff3d8;
    --blue: #3e88a8;
    --blue-dark: #2f748e;
    --blue-light: #eaf5f6;
    --line: #e9dcc3;
    --line-deep: #ddbf8c;
    --text: #263238;
    --muted: #667085;
    --soft: #f7e8c5;
    --yellow: #ffe8b0;
    --yellow-text: #9a6a21;
    --red: #b42318;
    --green: #207a4f;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: #e6f4f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    position: relative;
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 950;
    color: #111827;
}

h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 950;
}

.page {
    display: grid;
    min-height: 100vh;
    place-items: start center;
    padding: 14px 16px;
}

.phone-frame {
    width: 100%;
    max-width: 350px;
    padding: 10px;
    border-radius: 34px;
    background: #d8ecf1;
    box-shadow: 0 26px 60px rgba(47, 116, 142, 0.24);
}

.phone-screen {
    position: relative;
    min-height: 820px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px rgba(221, 191, 140, 0.28);
}

.app-shell {
    padding: 0 17px 102px;
}

.admin-mini-nav {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 20;
    display: flex;
    max-width: 210px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.admin-mini-nav a {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(62, 136, 168, 0.14);
    border-radius: 999px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    font-weight: 900;
}

.ios-back-button {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 22;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 2px;
    padding: 0 9px 0 7px;
    border: 1px solid rgba(62, 136, 168, 0.18);
    border-radius: 999px;
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 5px 12px rgba(47, 116, 142, 0.12);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.ios-back-button span {
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

.app-hero,
.page-head,
.person-hero {
    position: relative;
    overflow: hidden;
    margin: 0 -17px;
    padding: 42px 17px 26px;
    border-bottom: 1px solid #e7d7b7;
    background: var(--paper-deep);
}

.app-hero::before,
.page-head::before,
.person-hero::before {
    content: "";
    position: absolute;
    right: -29px;
    top: 19px;
    width: 92px;
    height: 19px;
    border-radius: 999px;
    background: #b9e2ea;
    transform: rotate(12deg);
    opacity: 0.9;
}

.app-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 104px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.binder-dots {
    position: absolute;
    left: 17px;
    top: 20px;
    display: flex;
    gap: 5px;
}

.binder-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #b9e2ea;
}

.app-kicker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 5px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
}

.tiny-icon {
    font-size: 12px;
}

.round-action {
    position: relative;
    z-index: 2;
    display: flex;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 10px 18px rgba(62, 136, 168, 0.32);
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.progress-card,
.stat-card,
.fish-card,
.angler-card,
.angler-profile-card,
.record-row,
.record-card,
.ranking-row,
.form-card,
.detail-card,
.empty-state {
    border: 1px solid var(--line);
    background: var(--paper-light);
    box-shadow: 0 3px 10px rgba(129, 93, 37, 0.08);
}

.progress-card {
    position: relative;
    margin: 18px 0 24px;
    padding: 19px 15px 13px;
    border: 2px dashed var(--line-deep);
    border-radius: 24px;
}

.scope-tabs {
    display: flex;
    gap: 7px;
    margin: 16px 0 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.scope-tabs::-webkit-scrollbar {
    display: none;
}

.scope-tabs a {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--paper-light);
    font-size: 12px;
    font-weight: 950;
}

.scope-tabs a.is-active {
    border-color: rgba(62, 136, 168, 0.32);
    color: #fff;
    background: var(--blue);
    box-shadow: 0 7px 14px rgba(62, 136, 168, 0.18);
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px;
}

.category-tabs a {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--paper-light);
    font-size: 11px;
    font-weight: 950;
    text-align: center;
}

.category-tabs a.is-active {
    border-color: rgba(221, 191, 140, 0.72);
    color: var(--blue-dark);
    background: var(--paper-deep);
}

.hero-progress {
    margin-top: -18px;
    z-index: 4;
}

.progress-label {
    position: absolute;
    top: -12px;
    left: 26px;
    padding: 4px 16px;
    border-radius: 5px;
    color: var(--blue-dark);
    background: #b9e2ea;
    font-size: 10px;
    font-weight: 950;
    box-shadow: 0 3px 8px rgba(47, 116, 142, 0.13);
    transform: rotate(-4deg);
}

.section-row,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.section-row {
    margin-bottom: 9px;
}

.section-row span,
.section-row strong {
    font-size: 12px;
    font-weight: 950;
}

.section-row span {
    color: var(--blue-dark);
}

.progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--blue);
}

.next-goal {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 11px;
}

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

.stat-card {
    min-height: 80px;
    padding: 13px 12px;
    border-radius: 18px;
}

.stat-card .stat-icon {
    display: block;
    width: 22px;
    height: 22px;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 17px;
    line-height: 22px;
}

.stat-card small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.stat-card strong {
    display: block;
    margin-top: 3px;
    font-size: 16px;
    font-weight: 950;
    color: #111827;
}

.app-section {
    margin-top: 21px;
}

.section-header {
    margin-bottom: 12px;
}

.section-ribbon {
    position: relative;
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    padding: 7px 14px 7px 16px;
    border-radius: 0 12px 12px 0;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 4px 10px rgba(62, 136, 168, 0.17);
    font-size: 13px;
    font-weight: 950;
}

.section-ribbon::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--blue);
    transform: translateY(-50%) rotate(45deg);
}

.section-action,
.primary-link {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    color: var(--blue);
    background: transparent;
    font-size: 11px;
    font-weight: 950;
}

.card-grid {
    display: grid;
    gap: 11px;
}

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

.fish-card {
    position: relative;
    display: block;
    min-height: 164px;
    padding: 11px;
    border-radius: 18px;
}

.fish-card.is-muted {
    opacity: 0.96;
}

.stamp-caught {
    position: absolute;
    z-index: 3;
    top: -8px;
    right: -4px;
    padding: 4px 8px;
    border: 1px solid var(--line-deep);
    border-radius: 999px;
    color: var(--yellow-text);
    background: var(--yellow);
    font-size: 10px;
    font-weight: 950;
    transform: rotate(6deg);
}

.fish-image-wrap {
    position: relative;
    display: flex;
    height: 78px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(247, 232, 197, 0.68);
}

.fish-image-wrap.is-muted {
    opacity: 0.5;
    filter: grayscale(1);
}

.fish-image {
    max-width: 100%;
    max-height: 74px;
    object-fit: contain;
}

.fish-graphic {
    position: relative;
    width: 92px;
    height: 46px;
    transform: rotate(-2deg);
}

.fish-body {
    position: absolute;
    left: 11px;
    top: 9px;
    width: 58px;
    height: 28px;
    border-radius: 58% 42% 47% 53%;
    background: #b88a54;
}

.fish-tail {
    position: absolute;
    right: 10px;
    top: 11px;
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 24px solid #8c6840;
}

.fish-eye,
.fish-dot {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    background: #344054;
}

.fish-eye {
    left: 27px;
    top: 18px;
    width: 4px;
    height: 4px;
}

.fish-dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 248, 233, 0.72);
}

.fish-dot.one {
    left: 38px;
    top: 15px;
}

.fish-dot.two {
    left: 49px;
    top: 14px;
}

.fish-card:nth-child(2n) .fish-body,
.fish-card:nth-child(3n) .fish-body {
    background: #4b5563;
}

.fish-card:nth-child(2n) .fish-tail,
.fish-card:nth-child(3n) .fish-tail {
    border-left-color: #374151;
}

.fish-card:nth-child(4n) .fish-body {
    background: #9ab8c2;
}

.fish-card:nth-child(4n) .fish-tail {
    border-left-color: #7da2ae;
}

.fish-card-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.fish-name,
.record-title,
.angler-name {
    margin: 0;
    font-size: 14px;
    font-weight: 950;
    color: #111827;
}

.fish-meta,
.fish-recent,
.record-sub,
.angler-title,
.angler-meta,
.angler-card small,
.angler-profile-card small,
.record-card p {
    display: block;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.fish-recent {
    color: #8b95a1;
    font-size: 10px;
}

.status-badge {
    flex: 0 0 auto;
    align-self: flex-end;
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

.status-caught {
    color: var(--blue-dark);
    background: var(--blue-light);
}

.status-goal {
    color: #a16207;
    background: #fef3c7;
}

.status-locked {
    color: #6b7280;
    background: #e5e7eb;
}

.ranking-list,
.record-list,
.record-card-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ranking-row,
.record-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 11px 12px;
    border-radius: 14px;
}

.ranking-row strong,
.record-row strong {
    display: block;
    font-size: 13px;
    font-weight: 950;
    color: #111827;
}

.ranking-row p,
.record-row small {
    display: block;
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.ranking-icon,
.record-icon {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--blue);
    background: var(--blue-light);
    font-weight: 950;
}

.ranking-icon.crown {
    color: #a16207;
    background: #fff4c8;
}

.page-head {
    margin-bottom: 18px;
}

.page-head p:not(.app-kicker),
.person-hero p:not(.app-kicker) {
    position: relative;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.page-head.with-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.head-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.mini-action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 8px 16px rgba(62, 136, 168, 0.18);
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.empty-state {
    display: grid;
    gap: 8px;
    padding: 18px 15px;
    border-radius: 18px;
    text-align: left;
}

.empty-state strong {
    font-size: 14px;
    font-weight: 950;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.empty-state.compact {
    padding: 12px 13px;
    border-radius: 16px;
}

.avatar {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-light);
    font-weight: 950;
}

.avatar.large {
    width: 58px;
    height: 58px;
    font-size: 22px;
}

.avatar.xl {
    width: 92px;
    height: 92px;
    margin-bottom: 0;
    font-size: 34px;
}

.angler-card,
.angler-profile-card {
    display: block;
    min-height: 142px;
    padding: 14px;
    border-radius: 18px;
}

.angler-profile-card p,
.memo {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.filter-bar {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 13px;
    color: var(--text);
    background: #fff;
}

button,
.primary-action {
    min-height: 44px;
    border-radius: 16px;
    color: #fff;
    background: var(--blue);
    font-weight: 950;
}

.form-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
}

.form-card label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
}

.form-hint {
    margin: -6px 0 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.toggle-row {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 12px !important;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.toggle-row input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: var(--blue);
}

.toggle-row span {
    display: grid;
    gap: 3px;
}

.toggle-row strong {
    color: #111827;
    font-size: 13px;
}

.toggle-row small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.image-preview {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.image-preview img {
    width: 82px;
    height: 58px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(247, 232, 197, 0.68);
}

.image-preview span {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.form-divider {
    margin-top: 4px;
    padding-top: 15px;
    border-top: 1px dashed var(--line-deep);
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 950;
}

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

.asset-picker button {
    display: grid;
    grid-template-columns: 54px 1fr;
    min-height: 62px;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: #fff;
    text-align: left;
}

.asset-picker img {
    width: 54px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(247, 232, 197, 0.68);
}

.asset-picker span {
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.record-card {
    display: grid;
    gap: 12px;
    padding: 13px;
    border-radius: 18px;
}

.record-thumb,
.detail-photo {
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #d8eef3, #f7e8c5);
}

.record-thumb {
    aspect-ratio: 16 / 9;
}

.record-thumb img,
.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 118px;
    place-items: center;
    color: #7baec1;
    font-size: 18px;
    font-weight: 950;
}

.photo-placeholder.photo-private {
    padding: 18px;
    color: var(--blue-dark);
    background: repeating-linear-gradient(
        -45deg,
        rgba(234, 245, 246, 0.95),
        rgba(234, 245, 246, 0.95) 12px,
        rgba(255, 248, 233, 0.95) 12px,
        rgba(255, 248, 233, 0.95) 24px
    );
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.detail-card {
    overflow: hidden;
    display: grid;
    border-radius: 18px;
}

.fish-detail-card {
    margin-top: 18px;
}

.detail-photo {
    min-height: 260px;
    border-radius: 0;
}

.species-hero-image {
    display: grid;
    min-height: 238px;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #d8eef3, #f7e8c5);
}

.species-hero-image.is-muted {
    filter: grayscale(1);
    opacity: 0.56;
}

.species-hero-image img {
    width: 100%;
    max-height: 210px;
    object-fit: contain;
}

.detail-content {
    padding: 18px;
}

.title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

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

.detail-list div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.detail-list dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
}

.detail-list dd {
    margin: 5px 0 0;
    font-size: 13px;
    font-weight: 950;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.sheet-open {
    min-height: 42px;
    padding: 0 15px;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    z-index: 28;
    background: rgba(38, 50, 56, 0.32);
}

.bottom-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    max-height: 74%;
    overflow-y: auto;
    padding: 18px 17px 112px;
    border-radius: 26px 26px 0 0;
    background: var(--paper);
    box-shadow: 0 -18px 42px rgba(47, 116, 142, 0.24);
    transform: translateY(104%);
    transition: transform 180ms ease;
}

.bottom-sheet.is-open {
    transform: translateY(0);
}

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

.sheet-kicker {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
}

.sheet-title {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 950;
}

.sheet-close {
    display: flex;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    box-shadow: 0 4px 10px rgba(129, 93, 37, 0.08);
    font-size: 22px;
}

.intro-card,
.info-chip,
.note-card {
    border: 1px solid var(--line);
    background: var(--paper-light);
    box-shadow: 0 4px 12px rgba(129, 93, 37, 0.06);
}

.intro-card {
    margin-bottom: 14px;
    padding: 15px;
    border-radius: 18px;
}

.intro-card p,
.note-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

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

.info-chip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 82px;
    padding: 12px;
    border-radius: 16px;
}

.info-chip span {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--blue-dark);
    background: var(--blue-light);
    font-size: 15px;
    font-weight: 950;
}

.info-chip p {
    margin: 0 0 3px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 800;
}

.info-chip strong {
    display: block;
    color: #3a4650;
    font-size: 12px;
    line-height: 1.45;
}

.note-card {
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 18px;
}

.note-card.dashed {
    border: 2px dashed var(--line-deep);
}

.note-card.caution {
    background: var(--paper-deep);
}

.note-title {
    margin-bottom: 6px !important;
    color: var(--blue) !important;
    font-size: 14px !important;
    font-weight: 950;
}

.person-hero {
    display: flex;
    align-items: center;
    gap: 14px;
}

.alert,
.success {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 950;
}

.alert {
    color: var(--red);
    background: #fff1ef;
}

.success {
    color: var(--green);
    background: #edf8f2;
}

.danger-card {
    margin-top: 12px;
    border-color: #ffd0ca;
}

.danger-action {
    background: var(--red);
}

.bottom-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 10px 14px 12px;
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.bottom-nav a {
    display: flex;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 16px;
    color: #94a3b8;
    background: transparent;
    font-size: 10px;
    font-weight: 950;
}

.bottom-nav a.is-active {
    color: var(--blue-dark);
    background: var(--blue-light);
}

.nav-icon {
    font-size: 17px;
    line-height: 1;
}

@media (max-width: 480px) {
    body {
        background: var(--paper);
    }

    .page {
        display: block;
        padding: 0;
    }

    .phone-frame {
        max-width: none;
        min-height: 100vh;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .phone-screen {
        min-height: 100vh;
        border-radius: 0;
    }
}
