@import url("https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Dongle:wght@400;700&family=Jua&family=Pretendard:wght@400;500;600;700&display=swap");

:root {
    --bg: #f6efe6;
    --surface: #fffaf4;
    --surface-strong: #ffffff;
    --line: #e8d3bf;
    --text: #2d241e;
    --muted: #7a685d;
    --accent: #f05d44;
    --accent-strong: #cf412d;
    --accent-soft: #ffe3d7;
    --lime: #d9eaa2;
    --mint: #cce7db;
    --gold: #f5bf4f;
    --shadow: 0 22px 60px rgba(83, 58, 39, 0.13);
    --radius: 20px;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(236, 204, 165, 0.12), transparent 22rem),
        linear-gradient(180deg, #f9f2e4 0%, #f9f2e4 100%);
    color: var(--text);
    font-family: "Jua", "Pretendard", sans-serif;
}

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

.profile-name-link {
    color: inherit;
    text-decoration: none;
}

.profile-name-link:hover {
    color: var(--accent-strong);
}

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

button {
    border: 0;
    background: none;
    cursor: pointer;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.12);
}

.app-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 24px 96px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    gap: 24px;
}

.sidebar,
.right-rail {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.sidebar,
.content-column,
.right-rail {
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    font-family: "Bagel Fat One", cursive;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.brand-image-mark {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 122px;
    background:
        linear-gradient(180deg, rgba(255, 248, 233, 0.98), rgba(246, 233, 212, 0.92)),
        #fff7e9;
    border: 1px solid rgba(236, 216, 199, 0.9);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(117, 78, 44, 0.1);
}

.brand-image-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(249, 242, 228, 0.02), rgba(249, 242, 228, 0.2)),
        radial-gradient(circle at 50% 52%, transparent 50%, rgba(249, 242, 228, 0.18) 100%);
}

.brand-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 122px;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.9) brightness(1.03) contrast(0.95);
}

.sidebar .brand-logo-image {
    object-position: center 48%;
}

.mobile-topbar .brand-logo-image {
    width: 188px;
    height: 64px;
    min-height: 64px;
}

.mobile-topbar .brand-image-mark {
    width: 188px;
    min-height: 64px;
    border-radius: 16px;
}

.brand-large {
    font-size: 2.6rem;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.nav-button,
.profile-chip,
.mobile-nav-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--text);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.nav-button:hover,
.profile-chip:hover,
.mobile-nav-button:hover {
    background: rgba(255, 107, 87, 0.08);
    transform: translateY(-1px);
}

.nav-button.is-active,
.mobile-nav-button.is-active {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
}

.nav-button i,
.mobile-nav-button i {
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
}

.profile-chip {
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.profile-chip-copy {
    display: grid;
    gap: 4px;
    text-align: left;
}

.profile-chip-copy small,
.meta-line,
.helper-text {
    color: var(--muted);
}

.mobile-topbar {
    display: none;
}

.content-column {
    display: grid;
    gap: 20px;
}

.hero-strip,
.composer-card,
.profile-card,
.panel-card,
.profile-hero,
.post-card,
.auth-card,
.auth-switch,
.panel-dialog,
.drawer {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(236, 216, 199, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-strip,
.profile-hero,
.profile-card,
.panel-card,
.composer-card,
.post-card {
    border-radius: var(--radius);
}

.hero-strip {
    padding: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(135deg, rgba(255, 107, 87, 0.95), rgba(255, 163, 102, 0.88)),
        var(--surface);
    color: #fffdfb;
}

.top-dog-hero {
    align-items: center;
    justify-content: space-between;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.top-dog-profile {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-dog-avatar {
    outline-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.24);
}

.top-dog-copy {
    min-width: 0;
}

.top-dog-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.top-dog-stats span,
.hero-profile-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fffdfb;
    font-weight: 700;
}

.hero-profile-link {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-strong);
}

.top-dog-latest {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 22px;
    padding: 0;
    background: rgba(255, 255, 255, 0.22);
    color: #fffdfb;
    text-align: left;
}

.top-dog-latest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-dog-latest-overlay {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: linear-gradient(180deg, transparent, rgba(47, 36, 29, 0.72));
}

.top-dog-latest-overlay strong,
.top-dog-latest-overlay small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-dog-latest-empty {
    display: grid;
    place-items: center;
    padding: 18px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.hero-strip h1,
.profile-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 2vw, 2.6rem);
}

.hero-copy,
.status-line,
.bio-line {
    margin: 10px 0 0;
    line-height: 1.6;
}

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

.section-head.compact {
    margin-bottom: 14px;
}

.section-head h2,
.section-head h3 {
    margin: 4px 0 0;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 700;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.primary-button {
    background: var(--accent);
    color: white;
}

.primary-button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.ghost-button {
    background: rgba(255, 107, 87, 0.08);
    color: var(--accent-strong);
}

.ghost-button:hover {
    background: rgba(255, 107, 87, 0.14);
}

.follow-button {
    border: 1px solid rgba(255, 107, 87, 0.35);
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    min-height: 34px;
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.follow-button.is-following {
    background: #fff;
    color: var(--accent);
}

.follow-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.full-width {
    width: 100%;
}

.composer-card,
.profile-card,
.panel-card,
.profile-hero {
    padding: 24px;
}

.upload-form {
    display: grid;
    gap: 14px;
}

.daily-mission-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(232, 211, 191, 0.86);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(217, 234, 162, 0.45), rgba(255, 255, 255, 0.72)),
        rgba(255, 250, 244, 0.88);
}

.persona-share-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid rgba(232, 211, 191, 0.86);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(204, 231, 219, 0.62), rgba(255, 227, 215, 0.62)),
        rgba(255, 250, 244, 0.9);
    box-shadow: 0 18px 42px rgba(83, 58, 39, 0.08);
}

.persona-share-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.persona-share-copy .eyebrow,
.persona-share-copy h2,
.persona-share-copy p {
    margin: 0;
}

.persona-share-copy h2 {
    font-size: 1.45rem;
}

.persona-share-copy p {
    color: var(--muted);
    line-height: 1.45;
}

.persona-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.persona-share-actions .primary-button,
.persona-share-actions .ghost-button {
    width: auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.persona-result-card {
    position: relative;
    min-height: 250px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(117, 88, 70, 0.14);
    background:
        radial-gradient(circle at 18% 16%, rgba(245, 191, 79, 0.36), transparent 28%),
        linear-gradient(160deg, #fff9ee 0%, #ffe0d4 48%, #cce7db 100%);
    text-align: center;
}

.persona-result-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(117, 88, 70, 0.18);
    border-radius: 16px;
    pointer-events: none;
}

.persona-result-avatar {
    position: relative;
    width: 82px;
    height: 82px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.86);
    background: #fff;
    box-shadow: 0 10px 24px rgba(83, 58, 39, 0.16);
}

.persona-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.persona-result-avatar span {
    font-size: 1.7rem;
    color: var(--accent-strong);
}

.persona-result-copy {
    position: relative;
    display: grid;
    gap: 5px;
}

.persona-result-copy span,
.persona-result-card small {
    color: #7a5847;
    font-weight: 900;
}

.persona-result-copy strong {
    font-size: 1.32rem;
    line-height: 1.18;
}

.persona-result-copy p {
    max-width: 260px;
    margin: 0 auto;
    color: #5f4b40;
    font-size: 0.92rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.persona-result-tags,
.mission-angle-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.persona-result-tags span,
.mission-angle-chip {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(117, 88, 70, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: #684536;
    font-size: 0.86rem;
    font-weight: 900;
    padding: 0 10px;
    white-space: nowrap;
}

.mission-angle-row {
    grid-column: 2 / 4;
    justify-content: flex-start;
}

.mission-angle-chip:hover {
    border-color: rgba(255, 107, 87, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-strong);
}

.studio-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    max-width: 1180px;
}

.studio-board {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.studio-canvas-panel,
.studio-controls,
.studio-control-group {
    border: 1px solid rgba(232, 211, 191, 0.86);
    border-radius: 22px;
    background: rgba(255, 250, 244, 0.9);
    box-shadow: 0 18px 42px rgba(83, 58, 39, 0.08);
}

.studio-canvas-panel,
.studio-controls {
    padding: 22px;
}

.studio-controls {
    display: grid;
    gap: 14px;
}

.studio-control-group {
    padding: 16px;
}

.studio-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.studio-action-row .primary-button,
.studio-action-row .ghost-button {
    width: auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#studio-file-input {
    display: none;
}

.studio-canvas-frame {
    position: relative;
    display: grid;
    place-items: center;
    margin-top: 18px;
    padding: 0;
    border-radius: 18px;
    background: transparent;
}

#studio-canvas {
    width: min(100%, 640px);
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(83, 58, 39, 0.16);
    touch-action: none;
}

#studio-canvas.is-dragging {
    cursor: grabbing;
}

.studio-preset-grid,
.studio-sticker-grid,
.studio-color-grid {
    display: grid;
    gap: 9px;
}

.studio-preset.is-active,
.studio-sticker.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 87, 0.14);
}

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

.studio-text-field {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.studio-text-field span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 900;
}

.studio-text-field input {
    min-height: 42px;
    border-radius: 14px;
    padding: 10px 12px;
}

.studio-color-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.studio-color {
    min-height: 38px;
    border: 2px solid rgba(117, 88, 70, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.08)),
        var(--text-color);
}

.studio-color.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 87, 0.14);
}

.studio-preset {
    min-height: 38px;
    border: 1px solid rgba(232, 211, 191, 0.8);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    font-weight: 900;
}

.studio-sticker-library {
    background:
        linear-gradient(135deg, rgba(179, 211, 232, 0.92), rgba(236, 218, 202, 0.9)),
        rgba(255, 250, 244, 0.9);
    overflow: hidden;
}

.studio-sticker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.studio-sticker {
    min-height: 70px;
    aspect-ratio: 1 / 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 20px;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.14) 36%, transparent 58%),
        linear-gradient(145deg, color-mix(in srgb, var(--sticker-a) 82%, #ffffff), color-mix(in srgb, var(--sticker-b) 78%, #ffffff));
    box-shadow: 0 14px 26px rgba(44, 49, 65, 0.16);
    color: #201816;
    font-weight: 900;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.studio-sticker:hover {
    transform: translateY(-2px);
}

.studio-sticker.is-active {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(240, 93, 68, 0.38), 0 18px 30px rgba(44, 49, 65, 0.22);
}

.studio-sticker i {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    filter: drop-shadow(0 3px 0 rgba(255, 255, 255, 0.35));
}

.studio-sticker-preview {
    width: 82%;
    height: 82%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 5px 8px rgba(44, 49, 65, 0.16));
}

.studio-sticker span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.daily-mission-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: #4f6123;
    font-size: 1.2rem;
}

.daily-mission-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.daily-mission-copy .eyebrow {
    margin: 0;
    color: var(--accent-strong);
    opacity: 1;
}

.daily-mission-copy strong {
    font-size: 1.12rem;
}

.daily-mission-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.caption-preview-box {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(255, 107, 87, 0.24);
    border-radius: 20px;
    padding: 14px;
    background: rgba(255, 248, 240, 0.86);
}

.caption-preview-box[hidden] {
    display: none;
}

.caption-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.upload-dropzone {
    border: 1.5px dashed rgba(255, 107, 87, 0.4);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 224, 212, 0.55), rgba(255, 255, 255, 0.8));
    min-height: 172px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    text-align: center;
    padding: 20px;
    color: var(--muted);
}

.upload-dropzone i {
    font-size: 2rem;
    color: var(--accent);
}

#file-input {
    display: none;
}

.activity-field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.activity-field-prominent {
    border: 1px solid rgba(255, 107, 87, 0.28);
    border-radius: 20px;
    padding: 16px;
    background: rgba(255, 247, 243, 0.92);
}

.activity-field span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}

.activity-field span i {
    color: var(--accent);
}

.activity-field textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.55;
    background: #fff;
    border-radius: 18px;
}

.activity-field small {
    color: var(--muted);
    line-height: 1.45;
}

.loading-box {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 253, 248, 0.88);
    color: #3a2c25;
    text-align: center;
    backdrop-filter: blur(8px);
}

.loading-box img {
    width: min(320px, 72vw);
    max-height: 56vh;
    object-fit: contain;
}

.loading-box span {
    max-width: min(420px, 84vw);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(58, 44, 37, 0.12);
    font-weight: 900;
}

.feed-list {
    display: grid;
    gap: 20px;
}

.post-card {
    overflow: hidden;
}

.dog-social-card {
    border-radius: 24px;
    background: #fffdf8;
    border: 1px solid rgba(236, 216, 199, 0.9);
}

.dog-social-card .post-header {
    padding: 18px 20px 16px;
    background:
        linear-gradient(180deg, rgba(255, 248, 241, 0.96), rgba(255, 253, 248, 0.98)),
        #fffdf8;
    border-bottom: 1px solid rgba(236, 216, 199, 0.62);
}

.dog-social-card .post-author {
    min-width: 0;
    flex: 1;
    gap: 14px;
}

.dog-social-card .post-author .avatar-small {
    width: 56px;
    height: 56px;
    box-shadow: 0 10px 22px rgba(117, 78, 44, 0.12);
}

.dog-social-card .post-author > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.dog-social-card .post-author strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #3a2c25;
    font-size: 1.18rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dog-social-card .profile-name-link {
    min-width: 0;
}

.dog-social-card .meta-line {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 27px;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid rgba(236, 216, 199, 0.75);
    border-radius: 999px;
    background: rgba(255, 247, 239, 0.84);
    color: #3a2c25;
    color: #725f55;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-header,
.post-copy,
.comments-box {
    padding: 18px 20px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.post-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 44%;
}

.dog-social-card .post-header-tools {
    padding: 6px;
    border: 1px solid rgba(236, 216, 199, 0.58);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.dog-social-card .post-header-tools .icon-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 247, 239, 0.76);
}

.dog-social-card .post-header-tools .tag-pill {
    min-height: 34px;
    padding: 0 12px;
    background: rgba(223, 241, 173, 0.58);
    font-size: 0.92rem;
}

.dog-social-card .post-header-tools .follow-button {
    min-height: 36px;
    padding-inline: 16px;
    box-shadow: 0 8px 18px rgba(238, 79, 56, 0.16);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-image-wrap {
    background: #f5ece3;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
}

.post-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 0;
}

.dog-social-actions {
    gap: 18px;
    padding: 18px 22px 0;
    flex-wrap: wrap;
}

.dog-action-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3a2c25;
    font-size: 1.06rem;
    font-weight: 800;
}

.dog-action-button i {
    color: #8f5f2f;
    font-size: 1.25rem;
}

.dog-action-button strong {
    margin: 0;
    font-size: 1.08rem;
}

.reaction-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: 1.2em;
    line-height: 1;
}

.dog-action-button:hover,
.dog-action-button.is-liked {
    color: var(--accent-strong);
}

.dog-action-button:hover i,
.dog-action-button.is-liked i {
    color: var(--accent-strong);
}

.reaction-button.is-reacted,
.post-detail-actions .js-detail-reaction.is-reacted {
    color: #d94f67;
    background: #fff0f3;
    border-color: rgba(217, 79, 103, 0.32);
}

.reaction-button.is-reacted i,
.post-detail-actions .js-detail-reaction.is-reacted i {
    color: #d94f67;
}

.reaction-funny.is-reacted,
.post-detail-actions .reaction-funny.is-reacted {
    color: #a96300;
    background: #fff5d9;
    border-color: rgba(205, 137, 27, 0.35);
}

.reaction-funny.is-reacted i,
.post-detail-actions .reaction-funny.is-reacted i {
    color: #c47b09;
}

.save-button {
    margin-left: auto;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
}

.icon-button:hover {
    background: rgba(255, 107, 87, 0.12);
    color: var(--accent-strong);
}

.icon-button.is-liked,
.ghost-button.is-liked,
.icon-button.is-bookmarked,
.ghost-button.is-bookmarked {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.danger-button {
    color: #b43f34;
}

.danger-button:hover {
    background: rgba(180, 63, 52, 0.1);
    color: #9a2f25;
}

.danger-text-button {
    color: #b43f34;
}

.danger-text-button:hover {
    background: rgba(180, 63, 52, 0.1);
    color: #9a2f25;
}

.post-copy strong {
    margin-right: 6px;
}

.caption {
    margin: 12px 0 0;
    line-height: 1.65;
}

.dog-social-card .post-copy {
    padding: 8px 22px 20px;
}

.dog-social-card .caption {
    margin: 0;
    color: #3a2c25;
    font-size: 1.12rem;
    line-height: 1.7;
}

.dog-social-card .caption strong {
    color: #2f241d;
    font-weight: 900;
}

.caption-pending {
    color: var(--muted);
    font-style: italic;
}

.post-edit-panel {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.post-edit-panel[hidden] {
    display: none;
}

.detail-edit-panel.is-owner-only {
    display: none !important;
}

.post-edit-panel textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.55;
}

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

.comment-list {
    display: grid;
    gap: 8px;
}

.comment-item {
    color: var(--muted);
    line-height: 1.5;
}

.comment-main {
    color: var(--muted);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    color: #9b887b;
    font-size: 0.78rem;
}

.comment-tool {
    min-height: auto;
    padding: 0;
    color: #8f5f2f;
    font-size: 0.78rem;
    font-weight: 800;
}

.comment-tool:hover {
    color: var(--accent-strong);
}

.comment-edit-form {
    display: grid;
    gap: 8px;
}

.comment-edit-form input {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: #fff;
}

.comment-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.comment-edit-actions .ghost-button,
.comment-edit-actions .primary-button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.82rem;
}

.comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    margin-top: 14px;
}

.ai-comment-button {
    min-width: 48px;
}

.daily-awards-section {
    overflow: hidden;
}

.daily-awards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.daily-award-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(232, 211, 191, 0.82);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.daily-award-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
    background: #ead9ca;
    text-align: left;
}

.daily-award-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.18s ease;
}

.daily-award-image:hover img {
    transform: scale(1.03);
}

.daily-award-image span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.94);
    color: var(--accent-strong);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(47, 36, 29, 0.14);
}

.daily-award-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 12px;
}

.daily-award-copy small,
.daily-award-copy span {
    color: var(--muted);
}

.daily-award-copy strong,
.daily-award-copy p,
.daily-award-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.daily-award-copy p {
    margin: 0;
    color: #3a2c25;
    line-height: 1.35;
}

.daily-award-copy span {
    display: -webkit-box;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.explore-grid,
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.explore-card,
.grid-post {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1;
    background: #f5ece3;
}

button.grid-post {
    width: 100%;
    display: block;
    text-align: left;
}

.explore-card img,
.grid-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.explore-overlay,
.grid-post-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.grid-post:hover img {
    transform: scale(1.03);
}

.grid-post img {
    transition: transform 0.18s ease;
}

.post-editor-dialog {
    width: min(620px, 100%);
    max-height: 92vh;
    overflow: auto;
}

.post-editor-preview {
    overflow: hidden;
    border-radius: 20px;
    background: #f5ece3;
    margin-bottom: 16px;
}

.post-editor-preview img {
    display: block;
    width: 100%;
    max-height: 52vh;
    object-fit: cover;
}

.profile-post-edit-panel {
    margin-top: 0;
}

.profile-card-head,
.profile-hero-head,
.stats-row,
.chip-row,
.memo-list,
.notification-list {
    display: grid;
}

.profile-card-head {
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.stats-row {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.stats-row.large {
    margin-top: 20px;
}

.stats-row > div,
.stats-link {
    background: rgba(255, 224, 212, 0.42);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    gap: 4px;
}

.stats-link {
    color: inherit;
    text-decoration: none;
}

.stats-link:hover {
    color: var(--accent);
}

.stats-row strong {
    font-size: 1.12rem;
}

.chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.friends-hero {
    min-height: auto;
}

.friend-grid {
    display: grid;
    gap: 14px;
}

.friend-card,
.friend-mini-card {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(117, 88, 70, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.friend-card {
    grid-template-columns: auto 1fr auto;
    padding: 16px;
}

.friend-card-copy {
    display: grid;
    gap: 5px;
}

.friend-card-copy > span,
.friend-card-copy p,
.friend-mini-card span {
    color: var(--muted);
}

.friend-card-copy p {
    margin: 0;
    line-height: 1.45;
}

.match-summary {
    margin: 0;
    color: #566029;
    font-weight: 700;
    line-height: 1.45;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.badge-row.compact {
    margin-top: 8px;
}

.badge-row.mini {
    gap: 5px;
    margin-top: 5px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(245, 191, 79, 0.52);
    border-radius: 999px;
    background: rgba(255, 246, 213, 0.78);
    color: #6b4a17;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.profile-badge i {
    color: #b87910;
    font-size: 0.82rem;
}

.friend-mini-stats,
.friend-list-compact {
    display: grid;
    gap: 10px;
}

.friend-mini-stats {
    grid-template-columns: repeat(3, max-content);
    color: var(--muted);
    font-size: 0.9rem;
}

.friend-card-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.friend-card-actions .ghost-button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
}

.friend-mini-card {
    grid-template-columns: auto 1fr auto;
    padding: 12px;
}

.friend-mini-card div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.match-chip {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(223, 241, 173, 0.62);
    color: #52601f;
    font-weight: 800;
    font-size: 0.82rem;
    white-space: nowrap;
}

.empty-state {
    border: 1px dashed rgba(255, 107, 87, 0.35);
    border-radius: 18px;
    padding: 22px;
    color: var(--muted);
    background: rgba(255, 247, 243, 0.8);
}

.empty-state strong {
    color: var(--text);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(223, 241, 173, 0.5);
    color: #566029;
    font-weight: 600;
}

.notification-list,
.memo-list,
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 12px;
}

.notification-list li,
.memo-list > div,
.drawer-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 248, 240, 0.86);
    display: grid;
    gap: 6px;
}

.notification-item.is-unread {
    border: 1px solid rgba(255, 107, 87, 0.22);
    background: rgba(255, 224, 212, 0.42);
}

.notification-item a,
.drawer-item a {
    display: grid;
    gap: 6px;
}

.notification-item i {
    color: var(--accent-strong);
    margin-right: 4px;
}

.notification-badge,
.message-badge,
.thread-unread {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    font-size: 0.72rem;
    line-height: 18px;
    text-align: center;
    font-weight: 800;
    animation: badgePulse 1.4s ease;
}

.has-unread i {
    color: var(--accent-strong);
}

.has-unread::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 191, 79, 0.18);
}

.has-unread .notification-badge + *,
.has-unread .message-badge + * {
    pointer-events: none;
}

.message-badge {
    background: #4f6123;
}

.realtime-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(217, 234, 162, 0.72);
    color: #4f6123;
    font-size: 0.72rem;
    vertical-align: middle;
}

.thread-button {
    position: relative;
}

.js-open-message {
    position: relative;
}

.thread-unread {
    top: 10px;
    right: 10px;
}

.profile-hero-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

.profile-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-action-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-section-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #eadbd0;
    background: #fffdfb;
}

.profile-section-tabs a {
    position: relative;
    min-height: 58px;
    display: grid;
    place-items: center;
    color: #9a918a;
    font-size: 1.02rem;
    font-weight: 700;
}

.profile-section-tabs a.is-active {
    color: #2f241d;
}

.profile-section-tabs a.is-active::after {
    position: absolute;
    right: 30%;
    bottom: -1px;
    left: 30%;
    height: 4px;
    background: #e9654f;
    content: "";
}

.owner-account-profile {
    min-height: 650px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 48px;
    padding: 76px clamp(24px, 8vw, 110px) 56px;
    background: #fffaf6;
}

.owner-account-avatar {
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eadbd0;
    border-radius: 50%;
    background: #f0ebe7;
    color: #9a8f87;
    font-size: 3.4rem;
}

.owner-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-account-details {
    width: min(600px, 100%);
    display: grid;
    gap: 0;
}

.owner-account-row {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px;
    border-bottom: 1px solid #e9b749;
    color: #5f5751;
    font-size: 1rem;
}

.owner-account-name-row {
    justify-content: flex-start;
    font-size: 1.05rem;
}

.owner-account-name-row > span {
    color: #2f241d;
    font-size: 1.3rem;
    font-weight: 800;
}

.owner-account-name-row strong {
    font-size: 1.08rem;
}

.account-provider-badge {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    border-radius: 50%;
    font-size: 1.35rem;
}

.account-provider-badge.provider-kakao {
    background: #fee500;
    color: #191919;
}

.account-provider-badge.provider-google {
    border: 1px solid #e1e4e8;
    background: #fff;
    color: #4285f4;
    font-family: Arial, sans-serif;
}

.account-provider-badge.provider-email {
    border: 1px solid #e8d7ca;
    background: #fff4ec;
    color: #d6533e;
}

.account-provider-badge.provider-password {
    background: #ffe0d4;
    color: #d74d37;
}

.owner-account-edit {
    margin: 28px 0 34px;
    border-bottom: 1px solid #e9b749;
    padding-bottom: 28px;
}

.owner-account-edit summary {
    min-height: 58px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e9654f;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
    list-style: none;
    box-shadow: 0 8px 18px rgba(205, 91, 69, 0.22);
}

.owner-account-edit summary::-webkit-details-marker {
    display: none;
}

.owner-account-edit form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    padding-top: 16px;
}

.owner-account-edit label {
    display: grid;
    gap: 6px;
    text-align: left;
}

.owner-account-edit input {
    min-height: 46px;
}

.owner-account-logout {
    justify-self: start;
    min-width: 150px;
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ffe5db;
    color: #9f3f30;
    font-weight: 800;
}

.account-guide-card > p {
    margin: 0;
    color: #756b64;
    line-height: 1.65;
}

.avatar {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd6b8, #ff9f84);
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-ring {
    outline: 3px solid rgba(255, 107, 87, 0.18);
}

.avatar-small {
    width: 48px;
    height: 48px;
}

.avatar-medium {
    width: 68px;
    height: 68px;
}

.avatar-large {
    width: 88px;
    height: 88px;
}

.avatar-xl {
    width: 132px;
    height: 132px;
    font-size: 2rem;
}

.overlay-panel {
    position: fixed;
    inset: 0;
    background: rgba(47, 36, 29, 0.34);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 50;
}

.overlay-panel.open {
    display: flex;
}

.panel-dialog {
    width: min(720px, 100%);
    border-radius: 28px;
    padding: 24px;
}

.compact-dialog {
    width: min(520px, 100%);
}

.profile-dialog {
    max-height: 90vh;
    overflow: auto;
}

.post-detail-dialog {
    width: min(1040px, 100%);
    max-height: 92vh;
    overflow: auto;
}

.post-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 20px;
}

.post-detail-image-wrap {
    overflow: hidden;
    border-radius: 22px;
    background: #f5ece3;
}

.post-detail-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 72vh;
    object-fit: cover;
}

.post-detail-side {
    display: grid;
    align-content: start;
    gap: 16px;
}

.detail-caption {
    margin: 0;
    padding: 14px;
    border-radius: 18px;
}

.post-detail-stats,
.post-detail-actions,
.caption-preview-head {
    display: flex;
    align-items: center;
}

.post-detail-stats {
    gap: 6px;
}

.post-detail-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.detail-comments {
    max-height: 180px;
    overflow: auto;
}

.detail-edit-panel {
    margin-top: 0;
}

.post-highlight {
    animation: postPulse 2.2s ease;
}

@keyframes postPulse {
    0%,
    100% {
        box-shadow: var(--shadow);
    }
    20%,
    72% {
        box-shadow: 0 0 0 5px rgba(255, 107, 87, 0.26), var(--shadow);
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(0.82);
    }
    55% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

.panel-head,
.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 224, 212, 0.58), rgba(255, 255, 255, 0.84));
    padding: 18px;
    border-radius: 22px;
    margin-bottom: 18px;
}

.profile-form,
.form-grid {
    display: grid;
    gap: 14px;
}

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

.form-grid label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.form-grid label span {
    font-weight: 600;
    color: var(--text);
}

.profile-avatar-upload {
    cursor: pointer;
}

.avatar-upload-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border: 1px dashed rgba(255, 107, 87, 0.38);
    border-radius: 20px;
    padding: 14px;
    background: rgba(255, 248, 240, 0.86);
}

.avatar-upload-row div {
    display: grid;
    gap: 5px;
}

.avatar-upload-row small {
    color: var(--muted);
    line-height: 1.45;
}

#profile-avatar-file {
    display: none;
}

.full-span {
    grid-column: 1 / -1;
}

.drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: min(420px, calc(100vw - 24px));
    height: 100vh;
    border-radius: 30px 0 0 30px;
    padding: 24px;
    z-index: 60;
    transition: right 0.24s ease;
}

.drawer.open {
    right: 0;
}

.wide-drawer {
    width: min(760px, calc(100vw - 24px));
    right: -780px;
}

.drawer-list {
    display: grid;
    gap: 12px;
    overflow: auto;
    max-height: calc(100vh - 120px);
}

.messages-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    height: calc(100vh - 120px);
}

.message-thread-list,
.message-room {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.92);
    padding: 12px;
}

.message-thread-list {
    display: grid;
    gap: 10px;
    align-content: start;
    overflow: auto;
}

.thread-button {
    width: 100%;
    text-align: left;
    border-radius: 16px;
    padding: 12px;
    background: transparent;
    border: 1px solid transparent;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.thread-button.is-active {
    background: rgba(255, 224, 212, 0.5);
    border-color: rgba(255, 107, 87, 0.18);
}

.message-room {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 12px;
}

.message-room-body {
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
    padding-right: 4px;
}

.message-empty,
.message-room-empty {
    padding: 14px;
    border-radius: 16px;
    color: var(--muted);
    line-height: 1.5;
    background: rgba(255, 248, 240, 0.86);
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--peach);
    color: var(--accent);
    font-weight: 800;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thread-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.thread-copy strong,
.thread-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-copy span,
.thread-meta,
.notification-time {
    color: var(--muted);
    font-size: 0.82rem;
}

.thread-meta {
    align-self: start;
    white-space: nowrap;
}

.message-room-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: -2px -2px 6px;
    padding: 8px;
    border-bottom: 1px solid rgba(232, 211, 191, 0.72);
    background: rgba(255, 253, 249, 0.96);
}

.message-room-head div {
    display: grid;
    gap: 2px;
}

.message-room-head span {
    color: var(--muted);
    font-size: 0.85rem;
}

.message-row {
    display: grid;
}

.message-row.me {
    justify-items: end;
}

.message-row.friend {
    justify-items: start;
}

.bubble {
    max-width: 80%;
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.5;
    display: grid;
    gap: 4px;
}

.bubble small {
    color: rgba(92, 74, 61, 0.66);
    font-size: 0.75rem;
}

.message-row.friend .bubble {
    background: rgba(255, 224, 212, 0.5);
}

.message-row.me .bubble {
    background: var(--lime);
}

.notification-empty {
    padding: 16px;
    border: 1px dashed rgba(232, 211, 191, 0.85);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(255, 248, 240, 0.72);
}

.message-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.message-tone-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(232, 211, 191, 0.78);
    border-radius: 16px;
    background: rgba(255, 248, 240, 0.86);
    box-shadow: 0 10px 22px rgba(92, 74, 61, 0.08);
}

.message-tone-preview[hidden] {
    display: none;
}

.message-tone-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.message-tone-chip {
    min-height: 32px;
    border: 1px solid rgba(240, 93, 68, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.25;
    cursor: pointer;
}

.message-tone-chip:hover {
    border-color: rgba(240, 93, 68, 0.42);
    background: rgba(255, 227, 215, 0.64);
}

.search-input {
    margin-bottom: 10px;
}

.search-persona-select,
.search-sort-select {
    margin-bottom: 14px;
}

.profile-search-results {
    display: grid;
    gap: 10px;
    max-height: min(52vh, 520px);
    overflow: auto;
}

.profile-search-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(117, 88, 70, 0.12);
    border-radius: 18px;
    background: rgba(255, 248, 240, 0.86);
}

.profile-search-card:hover {
    background: rgba(255, 224, 212, 0.48);
}

.profile-search-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.profile-search-copy small,
.profile-search-copy span,
.search-empty {
    color: var(--muted);
}

.profile-search-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-search-copy .match-reasons {
    color: #566029;
    font-weight: 700;
}

.profile-search-copy .badge-row {
    display: flex;
    margin-top: 2px;
    overflow: visible;
    white-space: normal;
}

.profile-search-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.profile-search-actions .follow-button {
    min-width: 76px;
}

.search-empty {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 248, 240, 0.86);
    line-height: 1.5;
}

.mobile-nav {
    display: none;
}

.feed-pagination {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 4px 0 14px;
}

.feed-pagination[hidden] {
    display: none;
}

.feed-pagination-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 0.86rem;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.welcome-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #fff4eb;
}

.welcome-shell {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #efd5c4;
    border-radius: 8px;
    background: #fff9f4;
    box-shadow: 0 24px 70px rgba(103, 65, 42, 0.14);
}

.welcome-brand {
    min-width: 0;
    padding: 28px 28px 0;
    background: #fff9f4;
}

.welcome-brand-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border: 1px solid #ead9c6;
    border-radius: 8px;
}

.welcome-brand-copy {
    padding: 22px 6px 24px;
    text-align: center;
}

.welcome-brand-copy h1 {
    margin: 0;
    color: #2f241d;
    font-family: "Bagel Fat One", "Pretendard", sans-serif;
    font-size: clamp(2.7rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.welcome-brand-copy > p:last-child {
    max-width: 34rem;
    margin: 12px auto 0;
    color: #6d665f;
    font-size: 1.05rem;
    line-height: 1.65;
}

.welcome-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    padding: 0 28px 28px;
    background: #fff9f4;
}

.welcome-auth-options {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 0 28px 30px;
    background: #fff9f4;
    text-align: center;
}

.login-provider-stack {
    width: min(420px, 100%);
    display: grid;
    gap: 12px;
}

.login-provider-button {
    position: relative;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 58px;
    font-size: 1rem;
    font-weight: 800;
    transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.login-provider-button:hover {
    box-shadow: 0 9px 24px rgba(74, 53, 39, 0.13);
    transform: translateY(-1px);
}

.login-provider-button.is-disabled {
    opacity: 0.55;
}

.login-provider-icon {
    position: absolute;
    left: 22px;
    width: 24px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.login-provider-kakao {
    background: #fee500;
    color: #191919;
}

.login-provider-google {
    border-color: #dcdfe3;
    background: #fff;
    color: #292929;
}

.login-provider-google .google-mark {
    color: #4285f4;
    font-family: Arial, sans-serif;
    font-weight: 800;
}

.login-provider-email {
    border-color: #ead8cb;
    background: #f2ebe6;
    color: #3b3029;
}

.login-provider-stack .welcome-auth-divider {
    width: 100%;
    margin: 4px 0;
}

.welcome-signup-hint {
    margin: -2px 0 0;
    color: #81756d;
    font-size: 0.88rem;
}

.welcome-signup-hint a {
    margin-left: 4px;
    color: #d74d37;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.email-auth-page {
    min-height: 100dvh;
    padding: 24px;
    background: #fff4eb;
}

.email-auth-shell {
    position: relative;
    width: min(520px, 100%);
    margin: 0 auto;
}

.email-auth-back {
    position: absolute;
    z-index: 1;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #ead8cb;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #493c34;
}

.email-auth-card {
    overflow: hidden;
    border: 1px solid #efd5c4;
    border-radius: 8px;
    padding: 34px;
    background: #fffaf6;
    box-shadow: 0 24px 70px rgba(103, 65, 42, 0.14);
}

.email-auth-brand {
    text-align: center;
}

.email-auth-brand img {
    width: min(300px, 78%);
    aspect-ratio: 16 / 7;
    border: 1px solid #ead9c6;
    border-radius: 8px;
    object-fit: cover;
}

.email-auth-brand .auth-kicker {
    margin: 20px 0 5px;
}

.email-auth-brand h1 {
    margin: 0;
    color: #2f241d;
    font-size: 1.65rem;
}

.email-auth-brand > p:last-child {
    margin: 8px 0 0;
    color: #7a7068;
    line-height: 1.55;
}

.email-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 28px 0 22px;
    border-bottom: 1px solid #ead8cb;
}

.email-auth-tabs a {
    position: relative;
    padding: 13px;
    color: #9a8f87;
    text-align: center;
    font-weight: 800;
}

.email-auth-tabs a.is-active {
    color: #d74d37;
}

.email-auth-tabs a.is-active::after {
    position: absolute;
    right: 16px;
    bottom: -1px;
    left: 16px;
    height: 3px;
    background: #e9654f;
    content: "";
}

.email-auth-form {
    display: grid;
    gap: 15px;
}

.email-auth-form label {
    display: grid;
    gap: 7px;
    color: #554940;
    font-size: 0.9rem;
    font-weight: 800;
}

.email-auth-form input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #e6d5c8;
    border-radius: 8px;
    padding: 0 16px;
    background: #fff;
    color: #2f241d;
    font: inherit;
}

.email-auth-form input:focus {
    border-color: #e9654f;
    outline: 3px solid rgba(233, 101, 79, 0.13);
}

.email-auth-submit {
    min-height: 54px;
    margin-top: 5px;
    border: 0;
    border-radius: 8px;
    background: #e9654f;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.email-auth-switch {
    margin: 20px 0 0;
    color: #81756d;
    text-align: center;
    font-size: 0.9rem;
}

.email-auth-switch a {
    margin-left: 4px;
    color: #d74d37;
    font-weight: 800;
}

.social-login-intro h2,
.social-login-intro p {
    margin: 0;
}

.social-login-intro h2 {
    color: #2f241d;
    font-size: 1.25rem;
}

.social-login-intro p {
    margin-top: 5px;
    color: #7a7068;
    font-size: 0.9rem;
}

.social-login-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
}

.social-login-provider {
    width: 88px;
    display: grid;
    justify-items: center;
    gap: 9px;
    color: #332a24;
}

.social-login-provider:hover .social-login-circle {
    box-shadow: 0 10px 24px rgba(74, 53, 39, 0.18);
    transform: translateY(-2px);
}

.social-login-provider.is-disabled {
    opacity: 0.55;
}

.social-login-provider strong {
    font-size: 0.9rem;
}

.social-login-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.social-login-kakao .social-login-circle {
    background: #fee500;
    color: #191919;
    font-size: 2rem;
}

.social-login-google .social-login-circle {
    border: 1px solid #e1e4e8;
    background: #fff;
    color: #4285f4;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.welcome-auth-divider {
    width: min(360px, 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9a8f87;
    font-size: 0.78rem;
}

.welcome-auth-divider::before,
.welcome-auth-divider::after {
    height: 1px;
    flex: 1;
    background: #eadbd0;
    content: "";
}

.welcome-legacy-login {
    width: min(360px, 100%);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #e6d4c7;
    border-radius: 8px;
    background: #fff;
    color: #4e423a;
    font-weight: 700;
}

.welcome-legacy-login:hover {
    border-color: #e9654f;
    color: #d74d37;
}

.welcome-oauth-error,
.welcome-google-help {
    grid-column: 1 / -1;
}

.welcome-oauth-error {
    margin: 0;
}

.welcome-google-help {
    margin: -4px 0 0;
    color: #786f68;
    font-size: 0.85rem;
    text-align: center;
}

.welcome-google-path.is-disabled {
    border-color: #ddcfc5;
    background: #fffaf7;
}

.google-mark {
    border: 1px solid #e3e3e3;
    background: #fff !important;
    color: #4285f4 !important;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.pet-onboarding-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 26px;
    border: 1px solid #efc9ba;
    border-radius: 8px;
    background: #fff6f1;
}

.pet-onboarding-callout-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9654f;
    color: #fff;
    font-size: 1.25rem;
}

.pet-onboarding-callout h2,
.pet-onboarding-callout p {
    margin: 0;
}

.pet-onboarding-callout h2 {
    margin-top: 4px;
}

.pet-onboarding-callout p:last-child {
    margin-top: 8px;
    color: #74675e;
    line-height: 1.6;
}

.welcome-path {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid #efc9ba;
    border-radius: 8px;
    background: #fffdfb;
    color: #2f2b28;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.welcome-path:hover {
    border-color: #e9654f;
    box-shadow: 0 12px 28px rgba(205, 91, 69, 0.15);
    transform: translateY(-2px);
}

.welcome-path-primary {
    border-color: #e9654f;
    background: #fff0ea;
}

.welcome-path-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffe1d6;
    color: #d74d37;
    font-size: 1.2rem;
}

.welcome-path-primary .welcome-path-icon {
    background: #e9654f;
    color: #fff;
}

.welcome-path-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.welcome-path-copy small {
    color: #7a746e;
    font-size: 0.82rem;
    font-weight: 700;
}

.welcome-path-copy strong {
    font-size: 1.25rem;
    line-height: 1.3;
}

.welcome-path-copy span {
    color: #76706a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.welcome-path-arrow {
    color: #d97763;
}

.match-invite-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #fff4eb;
}

.match-invite-shell {
    width: min(780px, 100%);
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid #efd5c4;
    border-radius: 8px;
    background: #fffaf6;
    box-shadow: 0 24px 70px rgba(103, 65, 42, 0.14);
}

.match-brand {
    justify-self: start;
    color: #e45c46;
    font-family: "Bagel Fat One", "Pretendard", sans-serif;
    font-size: 1.45rem;
}

.match-invite-hero {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 22px;
    border: 1px solid #f0d9ca;
    border-radius: 8px;
    background: #fff2eb;
}

.match-invite-hero h1 {
    margin: 0;
    color: #30251f;
    font-family: "Jua", "Pretendard", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.16;
    letter-spacing: 0;
}

.match-invite-hero p:last-child {
    margin: 12px 0 0;
    color: #756b64;
    line-height: 1.6;
}

.match-result {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid #efc2b3;
    border-radius: 8px;
    background: #fff;
}

.match-score-ring {
    width: 150px;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    gap: 3px;
    border: 10px solid #ffd8cc;
    border-radius: 50%;
    background: #fff4ef;
    color: #d84f39;
    text-align: center;
}

.match-score-ring strong {
    font-size: 2.4rem;
    line-height: 1;
}

.match-score-ring span {
    font-weight: 900;
}

.match-result-copy h2,
.match-share-panel h2,
.match-join-panel h2 {
    margin: 0;
    color: #342820;
    font-size: 1.45rem;
    line-height: 1.45;
    letter-spacing: 0;
}

.match-reason-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.match-reason-list span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #f0c9bb;
    border-radius: 999px;
    background: #fff6f1;
    color: #785347;
    font-size: 0.88rem;
    font-weight: 800;
}

.match-share-panel,
.match-join-panel {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid #efd8ca;
    border-radius: 8px;
    background: #fff;
}

.match-share-panel > p:not(.eyebrow),
.match-join-panel > p {
    margin: 0;
    color: #766d67;
    line-height: 1.6;
}

.match-link-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 4px;
}

.match-link-box input {
    min-width: 0;
    background: #fffaf7;
}

.match-share-status {
    min-height: 22px;
    color: #d84f39 !important;
    font-weight: 800;
}

.match-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.match-actions .primary-button,
.match-actions .ghost-button {
    min-height: 46px;
    justify-content: center;
}

.auth-shell {
    width: min(420px, 100%);
    display: grid;
    gap: 14px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    color: #6f665f;
    font-weight: 800;
}

.finder-shell {
    width: min(880px, 100%);
}

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

.auth-card {
    border-radius: 28px;
    padding: 32px;
}

.auth-copy {
    color: var(--muted);
    margin: 12px 0 20px;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-switch {
    border-radius: 22px;
    padding: 18px 22px;
    text-align: center;
}

.auth-switch a {
    color: var(--accent-strong);
    font-weight: 700;
}

.auth-help-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
}

.auth-help-links a {
    color: var(--accent-strong);
}

.error-box {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 107, 87, 0.12);
    color: #c53f2b;
    font-weight: 600;
}

.success-box {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(101, 196, 105, 0.14);
    color: #38743c;
    font-weight: 700;
}

.finder-title {
    margin: 0 0 16px;
    font-family: "Jua", "Pretendard", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0;
}

.account-result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.account-result-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 107, 87, 0.12);
    color: var(--accent-strong);
    font-weight: 900;
}

.auth-page-fresh {
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.55), transparent 8rem),
        radial-gradient(circle at 78% 16%, rgba(247, 229, 194, 0.32), transparent 10rem),
        #f9f2e4;
}

.dog-world-page {
    color: #342a23;
}

.entry-complete-page {
    padding: 18px;
}

.entry-complete-card {
    width: min(760px, 100%);
    display: grid;
    gap: 22px;
    padding: 24px;
    border: 1px solid rgba(236, 216, 199, 0.92);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(249, 242, 228, 0.96)),
        #f9f2e4;
    box-shadow: var(--shadow);
}

.entry-banner-wrap {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(236, 216, 199, 0.72);
    background: #f9f2e4;
}

.entry-banner-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.entry-complete-copy {
    display: grid;
    gap: 10px;
    text-align: center;
}

.entry-complete-copy h1 {
    margin: 0;
    font-family: "Jua", "Bagel Fat One", cursive;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: var(--accent-strong);
    line-height: 1.08;
}

.entry-complete-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.55;
}

.entry-complete-message {
    display: grid;
    justify-items: center;
    gap: 4px;
    max-width: 560px;
    margin-inline: auto !important;
    text-align: center;
    text-wrap: balance;
}

.entry-complete-message span {
    display: block;
}

.entry-profile-chip {
    display: inline-flex;
    justify-self: center;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.entry-profile-chip span:last-child {
    display: grid;
    gap: 3px;
}

.entry-profile-chip small {
    color: var(--muted);
}

.entry-start-button {
    min-height: 56px;
    border-radius: 999px;
    font-size: 1.1rem;
}

.dog-world-page .auth-card,
.dog-world-page .signup-phone {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 245, 0.98)),
        #fffdf8;
}

.login-card {
    overflow: hidden;
}

.login-card .brand-large {
    display: block;
    line-height: 1.08;
    margin-bottom: 16px;
    white-space: normal;
}

.login-card .auth-kicker {
    line-height: 1.35;
}

.auth-kicker,
.step-label {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 1.1rem;
    font-weight: 700;
}

.auth-title {
    margin: 4px 0 0;
    font-family: "Jua", "Pretendard", sans-serif;
    font-size: clamp(2.35rem, 8vw, 3.35rem);
    line-height: 1.18;
    letter-spacing: 0;
    color: #2f241d;
}

.field-line {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.field-line span {
    color: var(--text);
}

.species-field {
    border: 0;
    padding: 0;
    margin: 0;
}

.species-field legend {
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 600;
}

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

.species-field > input[type="text"] {
    margin-top: 10px;
}

.signup-flow-page {
    place-items: center;
    background: #f7f7f7;
    padding: 18px;
}

.signup-phone {
    width: min(390px, 100%);
    min-height: min(780px, calc(100vh - 36px));
    display: grid;
    grid-template-rows: auto auto 1fr;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.signup-topbar {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 8px;
    height: 58px;
    padding: 0 14px;
}

.signup-progress {
    min-width: 0;
    display: grid;
    align-items: center;
}

.mbti-paw-progress {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    width: 100%;
    color: #ead9d1;
}

.mbti-paw-progress[hidden],
.step-meter[hidden] {
    display: none;
}

.mbti-paw {
    justify-self: center;
    font-size: 0.82rem;
    transform: scale(0.86) rotate(-8deg);
    transition: color 0.2s ease, transform 0.2s ease;
}

.mbti-paw:nth-child(even) {
    transform: scale(0.86) rotate(8deg);
}

.mbti-paw.is-filled {
    color: #e9654f;
    transform: scale(1) rotate(-8deg);
}

.mbti-paw:nth-child(even).is-filled {
    transform: scale(1) rotate(8deg);
}

.mbti-paw.is-current {
    animation: mbtiPawFill 0.42s ease-out;
}

@keyframes mbtiPawFill {
    0% { transform: scale(0.72) rotate(-8deg); }
    58% { transform: scale(1.24) rotate(4deg); }
    100% { transform: scale(1) rotate(-8deg); }
}

.mbti-paw:nth-child(even).is-current {
    animation-name: mbtiPawFillEven;
}

@keyframes mbtiPawFillEven {
    0% { transform: scale(0.72) rotate(8deg); }
    58% { transform: scale(1.24) rotate(-4deg); }
    100% { transform: scale(1) rotate(8deg); }
}

.step-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #cbd5e1;
}

.step-back:disabled {
    opacity: 0.35;
    cursor: default;
}

.step-meter {
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.step-meter span {
    display: block;
    width: 12%;
    height: 100%;
    background: var(--accent);
    transition: width 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
    .mbti-paw.is-current {
        animation: none;
    }
}

.skip-link {
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

.signup-step-form {
    min-height: 0;
    display: grid;
    grid-template-rows: 1fr auto;
}

.signup-step {
    display: none;
    padding: 24px 36px 18px;
}

.signup-step.is-active {
    display: block;
}

.signup-step h1 {
    margin: 6px 0 42px;
    color: #38312d;
    font-family: "Jua", "Pretendard", sans-serif;
    font-size: 2.18rem;
    line-height: 1.34;
    letter-spacing: 0;
}

.step-desc {
    margin: -20px 0 30px;
    color: #a7adb7;
    font-family: "Jua", "Pretendard", sans-serif;
    font-size: 1.08rem;
    line-height: 1.75;
}

.step-fields {
    display: grid;
    gap: 16px;
}

.signup-field-status {
    min-height: 18px;
    color: #a7adb7;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.signup-field-status[data-state="success"] {
    color: #3f8a55;
}

.signup-field-status[data-state="error"] {
    color: var(--accent-strong);
}

.signup-field-status[data-state="checking"] {
    color: #8a745f;
}

.signup-password-input {
    position: relative;
    display: block;
}

.signup-password-input input {
    padding-right: 42px;
}

.signup-password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    transform: translateY(-50%);
    color: #9ba3af;
}

.signup-avatar-picker {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin-top: 48px;
    padding: 18px;
    border: 1px dashed rgba(240, 93, 68, 0.38);
    border-radius: 24px;
    background: rgba(255, 248, 240, 0.76);
    cursor: pointer;
}

.signup-avatar-preview {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe3d7, #d9eaa2);
    box-shadow: 0 12px 28px rgba(83, 58, 39, 0.14);
    color: var(--accent-strong);
    font-size: 2.2rem;
}

.signup-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signup-avatar-copy {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: var(--text);
}

.signup-avatar-copy strong {
    font-size: 1.08rem;
}

.signup-avatar-copy small {
    color: var(--muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.signup-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.signup-avatar-remove {
    margin-top: 12px;
}

.raised-fields {
    margin-top: 96px;
}

.centered-field {
    margin-top: 170px;
}

.centered-field input,
.centered-field select,
.centered-field textarea,
.step-fields input,
.step-fields select {
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 12px 0;
    background: transparent;
    color: #3f3f46;
}

.centered-field input:focus,
.centered-field select:focus,
.centered-field textarea:focus,
.step-fields input:focus,
.step-fields select:focus {
    box-shadow: none;
    border-color: var(--accent);
}

.tag-choice {
    cursor: pointer;
}

.tag-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.tag-choice input:checked + span {
    border-color: var(--accent);
    background: rgba(255, 107, 87, 0.1);
    color: var(--accent-strong);
}

.personality-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.persona-step {
    padding: 18px 24px 14px;
}

.persona-step h1 {
    margin-bottom: 22px;
    font-size: 1.86rem;
    line-height: 1.34;
}

.persona-step .step-desc {
    margin: 0 0 22px;
}

.mbti-bridge-step {
    text-align: center;
}

.mbti-bridge-step h1 {
    margin-bottom: 22px;
}

.mbti-bridge-step .step-desc {
    max-width: 28rem;
    margin: 0 auto;
    color: #77716c;
}

.mbti-bridge-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 72px auto 20px;
    border-radius: 50%;
    background: #e6efe2;
    color: #496a43;
    font-size: 1.8rem;
}

.account-step-fields {
    gap: 12px;
}

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

.persona-mini-card {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.persona-mini-card legend {
    width: 100%;
    padding: 0;
    color: #434343;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

.persona-mini-options {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.persona-choice {
    cursor: pointer;
}

.persona-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.persona-choice span {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    color: #9098a4;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
}

.persona-choice input:checked + span {
    border-color: var(--accent);
    background: rgba(255, 107, 87, 0.1);
    color: var(--accent-strong);
}

.persona-mini-card.needs-answer,
.field-line.needs-answer {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 87, 0.12);
}

.tag-choice span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 2px solid #dfe3ea;
    border-radius: 999px;
    color: #9ba3af;
    font-size: 0.9rem;
    font-weight: 800;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.signup-step-footer {
    position: relative;
    padding: 14px 36px 24px;
}

.step-validation-message {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.signup-step-footer .primary-button {
    min-height: 48px;
    border-radius: 999px;
}

.step-count {
    position: absolute;
    left: 50px;
    top: 28px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
    pointer-events: none;
}

.is-hidden {
    display: none !important;
}

.persona-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.ranking-list {
    display: grid;
}

.ranking-list[hidden] {
    display: none;
}

.ranking-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(232, 211, 191, 0.34);
}

.ranking-tab {
    min-width: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 4px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.ranking-tab.is-active {
    color: var(--accent-strong);
    background: #fff;
    box-shadow: 0 4px 12px rgba(83, 58, 39, 0.1);
}

.ranking-item {
    display: block;
    align-items: center;
    min-width: 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 248, 240, 0.86);
}

.ranking-left,
.ranking-copy,
.ranking-right {
    display: grid;
}

.ranking-left {
    grid-template-columns: 34px 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ranking-badge {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 87, 0.12);
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.ranking-badge.rank-1 {
    background: linear-gradient(135deg, #ffe69a, #f7b733);
    color: #6b4315;
    box-shadow: 0 8px 18px rgba(247, 183, 51, 0.28);
}

.ranking-badge.rank-2 {
    background: linear-gradient(135deg, #f6f8fb, #b9c1cc);
    color: #4f5965;
    box-shadow: 0 8px 18px rgba(111, 124, 138, 0.2);
}

.ranking-badge.rank-3 {
    background: linear-gradient(135deg, #e7b37f, #b86b36);
    color: #fff7ef;
    box-shadow: 0 8px 18px rgba(184, 107, 54, 0.2);
}

.ranking-badge i {
    font-size: 0.86rem;
}

.ranking-copy {
    min-width: 0;
    gap: 5px;
}

.ranking-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ranking-title-row .profile-name-link {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-like-chip {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #6d5d51;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.ranking-copy small {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-copy small,
.ranking-right small {
    color: var(--muted);
}

.ranking-right {
    justify-items: end;
    gap: 2px;
}

.toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(47, 36, 29, 0.92);
    color: white;
    z-index: 100;
}

.notification-toast {
    position: fixed;
    left: 50%;
    bottom: 110px;
    width: min(360px, calc(100vw - 28px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.97);
    border: 1px solid rgba(236, 216, 199, 0.96);
    box-shadow: 0 18px 45px rgba(47, 36, 29, 0.18);
    color: var(--text);
    z-index: 110;
}

.notification-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.notification-toast span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.notification-toast small {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .right-rail {
        display: none;
    }

    .sidebar .brand-mark {
        font-size: 1.3rem;
    }

    .sidebar .brand-image-mark {
        min-height: 72px;
        border-radius: 16px;
    }

    .sidebar .brand-logo-image {
        min-height: 72px;
    }

    .nav-button span,
    .profile-chip-copy {
        display: none;
    }

    .nav-button,
    .profile-chip {
        justify-content: center;
        padding: 14px;
    }
}

@media (max-width: 860px) {
    .finder-grid {
        grid-template-columns: 1fr;
    }

    .app-shell {
        grid-template-columns: 1fr;
        padding: 0 14px 88px;
    }

    .persona-share-section,
    .daily-mission-card,
    .studio-shell,
    .studio-board {
        grid-template-columns: 1fr;
    }

    .persona-result-card {
        min-height: 230px;
    }

    .studio-canvas-panel,
    .studio-controls {
        padding: 16px;
    }

    .studio-action-row {
        justify-content: flex-start;
    }

    .mission-angle-row {
        grid-column: 1;
        justify-content: flex-start;
    }

    .sidebar,
    .right-rail {
        display: none;
    }

    .mobile-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 25;
        padding: 20px 4px 12px;
        background: linear-gradient(180deg, rgba(249, 242, 228, 0.96), rgba(249, 242, 228, 0.75), transparent);
    }

    .hero-strip,
    .profile-hero,
    .composer-card,
    .panel-card,
    .post-card {
        border-radius: 22px;
    }

    .hero-strip,
    .profile-hero-head,
    .profile-title-row,
    .chip-row,
    .daily-awards-grid,
    .messages-layout,
    .post-detail-layout,
    .explore-grid,
    .profile-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-strip {
        align-items: start;
    }

    .top-dog-profile {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .top-dog-latest {
        max-width: none;
    }

    .dog-social-card .post-header {
        align-items: flex-start;
        padding: 16px;
    }

    .dog-social-card .post-author .avatar-small {
        width: 52px;
        height: 52px;
    }

    .post-header-tools {
        max-width: none;
    }

    .dog-social-card .post-header-tools {
        padding: 4px;
    }

    .dog-social-card .post-header-tools .tag-pill {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        padding: 10px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(236, 216, 199, 0.96);
        box-shadow: var(--shadow);
        z-index: 35;
    }

    .mobile-nav-button {
        justify-content: center;
        padding: 14px 0;
        border-radius: 18px;
    }

    .drawer,
    .wide-drawer {
        width: 100vw;
        max-width: 100vw;
        border-radius: 24px 24px 0 0;
        top: auto;
        bottom: -100vh;
        right: 0;
        height: min(82vh, 780px);
        transition: bottom 0.24s ease;
    }

    .drawer.open,
    .wide-drawer.open {
        bottom: 0;
    }

    .messages-layout {
        height: auto;
        grid-template-rows: 220px minmax(0, 1fr);
    }

    .message-room {
        min-height: 320px;
    }

    .overlay-panel {
        align-items: end;
        padding: 0;
    }

    .panel-dialog {
        width: 100%;
        border-radius: 28px 28px 0 0;
        padding: 22px 18px 28px;
    }
}

/* Final design refresh overrides */
body {
    background:
        linear-gradient(180deg, rgba(255, 250, 244, 0.72), rgba(246, 239, 230, 0.94)),
        #f6efe6;
}

.content-column {
    display: grid;
    gap: 22px;
}

.hero-strip,
.composer-card,
.profile-card,
.panel-card,
.profile-hero,
.post-card,
.panel-dialog,
.drawer {
    background: rgba(255, 250, 244, 0.94);
    border-color: rgba(232, 211, 191, 0.92);
    box-shadow: 0 20px 54px rgba(83, 58, 39, 0.11);
    backdrop-filter: blur(10px);
}

.composer-card {
    padding: 22px;
    overflow: hidden;
}

.composer-card .section-head {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(232, 211, 191, 0.72);
}

.upload-form {
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
    align-items: stretch;
    gap: 16px;
}

.activity-field-prominent,
.upload-dropzone,
.caption-preview-box {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(232, 211, 191, 0.86);
}

.activity-field textarea {
    min-height: 174px;
    border-radius: 14px;
}

.upload-dropzone {
    min-height: 238px;
    position: relative;
    overflow: hidden;
    justify-content: center;
    border-style: solid;
    background:
        linear-gradient(180deg, rgba(255, 250, 244, 0.86), rgba(255, 238, 229, 0.68)),
        #fffaf4;
}

.upload-preview-image {
    width: 100%;
    max-height: 220px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 14px 32px rgba(83, 58, 39, 0.13);
}

.caption-preview-box,
.upload-form > .ghost-button.full-width,
.upload-form > .primary-button.full-width {
    grid-column: 1 / -1;
}

.feed-list {
    gap: 24px;
}

.dog-social-card {
    border-radius: 18px;
    background: #fffaf4;
    border: 1px solid rgba(232, 211, 191, 0.95);
    box-shadow: 0 24px 58px rgba(83, 58, 39, 0.12);
}

.dog-social-card .post-header {
    padding: 18px 22px;
    background: #fffaf4;
}

.post-image {
    aspect-ratio: 1 / 1;
}

.dog-social-actions {
    padding: 14px 22px 0;
    gap: 10px;
}

.dog-action-button,
.save-button,
.dog-social-actions .icon-button {
    min-height: 40px;
    border-radius: 14px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(232, 211, 191, 0.72);
}

.dog-social-card .caption {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
    font-size: 1.03rem;
}

.comments-box {
    margin: 0 22px 22px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(232, 211, 191, 0.72);
}

.comment-item {
    padding: 9px 0;
    border-bottom: 1px solid rgba(232, 211, 191, 0.52);
}

.comment-item:last-child {
    border-bottom: 0;
}

.ai-comment-button {
    background: rgba(204, 231, 219, 0.7);
    color: #385f52;
}

.post-detail-dialog {
    width: min(1120px, calc(100vw - 28px));
    padding: 18px;
    border-radius: 18px;
}

.post-detail-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    gap: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(232, 211, 191, 0.76);
    background: #fff;
}

.post-detail-image-wrap {
    border-radius: 0;
    background: #ead9ca;
}

.post-detail-image-wrap img {
    aspect-ratio: 1 / 1;
    max-height: min(72vh, 720px);
}

.post-detail-side {
    min-height: 0;
    padding: 20px;
    background: #fffaf4;
    border-left: 1px solid rgba(232, 211, 191, 0.78);
}

.detail-caption {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.detail-comments {
    max-height: min(32vh, 260px);
}

.ranking-item {
    position: relative;
    border: 1px solid rgba(232, 211, 191, 0.76);
    background: rgba(255, 255, 255, 0.66);
}

.ranking-item.rank-card-1 {
    background: linear-gradient(135deg, rgba(255, 241, 191, 0.94), rgba(255, 250, 244, 0.92));
    border-color: rgba(245, 191, 79, 0.66);
}

.ranking-item.rank-card-2 {
    background: linear-gradient(135deg, rgba(244, 247, 250, 0.98), rgba(255, 250, 244, 0.92));
    border-color: rgba(185, 193, 204, 0.72);
}

.ranking-item.rank-card-3 {
    background: linear-gradient(135deg, rgba(239, 196, 151, 0.5), rgba(255, 250, 244, 0.92));
    border-color: rgba(184, 107, 54, 0.42);
}

.notification-list li,
.drawer-item {
    border: 1px solid rgba(232, 211, 191, 0.72);
    background: rgba(255, 255, 255, 0.68);
}

.notification-item:hover,
.drawer-item:hover {
    border-color: rgba(240, 93, 68, 0.28);
    background: rgba(255, 227, 215, 0.42);
}

.message-thread-list,
.message-room {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
}

.thread-button {
    border-radius: 13px;
    background: rgba(255, 250, 244, 0.72);
}

.thread-button.is-active {
    background: rgba(255, 227, 215, 0.76);
    border-color: rgba(240, 93, 68, 0.28);
}

.message-row.friend .bubble {
    background: rgba(255, 227, 215, 0.72);
}

.message-row.me .bubble {
    background: rgba(217, 234, 162, 0.9);
}

@media (max-width: 860px) {
    .upload-form,
    .post-detail-layout {
        grid-template-columns: 1fr;
    }

    .daily-mission-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .daily-mission-card .ghost-button {
        grid-column: 1 / -1;
        width: 100%;
    }

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

    .post-detail-side {
        border-left: 0;
        border-top: 1px solid rgba(232, 211, 191, 0.78);
    }

    .comments-box {
        margin-inline: 14px;
    }
}

/* Final readability hotfix */
.top-dog-hero {
    grid-template-columns: minmax(380px, 1fr) minmax(320px, 430px);
    gap: 30px;
    align-items: center;
}

.top-dog-profile {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.top-dog-avatar.avatar-xl {
    width: 178px;
    height: 178px;
}

.top-dog-copy {
    display: grid;
    gap: 10px;
    color: var(--text);
}

.top-dog-copy .eyebrow,
.top-dog-copy h1,
.top-dog-copy .hero-copy {
    color: var(--text);
    opacity: 1;
    text-shadow: none;
}

.top-dog-copy .eyebrow {
    margin: 0;
    color: var(--accent-strong);
    font-size: 0.95rem;
    font-weight: 900;
}

.top-dog-copy h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.top-dog-copy .hero-copy {
    margin: 0;
    color: #3a2c25;
    font-size: 1.05rem;
    font-weight: 800;
}

.top-dog-stats {
    margin-top: 8px;
    gap: 10px;
}

.top-dog-stats span {
    min-width: 96px;
    min-height: 44px;
    justify-content: center;
    gap: 5px;
    background: #fff;
    border: 1px solid rgba(232, 211, 191, 0.95);
    color: #6d5a4f;
    box-shadow: 0 8px 18px rgba(83, 58, 39, 0.08);
}

.top-dog-stats span strong {
    color: var(--accent-strong);
    font-size: 1.18rem;
}

.hero-profile-link {
    width: max-content;
    min-height: 44px;
    margin-top: 2px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid rgba(232, 211, 191, 0.95);
    color: var(--accent-strong);
    box-shadow: 0 8px 18px rgba(83, 58, 39, 0.08);
}

.follow-button,
.follow-button .follow-label,
.primary-button,
.ghost-button,
.dog-action-button,
.dog-action-button span,
.dog-action-button strong {
    text-shadow: none;
}

.follow-button {
    background: var(--accent);
    color: #fff;
    border-color: rgba(207, 65, 45, 0.35);
}

.follow-button .follow-label {
    color: inherit;
}

.follow-button.is-following {
    background: #fff;
    color: var(--accent-strong);
    border-color: rgba(232, 211, 191, 0.95);
}

.dog-action-button {
    color: #3a2c25;
}

.dog-action-button span,
.dog-action-button strong {
    color: inherit;
}

.dog-action-button.is-liked,
.dog-action-button:hover {
    color: var(--accent-strong);
}

@media (max-width: 860px) {
    .top-dog-hero {
        grid-template-columns: 1fr;
    }

    .top-dog-profile {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 16px;
    }

    .top-dog-avatar.avatar-xl {
        width: 96px;
        height: 96px;
    }
}

.growth-record-fields {
    border: 1px solid rgba(232, 211, 191, 0.9);
    border-radius: 18px;
    background: rgba(255, 250, 244, 0.86);
    overflow: hidden;
}

.growth-record-fields summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.growth-record-fields summary::-webkit-details-marker {
    display: none;
}

.growth-record-fields summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.growth-record-fields summary i {
    color: #75902d;
}

.growth-record-fields summary small,
.growth-record-fields > p {
    color: var(--muted);
}

.growth-record-fields[open] summary {
    border-bottom: 1px solid rgba(232, 211, 191, 0.78);
}

.growth-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 16px 8px;
}

.growth-record-grid label {
    display: grid;
    gap: 7px;
    color: var(--text);
}

.growth-record-grid label > span {
    font-size: 0.9rem;
    font-weight: 700;
}

.growth-record-fields > p {
    margin: 0;
    padding: 4px 16px 16px;
    font-size: 0.86rem;
}

.unit-input {
    position: relative;
}

.unit-input input {
    padding-right: 48px;
}

.unit-input > span {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.album-content-column {
    min-width: 0;
}

.album-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(217, 234, 162, 0.52), rgba(204, 231, 219, 0.48)),
        var(--surface);
    box-shadow: var(--shadow);
}

.album-hero-copy {
    min-width: 0;
}

.album-hero-copy .eyebrow,
.album-hero-copy h1,
.album-hero-copy p {
    margin: 0;
}

.album-hero-copy h1 {
    margin-top: 6px;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    letter-spacing: 0;
}

.album-hero-copy > p:last-child {
    max-width: 560px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.55;
}

.album-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.album-summary div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 244, 0.9);
}

.album-summary strong {
    font-size: 1.35rem;
}

.album-summary span {
    color: var(--muted);
    font-size: 0.88rem;
}

.album-timeline {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.album-month {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
}

.album-month-heading {
    position: relative;
    padding-top: 3px;
}

.album-month-heading::after {
    content: "";
    position: absolute;
    top: 19px;
    bottom: -36px;
    left: 5px;
    width: 2px;
    background: var(--line);
}

.album-month:last-child .album-month-heading::after {
    display: none;
}

.album-month-heading > span {
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 1;
    width: 12px;
    height: 12px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.album-month-heading h2 {
    margin: 0 0 0 24px;
    font-size: 1rem;
    line-height: 1.35;
}

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

.album-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(83, 58, 39, 0.08);
}

.album-image-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--accent-soft);
}

.album-image-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.album-milestone {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 20px);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.94);
    color: var(--accent-strong);
    font-size: 0.82rem;
    box-shadow: 0 6px 18px rgba(83, 58, 39, 0.12);
}

.album-card-copy {
    display: grid;
    gap: 8px;
    padding: 14px;
}

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

.album-card-meta span {
    color: var(--muted);
    font-size: 0.86rem;
    text-align: right;
}

.album-card-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.album-side-rail .panel-card {
    display: grid;
    gap: 12px;
}

.album-side-rail h3,
.album-side-rail p {
    margin: 0;
}

.album-side-rail > .panel-card > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.5;
}

.album-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 52px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 244, 0.76);
    text-align: center;
}

.album-empty > i {
    color: var(--accent);
    font-size: 2.5rem;
}

.album-empty h2,
.album-empty p {
    margin: 0;
}

.album-empty p {
    color: var(--muted);
}

@media (max-width: 860px) {
    .growth-record-grid,
    .album-grid {
        grid-template-columns: 1fr;
    }

    .album-hero {
        align-items: flex-start;
        padding: 22px;
    }

    .album-hero .avatar-xl {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
    }

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

    .album-summary div {
        padding: 12px 10px;
    }

    .album-summary strong {
        font-size: 1.15rem;
    }

    .album-summary span {
        overflow-wrap: anywhere;
        font-size: 0.76rem;
    }

    .album-month {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .album-month-heading {
        min-height: 24px;
    }

    .album-month-heading::after {
        display: none;
    }

    .album-image-link {
        aspect-ratio: 1 / 1;
    }
}

/* Mobile mission and navigation layout */
@media (max-width: 860px) {
    .app-shell {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .mobile-topbar {
        min-height: 70px;
        padding: 8px 4px 10px;
        border-bottom: 1px solid rgba(232, 211, 191, 0.58);
        background: rgba(249, 242, 228, 0.94);
        backdrop-filter: blur(14px);
    }

    .mobile-topbar .brand-image-mark,
    .mobile-topbar .brand-logo-image {
        width: 154px;
        min-height: 52px;
        height: 52px;
    }

    .mobile-topbar .brand-image-mark {
        border-radius: 14px;
    }

    .mobile-topbar .icon-button {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .composer-card {
        min-width: 0;
        padding: 16px;
    }

    .daily-mission-card {
        width: 100%;
        min-width: 0;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: start;
        gap: 10px 12px;
        padding: 14px;
        overflow: hidden;
    }

    .daily-mission-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .daily-mission-copy {
        width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    .daily-mission-copy strong,
    .daily-mission-copy p {
        width: 100%;
        white-space: normal;
    }

    .daily-mission-card .ghost-button,
    .daily-mission-card .mission-angle-row {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .mission-angle-row {
        justify-content: flex-start;
    }

    .mission-angle-chip {
        max-width: 100%;
        white-space: normal;
    }

    .mobile-nav {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 4px;
        padding: 8px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-nav-button {
        min-width: 0;
        min-height: 44px;
        padding: 10px 0;
        border-radius: 14px;
    }

    .mobile-nav-button i {
        width: auto;
        font-size: 1.08rem;
    }

    .dog-social-card .post-author {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .dog-social-card .post-author > div,
    .dog-social-card .profile-name-link,
    .dog-social-card .meta-line {
        min-width: 0;
        max-width: 100%;
    }

    .dog-social-card .post-header-tools {
        flex: 0 0 auto;
    }

    .profile-title-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-action-row {
        width: 100%;
        justify-content: flex-start;
    }

    .studio-canvas-panel > .section-head {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 12px;
    }

    .studio-canvas-panel > .section-head h1 {
        margin-bottom: 0;
        font-size: 1.65rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .studio-action-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .studio-action-row .primary-button,
    .studio-action-row .ghost-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding-inline: 10px;
    }

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

    .drawer,
    .wide-drawer {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: min(82dvh, 780px);
        padding: 18px;
    }

    .messages-layout {
        grid-template-rows: minmax(120px, 160px) minmax(0, 1fr);
        height: calc(min(82dvh, 780px) - 82px);
    }

    .message-room {
        min-height: 0;
    }

    .signup-flow-page {
        align-items: start;
        padding: 0;
    }

    .signup-phone {
        width: 100%;
        min-height: 100dvh;
        border-width: 0 1px;
        box-shadow: none;
    }

    .signup-step-form {
        display: block;
    }

    .signup-step-footer {
        position: sticky;
        bottom: 0;
        z-index: 20;
        padding: 12px 24px calc(18px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), #fff 28%);
    }

    .persona-step {
        padding: 18px 22px 14px;
    }

    .persona-step h1 {
        margin-bottom: 12px;
        font-size: 1.75rem;
    }

    .persona-step .step-desc {
        margin-bottom: 16px;
    }

    .persona-page-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .persona-mini-card {
        padding: 13px;
    }

    .persona-mini-card legend {
        font-size: 0.9rem;
    }

    .persona-mini-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .persona-choice span {
        min-height: 46px;
        padding: 8px 10px;
        font-size: 0.76rem;
        line-height: 1.28;
    }

    .signup-step[data-step="0"] h1 {
        margin-bottom: 22px;
        font-size: 1.88rem;
    }

    .signup-step[data-step="0"] .step-fields {
        gap: 11px;
    }

    .signup-avatar-picker {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
        margin-top: 24px;
        padding: 14px;
    }

    .signup-avatar-preview {
        width: 96px;
        height: 96px;
    }

    .content-column,
    .profile-hero,
    .panel-card,
    .friend-grid,
    .friend-card,
    .friend-card-copy {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .content-column {
        gap: 16px;
    }

    .friends-hero,
    .panel-card {
        padding: 18px;
    }

    .friend-card {
        grid-template-columns: 68px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 14px;
        overflow: hidden;
    }

    .friend-card > .avatar-large {
        width: 68px;
        height: 68px;
    }

    .friend-card-copy > span,
    .friend-card-copy > p {
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    .friend-mini-stats {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
    }

    .friend-card-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .friend-card-actions .ghost-button,
    .friend-card-actions .follow-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .profile-search-card {
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: start;
        gap: 10px 12px;
    }

    .profile-search-card > .avatar-small {
        width: 48px;
        height: 48px;
    }

    .profile-search-copy span {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    .profile-search-copy .match-reasons,
    .profile-search-copy .match-summary {
        text-overflow: clip;
    }

    .profile-search-actions {
        grid-column: 2;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .profile-search-actions .match-chip {
        min-height: 32px;
    }

    .profile-hero-copy {
        min-width: 0;
    }

    .profile-hero .bio-line,
    .profile-hero .persona-note {
        padding: 12px 14px;
        border-radius: 14px;
        line-height: 1.55;
    }

    .profile-hero .bio-line {
        background: rgba(255, 255, 255, 0.66);
        border: 1px solid rgba(232, 211, 191, 0.72);
    }

    .profile-hero .persona-note {
        margin-top: 8px;
        background: rgba(223, 241, 173, 0.34);
        color: #58612f;
    }
}

@media (max-width: 760px) {
    .welcome-page {
        place-items: start center;
        padding: 0;
        background: #fff9f4;
    }

    .welcome-shell {
        width: 100%;
        min-height: 100dvh;
        grid-template-columns: 1fr;
        align-content: start;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .welcome-brand {
        padding: 14px 14px 0;
    }

    .profile-section-tabs {
        margin: 0 -14px;
    }

    .profile-section-tabs a {
        min-height: 54px;
        font-size: 0.96rem;
    }

    .owner-account-profile {
        min-height: calc(100dvh - 190px);
        gap: 34px;
        margin: 0 -14px;
        padding: 52px 24px calc(110px + env(safe-area-inset-bottom));
    }

    .owner-account-avatar {
        width: 132px;
        height: 132px;
        font-size: 2.5rem;
    }

    .owner-account-row {
        min-height: 72px;
    }

    .owner-account-row > span:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .owner-account-edit form {
        grid-template-columns: 1fr;
    }

    .owner-account-edit form .primary-button {
        width: 100%;
    }

    .welcome-brand-image {
        aspect-ratio: 16 / 8;
    }

    .welcome-brand-copy {
        padding: 16px 2px 18px;
    }

    .welcome-brand-copy h1 {
        font-size: clamp(2.55rem, 13vw, 3.6rem);
    }

    .welcome-brand-copy > p:last-child {
        margin-top: 12px;
        font-size: 0.96rem;
    }

    .welcome-paths {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 10px;
        padding: 0 14px calc(24px + env(safe-area-inset-bottom));
        background: #fff9f4;
    }

    .welcome-auth-options {
        gap: 16px;
        padding: 0 20px calc(24px + env(safe-area-inset-bottom));
    }

    .social-login-row {
        gap: 22px;
    }

    .social-login-circle {
        width: 68px;
        height: 68px;
    }

    .social-login-kakao .social-login-circle,
    .social-login-google .social-login-circle {
        font-size: 1.8rem;
    }

    .welcome-path {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        align-content: center;
        gap: 10px;
        min-height: 142px;
        padding: 16px 10px;
        text-align: center;
    }

    .welcome-path-icon {
        width: 46px;
        height: 46px;
    }

    .welcome-path-copy strong {
        font-size: 1rem;
    }

    .welcome-path-copy span {
        display: none;
    }

    .welcome-path-arrow {
        display: none;
    }

    .welcome-google-help {
        margin-top: 2px;
        font-size: 0.78rem;
    }

    .pet-onboarding-callout {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 20px 18px;
    }

    .pet-onboarding-callout .primary-button {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }

    .pet-onboarding-callout-icon {
        width: 46px;
        height: 46px;
    }

    .pet-onboarding-callout h2 {
        font-size: 1.15rem;
    }

    .match-invite-page {
        place-items: start center;
        padding: 0;
        background: #fffaf6;
    }

    .match-invite-shell {
        width: 100%;
        min-height: 100dvh;
        padding: 18px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .match-invite-hero,
    .match-result {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        padding: 20px;
        text-align: center;
    }

    .match-invite-hero .avatar-xl {
        width: 92px;
        height: 92px;
    }

    .match-invite-hero h1 {
        font-size: 2rem;
    }

    .match-score-ring {
        width: 132px;
    }

    .match-reason-list {
        justify-content: center;
    }

    .match-link-box {
        grid-template-columns: 1fr;
    }

    .match-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .persona-mini-options {
        grid-template-columns: 1fr;
    }

    .persona-choice span {
        min-height: 42px;
        padding: 8px 14px;
        font-size: 0.88rem;
        line-height: 1.24;
    }
}

/* Public feed shown before sign-in. */
.guest-sidebar-actions {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.guest-sidebar-actions .primary-button,
.guest-sidebar-actions .ghost-button {
    width: 100%;
    justify-content: center;
}

.guest-feed-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 4px 20px;
    border-bottom: 1px solid rgba(232, 211, 191, 0.84);
}

.guest-feed-intro h1,
.guest-join-panel h2,
.guest-gate-dialog h2 {
    margin: 5px 0 8px;
}

.guest-feed-intro p:last-child,
.guest-join-panel > p,
.guest-gate-dialog > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.guest-intro-cta {
    flex: 0 0 auto;
}

.guest-mobile-topbar {
    display: none;
}

.guest-profile-button {
    min-width: 0;
    text-align: left;
}

.guest-author-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.guest-author-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-author-copy .meta-line {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.3;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.guest-post-image {
    cursor: default;
}

.guest-comment-prompt {
    width: calc(100% - 44px);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 22px 22px;
    padding: 0 14px;
    border: 1px solid rgba(232, 211, 191, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--muted);
    text-align: left;
}

.guest-empty-feed {
    min-height: 240px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--muted);
}

.guest-empty-feed i {
    font-size: 2rem;
    color: var(--accent);
}

.guest-join-panel {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(236, 216, 199, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.guest-join-panel .primary-button {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.guest-existing-link {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

.guest-ranking-panel .ranking-item {
    width: 100%;
    text-align: left;
}

.guest-gate-dialog {
    position: relative;
    display: grid;
    justify-items: center;
    padding: 34px;
    text-align: center;
}

.guest-gate-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.guest-gate-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.45rem;
}

.guest-gate-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.guest-gate-actions .primary-button,
.guest-gate-actions .ghost-button {
    min-width: 0;
    justify-content: center;
    text-align: center;
}

.panel-open {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .guest-sidebar-actions .primary-button,
    .guest-sidebar-actions .ghost-button {
        padding-inline: 6px;
        font-size: 0.72rem;
    }
}

@media (max-width: 860px) {
    .guest-app-shell {
        padding-top: 0;
    }

    .guest-mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 25;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 0 10px;
        background: linear-gradient(180deg, rgba(249, 242, 228, 0.98), rgba(249, 242, 228, 0.9), transparent);
    }

    .guest-mobile-topbar .brand-image-mark {
        width: 188px;
        min-height: 64px;
        border-radius: 16px;
    }

    .guest-mobile-topbar .brand-logo-image {
        width: 188px;
        height: 64px;
        min-height: 64px;
    }

    .guest-login-button {
        flex: 0 0 auto;
    }

    .guest-feed-intro {
        align-items: flex-start;
        padding: 12px 4px 18px;
    }

    .guest-feed-intro h1 {
        font-size: clamp(1.7rem, 7vw, 2.25rem);
    }

    .guest-intro-cta {
        display: none;
    }

    .guest-mobile-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .guest-feed-page .app-shell {
        padding-inline: 10px;
    }

    .guest-mobile-topbar .brand-image-mark,
    .guest-mobile-topbar .brand-logo-image {
        width: 154px;
    }

    .guest-feed-intro p:last-child {
        font-size: 0.9rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .guest-post-card .post-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 14px;
    }

    .guest-post-card .guest-profile-button {
        width: 100%;
        overflow: visible;
    }

    .guest-post-card .post-header-tools {
        max-width: none;
        padding: 4px;
    }

    .guest-post-card .post-header-tools .follow-button {
        padding-inline: 12px;
    }

    .guest-post-card .dog-social-actions {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 12px 14px 0;
    }

    .guest-post-card .dog-social-actions .dog-action-button,
    .guest-post-card .dog-social-actions .icon-button {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        justify-content: center;
        gap: 4px;
        margin-left: 0;
        padding: 0 4px;
        border-radius: 12px;
    }

    .guest-post-card .dog-social-actions .dog-action-button i,
    .guest-post-card .dog-social-actions .reaction-emoji {
        font-size: 1.08rem;
    }

    .guest-post-card .dog-social-actions .dog-action-button strong {
        font-size: 0.96rem;
    }

    .guest-gate-dialog {
        padding: 32px 18px 22px;
    }

    .guest-gate-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .email-auth-page {
        padding: 0;
    }

    .email-auth-shell {
        width: 100%;
    }

    .email-auth-card {
        min-height: 100dvh;
        border-width: 0;
        border-radius: 0;
        padding: 72px 20px 32px;
        box-shadow: none;
    }

    .email-auth-back {
        top: 16px;
        left: 16px;
    }

    .email-auth-brand img {
        width: min(280px, 82%);
    }

    .login-provider-button {
        min-height: 54px;
        padding-right: 48px;
        padding-left: 48px;
        font-size: 0.96rem;
    }

    .login-provider-icon {
        left: 18px;
    }
}

