:root {
    --haneul: #329eff;
    --haneul-50: #eaf4ff;
    --haneul-100: #d6eaff;
    --bada: #1265b8;
    --gyul: #ff8a3d;
    --gyul-dark: #e0702a;
    --geum: #ffcd00;
    --ink: #12263a;
    --ink-soft: #4a5b6e;
}

.hm-memory-page {
    color: var(--ink);
    background:
        radial-gradient(circle at 1px 1px, rgba(50, 158, 255, .055) 1px, transparent 0) 0 0 / 22px 22px,
        #f8fbff;
}

.hm-memory-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 88px;
}

.hm-memory-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 22px;
}

.hm-memory-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.hm-memory-hero h1 small {
    font-size: .52em;
    margin-left: .15em;
    color: var(--ink-soft);
}

.hm-memory-hero .hm-lead {
    margin: 0;
    max-width: 720px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.8;
}

.hm-memory-cta {
    flex: 0 0 auto;
    text-decoration: none;
    background: var(--gyul);
    color: white;
    font-weight: 900;
    border-radius: 12px;
    padding: 13px 18px;
    box-shadow: 0 7px 18px rgba(255, 138, 61, .22);
}

.hm-memory-cta:hover {
    background: var(--gyul-dark);
    color: white;
}

.hm-memory-kicker,
.hm-memory-hero .hm-eyebrow {
    display: inline-block;
    color: var(--haneul);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.hm-memory-growth,
.hm-memory-section {
    background: white;
    border: 1px solid var(--haneul-100);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(18, 101, 184, .07);
}

.hm-memory-growth {
    padding: 24px 26px 20px;
}

.hm-memory-growth-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.hm-memory-growth h2,
.hm-memory-section h2 {
    margin: 5px 0 0;
    font-size: 23px;
    line-height: 1.4;
}

#hm-progress-description {
    color: var(--ink-soft);
    font-size: 13px;
    margin: 7px 0 0;
}

.hm-memory-goal {
    color: var(--bada);
    background: var(--haneul-50);
    border-radius: 999px;
    padding: 8px 13px;
    white-space: nowrap;
    font-size: 14px;
}

.hm-memory-growth-track {
    height: 9px;
    background: var(--haneul-50);
    border-radius: 999px;
    overflow: hidden;
    margin: 20px 0 18px;
}

.hm-memory-growth-track>span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--haneul), var(--bada));
    border-radius: inherit;
    transition: width .35s ease;
}

.hm-memory-milestones {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.hm-memory-milestone {
    min-width: 0;
    border-radius: 12px;
    padding: 10px 9px;
    background: #f7fbff;
    border: 1px solid transparent;
}

.hm-memory-milestone.is-done {
    background: var(--haneul-50);
}

.hm-memory-milestone.is-next {
    border-color: var(--haneul);
    background: white;
}

.hm-memory-milestone strong {
    display: block;
    font-size: 13px;
}

.hm-memory-milestone small {
    display: block;
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.45;
}

.hm-memory-milestone-no {
    color: var(--haneul);
    font-weight: 900;
    font-size: 11px;
}

.hm-memory-milestone.is-done .hm-memory-milestone-no {
    color: var(--bada);
}

.hm-memory-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 22px;
}

.hm-memory-metrics article {
    min-width: 0;
    background: white;
    border: 1px solid var(--haneul-100);
    border-radius: 15px;
    padding: 17px 18px;
}

.hm-memory-metrics span,
.hm-memory-metrics small {
    display: block;
    color: var(--ink-soft);
}

.hm-memory-metrics span {
    font-size: 11px;
    font-weight: 800;
}

.hm-memory-metrics strong {
    display: block;
    margin: 5px 0 4px;
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hm-memory-metrics small {
    font-size: 10px;
    line-height: 1.45;
}

.hm-memory-section {
    padding: 24px 26px 26px;
    margin-top: 16px;
}

.hm-memory-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.hm-memory-section-head>p {
    max-width: 460px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

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

.hm-discovery-card {
    min-width: 0;
    min-height: 170px;
    border: 1px solid var(--haneul-100);
    background: #fbfdff;
    border-radius: 16px;
    padding: 17px;
}

.hm-discovery-card.is-locked {
    background: linear-gradient(180deg, #fbfdff, var(--haneul-50));
}

.hm-discovery-icon {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--haneul-50);
    color: var(--bada);
    font-weight: 900;
    font-size: 12px;
}

.hm-discovery-card h3 {
    margin: 12px 0 8px;
    font-size: 16px;
}

.hm-discovery-main {
    margin: 0;
    font-weight: 900;
    font-size: 19px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.hm-discovery-sub {
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.6;
}

.hm-discovery-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.hm-discovery-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--haneul-50);
    font-size: 12px;
}

.hm-discovery-list b {
    overflow-wrap: anywhere;
}

.hm-memory-analysis-empty {
    background: var(--haneul-50);
    border-radius: 15px;
    padding: 22px;
    color: var(--ink-soft);
    line-height: 1.8;
}

.hm-memory-analysis-empty strong {
    display: block;
    color: var(--ink);
    font-size: 17px;
    margin-bottom: 4px;
}

.hm-memory-analysis-summary {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 800;
}

.hm-memory-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hm-memory-analysis-group {
    border: 1px solid var(--haneul-100);
    border-radius: 14px;
    padding: 16px;
}

.hm-memory-analysis-group h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.hm-memory-analysis-group p,
.hm-memory-analysis-group li {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.7;
}

.hm-memory-analysis-group ul {
    margin: 0;
    padding-left: 18px;
}

.hm-memory-analysis-note {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 10px;
}

.hm-memory-history-head {
    margin-bottom: 12px;
}

.hm-memory-count-chip {
    color: var(--bada);
    background: var(--haneul-50);
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 900;
    font-size: 12px;
}

.hm-memory-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hm-memory-search {
    flex: 1 1 360px;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fbff;
    border: 1px solid var(--haneul-100);
    border-radius: 11px;
    padding: 9px 12px;
}

.hm-memory-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

.hm-memory-filters {
    display: flex;
    gap: 5px;
}

.hm-memory-filters button {
    border: 0;
    border-radius: 999px;
    background: var(--haneul-50);
    color: var(--ink-soft);
    font-weight: 800;
    padding: 8px 11px;
    cursor: pointer;
}

.hm-memory-filters button.is-active {
    background: var(--haneul);
    color: white;
}

.hm-memory-history-list {
    display: grid;
    gap: 10px;
}

.hm-memory-item {
    border: 1px solid var(--haneul-100);
    background: white;
    border-radius: 15px;
    padding: 16px 17px;
}

.hm-memory-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hm-memory-item-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.hm-memory-source-type {
    color: var(--bada);
    background: var(--haneul-50);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 900;
}

.hm-memory-date {
    color: var(--ink-soft);
    font-size: 10px;
}

.hm-memory-item-source {
    margin: 12px 0 3px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.hm-memory-item-translation {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.hm-memory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.hm-memory-tag {
    background: #f5f8fb;
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 800;
}

.hm-memory-item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--haneul-50);
}

.hm-memory-detail-toggle {
    border: 0;
    background: none;
    color: var(--bada);
    font-weight: 900;
    cursor: pointer;
    padding: 4px 0;
}

.hm-memory-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hm-memory-action {
    border: 1px solid var(--haneul-100);
    background: white;
    color: var(--ink-soft);
    border-radius: 9px;
    padding: 7px 9px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.hm-memory-action:hover {
    border-color: var(--haneul);
    color: var(--bada);
}

.hm-memory-action.is-danger:hover {
    border-color: #efb8b8;
    color: #b63b3b;
}

.hm-memory-detail {
    margin-top: 12px;
    background: #f8fbff;
    border-radius: 12px;
    padding: 13px;
}

.hm-memory-detail[hidden] {
    display: none;
}

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

.hm-memory-detail-block {
    min-width: 0;
}

.hm-memory-detail-block span {
    display: block;
    color: var(--haneul);
    font-size: 9px;
    font-weight: 900;
    margin-bottom: 3px;
}

.hm-memory-detail-block p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.hm-memory-term-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hm-memory-term-chip {
    background: white;
    border: 1px solid var(--haneul-100);
    color: var(--bada);
    border-radius: 999px;
    padding: 4px 7px;
    font-size: 9px;
    font-weight: 900;
}

.hm-memory-empty {
    padding: 30px 18px;
    text-align: center;
    color: var(--ink-soft);
    background: #f8fbff;
    border-radius: 14px;
    line-height: 1.8;
}

.hm-memory-modal[hidden] {
    display: none;
}

.hm-memory-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
    padding: 20px;
}

.hm-memory-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 38, 58, .38);
}

.hm-memory-modal-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(18, 38, 58, .2);
}

.hm-memory-modal-card h2 {
    margin: 5px 0 8px;
    font-size: 22px;
}

.hm-memory-modal-copy {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.7;
}

.hm-memory-modal-card select {
    width: 100%;
    border: 1.5px solid var(--haneul-100);
    border-radius: 11px;
    padding: 11px;
    margin: 8px 0 12px;
    color: var(--ink);
    background: white;
}

.hm-memory-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    background: var(--haneul-50);
    color: var(--ink-soft);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.hm-memory-modal-submit {
    width: 100%;
    border: 0;
    border-radius: 11px;
    background: var(--gyul);
    color: white;
    font-weight: 900;
    padding: 12px;
    cursor: pointer;
}

.hm-memory-modal-submit:hover {
    background: var(--gyul-dark);
}

.hm-memory-modal-cancel {
    width: 100%;
    margin-top: 7px;
    border: 0;
    background: none;
    color: var(--ink-soft);
    font-weight: 800;
    cursor: pointer;
}

.hm-memory-modal-error {
    color: #b63b3b;
    background: #fff0f0;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 11px;
    margin-bottom: 10px;
}

.hm-memory-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 12px);
    z-index: 160;
    background: var(--ink);
    color: white;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 10px 28px rgba(18, 38, 58, .25);
}

.hm-memory-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hm-memory-celebration {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 150;
    width: min(360px, calc(100vw - 44px));
    background: white;
    border: 2px solid var(--haneul);
    border-radius: 18px;
    padding: 17px;
    box-shadow: 0 16px 42px rgba(18, 101, 184, .18);
}

.hm-memory-celebration strong {
    display: block;
    font-size: 17px;
    color: var(--ink);
}

.hm-memory-celebration p {
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.65;
    margin: 5px 0 10px;
}

.hm-memory-celebration a {
    color: var(--bada);
    font-size: 11px;
    font-weight: 900;
}

.hm-memory-celebration button {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--ink-soft);
}

@media (max-width: 900px) {
    .hm-memory-main {
        width: min(100% - 26px, 760px);
        padding-top: 26px;
    }

    .hm-memory-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .hm-memory-hero h1 {
        font-size: 36px;
    }

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

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

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

    .hm-memory-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .hm-memory-main {
        width: calc(100% - 20px);
        padding-bottom: 64px;
    }

    .hm-memory-header .hm-brand-sub {
        display: none;
    }

    .hm-memory-header .hm-nav a {
        display: none;
    }

    .hm-memory-hero h1 {
        font-size: 31px;
    }

    .hm-memory-hero .hm-lead {
        font-size: 13px;
    }

    .hm-memory-cta {
        width: 100%;
        text-align: center;
    }

    .hm-memory-growth,
    .hm-memory-section {
        border-radius: 16px;
        padding: 18px;
    }

    .hm-memory-growth-top {
        flex-direction: column;
        gap: 10px;
    }

    .hm-memory-growth h2,
    .hm-memory-section h2 {
        font-size: 20px;
    }

    .hm-memory-milestones {
        grid-template-columns: 1fr;
    }

    .hm-memory-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hm-memory-metrics article {
        padding: 14px;
    }

    .hm-memory-metrics strong {
        font-size: 19px;
    }

    .hm-memory-discovery-grid {
        grid-template-columns: 1fr;
    }

    .hm-memory-analysis-grid {
        grid-template-columns: 1fr;
    }

    .hm-memory-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .hm-memory-search {
        max-width: none;
        flex-basis: auto;
    }

    .hm-memory-filters {
        overflow-x: auto;
    }

    .hm-memory-item-source {
        font-size: 14px;
    }

    .hm-memory-item-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .hm-memory-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hm-memory-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* HANGUL_SELF_MEMORY_CONTEXT_UI_V2 */

.hm-memory-context-filter {
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(18, 101, 184, .10);
}

.hm-memory-context-title {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 800;
    color: #526477;
}

.hm-memory-context-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hm-memory-context-buttons button {
    appearance: none;
    border: 1px solid #d9e6f3;
    border-radius: 999px;
    background: #fff;
    color: #526477;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.hm-memory-context-buttons button:hover {
    border-color: #329eff;
    transform: translateY(-1px);
}

.hm-memory-context-buttons button.is-active {
    border-color: #329eff;
    background: #eef7ff;
    color: #1265b8;
}

.hm-memory-context-buttons button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(50, 158, 255, .10);
    font-size: 11px;
}

.hm-memory-context-badge {
    display: flex;
    align-items: center;
    margin: 5px 0 12px;
}

.hm-memory-context-badge span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f7ff;
    color: #1265b8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.hm-memory-item[hidden] {
    display: none !important;
}

#hm-context-filter-empty {
    width: 100%;
    margin-top: 14px;
}

@media (max-width: 640px) {
    .hm-memory-context-buttons {
        gap: 6px;
    }

    .hm-memory-context-buttons button {
        padding: 7px 10px;
        font-size: 12px;
    }
}



/* HANGUL_MEMORY_COLLECTIONS_V1 */
.hm-fixed-memory-collections {
    display: grid;
    gap: 8px;
    margin-bottom: 14px
}

.hm-fixed-memory-row-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 4px
}

.hm-fixed-memory-row-wrap .hm-quick-target-row {
    width: 100%
}

.hm-fixed-memory-row-wrap .hm-target-detail-link {
    display: grid;
    place-items: center;
    border-radius: 12px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    color: #66788b;
    background: #f7fafc
}

.hm-target-dot-study {
    background: #eef7ff;
    color: #1265b8
}

.hm-target-dot-oshi {
    background: #fff1f7;
    color: #c04479
}

.hm-sidebar-target-separator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 8px;
    color: #7d8b99;
    font-size: 11px;
    font-weight: 800
}

.hm-sidebar-target-separator:after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(18, 101, 184, .10)
}

.hm-memory-collection-tabs,
.hm-memory-person-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.hm-memory-collection-tabs a,
.hm-memory-person-filters button {
    border: 1px solid #dce8f3;
    border-radius: 999px;
    background: #fff;
    padding: 8px 13px;
    color: #536679;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer
}

.hm-memory-collection-tabs a.is-active,
.hm-memory-person-filters button.is-active {
    border-color: #329eff;
    background: #eef7ff;
    color: #1265b8
}

.hm-memory-collection-person {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f7ff;
    color: #1265b8;
    font-size: 12px;
    font-weight: 800
}

.hm-memory-collection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px
}

.hm-memory-collection-actions button {
    border: 0;
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer
}

.hm-memory-collection-actions .is-danger {
    background: #fff0f0;
    color: #b42318
}

.hm-memory-collection-actions .is-secondary {
    background: #eef7ff;
    color: #1265b8
}

.hm-memory-collection-empty {
    padding: 32px 18px;
    border: 1px dashed #dce8f3;
    border-radius: 16px;
    text-align: center;
    color: #718096
}


/* HANGUL_UNASSIGNED_PAGE_V2 */

/* 固定2枠をコンパクト化。右矢印をカードから離さない。 */
.hm-fixed-memory-collections {
    gap: 6px;
    margin-bottom: 12px;
}

.hm-fixed-memory-row-wrap {
    position: relative;
    display: block;
}

.hm-fixed-memory-row-wrap .hm-quick-target-row {
    min-height: 72px;
    padding: 11px 48px 11px 12px;
    border-radius: 16px;
    margin-top:0px;
    margin-bottom:0px;
}

.hm-fixed-memory-row-wrap .hm-target-detail-link {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    min-height: 0;
    padding: 0;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    background: transparent;
    border-radius: 9px;
    font-size: 22px;
    line-height: 1;
}

.hm-fixed-memory-row-wrap .hm-target-check {
    margin-right: 22px;
}

.hm-fixed-memory-row-wrap .hm-target-name {
    font-size: 16px;
    line-height: 1.25;
}

.hm-fixed-memory-row-wrap .hm-target-meta {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
}

/* 未整理は主要2Collection/Target一覧の一番下。 */
.hm-unassigned-area {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(18, 101, 184, .09);
}

.hm-unassigned-row-wrap .hm-quick-target-row {
    min-height: 62px;
    background: #f8fafc;
    border-color: #e3eaf1;
}

.hm-unassigned-row-wrap .hm-target-detail-link {
    color: #6d7f90;
}

.hm-unassigned-row-wrap .hm-target-name {
    font-size: 15px;
}

/* 未整理専用ページ */
.hm-unassigned-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.hm-unassigned-filter {
    appearance: none;
    border: 1px solid #dce8f3;
    border-radius: 999px;
    background: #fff;
    color: #536679;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.hm-unassigned-filter.is-active {
    border-color: #329eff;
    background: #eef7ff;
    color: #1265b8;
}

.hm-unassigned-card {
    position: relative;
}

.hm-unassigned-direction {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f4f7fa;
    color: #5b6b7b;
    font-size: 12px;
    font-weight: 800;
}

.hm-unassigned-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hm-unassigned-actions button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.hm-unassigned-actions .is-study {
    background: #eef7ff;
    color: #1265b8;
}

.hm-unassigned-actions .is-oshi {
    background: #fff1f7;
    color: #b43b70;
}

.hm-unassigned-actions .is-delete {
    margin-left: auto;
    background: #fff2f2;
    color: #b42318;
}

.hm-unassigned-modal[hidden] {
    display: none !important;
}

.hm-unassigned-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.hm-unassigned-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 32, 50, .42);
}

.hm-unassigned-modal-panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(620px, 82vh);
    overflow: auto;
    border-radius: 20px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 18px 60px rgba(16, 45, 75, .20);
}

.hm-unassigned-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.hm-unassigned-modal-head h2 {
    margin: 0;
    font-size: 20px;
}

.hm-unassigned-modal-close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.hm-unassigned-target-list {
    display: grid;
    gap: 8px;
}

.hm-unassigned-target-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid #e0e9f2;
    border-radius: 13px;
    background: #fff;
    padding: 11px 12px;
    text-align: left;
    cursor: pointer;
}

.hm-unassigned-target-button:hover {
    border-color: #329eff;
    background: #f8fbff;
}

.hm-unassigned-target-button strong {
    display: block;
    color: #102a43;
}

.hm-unassigned-target-button span {
    color: #7b8b9a;
    font-size: 12px;
}

@media (max-width: 640px) {
    .hm-unassigned-actions .is-delete {
        margin-left: 0;
    }
}

/* ==========================================================
   HANGUL_UNASSIGNED_REDESIGN_V3
   未整理 = Inbox / triage UI
   ========================================================== */

.hm-unassigned-page {
    background: linear-gradient(180deg, #f8fbff 0, #ffffff 420px);
}

.hm-unassigned-page .hm-memory-main {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.hm-unassigned-page .hm-memory-hero {
    margin-bottom: 18px;
    padding: 28px 30px;
    border: 1px solid #dcecff;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(18, 101, 184, .04);
}

.hm-unassigned-page .hm-memory-hero h1 {
    margin-top: 4px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.hm-unassigned-page .hm-memory-hero .hm-lead {
    max-width: 620px;
    margin-top: 8px;
    color: #64788b;
    font-size: 14px;
    line-height: 1.7;
}

.hm-unassigned-page .hm-memory-section {
    padding: 22px 24px 28px;
    border: 1px solid #e1edf8;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(18, 101, 184, .03);
}

.hm-unassigned-page .hm-memory-section-head {
    align-items: flex-start;
    margin-bottom: 4px;
}

.hm-unassigned-page .hm-memory-section-head h2 {
    margin-top: 3px;
    font-size: 24px;
}

.hm-unassigned-page .hm-memory-collection-tabs {
    gap: 6px;
}

.hm-unassigned-page .hm-memory-collection-tabs a {
    padding: 7px 12px;
    font-size: 12px;
}

.hm-unassigned-page .hm-unassigned-tools {
    margin: 12px 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf3f8;
}

.hm-unassigned-page .hm-unassigned-filter {
    min-height: 34px;
    padding: 6px 12px;
    border-color: #dfeaf4;
    font-size: 12px;
}

.hm-unassigned-page #hm-unassigned-list {
    display: grid;
    gap: 10px;
}

.hm-unassigned-page .hm-unassigned-inbox-card {
    overflow: hidden;
    border: 1px solid #dfeaf4;
    border-radius: 18px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.hm-unassigned-page .hm-unassigned-inbox-card:hover {
    border-color: #bcdcff;
    box-shadow: 0 8px 24px rgba(18, 101, 184, .07);
    transform: translateY(-1px);
}

.hm-unassigned-page .hm-unassigned-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 0;
}

.hm-unassigned-page .hm-unassigned-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.hm-unassigned-page .hm-unassigned-type,
.hm-unassigned-page .hm-unassigned-direction-compact,
.hm-unassigned-page .hm-unassigned-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.hm-unassigned-page .hm-unassigned-type {
    background: #edf7ff;
    color: #1265b8;
}

.hm-unassigned-page .hm-unassigned-direction-compact {
    background: #f4f7fa;
    color: #607182;
}

.hm-unassigned-page .hm-unassigned-status {
    flex: 0 0 auto;
    background: #fff8e8;
    color: #a76500;
}

.hm-unassigned-page .hm-unassigned-time {
    color: #8493a2;
    font-size: 11px;
    font-weight: 650;
}

.hm-unassigned-page .hm-unassigned-copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px 14px;
}

.hm-unassigned-page .hm-unassigned-copy-block {
    min-width: 0;
    padding: 12px 13px;
    border-radius: 12px;
    background: #f8fbfe;
}

.hm-unassigned-page .hm-unassigned-copy-block:last-child {
    background: #fbfcfd;
}

.hm-unassigned-page .hm-unassigned-copy-label {
    display: block;
    margin-bottom: 5px;
    color: #7b8d9d;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
}

.hm-unassigned-page .hm-unassigned-source,
.hm-unassigned-page .hm-unassigned-translation {
    margin: 0;
    color: #112a42;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.hm-unassigned-page .hm-unassigned-translation {
    color: #40566b;
    font-weight: 600;
}

.hm-unassigned-page .hm-unassigned-copy-divider {
    display: grid;
    place-items: center;
    color: #9eb2c5;
    font-size: 14px;
    font-weight: 900;
}

.hm-unassigned-page .hm-unassigned-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid #edf3f8;
    background: #fcfdff;
}

.hm-unassigned-page .hm-unassigned-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hm-unassigned-page .hm-unassigned-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.hm-unassigned-page .hm-unassigned-action.is-study {
    border-color: #d8eaff;
    background: #eef7ff;
    color: #1265b8;
}

.hm-unassigned-page .hm-unassigned-action.is-oshi {
    border-color: #f6dce8;
    background: #fff1f7;
    color: #b43b70;
}

.hm-unassigned-page .hm-unassigned-action-icon {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 900;
}

.hm-unassigned-page .hm-unassigned-delete {
    appearance: none;
    border: 0;
    background: transparent;
    color: #9a6c6c;
    padding: 7px 4px;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.hm-unassigned-page .hm-unassigned-delete:hover {
    color: #b42318;
    text-decoration: underline;
}

.hm-unassigned-page .hm-memory-collection-empty {
    padding: 44px 20px;
    border: 1px dashed #d8e7f4;
    border-radius: 18px;
    background: #fbfdff;
    color: #6e8193;
}

@media (max-width: 760px) {
    .hm-unassigned-page .hm-memory-main {
        width: min(100% - 20px, 1120px);
    }

    .hm-unassigned-page .hm-memory-hero,
    .hm-unassigned-page .hm-memory-section {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .hm-unassigned-page .hm-memory-section-head {
        display: grid;
        gap: 12px;
    }

    .hm-unassigned-page .hm-memory-collection-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 3px;
    }

    .hm-unassigned-page .hm-memory-collection-tabs a {
        white-space: nowrap;
    }

    .hm-unassigned-page .hm-unassigned-copy-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 12px 12px;
    }

    .hm-unassigned-page .hm-unassigned-copy-divider {
        height: 16px;
        transform: rotate(90deg);
    }

    .hm-unassigned-page .hm-unassigned-card-top {
        padding: 10px 12px 0;
    }

    .hm-unassigned-page .hm-unassigned-card-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 9px 12px 11px;
    }

    .hm-unassigned-page .hm-unassigned-primary-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hm-unassigned-page .hm-unassigned-action {
        justify-content: center;
    }

    .hm-unassigned-page .hm-unassigned-delete {
        align-self: flex-end;
    }
}

@media (max-width: 430px) {
    .hm-unassigned-page .hm-unassigned-primary-actions {
        grid-template-columns: 1fr;
    }

    .hm-unassigned-page .hm-unassigned-status {
        display: none;
    }
}
