html, body {
    height: 100%;
}

html {
    background-color: #eef7f6;
}

body {
    background: transparent;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 92px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #eef7f6;
    z-index: -1;
}

/* Menu */
.board-shortcut {
    position: absolute;
    top: 12px;
    right: 64px;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #006a7a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
    transition: transform 0.08s ease, opacity 0.2s ease;
}
.board-shortcut:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}
.board-shortcut:active {
    transform: translateY(1px) scale(0.98);
}
.menu-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 60;
    box-shadow: none;
    transition: transform 0.08s ease, opacity 0.2s ease;
}
.menu-toggle:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}
.menu-toggle:active {
    transform: translateY(1px) scale(0.98);
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #006a7a;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.18);
}
.menu-panel {
    position: absolute;
    top: 56px;
    right: 12px;
    width: 140px;
    background: rgba(238, 246, 249, 0.97);
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    backdrop-filter: blur(18px);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 59;
}
.menu-panel.open {
    display: flex;
}
.menu-item {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 700;
    color: #0b5e71;
    text-decoration: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.06s ease, color 0.2s ease, background 0.2s ease;
}
.menu-item:hover {
    transform: translateY(-1px);
    color: #003d49;
    background: rgba(0, 152, 178, 0.08);
}
.menu-item:active {
    transform: translateY(1px);
}
.menu-item-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu-item-meta {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(0, 152, 178, 0.14);
    color: #0b5e71;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
}

.container.py-5 {
    padding-top: 0 !important;
}

.card-outer {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 32px rgba(0,120,200,0.10);
    margin: 6vw auto 4vw auto;
    padding: 4vw 0.8rem 2vw 0.8rem;
    width: 340px;
    max-width: 96vw;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.main-title {
    font-size: 0.97rem;
    font-weight: 900;
    color: #0f5f7f;
    letter-spacing: -0.02em;
    text-align: left;
}

.main-desc {
    font-size: 0.89rem;
    color: #376777;
    text-align: left;
    margin-bottom: 1.2rem;
}

.header-block {
    width: 100%;
    max-width: 96vw;
    padding: 0 0.7rem;
}

.header-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #0098b2;
    background: linear-gradient(120deg, #006a7a 0%, #0098b2 5%, #00b0c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    margin: 0.2rem 0 0.45rem;
    text-align: left;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
}

.header-title:hover {
    color: #008aa1;
    background: linear-gradient(120deg, #005a68 0%, #008aa1 5%, #00a4ba 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-logo-title {
    gap: 0.45rem;
    align-items: center;
}

.header-logo-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}

.header-logo-text {
    display: inline-block;
    line-height: 1;
}

.visit-stats-inline {
    width: calc(100% - 1.2rem);
    margin: -0.2rem 0.6rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    color: #5a7c8a;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.visit-stats-copy {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.home-filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.home-filter-save-btn {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    color: #6d8594;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.08s ease;
}

.home-filter-save-btn:hover {
    color: #2e6f95;
}

.home-filter-save-btn:active {
    transform: translateY(1px);
}

.home-filter-save-btn.saved {
    color: #c98a12;
}

.home-filter-save-btn.saved:hover {
    color: #b97d0b;
}

.home-filter-save-btn i {
    font-size: 0.8rem;
}

.home-filter-apply-btn {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    color: #2f7196;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.08s ease, opacity 0.18s ease;
}

.home-filter-apply-btn:hover {
    color: #12547a;
}

.home-filter-apply-btn:active {
    transform: translateY(1px);
}

.home-filter-apply-btn.active {
    color: #0f5f7f;
}

.home-filter-apply-btn:disabled {
    opacity: 0.46;
    cursor: default;
}

.home-filter-apply-btn i {
    font-size: 0.78rem;
}


.campaign-card {
    box-shadow: 0 4px 24px rgba(33,150,243,0.10);
    border-radius: 16px;
    margin-bottom: 10px;
    background: #e8f2fc;
    padding: 0.7rem 0.7rem;
    max-width: 340px;
    min-width: 180px;
    margin-left: auto;
    margin-right: auto;
    min-height: unset;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    transition: box-shadow 0.2s, background 0.2s;
    flex-wrap: nowrap;
    gap: 10px;
}

.record-add-toggle {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #55717d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.08s ease, color 0.2s ease, background 0.2s ease;
    z-index: 3;
}

.record-add-toggle:hover {
    color: #0a7483;
    background: #ffffff;
}

.record-add-toggle.stored {
    background: rgba(10, 116, 131, 0.14);
    color: #0a7483;
}

.record-add-toggle.stored:hover {
    background: rgba(10, 116, 131, 0.2);
    color: #08616d;
}

.record-add-toggle:active {
    transform: translateY(1px) scale(0.98);
}

.record-add-toggle:disabled {
    cursor: wait;
    opacity: 0.55;
}

.row.g-0 {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.campaign-card:hover {
    box-shadow: 0 8px 32px rgba(33,150,243,0.16);
    background: #d0e3fa;
}

.coupang-notice {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.2px;
}
.coupang-notice-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.coupang-notice-link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.9);
    outline-offset: 2px;
}
.coupang-notice strong {
    font-weight: 900;
    color: #0b1220;
}
.coupang-notice-em {
    display: inline-block;
    color: #b91c1c;
    font-weight: 800;
}

/* Coupang footer ad */
.coupang-footer-ad {
    margin: 18px auto 10px;
    width: min(560px, 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 0;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
}
.coupang-footer-link { display: block; }
.coupang-footer-image { display: block; width: 100%; height: auto; }
.coupang-footer-notice {
    background: rgba(255, 255, 255, 0.86);
    color: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}
.coupang-footer-disclaimer {
    padding: 10px 14px 12px;
    background: rgba(2, 6, 23, 0.82);
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.2px;
}

.card-left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
    gap: 4px;
}

.card-logo {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
}

.platform-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
}

.sns-chip {
    min-width: 44px;
    width: 44px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}


.platform-dinnerqueen {
    background: #f96aa7;
}

.platform-gangnam {
    background: #ff8a00;
}

.platform-reviewnote {
    background: #2ec4b6;
}

.platform-fourblog {
    background: #c9a7ff;
}

.platform-seoulouba {
    background: #67a7f8;
}

.platform-assaview {
    background: #21c4f3;
}

.platform-revu {
    background: #9f6bff;
}

.platform-mibl {
    background: #ffc145;
    color: #3b2a00;
}

.platform-unknown {
    background: #9e9e9e;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 0;
}

.campaign-title {
    font-size: 0.91rem;
    font-weight: 600;
    color: #1565c0;
    margin: 0 0 2px 0;
    word-break: break-all;
    text-align: left;
    width: 100%;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.campaign-title:hover {
    color: #1976d2;
    text-decoration: underline;
}

/* 툴팁 관련 코드 제거됨 */

.card-meta {
    font-size: 0.72rem;
    color: #7b8fa6;
    margin: 0 0 0 0;
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
}

/* possibleDaysTimes 스타일 */
.possible-days-times {
    color: #2e7d32 !important;
    font-size: 0.68rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 280px;
    position: relative;
}

.footer {
    text-align: center;
    margin-top: 2.2rem;
    margin-bottom: 0.85rem;
    color: #7a9aa5;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
}

.bottom-tab-panels {
    width: 100%;
}

.bottom-tab-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin: 0.8rem auto 0;
    padding: 1.2rem 1rem;
    border-radius: 18px;
    background: #eef7fa;
    border: 0;
    box-shadow: 0 8px 28px rgba(33, 150, 243, 0.12);
    text-align: left;
}

.bottom-tab-panel[hidden] {
    display: none !important;
}

.tab-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 152, 178, 0.12);
    color: #007c91;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bottom-tab-panel h2 {
    margin: 0.8rem 0 0.45rem;
    color: #0f5f7f;
    font-size: 1.22rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.bottom-tab-panel p {
    margin: 0;
    color: #376777;
    font-size: 0.9rem;
    line-height: 1.65;
    letter-spacing: -0.03em;
}

.account-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tab-panel-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tab-panel-list span {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 38px;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: #0b5e71;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tab-panel-list i {
    width: 18px;
    color: #0098b2;
    text-align: center;
}

.tab-contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(0, 152, 178, 0.14);
    border: 0;
}

.tab-contact-box strong {
    display: block;
    color: #0f5f7f;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.tab-contact-box p {
    margin-top: 0.25rem;
    color: #4c7381;
    font-size: 0.78rem;
    line-height: 1.45;
}

.tab-contact-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 38px;
    padding: 0 0.85rem;
    border: none;
    border-radius: 999px;
    background: #0098b2;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 88, 110, 0.16);
    transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tab-contact-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 88, 110, 0.22);
}

.tab-contact-copy.copied {
    background: #0f5f7f;
}

.auth-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    margin-top: 0;
    padding: 1.45rem 1.15rem 1.25rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-mode-signup,
.auth-mode-reset {
    min-height: 448px;
}

.auth-mode-profile {
    min-height: 390px;
}

.auth-view-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.auth-view-head h2 {
    margin: 0;
    color: #102f3b;
    font-size: 1.56rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
}

.auth-mark {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #edf8fa;
    color: #007c91;
    box-shadow: inset 0 0 0 1px rgba(0, 124, 145, 0.08);
}

.auth-icon-action {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: #edf8fa;
    color: #007c91;
    box-shadow: inset 0 0 0 1px rgba(0, 124, 145, 0.08);
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.08s ease;
}

.auth-icon-action:hover {
    background: #dff2f5;
    color: #075f6b;
}

.auth-icon-action:active {
    transform: translateY(1px);
}

.auth-mode-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
    margin-bottom: 0.9rem;
    padding: 0.25rem;
    border-radius: 14px;
    background: rgba(0, 152, 178, 0.08);
}

.auth-mode-tabs button {
    min-height: 38px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: #376777;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.auth-mode-tabs button.active {
    background: #ffffff;
    color: #0f5f7f;
    box-shadow: 0 6px 14px rgba(0, 88, 110, 0.10);
}

.auth-form {
    display: none;
    gap: 0.78rem;
}

.auth-form.active {
    display: grid;
}

.auth-form label:not(.auth-field):not(.auth-check) {
    color: #0f5f7f;
    font-size: 0.85rem;
    font-weight: 900;
}

.auth-field {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

.auth-field i {
    position: absolute;
    left: 0.95rem;
    top: 26px;
    transform: translateY(-50%);
    z-index: 1;
    width: 18px;
    color: #7c98a3;
    font-size: 0.88rem;
    text-align: center;
    pointer-events: none;
}

.auth-form input:not([type="checkbox"]),
.auth-form select {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f3f8fa;
    color: #102f3b;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0 0.95rem 0 2.75rem;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-form select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.4rem;
}

.auth-form input:not([type="checkbox"]):focus,
.auth-form select:focus {
    background: #ffffff;
    border-color: #0098b2;
    box-shadow: 0 0 0 4px rgba(0, 152, 178, 0.10);
}

.auth-field:focus-within i {
    color: #0098b2;
}

.auth-readonly-field input,
.auth-readonly-field input:focus {
    background: #edf4f6;
    color: #456872;
    border-color: transparent;
    box-shadow: none;
    cursor: default;
}

.auth-email-suggestions {
    display: none;
    grid-template-columns: 1fr;
    gap: 0.34rem;
    margin-top: 0.44rem;
    padding: 0.36rem;
    border: 0;
    border-radius: 12px;
    background: #edf5f7;
    box-shadow: 0 12px 24px rgba(16, 47, 59, 0.08);
}

.auth-email-suggestions.visible {
    display: grid;
}

.auth-form .auth-email-suggestions button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 34px;
    padding: 0 0.62rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #315966;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: left;
    box-shadow: none;
}

.auth-form .auth-email-suggestions button:hover,
.auth-form .auth-email-suggestions button:focus {
    background: #edf5f7;
    color: #0f5362;
    box-shadow: none;
    outline: none;
}

.auth-form button,
.auth-inline-field button,
.auth-profile-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 52px;
    border: none;
    border-radius: 12px;
    background: #0a7483;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(10, 116, 131, 0.16);
    transition: transform 0.08s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-form button:hover,
.auth-inline-field button:hover,
.auth-profile-card button:hover {
    background: #075f6b;
    box-shadow: 0 14px 24px rgba(10, 116, 131, 0.20);
}

.auth-form button:active,
.auth-inline-field button:active,
.auth-profile-card button:active {
    transform: translateY(1px);
}

.auth-form button:disabled,
.auth-inline-field button:disabled,
.auth-profile-card button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.auth-inline-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
}

.auth-inline-field button {
    padding: 0 0.8rem;
    white-space: nowrap;
}

.auth-code-request {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 0.5rem;
    align-items: start;
}

.auth-code-request .auth-code-button {
    width: 128px;
    padding: 0 0.7rem;
    white-space: nowrap;
    background: #e8f1f4;
    color: #244d58;
    border: 1px solid rgba(36, 77, 88, 0.08);
    box-shadow: none;
    font-size: 0.78rem;
}

.auth-code-request .auth-code-button:hover {
    background: #dfecee;
    color: #173d47;
    box-shadow: none;
}

.auth-code-note {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    color: #406c76;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.2s ease, opacity 0.18s ease, transform 0.18s ease;
}

.auth-form.code-sent .auth-code-note {
    max-height: 36px;
    opacity: 1;
    transform: translateY(0);
}

.auth-form.code-verified .auth-code-note {
    color: #2f6d5d;
}

.auth-code-verify-step,
.auth-completion-step {
    display: grid;
    gap: 0.72rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: max-height 0.24s ease, opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.auth-code-verify-step {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 0.46rem;
}

.auth-code-verify-step button {
    box-shadow: none;
    background: #edf4f6;
    color: #234b55;
    border: 1px solid rgba(35, 75, 85, 0.08);
    min-width: 76px;
    padding: 0 0.7rem;
}

.auth-code-verify-step button:hover {
    background: #e2eef1;
    color: #163943;
    box-shadow: none;
}

.auth-form.code-sent .auth-code-verify-step,
.auth-form.code-verified .auth-completion-step {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-form.code-verified .auth-code-verify-step {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
}

.auth-completion-step button[type="submit"] {
    margin-top: 0.05rem;
    background: #0a7483;
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(10, 116, 131, 0.18);
}

.auth-completion-step button[type="submit"]:hover {
    background: #075f6b;
    box-shadow: 0 16px 26px rgba(10, 116, 131, 0.22);
}

.auth-code-button {
    width: 100%;
}

.auth-check-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: -0.1rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #4f6b75;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0a7483;
    cursor: pointer;
}

.auth-check span {
    line-height: 1.2;
}

.auth-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.42rem;
    min-height: 24px;
    margin-top: 0.32rem;
    color: #9aaeb6;
    font-size: 0.75rem;
    font-weight: 800;
}

.auth-link-row.single {
    margin-top: 0;
}

.auth-link-row button {
    min-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #607a85;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: none;
    cursor: pointer;
}

.auth-link-row button:hover {
    color: #006a7a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-status {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.auth-status.success {
}

.auth-status.error {
}

.app-toast-layer {
    position: fixed;
    left: 50%;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 82px);
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 32px));
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 120;
}

.app-toast {
    max-width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.56rem;
    flex-wrap: wrap;
    padding: 0.72rem 0.96rem;
    border-radius: 14px;
    background: rgba(16, 47, 59, 0.94);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 14px 34px rgba(16, 47, 59, 0.22);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
}

.app-toast.has-action {
    justify-content: space-between;
    text-align: left;
}

.app-toast-message {
    min-width: 0;
    flex: 1 1 auto;
}

.app-toast-action {
    min-height: 32px;
    flex: 0 0 auto;
    padding: 0 0.82rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.73rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.app-toast-layer.visible .app-toast {
    opacity: 1;
    transform: translateY(0);
}

.app-toast.success {
    background: rgba(15, 122, 83, 0.96);
}

.app-toast.error {
    background: rgba(180, 35, 24, 0.96);
}

.app-toast[hidden] {
    display: none !important;
}

.auth-account-panel {
    display: flex;
    align-items: center;
    gap: 0.86rem;
    margin-bottom: 0.82rem;
    padding: 0.9rem;
    border-radius: 14px;
    background: #eaf3f6;
    border: 0;
}

.auth-account-panel.compact {
    margin-bottom: 0.72rem;
    padding: 0.72rem;
}

.auth-avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #dfeff2;
    color: #0a6372;
    font-size: 1.04rem;
    font-weight: 900;
}

.auth-avatar.small {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 0.92rem;
}

.auth-account-copy {
    min-width: 0;
}

.auth-account-copy strong,
.auth-account-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-account-copy strong {
    color: #102f3b;
    font-size: 1rem;
    font-weight: 900;
}

.auth-account-copy span {
    margin-top: 0.2rem;
    color: #607a85;
    font-size: 0.74rem;
    font-weight: 800;
}

.auth-profile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.52rem;
    margin-bottom: 0.78rem;
}

.auth-profile-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 46px;
    padding: 0 0.72rem;
    border: 0;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease, transform 0.08s ease;
}

.auth-profile-actions button:active {
    transform: translateY(1px);
}

.auth-secondary-action {
    background: #0a7483;
    color: #ffffff;
}

.auth-secondary-action.active {
    background: #edf4f6;
    color: #234b55;
    border: 1px solid rgba(35, 75, 85, 0.08);
}

.auth-secondary-action.active:hover {
    background: #e2eef1;
    color: #163943;
}

.auth-quiet-action {
    background: #eef4f6;
    color: #365f69;
    border: 1px solid rgba(54, 95, 105, 0.08);
}

.auth-quiet-action:hover {
    background: #e5eef1;
    color: #234b55;
    box-shadow: none;
}

.auth-withdraw-row {
    display: flex;
    justify-content: flex-end;
    margin: 1.2rem 0 0;
}

.auth-withdraw-row a {
    color: #a4b3b8;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.auth-withdraw-row a:hover {
    color: #b42318;
}

.auth-withdraw-row a.disabled {
    color: #b6c3c8;
    pointer-events: none;
}

.record-dashboard {
    display: grid;
    gap: 0.56rem;
    margin: 0;
}

.record-hero {
    display: grid;
    gap: 0.72rem;
    padding: 0.88rem;
    border: 0;
    border-radius: 14px;
    background: #eaf4f6;
    color: #102f3b;
}

.record-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.72rem;
}

.record-hero-top > div {
    min-width: 0;
}

.record-hero-kicker {
    display: block;
    color: #78909a;
    font-size: 0.68rem;
    font-weight: 850;
}

.record-hero h2 {
    margin: 0.16rem 0 0.28rem;
    color: #315966;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.25;
}

.record-hero strong {
    display: block;
    color: #102f3b;
    font-size: 1.38rem;
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.record-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
}

.record-hero-metrics > div {
    min-width: 0;
    padding: 0.52rem 0.58rem;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
}

.record-hero-metrics span,
.record-hero-metrics strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-hero-metrics span {
    color: #78909a;
    font-size: 0.62rem;
    font-weight: 900;
}

.record-hero-metrics strong {
    margin-top: 0.12rem;
    color: #102f3b;
    font-size: 0.78rem;
    font-weight: 950;
}

.record-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.72rem;
}

.record-dashboard-head strong,
.record-dashboard-head span {
    display: block;
}

.record-dashboard-head strong {
    color: #102f3b;
    font-size: 0.96rem;
    font-weight: 900;
}

.record-dashboard-head span {
    margin-top: 0.12rem;
    color: #7a929b;
    font-size: 0.68rem;
    font-weight: 800;
}

.record-add-manual {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-height: 32px;
    padding: 0 0.62rem;
    border: 0;
    border-radius: 10px;
    background: #eaf2f5;
    color: #315966;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
}

.record-add-manual:hover {
    background: #ddebef;
}

.record-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.34rem;
    padding: 0;
    border: 0;
}

.record-summary-strip > button,
.record-summary-item {
    min-width: 0;
    min-height: 54px;
    display: grid;
    align-content: center;
    padding: 0.44rem 0.5rem;
    border: 0;
    border-radius: 10px;
    background: #eef4f7;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.record-summary-strip > button.active {
    background: #c5e6e8;
    color: #0f4f5d;
    box-shadow: inset 0 0 0 1px rgba(10, 116, 131, 0.08);
}

.record-summary-strip > button:hover {
    background: #e2edf1;
}

.record-summary-strip span,
.record-summary-strip strong,
.record-summary-item span,
.record-summary-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-summary-strip span,
.record-summary-item span {
    color: #6b858f;
    font-size: 0.62rem;
    font-weight: 900;
}

.record-summary-strip strong,
.record-summary-item strong {
    margin-top: 0.18rem;
    color: #102f3b;
    font-size: 0.82rem;
    font-weight: 950;
}

.record-list {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(16, 47, 59, 0.08);
}

.record-list-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(16, 47, 59, 0.08);
}

.record-list-toolbar-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.42rem;
}

.record-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #234b55;
    font-size: 0.68rem;
    font-weight: 900;
}

.record-select-all input,
.record-row-select input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #0a7483;
}

.record-list-toolbar-meta {
    min-width: 0;
    flex: 0 1 auto;
    color: #6f8792;
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
}

.record-bulk-delete {
    min-height: 30px;
    padding: 0 0.72rem;
    border: 1px solid rgba(180, 35, 24, 0.12);
    border-radius: 10px;
    background: #fff5f4;
    color: #b42318;
    font-size: 0.66rem;
    font-weight: 900;
    cursor: pointer;
}

.record-bulk-delete:disabled {
    opacity: 0.45;
    cursor: default;
}

.record-empty {
    padding: 1rem 0.82rem;
    border-radius: 0;
    background: transparent;
    color: #78909a;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.record-empty-polished {
    display: grid;
    gap: 0.3rem;
    border-bottom: 1px solid rgba(16, 47, 59, 0.08);
}

.record-empty-polished strong {
    color: #102f3b;
    font-size: 0.82rem;
    font-weight: 900;
}

.record-empty-polished span {
    color: #78909a;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.45;
}

.record-empty.error {
    color: #b42318;
    background: rgba(180, 35, 24, 0.07);
}

.record-row {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1.4fr) auto;
    grid-template-areas:
        "marker main actions"
        "marker money money"
        "marker dates checks";
    gap: 0.24rem 0.54rem;
    padding: 0.58rem 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(16, 47, 59, 0.08);
    cursor: pointer;
    transition: background 0.16s ease;
}

.record-row.selectable {
    grid-template-columns: 22px minmax(0, 1.4fr) auto;
}

.record-row:hover {
    background: rgba(10, 116, 131, 0.04);
}

.record-row.expired {
    background: rgba(16, 47, 59, 0.03);
}

.record-row.expired:hover {
    background: rgba(16, 47, 59, 0.05);
}

.record-row.expired .record-row-titleline strong,
.record-row.expired .record-row-money strong {
    color: #5e727b;
}

.record-row.expired .record-row-meta-text,
.record-row.expired .record-row-dates {
    color: #7f939b;
}

.record-row-marker {
    grid-area: marker;
    width: 7px;
    height: 7px;
    margin-top: 0.36rem;
    border-radius: 999px;
    background: #0a7483;
}

.record-row.interested .record-row-marker {
    display: none;
}

.record-row-main {
    grid-area: main;
    min-width: 0;
}

.record-row-titleline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.56rem;
}

.record-row-titleline strong,
.record-row-main span {
    display: block;
}

.record-row-titleline strong {
    color: #102f3b;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.record-row-meta-text {
    margin-top: 0.08rem;
    color: #78909a;
    font-size: 0.66rem;
    font-weight: 800;
}

.record-row-expired-badge {
    width: fit-content;
    margin-top: 0.28rem;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    background: rgba(16, 47, 59, 0.08);
    color: #5e727b;
    font-size: 0.56rem;
    font-weight: 900;
}

.record-row-money {
    grid-area: money;
    display: flex;
    align-items: baseline;
    gap: 0.44rem;
    min-width: 0;
}

.record-row-money span {
    color: #6b858f;
    font-size: 0.68rem;
    font-weight: 800;
}

.record-row-money strong {
    color: #102f3b;
    font-size: 0.74rem;
    font-weight: 950;
}

.record-row-dates {
    grid-area: dates;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.38rem;
    color: #6b858f;
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
}

.record-row-checks {
    grid-area: checks;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.2rem;
}

.record-row-checks span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 0.34rem;
    border-radius: 999px;
    background: #f1f5f6;
    color: #96a8ae;
    font-size: 0.58rem;
    font-weight: 900;
}

.record-row-checks span.done {
    background: #e8f5f0;
    color: #0f7a53;
}

.record-row-actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.3rem;
}

.record-row-select {
    grid-area: marker;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    margin-top: 0.1rem;
}

.record-row-actions button,
.record-editor-head button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f1f6f7;
    color: #607a85;
    cursor: pointer;
}

.record-row-actions button {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 0.72rem;
}

.record-row-actions button:hover,
.record-editor-head button:hover {
    background: #e5eef1;
    color: #234b55;
}

.record-row-expired-actions {
    grid-area: checks;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.3rem;
}

.record-row-expired-actions button {
    min-height: 30px;
    padding: 0 0.68rem;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    opacity: 1;
}

.record-row-expired-actions button i {
    font-size: 0.68rem;
}

.record-row-expired-actions .danger {
    background: #d64545;
}

.record-row-expired-actions .success {
    background: #1f9d67;
}

.record-editor[hidden] {
    display: none;
}

.record-editor {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 max(0px, env(safe-area-inset-bottom));
}

.record-editor.record-detail-overlay {
    align-items: center;
    padding: 1rem;
}

.record-editor-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 39, 0.42);
    backdrop-filter: blur(2px);
}

.record-editor-sheet {
    position: relative;
    width: min(100%, 520px);
    max-height: min(82vh, 760px);
    overflow-y: auto;
    display: grid;
    gap: 0.62rem;
    padding: 0.58rem 0.92rem 0.95rem;
    border: 0;
    border-radius: 18px 18px 0 0;
    background: #f8fcfd;
    box-shadow: 0 -18px 48px rgba(12, 44, 54, 0.2);
    animation: recordSheetUp 0.2s ease-out;
}

@keyframes recordSheetUp {
    from {
        transform: translateY(24px);
        opacity: 0.88;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.record-sheet-handle {
    justify-self: center;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d5e1e5;
}

body.record-sheet-open {
    overflow: hidden;
}

.record-editor-grid,
.record-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
}

.record-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.record-editor-head strong {
    display: block;
    color: #102f3b;
    font-size: 0.95rem;
    font-weight: 900;
}

.record-editor-head span {
    display: block;
    margin-top: 0.1rem;
    color: #7a929b;
    font-size: 0.68rem;
    font-weight: 800;
}

.record-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
}

.record-check-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: #edf4f6;
    color: #315966;
    font-size: 0.72rem;
    font-weight: 900;
}

.record-check-grid input {
    width: 15px;
    min-height: auto;
    height: 15px;
    padding: 0;
    margin: 0;
    accent-color: #0a7483;
}

.record-editor label {
    display: grid;
    gap: 0.26rem;
    color: #607a85;
    font-size: 0.66rem;
    font-weight: 900;
}

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

.record-tag-field {
    position: relative;
    display: grid;
    gap: 0.26rem;
    min-width: 0;
}

.record-field-label {
    color: #607a85;
    font-size: 0.66rem;
    font-weight: 900;
}

.record-tag-control {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-bottom: 1px solid #d8e3e6;
    border-radius: 0;
    background: transparent;
    padding: 0.1rem 0;
    cursor: pointer;
    outline: none;
}

.record-tag-control:focus,
.record-tag-field.open .record-tag-control {
    border-color: #0a7483;
    box-shadow: none;
}

.record-tag-placeholder {
    color: #9aaeb5;
    font-size: 0.74rem;
    font-weight: 800;
}

.record-tag-chip {
    max-width: 100%;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.16rem 0.42rem;
    border-radius: 5px;
    color: #2d3338;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.record-tag-remove {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: rgba(45, 51, 56, 0.5);
    font-size: 0.68rem;
    cursor: pointer;
}

.record-tag-remove:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(45, 51, 56, 0.78);
}

.tone-purple { background: #e8d7f4; }
.tone-blue { background: #cfe3fb; }
.tone-gray { background: #e2e2df; }
.tone-yellow { background: #efe2b8; }
.tone-rose { background: #f2d0ce; }
.tone-sky { background: #d7f2fb; }
.tone-sand { background: #ecd8c9; }
.tone-mint { background: #cce6d6; }
.tone-pink { background: #f0d3df; }
.tone-peach { background: #f1d8c9; }

.record-tag-menu {
    position: absolute;
    top: calc(100% + 0.34rem);
    left: 0;
    right: 0;
    z-index: 4;
    min-width: 210px;
    max-height: min(320px, 54vh);
    overflow-y: auto;
    border: 0;
    border-radius: 10px;
    background: #f5fafb;
    box-shadow: 0 14px 40px rgba(12, 44, 54, 0.16);
}

.record-date-field {
    position: relative;
    display: grid;
    gap: 0.26rem;
    min-width: 0;
}

.record-date-control {
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    border-bottom: 1px solid #d8e3e6;
    border-radius: 0;
    background: transparent;
    color: #102f3b;
    font-size: 0.75rem;
    font-weight: 850;
    text-align: left;
    padding: 0.1rem 0;
    cursor: pointer;
}

.record-date-control.empty {
    color: #9aaeb5;
}

.record-date-control i {
    color: #78909a;
    font-size: 0.78rem;
}

.record-date-field.open .record-date-control,
.record-date-control:focus {
    border-color: #0a7483;
    outline: none;
}

.record-date-popover {
    position: absolute;
    top: calc(100% + 0.44rem);
    left: 0;
    z-index: 5;
    width: min(286px, calc(100vw - 34px));
    padding: 0.72rem;
    border: 0;
    border-radius: 12px;
    background: #f5fafb;
    box-shadow: 0 16px 42px rgba(12, 44, 54, 0.17);
}

.record-date-dialog-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}

.record-date-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 28, 36, 0.48);
    pointer-events: auto;
}

.record-date-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(320px, calc(100vw - 36px));
    padding: 0.82rem;
    border-radius: 14px;
    border: 0;
    background: #f8fcfd;
    box-shadow: 0 18px 54px rgba(12, 44, 54, 0.22);
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.record-date-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.56rem;
    margin-bottom: 0.52rem;
}

.record-date-dialog-head strong {
    color: #102f3b;
    font-size: 0.84rem;
    font-weight: 950;
}

.record-date-dialog-head button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #f1f6f7;
    color: #607a85;
    cursor: pointer;
}

.record-editor-grid .record-date-field:nth-last-child(1) .record-date-popover {
    left: auto;
    right: 0;
}

.record-date-calendar-head {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 0.34rem;
    margin-bottom: 0.55rem;
}

.record-date-calendar-head strong {
    color: #102f3b;
    font-size: 0.82rem;
    font-weight: 950;
    text-align: center;
}

.record-date-calendar-head button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #f3f7f8;
    color: #607a85;
    cursor: pointer;
}

.record-date-calendar-head button:hover,
.record-date-calendar-head button:focus {
    background: #e7eff1;
    outline: none;
}

.record-date-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.16rem;
}

.record-date-weekday,
.record-date-empty,
.record-date-days button {
    width: 30px;
    height: 30px;
    justify-self: center;
}

.record-date-weekday {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8aa0a7;
    font-size: 0.62rem;
    font-weight: 900;
}

.record-date-days button {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #315966;
    font-size: 0.72rem;
    font-weight: 850;
    cursor: pointer;
}

.record-date-days button:hover,
.record-date-days button:focus {
    background: #f0f5f6;
    outline: none;
}

.record-date-days button.today {
    color: #0a7483;
    box-shadow: inset 0 0 0 1px rgba(10, 116, 131, 0.26);
}

.record-date-days button.selected {
    background: #0a7483;
    color: #ffffff;
    box-shadow: none;
}

.record-date-calendar-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.34rem;
    margin-top: 0.62rem;
    padding-top: 0.56rem;
    border-top: 1px solid rgba(16, 47, 59, 0.06);
}

.record-date-calendar-foot button {
    min-height: 28px;
    border: 0;
    border-radius: 8px;
    background: #f3f7f8;
    color: #315966;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0 0.56rem;
    cursor: pointer;
}

.record-date-inline-prompt {
    margin-top: 0.56rem;
    color: #b42318;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.4;
}

.record-date-calendar-foot button.primary {
    background: #0a7483;
    color: #ffffff;
}

.record-date-calendar-foot button:disabled {
    opacity: 0.45;
    cursor: default;
}

.record-date-calendar-foot button:hover,
.record-date-calendar-foot button:focus {
    background: #e7eff1;
    outline: none;
}

.record-date-calendar-foot button.primary:hover,
.record-date-calendar-foot button.primary:focus {
    background: #08616d;
}

.record-editor-grid .record-tag-field:nth-child(3) .record-tag-menu {
    right: auto;
    width: min(420px, calc(100vw - 28px));
}

.record-tag-search {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.34rem 0.54rem;
    border-bottom: 1px solid rgba(16, 47, 59, 0.06);
}

.record-tag-search > span {
    flex: 0 0 auto;
    min-width: 0;
}

.record-tag-search input {
    min-height: 30px;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    font-size: 0.78rem;
}

.record-tag-search input:focus {
    border: 0;
    box-shadow: none;
}

.record-tag-menu-title {
    padding: 0.62rem 0.72rem 0.34rem;
    color: #68777d;
    font-size: 0.68rem;
    font-weight: 800;
}

.record-tag-option-list {
    display: grid;
    gap: 0.08rem;
    padding: 0 0.34rem 0.4rem;
}

.record-tag-option {
    min-height: 34px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 0.44rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    padding: 0 0.36rem;
    text-align: left;
    cursor: pointer;
}

.record-tag-option:hover,
.record-tag-option:focus {
    background: #f1f0ed;
    outline: none;
}

.record-tag-option > i {
    color: #9a9a95;
    font-size: 0.74rem;
}

.record-tag-option .record-tag-chip {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-tag-more {
    color: #9a9a95;
    font-size: 0.82rem;
    letter-spacing: 0;
    text-align: right;
    opacity: 0;
}

.record-tag-option:hover .record-tag-more,
.record-tag-option:focus .record-tag-more {
    opacity: 1;
}

.record-tag-create {
    width: calc(100% - 0.68rem);
    min-height: 34px;
    margin: 0 0.34rem 0.4rem;
    border: 0;
    border-radius: 7px;
    background: #f7fafb;
    color: #315966;
    font-size: 0.74rem;
    font-weight: 850;
    text-align: left;
    padding: 0 0.58rem;
    cursor: pointer;
}

.record-tag-create:hover,
.record-tag-create:focus {
    background: #eef4f6;
    outline: none;
}

.record-editor input,
.record-editor select,
.record-editor textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-bottom: 1px solid #d8e3e6;
    border-radius: 0;
    background: transparent;
    color: #102f3b;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.1rem 0;
    outline: none;
}

.record-editor textarea {
    min-height: 64px;
    padding: 0.46rem 0 0.3rem;
    resize: vertical;
}

.record-extra-fields {
    border: 0;
    border-radius: 12px;
    background: #f3f8fa;
    overflow: hidden;
}

.record-extra-fields summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.72rem;
    color: #315966;
    font-size: 0.74rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

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

.record-extra-fields summary::after {
    content: "+";
    color: #7a929b;
    font-size: 1rem;
    line-height: 1;
}

.record-extra-fields[open] summary::after {
    content: "-";
}

.record-extra-grid {
    padding: 0 0.72rem 0.72rem;
}

.record-extra-grid label:first-child {
    grid-column: 1 / -1;
}

.record-extra-grid .record-extra-full {
    grid-column: 1 / -1;
}

.record-editor input:focus,
.record-editor select:focus,
.record-editor textarea:focus {
    border-color: #0a7483;
    box-shadow: none;
}

.record-editor-submit {
    position: sticky;
    bottom: -0.95rem;
    margin: 0 -0.92rem -0.95rem;
    padding: 0.62rem 0.92rem 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), #ffffff 35%);
}

.record-editor button[type="submit"] {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    background: #0a7483;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
}

.record-detail-card {
    position: relative;
    width: min(calc(100vw - 28px), 440px);
    max-height: min(78vh, 680px);
    overflow-y: auto;
    display: grid;
    gap: 0.66rem;
    padding: 0.95rem;
    border-radius: 16px;
    background: #ffffff;
    border: 0;
    box-shadow: 0 18px 54px rgba(12, 44, 54, 0.22);
    animation: recordDetailIn 0.18s ease-out;
}

@keyframes recordDetailIn {
    from {
        transform: translateY(10px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.record-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.record-detail-head > div {
    min-width: 0;
}

.record-detail-head span {
    display: block;
    color: #78909a;
    font-size: 0.68rem;
    font-weight: 850;
}

.record-detail-head strong {
    display: block;
    margin-top: 0.18rem;
    color: #102f3b;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.record-detail-head button {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f1f6f7;
    color: #607a85;
    cursor: pointer;
}

.record-detail-money {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
}

.record-detail-money > div {
    min-width: 0;
    padding: 0.6rem;
    border-radius: 11px;
    background: #edf4f6;
    border: 0;
}

.record-detail-money span,
.record-detail-money strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-detail-money span,
.record-detail-block span {
    color: #78909a;
    font-size: 0.64rem;
    font-weight: 900;
}

.record-detail-money strong {
    margin-top: 0.16rem;
    color: #102f3b;
    font-size: 0.88rem;
    font-weight: 950;
}

.record-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem 0.62rem;
}

.record-detail-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    color: #6b858f;
    font-size: 0.7rem;
    font-weight: 850;
}

.record-detail-checks {
    display: flex;
    gap: 0.26rem;
    flex-wrap: wrap;
}

.record-detail-checks span {
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.46rem;
    border-radius: 999px;
    background: #f1f5f6;
    color: #96a8ae;
    font-size: 0.62rem;
    font-weight: 900;
}

.record-detail-checks span.done {
    background: #e8f5f0;
    color: #0f7a53;
}

.record-detail-block {
    display: grid;
    gap: 0.22rem;
    padding-top: 0.1rem;
    min-width: 0;
}

.record-detail-block p {
    margin: 0;
    color: #315966;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.record-detail-link {
    color: #0a7483;
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.record-detail-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.16rem;
}

.record-detail-actions button {
    min-height: 34px;
    padding: 0 0.82rem;
    border: 0;
    border-radius: 10px;
    background: #0a7483;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
    cursor: pointer;
}

.auth-password-form {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: max-height 0.24s ease, opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.auth-password-form.active {
    max-height: 250px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.bottom-tab-placeholder-view .filter-section,
body.bottom-tab-placeholder-view .visit-stats-inline,
body.bottom-tab-placeholder-view #campaignListContainer,
body.bottom-tab-placeholder-view .pagination-wrap,
body.bottom-tab-placeholder-view .pagination-status,
body.bottom-tab-placeholder-view .coupang-footer-ad {
    display: none !important;
}

body.bottom-tab-placeholder-view .main-title,
body.bottom-tab-placeholder-view .main-desc {
    display: none !important;
}

.bottom-tab-nav {
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 24px));
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border-radius: 22px;
    background: rgba(241, 248, 250, 0.96);
    border: 0;
    box-shadow: 0 18px 48px rgba(0, 70, 90, 0.22);
    backdrop-filter: blur(18px);
    z-index: 90;
}

.bottom-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 52px;
    border-radius: 16px;
    color: #6f8792;
    text-decoration: none;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    transition: background 0.18s ease, color 0.18s ease, transform 0.08s ease;
}

.record-auth-box {
    min-height: 0;
    padding: 0.58rem 0.45rem 0.75rem;
}

.my-campaign-panel {
    margin-top: 0.38rem;
}

.record-login-empty {
    display: grid;
    gap: 0.72rem;
    padding: 1rem;
    border: 0;
    border-radius: 14px;
    background: #edf5f7;
}

.record-login-preview {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #e5eef2;
}

.record-login-preview img {
    width: 100%;
    display: block;
}

.record-login-copy {
    display: grid;
    gap: 0.32rem;
}

.record-login-empty strong {
    color: #102f3b;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.3;
}

.record-login-empty span {
    color: #6f8792;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.45;
}

.record-login-empty a {
    width: fit-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    margin-top: 0.08rem;
    padding: 0 0.76rem;
    border-radius: 10px;
    background: #0a7483;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
    text-decoration: none;
}

.bottom-tab-item i {
    font-size: 1rem;
}

.bottom-tab-item span {
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-tab-item:hover {
    color: #006a7a;
    background: rgba(0, 152, 178, 0.08);
}

.bottom-tab-item:active {
    transform: translateY(1px) scale(0.98);
}

.bottom-tab-item.active {
    color: #007c91;
    background: rgba(0, 152, 178, 0.13);
}

.sns-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.55rem;
    font-weight: 600;
    color: white;
    line-height: 1;
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
}

.sns-label i {
    font-size: 0.5rem;
}

.sns-clip {
    background: #30aff2;
    box-shadow: 0 2px 8px rgba(48, 175, 242, 0.2);
}

.sns-blog {
    background: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.sns-shorts {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); /* 쇼츠 그라데이션 */
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    font-size: 0.55rem; /* 다른 라벨들과 동일한 크기 */
    padding: 2px 6px; /* 다른 라벨들과 동일한 패딩 */
}

.sns-reels {
    background: #8830f2;
    box-shadow: 0 2px 8px rgba(136, 48, 242, 0.3);
}

.sns-insta {
    background: #b02bca;
    box-shadow: 0 2px 8px rgba(176, 43, 202, 0.2);
}

.sns-youtube {
    background: #ee5858;
    box-shadow: 0 2px 8px rgba(238, 88, 88, 0.25);
}

.sns-etc {
    background: #9aa7b2;
    box-shadow: 0 2px 8px rgba(154, 167, 178, 0.25);
}

@media (max-width: 600px) {
    .board-shortcut {
        display: none;
    }
    .container { 
        max-width: 100%; 
        min-width: unset; 
        padding: 12px 0 8px 0; 
    }
    .card-outer { 
        width: 98vw; 
        min-width: unset; 
        max-width: 99vw; 
        padding: 18px 0 12px 0; 
        margin-bottom: 24px;
    }
    .campaign-card { 
        max-width: 95vw; 
        min-width: 0; 
        padding: 0.9rem 0.7rem; 
    }
    .filter-section {
        padding: 0.9rem 0.1rem;
        margin-bottom: 0.8rem;
        width: 95vw;
        margin-left: auto;
        margin-right: auto;
    }
    .search-container {
        padding: 0.4rem 0.6rem;
    }
    .filter-buttons {
        gap: 0.4rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 0 0.6rem;
    }
    .sort-buttons {
        gap: 0.4rem;
    }
    .filter-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.68rem;
        min-width: 0;
        width: 100%;
    }
    .filter-btn i {
        font-size: 0.65rem;
    }
    .result-count {
        font-size: 0.68rem;
        padding: 0.4rem;
        column-gap: 0.35rem;
        row-gap: 0.1rem;
    }
    .result-count i {
        font-size: 0.65rem;
    }
    .result-count-total,
    .result-count-filtered {
        display: block;
        line-height: 1.2;
    }
    .visit-stats-inline {
        font-size: 0.66rem;
    }
    .home-filter-save-btn {
        font-size: 0.68rem;
    }
    .home-filter-apply-btn {
        font-size: 0.68rem;
    }
    .bottom-tab-nav {
        left: 8px;
        right: 8px;
        width: auto;
        transform: none;
        bottom: max(8px, env(safe-area-inset-bottom));
        border-radius: 20px;
    }
    .bottom-tab-item {
        font-size: 0.64rem;
        letter-spacing: -0.05em;
    }
    .bottom-tab-panel {
        width: calc(100vw - 32px);
        padding: 1.05rem 0.9rem;
    }
    .tab-contact-box {
        align-items: stretch;
        flex-direction: column;
    }
    .tab-contact-copy {
        width: 100%;
    }
    .auth-inline-field {
        grid-template-columns: 1fr;
    }
    .auth-code-request {
        grid-template-columns: 1fr;
    }
    .auth-code-verify-step {
        grid-template-columns: minmax(0, 1fr) 72px;
    }
    .auth-code-request .auth-code-button {
        width: 100%;
    }
    .auth-profile-actions button {
        padding: 0 0.56rem;
        font-size: 0.76rem;
    }
    .record-hero {
        padding: 0.78rem;
    }
    .record-hero strong {
        font-size: 1.22rem;
    }
    .record-hero-metrics strong {
        font-size: 0.74rem;
    }
    .record-summary-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .record-row {
        grid-template-columns: 12px minmax(0, 1fr) auto;
        grid-template-areas:
            "marker main actions"
            "marker money money"
            "marker dates checks";
    }
    .record-row.selectable {
        grid-template-columns: 22px minmax(0, 1fr) auto;
    }
    .record-list-toolbar-actions {
        margin-left: auto;
    }
    .record-row-checks {
        justify-content: flex-end;
    }
    .record-row-dates {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .record-row-expired-actions {
        position: static;
        grid-column: auto;
        justify-self: flex-end;
        padding-top: 0;
        transform: none;
    }
}

@media (min-width: 601px) {
    .card-outer {
        width: 82vw;
        max-width: 1040px;
        min-width: 0;
        padding: 1.5vw 0.9rem 1vw 0.9rem;
        margin-bottom: 88px;
    }
    .campaign-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.9rem 1.2rem;
    }
    .campaign-title {
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.5;
    }
    .card-meta {
        font-size: 0.76rem;
    }
    .filter-section {
        width: 100%;
        max-width: 980px;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }
    .filter-buttons {
        gap: 1rem;
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
    .sort-buttons {
        gap: 0.8rem;
    }
    .filter-buttons {
        justify-content: start;
    }
    .possible-days-times {
        font-size: 0.8rem;
        max-width: 640px;
    }
    .result-count {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .result-count-icon {
        grid-row: auto;
    }
    .result-count-total,
    .result-count-filtered {
        grid-column: auto;
        display: inline;
        line-height: 1.2;
    }
    .result-count-filtered {
        padding-left: 0;
    }
    .bottom-tab-nav {
        width: min(560px, calc(100vw - 48px));
        min-height: 72px;
        padding: 8px;
    }
    .bottom-tab-item {
        min-height: 56px;
        font-size: 0.76rem;
    }
    .bottom-tab-item i {
        font-size: 1.08rem;
    }
}

@media (min-width: 1200px) {
    .card-outer {
        width: 74vw;
        max-width: 1000px;
        min-width: 0;
    }
    .campaign-card {
        min-width: 0;
        padding: 1.1rem 1.6rem;
    }
    .campaign-title {
        font-size: 0.96rem;
    }
    .card-meta {
        font-size: 0.82rem;
    }
    .possible-days-times {
        max-width: 900px;
    }
}

/* 필터 및 검색 스타일 */
.filter-section {
    background: #e8f2fc;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 24px rgba(33,150,243,0.10);
    transition: box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    padding: 0;
}

/* 검색/필터 섹션은 호버 효과 제거 */

.search-section {
    margin-bottom: 0.8rem;
}

.search-container {
    margin: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    background: #f4f9fc;
    border-radius: 16px;
    padding: 0.5rem 0.7rem;
    box-shadow: 0 4px 24px rgba(33,150,243,0.10);
    transition: box-shadow 0.2s, background 0.2s;
    border: 0;
}

.search-container:focus-within {
    box-shadow: 0 8px 32px rgba(33,150,243,0.16);
    background: #e9f4fb;
}

/* 검색 아이콘 제거됨 */

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #1565c0;
    font-size: 0.91rem;
    font-weight: 600;
    outline: none;
    padding: 0.3rem 0;
    width: 100%;
    min-width: 0;
}

.search-input::placeholder {
    color: #7b8fa6;
    font-weight: 400;
}

.clear-search {
    background: none;
    border: none;
    color: #7b8fa6;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.3rem;
    margin-right: 0.3rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.clear-search:hover {
    background: rgba(25, 118, 210, 0.1);
    color: #1976d2;
}

.search-btn {
    background: #1976d2;
    border: none;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.3rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.search-btn:hover {
    background: #1565c0;
    transform: scale(1.05);
}

.filter-title {
    font-size: 0.72rem;
    font-weight: 400;
    color: #7b8fa6;
    margin-bottom: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(32px, auto);
    gap: 0.5rem 0.6rem;
    justify-content: start;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.8rem;
    margin: 0.6rem 0 0.8rem;
}

@media (min-width: 601px) {
    .filter-buttons {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-template-rows: 1fr;
    }
}

.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.sort-btn {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #1976d2;
    background: #e8f2fc;
    color: #1976d2;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: #1976d2;
    color: #fff;
}

.sort-btn.active {
    background: #1976d2;
    color: #fff;
}

.sort-icons {
    display: inline-flex;
    flex-direction: column;
    font-size: 0.8rem;
    gap: 0;
}

.sort-icon {
    opacity: 0.4;
    line-height: 0.6;
    margin: -1px 0;
}

.sort-icon.active {
    opacity: 1;
}

.filter-btn {
    padding: 0.3rem 0.8rem;
    border: 1px solid #cfe3fb;
    border-radius: 16px;
    background: #e8f2fc;
    color: #1565c0;
    font-size: 0.72rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    min-width: 60px;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    padding: 0 0.8rem;
    margin: 0.4rem 0 0.8rem;
}

.keyword-item {
    font-size: 0.72rem;
    color: #9aa7b2;
    cursor: pointer;
    user-select: none;
}

.keyword-item.active {
    color: #1976d2;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.keyword-item.keyword-reset.ready {
    color: #e24b4b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.filter-btn:hover {
    background: #dbeafb;
    border-color: #1976d2;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.12);
}

.filter-btn.active {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.2);
}

.filter-btn i {
    font-size: 0.7rem;
}

.filter-btn.sns-filter-btn {
    border-radius: 999px;
    font-weight: 600;
    border-color: currentColor;
    box-shadow: none;
}

.filter-btn.sns-filter-btn:hover,
.filter-btn.sns-filter-btn.active {
    background: var(--sns-color);
    border-color: var(--sns-color);
    color: #fff;
    box-shadow: none;
}

.sns-all-btn {
    --sns-color: #6c757d;
    color: #6c757d;
}

.sns-clip-btn {
    --sns-color: #30aff2;
    color: #30aff2;
}

.sns-blog-btn {
    --sns-color: #4caf50;
    color: #4caf50;
}

.sns-shorts-btn {
    --sns-color: #ff8a4d;
    color: #ff8a4d;
}

.sns-reels-btn {
    --sns-color: #8830f2;
    color: #8830f2;
}

.sns-insta-btn {
    --sns-color: #b02bca;
    color: #b02bca;
}

.sns-youtube-btn {
    --sns-color: #ee5858;
    color: #ee5858;
}

.sns-etc-btn {
    --sns-color: #9aa7b2;
    color: #9aa7b2;
}

.result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
}

.result-count {
    text-align: left;
    font-size: 0.72rem;
    color: #7b8fa6;
    font-weight: 400;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.4rem;
    row-gap: 0.15rem;
    padding: 0;
}

.result-count-icon {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    align-self: center;
}

.result-count-total,
.result-count-filtered {
    grid-column: 2;
}

.result-count-filtered {
    padding-left: 1.2rem;
}

.result-bar .sort-buttons {
    margin-left: auto;
}

.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.8rem 0 0.6rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
}

.page-btn {
    color: #9aa7b2;
    background: transparent;
    border: none;
    padding: 2px 4px;
    min-width: 20px;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    font-size: 0.86rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.page-btn:hover {
    color: #1976d2;
}

.page-btn.active {
    color: #1976d2;
    font-weight: 700;
}

.page-btn.disabled {
    pointer-events: none;
    color: #c0c7ce;
}

.page-ellipsis {
    color: #b0bac5;
    padding: 0 2px;
}

.page-status {
    color: #98a4af;
    font-weight: 600;
    font-size: 0.72rem;
    margin-right: 0.2rem;
}

.pagination-status {
    text-align: center;
    color: #98a4af;
    font-weight: 600;
    font-size: 0.72rem;
    margin: 0.2rem 0 0.6rem;
}

.page-blank {
    min-width: 20px;
    display: inline-block;
    height: 1em;
}

.result-count i {
    color: #1565c0;
    font-size: 0.7rem;
}

.no-results {
    text-align: center;
    color: #7b8fa6;
    padding: 2rem 1rem;
    background: #e8f2fc;
    border-radius: 16px;
    margin: 1rem 0;
    box-shadow: 0 4px 24px rgba(33,150,243,0.10);
    transition: box-shadow 0.2s, background 0.2s;
}

/* 검색 결과 없음 섹션도 호버 효과 제거 */

.no-results-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.no-results-title {
    font-size: 0.91rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 0.3rem;
}

.no-results-desc {
    font-size: 0.72rem;
    color: #7b8fa6;
    line-height: 1.2;
}

@media (min-width: 1600px) {
    .card-outer {
        width: 68vw;
        max-width: 980px;
        min-width: 0;
    }
    .campaign-card {
        min-width: 0;
    }
    .campaign-title {
        font-size: 1.0rem;
    }
    .card-meta {
        font-size: 0.86rem;
    }
}

@media (min-width: 601px) {
    .result-count {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .result-count-icon {
        grid-row: auto;
    }
    .result-count-total,
    .result-count-filtered {
        grid-column: auto;
        display: inline;
        line-height: 1.2;
    }
    .result-count-filtered {
        padding-left: 0;
    }
}

@media (max-width: 900px) {
    .card-outer {
        width: calc(100vw - 8px);
        max-width: calc(100vw - 8px);
    }
    .bottom-tab-panel {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
    .bottom-tab-nav {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none;
        transform: none !important;
    }
}

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