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

    --hm-bg: #f8fbff;
    --hm-surface: #ffffff;
    --hm-line: var(--haneul-100);
    --hm-shadow: 0 10px 28px rgba(18, 101, 184, .08);
    --hm-radius: 14px;
    --hm-success: #198754;
    --hm-danger: #b64646;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--hm-bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", sans-serif;
    line-height: 1.72;
}

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

button {
    color: inherit;
}

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

[hidden] {
    display: none !important;
}

.hm-shell {
    min-height: 100vh;
}

.hm-header {
    background: #fff;
    border-bottom: 1px solid var(--haneul-50);
    min-height: 74px;
    padding: 14px max(24px, calc((100vw - 1120px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hm-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--haneul);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
}

.hm-brand-name,
.hm-brand-sub {
    display: block;
}

.hm-brand-name {
    font-weight: 900;
    letter-spacing: -.02em;
    font-size: 16px;
}

.hm-brand-sub {
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 700;
}

.hm-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: var(--ink-soft);
}

.hm-nav a:hover {
    color: var(--bada);
}

.hm-nav-cta,
.hm-user-chip {
    border-radius: 999px;
    padding: 8px 14px;
}

.hm-nav-cta {
    background: var(--gyul);
    color: #fff !important;
    font-weight: 800;
}

.hm-nav-cta:hover {
    background: var(--gyul-dark);
}

.hm-user-chip {
    background: var(--haneul-50);
    color: var(--bada);
    font-weight: 800;
}

.hm-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 24px 96px;
}

.hm-hero {
    position: relative;
    overflow: hidden;
    margin: 0 -24px 28px;
    padding: 46px 24px 42px;
    background: linear-gradient(180deg, var(--haneul-50) 0%, #fff 100%);
    border-radius: 0 0 24px 24px;
}

.hm-hero::before {
    content: '하늘';
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-52%);
    color: var(--haneul);
    opacity: .055;
    font-size: clamp(8rem, 20vw, 15rem);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.hm-hero>* {
    position: relative;
}

.hm-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bada);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
}

.hm-hero-kicker span {
    background: var(--haneul);
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
}

.hm-hero h1,
.hm-target-hero h1 {
    margin: 12px 0 14px;
    max-width: 760px;
    color: var(--ink);
    font-size: clamp(34px, 5.2vw, 58px);
    line-height: 1.18;
    letter-spacing: -.045em;
    font-weight: 900;
}

.hm-hero h1 em {
    color: var(--haneul);
    font-style: normal;
}

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

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

.hm-active-target-banner {
    margin: 0 0 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid var(--haneul);
    border-radius: 14px;
}

.hm-active-target-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: var(--haneul);
    color: #fff;
    font-weight: 900;
}

.hm-active-target-copy {
    flex: 1;
    min-width: 0;
}

.hm-active-target-copy span,
.hm-active-target-copy strong,
.hm-active-target-copy small {
    display: block;
}

.hm-active-target-copy span {
    color: var(--haneul);
    font-size: 10px;
    font-weight: 900;
}

.hm-active-target-copy strong {
    color: var(--ink);
    font-size: 14px;
}

.hm-active-target-copy small {
    color: var(--ink-soft);
    font-size: 10px;
}

.hm-active-target-banner button {
    border: 0;
    background: none;
    color: var(--bada);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.hm-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
    gap: 18px;
    align-items: start;
}

.hm-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 16px;
}

.hm-card {
    background: #fff;
    border: 1px solid var(--haneul-100);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
}

.hm-translate-card,
.hm-memory-card,
.hm-drafts-card,
.hm-dashboard-card,
.hm-memory-history-card,
.hm-growth-card {
    padding: 24px;
}

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

.hm-card-head-compact {
    margin-bottom: 10px;
}

.hm-card-head h2 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.hm-status,
.hm-save-state,
.hm-mini-badge {
    background: var(--haneul-50);
    color: var(--bada);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.hm-status.is-working {
    background: #fff4ea;
    color: var(--gyul-dark);
}

.hm-status.is-success,
.hm-save-state.is-success {
    background: #e9f7ef;
    color: var(--hm-success);
}

.hm-status.is-error {
    background: #fff0f0;
    color: var(--hm-danger);
}

.hm-muted {
    color: var(--ink-soft);
    font-size: 12px;
}

.hm-section-copy {
    margin: -5px 0 16px;
}

.hm-input-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.hm-input-tab {
    border: 1px solid var(--haneul-100);
    background: #fff;
    color: var(--ink-soft);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.hm-input-tab.is-active {
    background: var(--haneul-50);
    border-color: var(--haneul);
    color: var(--bada);
}

.hm-input-tab-icon {
    color: var(--haneul);
    font-size: 12px;
    font-weight: 900;
}

.hm-direction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 3px;
    margin-bottom: 16px;
    background: var(--haneul-50);
    border-radius: 10px;
}

.hm-direction-btn {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    border-radius: 8px;
    padding: 9px 10px;
    cursor: pointer;
}

.hm-direction-btn.is-active {
    background: #fff;
    color: var(--bada);
    font-weight: 850;
    box-shadow: 0 2px 8px rgba(18, 101, 184, .08);
}

.hm-mode-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    margin-bottom: 17px;
    border: 1px solid var(--haneul-100);
    border-radius: 11px;
    background: var(--haneul-50);
}

.hm-mode-copy p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.hm-label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 850;
}

.hm-textarea {
    width: 100%;
    min-height: 184px;
    resize: vertical;
    border: 1.5px solid var(--haneul-100);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    color: var(--ink);
    outline: none;
    font-size: 16px;
    line-height: 1.8;
}

.hm-textarea:focus,
.hm-input:focus,
.hm-select:focus {
    border-color: var(--haneul);
    box-shadow: 0 0 0 3px rgba(50, 158, 255, .12);
    outline: none;
}

.hm-textarea-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 2px 15px;
    color: var(--ink-soft);
    font-size: 10px;
}

kbd {
    padding: 1px 5px;
    border: 1px solid var(--haneul-100);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #fff;
}

.hm-options-row {
    display: grid;
    grid-template-columns: minmax(0, 260px);
    gap: 12px;
    margin: 16px 0;
}

.hm-field {
    display: block;
}

.hm-select,
.hm-input {
    width: 100%;
    border: 1.5px solid var(--haneul-100);
    border-radius: 9px;
    background: #fff;
    padding: 10px 11px;
    color: var(--ink);
}

.hm-image-dropzone {
    width: 100%;
    min-height: 190px;
    border: 1.5px dashed var(--haneul);
    border-radius: 12px;
    background: var(--haneul-50);
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 22px;
}

.hm-image-dropzone:hover,
.hm-image-dropzone.is-dragging {
    background: #fff;
    border-color: var(--bada);
}

.hm-image-dropzone strong {
    color: var(--ink);
    font-size: 15px;
}

.hm-image-dropzone span {
    font-size: 12px;
}

.hm-image-dropzone small {
    font-size: 10px;
}

.hm-image-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 3px;
    background: var(--haneul);
    color: #fff !important;
    font-size: 18px !important;
}

.hm-image-preview {
    display: grid;
    grid-template-columns: 86px 1fr 32px;
    gap: 12px;
    align-items: center;
    padding: 11px;
    border: 1px solid var(--haneul-100);
    background: var(--haneul-50);
    border-radius: 12px;
}

.hm-image-preview img {
    width: 86px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.hm-image-preview strong,
.hm-image-preview span {
    display: block;
}

.hm-image-preview strong {
    font-size: 12px;
    word-break: break-all;
}

.hm-image-preview span {
    color: var(--ink-soft);
    font-size: 10px;
}

.hm-image-preview button {
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink-soft);
    cursor: pointer;
}

.hm-privacy-note {
    margin: 7px 2px 0;
    color: var(--ink-soft);
    font-size: 9px;
}

.hm-primary-button {
    width: 100%;
    border: 0;
    border-radius: 9px;
    background: var(--gyul);
    color: #fff;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 850;
    transition: background .15s ease;
}

.hm-primary-button:hover {
    background: var(--gyul-dark);
}

.hm-primary-button:disabled {
    opacity: .55;
    cursor: wait;
}

.hm-primary-button>span:first-child small,
.hm-primary-button>span:first-child span {
    display: block;
    text-align: left;
}

.hm-primary-button small {
    opacity: .82;
    font-size: 9px;
    letter-spacing: .04em;
}

.hm-button-arrow {
    font-size: 18px;
}

.hm-secondary-button {
    width: 100%;
    border: 1.5px solid var(--haneul);
    border-radius: 9px;
    padding: 10px 12px;
    background: #fff;
    color: var(--bada);
    font-weight: 850;
    cursor: pointer;
}

.hm-secondary-button:hover {
    background: var(--haneul-50);
}

.hm-autosave-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 9px;
    color: var(--ink-soft);
    font-size: 9px;
}

.hm-autosave-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--haneul);
}

.hm-error {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #f3c6c6;
    border-radius: 9px;
    background: #fff4f4;
    color: var(--hm-danger);
    font-size: 12px;
}

.hm-quick-target-row,
.hm-target-row {
    width: 100%;
    border: 1px solid var(--haneul-100);
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    cursor: pointer;
    text-align: left;
}

.hm-quick-target-row {
    margin: 13px 0 7px;
}

.hm-quick-target-row:hover,
.hm-target-row:hover {
    border-color: var(--haneul);
    background: var(--haneul-50);
}

.hm-quick-target-row.is-active,
.hm-target-row.is-active {
    border-color: var(--haneul);
    background: var(--haneul-50);
}

.hm-target-list {
    display: grid;
    gap: 7px;
    margin: 7px 0 12px;
}

.hm-target-row-wrap {
    display: grid;
    grid-template-columns: 1fr 32px;
    gap: 6px;
}

.hm-target-detail-link {
    display: grid;
    place-items: center;
    border: 1px solid var(--haneul-100);
    border-radius: 9px;
    background: #fff;
    color: var(--bada);
    font-size: 18px;
    font-weight: 900;
}

.hm-target-detail-link:hover {
    border-color: var(--haneul);
    background: var(--haneul-50);
}

.hm-target-dot {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--haneul);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.hm-target-copy {
    min-width: 0;
    flex: 1;
}

.hm-target-name {
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-target-meta {
    display: block;
    color: var(--ink-soft);
    font-size: 9px;
}

.hm-target-next {
    display: block;
    margin-top: 4px;
    color: var(--bada);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-target-progress-mini {
    display: block;
    height: 4px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--haneul-100);
}

.hm-target-progress-mini span {
    display: block;
    height: 100%;
    background: var(--haneul);
    border-radius: inherit;
}

.hm-target-check {
    color: var(--haneul);
    opacity: 0;
    font-size: 12px;
}

.is-active>.hm-target-check,
.hm-target-row.is-active .hm-target-check {
    opacity: 1;
}

.hm-skeleton {
    height: 46px;
    border-radius: 9px;
    background: linear-gradient(90deg, var(--haneul-50), #fff, var(--haneul-50));
    background-size: 200% 100%;
    animation: hm-shimmer 1.2s infinite;
}

@keyframes hm-shimmer {
    to {
        background-position: -200% 0;
    }
}

.hm-empty {
    border: 1px dashed var(--haneul-100);
    border-radius: 10px;
    padding: 14px;
    color: var(--ink-soft);
    font-size: 11px;
    text-align: center;
}

.hm-empty-small {
    padding: 11px;
}

.hm-draft-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.hm-draft-item {
    border: 1px solid var(--haneul-100);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.hm-draft-meta {
    display: flex;
    justify-content: space-between;
    color: var(--haneul);
    font-size: 8px;
    font-weight: 900;
}

.hm-draft-item p {
    margin: 5px 0 2px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 750;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-draft-item small {
    display: block;
    color: var(--ink-soft);
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-draft-actions {
    display: flex;
    gap: 6px;
    margin-top: 7px;
}

.hm-draft-actions button {
    border: 0;
    border-radius: 7px;
    padding: 5px 7px;
    cursor: pointer;
    font-size: 9px;
}

.hm-draft-link {
    background: var(--haneul-50);
    color: var(--bada);
    font-weight: 850;
    flex: 1;
}

.hm-draft-delete {
    background: #f4f6f8;
    color: var(--ink-soft);
}

.hm-guest-memory {
    text-align: center;
    padding: 22px 8px 9px;
}

.hm-lock {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--haneul-50);
    color: var(--haneul);
    font-size: 18px;
    font-weight: 900;
}

.hm-guest-memory h3 {
    margin: 0 0 7px;
}

.hm-guest-memory p {
    color: var(--ink-soft);
    font-size: 12px;
}

.hm-primary-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--bada);
    font-weight: 850;
}

/* 翻訳結果: 黒いAIパネルではなく、学習サービスの延長として見せる */
.hm-result {
    margin-top: 20px;
    padding: 24px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--haneul-100);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
}

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

.hm-result-head h2 {
    margin: 3px 0 0;
    font-size: 20px;
}

.hm-result-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hm-result-action {
    border: 1.5px solid var(--haneul);
    background: #fff;
    color: var(--bada);
    border-radius: 8px;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.hm-result .hm-save-state {
    background: var(--haneul-50);
    color: var(--bada);
}

.hm-result .hm-save-state.is-success {
    background: #e9f7ef;
    color: var(--hm-success);
}

.hm-ocr-section {
    padding: 13px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--haneul-100);
    background: var(--haneul-50);
    border-radius: 10px;
}

.hm-ocr-section p {
    margin: 4px 0 0;
    color: var(--ink);
    white-space: pre-wrap;
}

.hm-result-primary {
    padding: 20px;
    border: 1px solid var(--haneul-100);
    border-left: 4px solid var(--haneul);
    border-radius: 10px;
    background: var(--haneul-50);
}

.hm-result-label {
    display: block;
    margin-bottom: 6px;
    color: var(--bada);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
}

.hm-result-translation {
    margin: 0;
    color: var(--ink);
    font-size: clamp(22px, 3.4vw, 36px);
    line-height: 1.45;
    font-weight: 850;
    letter-spacing: -.025em;
}

.hm-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 0;
}

.hm-result-panel {
    border: 1px solid var(--haneul-100);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
}

.hm-result-panel p {
    margin: 0;
    color: var(--ink-soft);
}

.hm-linking-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    margin: 0 0 14px;
    border: 1px solid var(--haneul-100);
    border-radius: 10px;
    background: var(--haneul-50);
}

.hm-linking-box p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 10px;
}

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

.hm-link-chip {
    border: 1px solid var(--haneul);
    background: #fff;
    color: var(--bada);
    border-radius: 999px;
    padding: 6px 9px;
    cursor: pointer;
    font-size: 10px;
}

.hm-link-chip:hover,
.hm-link-chip.is-linked {
    background: var(--haneul);
    color: #fff;
}

.hm-details {
    border-top: 1px solid var(--haneul-100);
    padding-top: 14px;
}

.hm-details summary {
    cursor: pointer;
    color: var(--bada);
    font-weight: 850;
}

.hm-details-content {
    padding-top: 14px;
    display: grid;
    gap: 11px;
}

.hm-detail-section {
    border-radius: 10px;
    padding: 13px;
    background: var(--haneul-50);
}

.hm-detail-section h3 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 12px;
}

.hm-detail-section p {
    margin: 0;
    color: var(--ink-soft);
}

.hm-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hm-pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--haneul-100);
    color: var(--bada);
    font-size: 10px;
}

.hm-list {
    display: grid;
    gap: 7px;
}

.hm-list-item {
    padding: 8px 0;
    border-top: 1px solid var(--haneul-100);
}

.hm-list-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.hm-list-title {
    display: block;
    color: var(--ink);
    font-weight: 800;
}

.hm-list-sub {
    display: block;
    color: var(--ink-soft);
    font-size: 10px;
}

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

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

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

.hm-modal-panel {
    position: relative;
    width: min(500px, 100%);
    background: #fff;
    border: 1px solid var(--haneul-100);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(18, 38, 58, .22);
}

.hm-modal-panel h2 {
    margin: 4px 0 5px;
}

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

.hm-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

/* ことばメモリー詳細 */
.hm-target-main {
    padding-top: 34px;
}

.hm-target-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 26px 0 10px;
}

.hm-target-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(34px, 5vw, 54px);
}

.hm-target-hero h1 small {
    margin-left: .18em;
    color: var(--ink-soft);
    font-size: .45em;
    letter-spacing: 0;
}

.hm-primary-link-inline {
    display: inline-flex;
    white-space: nowrap;
    background: var(--gyul);
    color: #fff;
    border-radius: 9px;
    padding: 11px 15px;
    font-size: 12px;
    font-weight: 850;
}

.hm-primary-link-inline:hover {
    background: var(--gyul-dark);
}

.hm-growth-card {
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--haneul-50), #fff);
}

.hm-growth-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.hm-growth-head h2 {
    margin: 4px 0 0;
    font-size: 18px;
}

.hm-growth-goal {
    color: var(--bada);
    font-size: 18px;
}

.hm-growth-track {
    height: 10px;
    margin: 16px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--haneul-100);
}

.hm-growth-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--haneul);
    transition: width .35s ease;
}

.hm-milestone-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

.hm-milestone {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--haneul-100);
    border-radius: 9px;
    background: #fff;
    color: var(--ink-soft);
}

.hm-milestone-dot {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--haneul-50);
    color: var(--bada);
    font-size: 8px;
    font-weight: 900;
}

.hm-milestone strong,
.hm-milestone small {
    display: block;
}

.hm-milestone strong {
    color: var(--ink);
    font-size: 9px;
}

.hm-milestone small {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.hm-milestone.is-done .hm-milestone-dot {
    background: var(--haneul);
    color: #fff;
}

.hm-milestone.is-next {
    border-color: var(--gyul);
}

.hm-milestone.is-next .hm-milestone-dot {
    background: #fff3ea;
    color: var(--gyul-dark);
}

.hm-memory-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.hm-stat-card {
    padding: 16px;
    border: 1px solid var(--haneul-100);
    border-radius: 12px;
    background: #fff;
}

.hm-stat-card>span,
.hm-stat-card strong,
.hm-stat-card small {
    display: block;
}

.hm-stat-card>span {
    color: var(--haneul);
    font-size: 9px;
    font-weight: 900;
}

.hm-stat-card strong {
    margin: 3px 0 2px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.35;
}

.hm-stat-card small {
    color: var(--ink-soft);
    font-size: 9px;
}

.hm-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.hm-term-ranking {
    display: grid;
    gap: 10px;
}

.hm-term-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-term-rank {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--haneul-50);
    color: var(--bada);
    font-size: 9px;
    font-weight: 900;
}

.hm-term-row:first-child .hm-term-rank {
    background: var(--geum);
    color: #5c4a00;
}

.hm-term-body {
    flex: 1;
    min-width: 0;
}

.hm-term-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.hm-term-line strong {
    color: var(--ink);
    font-size: 13px;
}

.hm-term-line span {
    color: var(--ink-soft);
    font-size: 9px;
}

.hm-term-bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--haneul-50);
}

.hm-term-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--haneul);
}

.hm-analysis-empty {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px dashed var(--haneul-100);
    border-radius: 10px;
    background: var(--haneul-50);
}

.hm-analysis-empty strong {
    color: var(--ink);
    font-size: 12px;
}

.hm-analysis-empty span {
    color: var(--ink-soft);
    font-size: 10px;
}

.hm-analysis-summary {
    margin: 0 0 12px;
    padding: 12px;
    border-left: 4px solid var(--haneul);
    background: var(--haneul-50);
    border-radius: 0 9px 9px 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 750;
}

.hm-analysis-group {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--haneul-100);
}

.hm-analysis-group h3 {
    margin: 0 0 6px;
    color: var(--bada);
    font-size: 11px;
}

.hm-analysis-group p,
.hm-analysis-group ul {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.hm-analysis-group ul {
    padding-left: 17px;
}

.hm-analysis-group li {
    margin: 4px 0;
}

.hm-analysis-group li b,
.hm-analysis-group li span {
    display: block;
}

.hm-analysis-group li b {
    color: var(--ink);
}

.hm-analysis-group li span {
    font-size: 9px;
}

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

.hm-memory-row {
    position: relative;
    padding: 14px 15px;
    border: 1px solid var(--haneul-100);
    border-radius: 10px;
    background: #fff;
}

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

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

.hm-memory-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

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

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

.hm-memory-delete {
    border: 0;
    background: none;
    color: #99a6b3;
    cursor: pointer;
    font-size: 9px;
}

.hm-memory-source {
    margin: 9px 0 3px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.hm-memory-arrow {
    color: var(--haneul);
    font-size: 10px;
    line-height: 1;
}

.hm-memory-translation {
    margin: 3px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

@media (max-width: 900px) {
    .hm-workspace {
        grid-template-columns: 1fr;
    }

    .hm-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

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

    .hm-milestone-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .hm-header {
        min-height: 62px;
        padding: 11px 14px;
    }

    .hm-brand-sub,
    .hm-nav>a:first-child {
        display: none;
    }

    .hm-nav {
        gap: 7px;
    }

    .hm-main {
        padding: 24px 14px 64px;
    }

    .hm-hero {
        margin: 0 -14px 20px;
        padding: 34px 14px 32px;
        border-radius: 0 0 18px 18px;
    }

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

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

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

    .hm-translate-card,
    .hm-memory-card,
    .hm-drafts-card,
    .hm-dashboard-card,
    .hm-memory-history-card,
    .hm-result,
    .hm-growth-card {
        padding: 18px;
        border-radius: 12px;
    }

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

    .hm-mode-box,
    .hm-active-target-banner {
        align-items: stretch;
        flex-direction: column;
    }

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

    .hm-result-head,
    .hm-linking-box,
    .hm-target-hero,
    .hm-growth-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hm-linking-targets {
        justify-content: flex-start;
    }

    .hm-two-cols {
        grid-template-columns: 1fr;
    }

    .hm-textarea-foot {
        flex-direction: column;
        gap: 2px;
    }

    .hm-primary-link-inline {
        white-space: normal;
    }

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

    .hm-milestone-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   翻訳アプリ v3 — Desktop Sidebar / Mobile Header
   Naniの情報設計を参考にしつつ、ハングルマッチの配色・Memory体験で再構成
   ============================================================ */
.hm-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.hm-app-body {
    overflow-x: hidden;
    background-color: #f7fbff;
    background-image: radial-gradient(circle at 1px 1px, rgba(50, 158, 255, .12) 1.05px, transparent 0);
    background-size: 22px 22px;
}

.hm-app-shell {
    min-height: 100vh;
}

.hm-app-content {
    min-height: 100vh;
    margin-left: 336px;
    min-width: 0;
}

.hm-app-main {
    max-width: 940px;
    padding: 52px 28px 96px;
}

/* --- Desktop sidebar --- */
.hm-app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 300;
    width: 336px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .97);
    border-right: 1px solid var(--haneul-100);
    box-shadow: 8px 0 28px rgba(18, 101, 184, .045);
    backdrop-filter: blur(12px);
}

.hm-sidebar-top {
    min-height: 84px;
    padding: 18px 20px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hm-sidebar-brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--haneul);
    color: #fff;
    font-size: 19px;
    font-weight: 950;
    box-shadow: 0 7px 18px rgba(50, 158, 255, .22);
}

.hm-sidebar-brand-copy {
    min-width: 0;
}

.hm-sidebar-brand-copy strong,
.hm-sidebar-brand-copy small {
    display: block;
}

.hm-sidebar-brand-copy strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -.03em;
}

.hm-sidebar-brand-copy small {
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 700;
    white-space: nowrap;
}

.hm-sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 24px;
    cursor: pointer;
}

.hm-new-translation-button {
    margin: 3px 18px 14px;
    min-height: 54px;
    border: 1.5px solid var(--haneul-100);
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    transition: border-color .15s ease, background .15s ease;
}

.hm-new-translation-button:hover {
    border-color: var(--haneul);
    background: var(--haneul-50);
}

.hm-new-translation-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--haneul-50);
    color: var(--bada);
    font-size: 19px;
    line-height: 1;
}

.hm-sidebar-scroll {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 0 14px 24px;
}

.hm-sidebar-section {
    min-width: 0;
    max-width: 100%;
    padding: 16px 4px 17px;
    border-top: 1px solid var(--haneul-50);
}

.hm-sidebar-section:first-child {
    border-top: 0;
}

.hm-sidebar-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.hm-sidebar-section-head h2 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.28;
    letter-spacing: -.025em;
}

.hm-sidebar-eyebrow {
    display: block;
    color: var(--haneul);
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: .07em;
}

.hm-sidebar-help {
    margin: 0 2px 12px;
    color: var(--ink-soft);
    font-size: 10.5px;
    line-height: 1.55;
}

.hm-sidebar-add {
    width: 32px;
    height: 32px;
    border: 1px solid var(--haneul-100);
    border-radius: 9px;
    background: #fff;
    color: var(--bada);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}

.hm-sidebar-add:hover {
    background: var(--haneul-50);
    border-color: var(--haneul);
}

.hm-app-sidebar .hm-quick-target-row,
.hm-app-sidebar .hm-target-row {
    min-height: 66px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 10px;
    border-radius: 12px;
}

.hm-app-sidebar .hm-target-row-wrap {
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 5px;
}

.hm-app-sidebar .hm-target-detail-link {
    width: 30px;
    min-width: 30px;
    border: 0;
    background: transparent;
    font-size: 18px;
}

.hm-app-sidebar .hm-target-dot {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

.hm-target-dot-unassigned {
    background: var(--haneul-50) !important;
    color: var(--bada) !important;
    border: 1px solid var(--haneul-100);
}

.hm-app-sidebar .hm-target-name {
    font-size: 14px;
    line-height: 1.35;
}

.hm-app-sidebar .hm-target-meta {
    margin-top: 1px;
    font-size: 10.5px;
    line-height: 1.35;
}

.hm-app-sidebar .hm-target-next {
    font-size: 10px;
    line-height: 1.35;
}

.hm-app-sidebar .hm-target-progress-mini {
    height: 4px;
    margin-top: 6px;
}

.hm-app-sidebar .hm-target-list {
    min-width: 0;
    max-width: 100%;
    gap: 6px;
    margin-bottom: 0;
}

.hm-sidebar-history-section {
    padding-bottom: 0;
}

.hm-sidebar-section-head-history {
    margin-bottom: 8px;
}

.hm-history-filter {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: var(--haneul-50);
}

.hm-history-filter button {
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-soft);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
}

.hm-history-filter button.is-active {
    background: #fff;
    color: var(--bada);
    box-shadow: 0 2px 7px rgba(18, 101, 184, .08);
}

.hm-history-list {
    display: grid;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    gap: 7px;
    overflow: hidden;
}

.hm-history-item {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 11px;
    background: #fff;
    transition: background .15s ease, border-color .15s ease;
}

.hm-history-item:hover {
    background: var(--haneul-50);
    border-color: var(--haneul-100);
}

.hm-history-main {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 0;
    background: transparent;
    padding: 10px 11px 5px;
    text-align: left;
    cursor: pointer;
}

.hm-history-item-top {
    display: flex;
    min-width: 0;
    max-width: 100%;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.hm-history-type,
.hm-history-time {
    color: #8293a3;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 800;
}

.hm-history-source {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-history-translation {
    display: block;
    color: var(--ink-soft);
    width: 100%;
    max-width: 100%;
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-history-bottom {
    display: flex;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 0 9px 8px 11px;
}

.hm-history-targets {
    display: flex;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    gap: 4px;
    overflow: hidden;
}

.hm-history-target {
    display: inline-flex;
    max-width: 118px;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--haneul-50);
    color: var(--bada);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-history-target::before {
    content: '●';
    margin-right: 4px;
    color: var(--haneul);
    font-size: 6px;
}

.hm-history-target-unassigned {
    background: #f2f5f8;
    color: #778795;
}

.hm-history-target-unassigned::before {
    color: #b1bdc7;
}

.hm-history-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    max-width: 126px;
}

.hm-history-assign {
    border: 0;
    border-radius: 7px;
    background: var(--haneul-50);
    color: var(--bada);
    max-width: 92px;
    padding: 5px 7px;
    cursor: pointer;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 900;
}

.hm-history-delete {
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #a3afba;
    cursor: pointer;
    font-size: 13px;
    opacity: .55;
}

.hm-history-item:hover .hm-history-delete {
    opacity: 1;
}

.hm-history-delete:hover {
    background: #fff1f1;
    color: #b64646;
}

.hm-sidebar-footer {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 8px 7px;
    border-top: 1px solid var(--haneul-100);
    background: #fff;
}

.hm-sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hm-sidebar-user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    outline: 1px solid var(--haneul-100);
    border-radius: 50%;
    background: var(--haneul-50);
    color: var(--bada);
    font-size: 11px;
    font-weight: 950;
}

.hm-sidebar-user strong,
.hm-sidebar-user small {
    display: block;
}

.hm-sidebar-user strong {
    color: var(--ink);
    font-size: 12px;
}

.hm-sidebar-user small {
    color: var(--ink-soft);
    font-size: 9.5px;
}

.hm-sidebar-home {
    display: block;
    margin-top: 9px;
    color: var(--bada);
    font-size: 10.5px;
    font-weight: 850;
}

.hm-sidebar-guest {
    padding: 24px 18px;
    text-align: center;
}

.hm-sidebar-guest-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--haneul);
    color: #fff;
    font-weight: 950;
}

.hm-sidebar-guest h2 {
    margin: 0 0 7px;
    font-size: 14px;
}

.hm-sidebar-guest p {
    color: var(--ink-soft);
    font-size: 10px;
}

.hm-sidebar-guest-cta,
.hm-sidebar-login {
    display: block;
    border-radius: 10px;
    padding: 9px;
    font-size: 10px;
    font-weight: 900;
}

.hm-sidebar-guest-cta {
    margin-top: 14px;
    background: var(--gyul);
    color: #fff;
}

.hm-sidebar-login {
    margin-top: 5px;
    color: var(--bada);
}


/* Sidebar horizontal overflow guard */
.hm-app-sidebar,
.hm-sidebar-top,
.hm-sidebar-brand,
.hm-sidebar-scroll,
.hm-sidebar-section,
.hm-quick-target-row,
.hm-target-list,
.hm-target-row-wrap,
.hm-target-row,
.hm-target-copy,
.hm-sidebar-history-section,
.hm-history-list,
.hm-history-item,
.hm-history-main,
.hm-history-item-top,
.hm-history-bottom,
.hm-history-targets,
.hm-sidebar-footer,
.hm-sidebar-user {
    min-width: 0;
    max-width: 100%;
}

.hm-app-sidebar {
    overflow-x: hidden;
}

.hm-sidebar-scroll,
.hm-sidebar-history-section,
.hm-history-list {
    overflow-x: hidden;
}

.hm-history-source,
.hm-history-translation,
.hm-target-name,
.hm-target-meta,
.hm-target-next {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Mobile header (desktopでは隠す) --- */
.hm-mobile-header {
    display: none;
}

.hm-sidebar-backdrop {
    display: none;
}

/* --- Main translator --- */
.hm-app-intro {
    margin: 0 0 10px;
    text-align: center;
}

.hm-app-intro h1 {
    margin: 4px 0 7px;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -.045em;
}

.hm-app-intro-label {
    color: var(--haneul);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
}

.hm-app-intro p {
    margin: 0 auto;
    max-width: 650px;
    color: var(--ink-soft);
    font-size: 12px;
}

.hm-translator-panel {
    padding: 12px;
    border-radius: 22px;
    border-color: var(--haneul-100);
    background: linear-gradient(180deg, #edf6ff 0%, #eaf4ff 100%);
    box-shadow: 0 16px 44px rgba(18, 101, 184, .09);
}

.hm-translator-toolbar {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
}

.hm-translator-toolbar .hm-input-tabs {
    width: auto;
    display: inline-flex;
    gap: 3px;
    margin: 0;
}

.hm-translator-toolbar .hm-input-tab {
    min-width: 76px;
    padding: 7px 10px;
    border: 0;
    background: transparent;
}

.hm-translator-toolbar .hm-input-tab.is-active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(18, 101, 184, .07);
}

.hm-translator-direction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 4px 9px;
}

.hm-translator-direction-row .hm-direction {
    width: min(330px, 62%);
    margin: 0;
    background: transparent;
}

.hm-translator-direction-row .hm-direction-btn {
    padding: 7px 9px;
    font-size: 10px;
}

.hm-active-target-select {
    width: min(235px, 36%);
    min-width: 150px;
    padding: 8px 9px;
    border-color: var(--haneul-100);
    background: rgba(255, 255, 255, .7);
    color: var(--bada);
    font-size: 10px;
    font-weight: 850;
}

.hm-translator-input-panel {
    position: relative;
    min-height: 350px;
    border: 1px solid #fff;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(214, 234, 255, .45);
    padding: 5px 5px 4px;
}

.hm-translator-textarea {
    min-height: 250px;
    max-height: 520px;
    border: 0 !important;
    box-shadow: none !important;
    resize: vertical;
    padding: 17px 17px 6px;
    font-size: 16px;
    line-height: 1.75;
}

.hm-translator-textarea::placeholder {
    color: #9aa8b5;
}

.hm-translator-inline-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px 8px;
    color: #93a3b1;
    font-size: 10px;
}

.hm-translator-inline-hint>span:first-child {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--haneul-100);
    border-radius: 8px;
    color: #8093a4;
    font-weight: 900;
}

.hm-translator-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 7px;
}

.hm-context-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-soft);
}

.hm-context-trigger-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #738797;
    font-size: 16px;
    transform: rotate(90deg);
}

.hm-context-select {
    max-width: 160px;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    outline: none;
    font-size: 9px;
    cursor: pointer;
}

.hm-translator-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hm-attach-button {
    border: 1px solid var(--haneul-100);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
}

.hm-attach-button:hover {
    border-color: var(--haneul);
    color: var(--bada);
}

.hm-translate-submit {
    width: auto;
    min-width: 112px;
    border-radius: 999px;
    padding: 9px 13px;
    justify-content: center;
    gap: 7px;
    background: var(--haneul);
}

.hm-translate-submit:hover {
    background: var(--bada);
}

.hm-translate-submit:disabled {
    background: #c8d5df;
}

.hm-translator-foot {
    margin: 0;
    padding: 2px 13px 6px;
}

.hm-translator-foot>span:last-child::after {
    content: ' / 5000';
}

.hm-translator-image-panel {
    min-height: 350px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
}

.hm-translator-image-panel .hm-image-dropzone {
    min-height: 230px;
}

.hm-image-translate-inline {
    width: auto;
    margin: 10px 0 0 auto;
    border-radius: 999px;
    padding: 9px 15px;
    background: var(--haneul);
}

.hm-autosave-note-compact {
    margin-top: 8px;
    justify-content: center;
    font-size: 9px;
}

.hm-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 17px 0 24px;
}

.hm-quick-action {
    min-height: 92px;
    border: 1px dashed var(--haneul-100);
    border-radius: 17px;
    background: rgba(255, 255, 255, .78);
    color: var(--ink);
    padding: 14px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.hm-quick-action:hover {
    border-color: var(--haneul);
    background: #fff;
}

.hm-quick-action-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--haneul-50);
    color: var(--bada);
    font-size: 18px;
}

.hm-quick-action strong,
.hm-quick-action small {
    display: block;
}

.hm-quick-action strong {
    font-size: 13px;
}

.hm-quick-action small {
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 9px;
}

.hm-result {
    margin-top: 0;
}

.hm-active-target-banner {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 980px) {
    .hm-app-content {
        margin-left: 0;
    }

    .hm-app-main {
        padding-top: 34px;
    }

    .hm-mobile-header {
        position: sticky;
        top: 0;
        z-index: 240;
        min-height: 70px;
        padding: 10px 17px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        background: rgba(255, 255, 255, .94);
        border-bottom: 1px solid var(--haneul-50);
        backdrop-filter: blur(12px);
    }

    .hm-mobile-menu {
        width: 42px;
        height: 42px;
        justify-self: start;
        border: 0;
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        display: grid;
        place-content: center;
        gap: 4px;
    }

    .hm-mobile-menu span {
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: #6f8292;
    }

    .hm-mobile-brand span {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        background: var(--haneul);
        color: #fff;
        font-weight: 950;
        box-shadow: 0 5px 15px rgba(50, 158, 255, .20);
    }

    .hm-mobile-user {
        width: 36px;
        height: 36px;
        justify-self: end;
        display: grid;
        place-items: center;
        border: 4px solid #fff;
        outline: 1px solid var(--haneul-100);
        border-radius: 50%;
        background: var(--haneul-50);
        color: var(--bada);
        font-size: 10px;
        font-weight: 950;
    }

    .hm-mobile-login {
        justify-self: end;
        color: var(--bada);
        font-size: 10px;
        font-weight: 900;
    }

    .hm-app-sidebar {
        width: min(348px, calc(100vw - 28px));
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 16px 0 48px rgba(18, 38, 58, .16);
    }

    .hm-app-sidebar.is-open {
        transform: translateX(0);
    }

    .hm-sidebar-close {
        display: block;
    }

    .hm-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 280;
        display: block;
        background: rgba(18, 38, 58, .26);
        backdrop-filter: blur(2px);
    }

    body.hm-sidebar-open {
        overflow: hidden;
    }

    .hm-app-intro {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .hm-app-main {
        padding: 28px 13px 72px;
    }

    .hm-app-intro {
        text-align: left;
        padding: 0 4px;
    }

    .hm-app-intro h1 {
        font-size: 27px;
    }

    .hm-app-intro p {
        font-size: 10px;
    }

    .hm-translator-panel {
        padding: 9px;
        border-radius: 20px;
    }

    .hm-translator-toolbar {
        padding: 0 2px;
    }

    .hm-translator-toolbar .hm-input-tab {
        min-width: 62px;
        padding: 6px 8px;
        font-size: 9px;
    }

    .hm-translator-direction-row {
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
    }

    .hm-translator-direction-row .hm-direction {
        width: 100%;
    }

    .hm-active-target-select {
        width: 100%;
        min-width: 0;
    }

    .hm-translator-input-panel {
        min-height: 390px;
    }

    .hm-translator-textarea {
        min-height: 280px;
        font-size: 16px;
    }

    .hm-translator-bottom-row {
        align-items: flex-end;
    }

    .hm-context-select {
        max-width: 112px;
    }

    .hm-attach-button {
        display: none;
    }

    .hm-translate-submit {
        min-width: 108px;
    }

    .hm-quick-actions {
        gap: 9px;
    }

    .hm-quick-action {
        min-height: 102px;
        padding: 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hm-quick-action-icon {
        width: 32px;
        height: 32px;
    }

    .hm-quick-action strong {
        font-size: 12px;
    }

    .hm-active-target-banner {
        border-radius: 13px;
    }

    .hm-active-target-copy small {
        display: none;
    }

    .hm-result {
        border-radius: 14px;
    }
}

/* ============================================================
   Main translator typography v2
   Nani-like readability without copying its visual identity.
   Keeps Hangul Match colors and layout, but increases hierarchy.
   ============================================================ */

/* Desktop / tablet: the translator itself should visually dominate. */
.hm-app-main {
    max-width: 1080px;
    padding: 58px 36px 104px;
}

.hm-app-intro {
    margin-bottom: 28px;
}

.hm-app-intro-label {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: .06em;
}

.hm-app-intro h1 {
    margin: 8px 0 12px;
    font-size: clamp(42px, 4.8vw, 62px);
    line-height: 1.14;
}

.hm-app-intro p {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.8;
}

.hm-active-target-banner {
    max-width: 900px;
    padding: 16px 18px;
    border-radius: 16px;
}

.hm-active-target-avatar {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.hm-active-target-copy span {
    font-size: 12px;
}

.hm-active-target-copy strong {
    margin-top: 1px;
    font-size: 17px;
}

.hm-active-target-copy small {
    margin-top: 2px;
    font-size: 12px;
}

.hm-active-target-banner button {
    font-size: 13px;
}

.hm-translator-panel {
    padding: 18px;
    border-radius: 28px;
}

.hm-translator-toolbar {
    min-height: 58px;
    padding: 0 8px;
}

.hm-translator-toolbar .hm-input-tabs {
    gap: 6px;
}

.hm-translator-toolbar .hm-input-tab {
    min-width: 104px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 16px;
    gap: 9px;
}

.hm-translator-toolbar .hm-input-tab-icon {
    font-size: 16px;
}

.hm-translator-toolbar .hm-status,
.hm-translator-toolbar .hm-save-state,
.hm-translator-toolbar .hm-mini-badge {
    padding: 8px 12px;
    font-size: 13px;
}

.hm-translator-direction-row {
    gap: 14px;
    padding: 8px 8px 14px;
}

.hm-translator-direction-row .hm-direction {
    width: min(440px, 60%);
    gap: 4px;
}

.hm-translator-direction-row .hm-direction-btn {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 780;
}

.hm-active-target-select {
    width: min(330px, 38%);
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 11px;
    font-size: 14px;
}

.hm-translator-input-panel {
    min-height: 455px;
    border-radius: 22px;
    padding: 8px 8px 6px;
}

.hm-translator-textarea {
    min-height: 330px;
    max-height: 620px;
    padding: 26px 26px 10px;
    font-size: 21px;
    line-height: 1.72;
    letter-spacing: -.01em;
}

.hm-translator-textarea::placeholder {
    font-size: 21px;
    color: #95a5b4;
}

.hm-translator-inline-hint {
    gap: 10px;
    padding: 2px 24px 10px;
    font-size: 14px;
    line-height: 1.5;
}

.hm-translator-inline-hint>span:first-child {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
}

.hm-translator-bottom-row {
    gap: 16px;
    padding: 14px 18px 10px;
}

.hm-context-trigger {
    gap: 8px;
}

.hm-context-trigger-icon {
    width: 32px;
    height: 32px;
    font-size: 19px;
}

.hm-context-select {
    max-width: 220px;
    font-size: 14px;
    font-weight: 700;
}

.hm-translator-actions {
    gap: 10px;
}

.hm-attach-button {
    min-height: 46px;
    padding: 10px 17px;
    font-size: 14px;
}

.hm-translate-submit {
    min-width: 154px;
    min-height: 50px;
    padding: 12px 20px;
    gap: 9px;
    font-size: 17px;
    font-weight: 900;
}

.hm-button-arrow {
    font-size: 18px;
}

.hm-translator-foot {
    padding: 4px 20px 10px;
    font-size: 12px;
}

.hm-autosave-note-compact {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.55;
}

.hm-translator-image-panel {
    min-height: 455px;
    padding: 18px;
    border-radius: 22px;
}

.hm-translator-image-panel .hm-image-dropzone {
    min-height: 320px;
}

.hm-image-dropzone strong {
    font-size: 18px;
}

.hm-image-dropzone span {
    font-size: 14px;
}

.hm-image-dropzone small {
    font-size: 12px;
}

.hm-image-icon {
    width: 52px;
    height: 52px;
    font-size: 21px !important;
}

.hm-image-translate-inline {
    min-height: 48px;
    padding: 11px 18px;
    font-size: 15px;
}

.hm-privacy-note {
    font-size: 11px;
}

.hm-quick-actions {
    gap: 16px;
    margin: 22px 0 30px;
}

.hm-quick-action {
    min-height: 118px;
    padding: 20px 22px;
    gap: 15px;
    border-radius: 20px;
}

.hm-quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 21px;
}

.hm-quick-action strong {
    font-size: 17px;
    line-height: 1.45;
}

.hm-quick-action small {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.55;
}

/* Translation result should keep the same readable hierarchy. */
.hm-result {
    padding: 30px;
    border-radius: 18px;
}

.hm-result-head h2 {
    font-size: 25px;
}

.hm-result-action {
    padding: 8px 12px;
    font-size: 13px;
}

.hm-result-label {
    margin-bottom: 8px;
    font-size: 13px;
}

.hm-result-translation {
    font-size: clamp(28px, 3.6vw, 42px);
}

.hm-result-primary {
    padding: 24px;
    border-radius: 13px;
}

.hm-result-panel {
    padding: 20px;
    border-radius: 13px;
}

.hm-result-panel p,
.hm-ocr-section p {
    font-size: 16px;
    line-height: 1.75;
}

.hm-linking-box {
    padding: 18px;
}

.hm-linking-box p {
    font-size: 13px;
}

.hm-link-chip {
    padding: 8px 12px;
    font-size: 13px;
}

.hm-details summary {
    font-size: 15px;
}

.hm-detail-section {
    padding: 17px;
}

.hm-detail-section h3 {
    font-size: 15px;
}

.hm-detail-section p,
.hm-list-title {
    font-size: 14px;
}

.hm-list-sub,
.hm-pill {
    font-size: 12px;
}

/* Mobile: make the body feel like a consumer translation app, not a compact admin UI. */
@media (max-width: 640px) {
    .hm-app-main {
        padding: 34px 18px 80px;
    }

    .hm-app-intro {
        margin-bottom: 30px;
        padding: 0 3px;
    }

    .hm-app-intro-label {
        font-size: 14px;
    }

    .hm-app-intro h1 {
        margin-top: 8px;
        font-size: 38px;
        line-height: 1.18;
    }

    .hm-app-intro p {
        font-size: 16px;
        line-height: 1.85;
    }

    .hm-translator-panel {
        padding: 14px;
        border-radius: 26px;
    }

    .hm-translator-toolbar {
        min-height: 62px;
        padding: 0 4px;
    }

    .hm-translator-toolbar .hm-input-tab {
        min-width: 92px;
        min-height: 48px;
        padding: 10px 14px;
        font-size: 17px;
    }

    .hm-translator-toolbar .hm-input-tab-icon {
        font-size: 17px;
    }

    .hm-translator-toolbar .hm-status,
    .hm-translator-toolbar .hm-save-state,
    .hm-translator-toolbar .hm-mini-badge {
        padding: 8px 11px;
        font-size: 14px;
    }

    .hm-translator-direction-row {
        gap: 10px;
        padding: 8px 4px 14px;
    }

    .hm-translator-direction-row .hm-direction {
        width: 100%;
        gap: 6px;
    }

    .hm-translator-direction-row .hm-direction-btn {
        min-height: 50px;
        padding: 11px 10px;
        font-size: 16px;
    }

    .hm-active-target-select {
        width: 100%;
        min-height: 52px;
        padding: 12px 14px;
        font-size: 16px;
    }

    .hm-translator-input-panel {
        min-height: 500px;
        border-radius: 24px;
        padding: 8px 7px 6px;
    }

    .hm-translator-textarea {
        min-height: 365px;
        padding: 28px 24px 12px;
        font-size: 22px;
        line-height: 1.72;
    }

    .hm-translator-textarea::placeholder {
        font-size: 22px;
    }

    .hm-translator-inline-hint {
        padding: 2px 22px 12px;
        gap: 10px;
        font-size: 16px;
    }

    .hm-translator-inline-hint>span:first-child {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .hm-translator-bottom-row {
        padding: 14px 14px 10px;
    }

    .hm-context-trigger-icon {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }

    .hm-context-select {
        max-width: 145px;
        font-size: 15px;
    }

    .hm-translate-submit {
        min-width: 140px;
        min-height: 54px;
        padding: 13px 18px;
        font-size: 18px;
    }

    .hm-translator-foot {
        font-size: 12px;
    }

    .hm-autosave-note-compact {
        font-size: 13px;
    }

    .hm-quick-actions {
        gap: 12px;
        margin-top: 24px;
    }

    .hm-quick-action {
        min-height: 132px;
        padding: 18px 16px;
        gap: 10px;
    }

    .hm-quick-action-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .hm-quick-action strong {
        font-size: 18px;
    }

    .hm-quick-action small {
        font-size: 14px;
        line-height: 1.6;
    }

    .hm-result {
        padding: 22px;
    }

    .hm-result-head h2 {
        font-size: 23px;
    }

    .hm-result-label {
        font-size: 13px;
    }

    .hm-result-translation {
        font-size: 30px;
    }

    .hm-result-panel p,
    .hm-ocr-section p {
        font-size: 16px;
    }
}

/* ============================================================
   Main translator typography v3 — balanced / above-the-fold
   Goal:
   - Keep the readability gain from v2
   - Avoid oversized consumer-app typography
   - Show the complete translation form in the initial viewport
   ============================================================ */

/* Desktop / large tablet */
.hm-app-main {
    max-width: 1040px;
    padding: 20px 30px 82px;
}

.hm-app-intro {
    margin-bottom: 18px;
}

.hm-app-intro-label {
    font-size: 11px;
    line-height: 1.35;
}

.hm-app-intro h1 {
    margin: 5px 0 8px;
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1.16;
}

.hm-app-intro p {
    max-width: 720px;
    font-size: 14px;
    line-height: 1.65;
}

.hm-active-target-banner {
    max-width: 860px;
    padding: 12px 15px;
}

.hm-active-target-avatar {
    width: 42px;
    height: 42px;
    font-size: 14px;
}

.hm-active-target-copy span {
    font-size: 10px;
}

.hm-active-target-copy strong {
    font-size: 15px;
}

.hm-active-target-copy small {
    font-size: 11px;
}

.hm-active-target-banner button {
    font-size: 12px;
}

.hm-translator-panel {
    padding: 13px;
    border-radius: 23px;
}

.hm-translator-toolbar {
    min-height: 46px;
    padding: 0 5px;
}

.hm-translator-toolbar .hm-input-tabs {
    gap: 4px;
}

.hm-translator-toolbar .hm-input-tab {
    min-width: 88px;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 14px;
    gap: 7px;
}

.hm-translator-toolbar .hm-input-tab-icon {
    font-size: 14px;
}

.hm-translator-toolbar .hm-status,
.hm-translator-toolbar .hm-save-state,
.hm-translator-toolbar .hm-mini-badge {
    padding: 6px 10px;
    font-size: 11px;
}

.hm-translator-direction-row {
    gap: 10px;
    padding: 4px 5px 10px;
}

.hm-translator-direction-row .hm-direction {
    width: min(400px, 60%);
    gap: 3px;
}

.hm-translator-direction-row .hm-direction-btn {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 13px;
}

.hm-active-target-select {
    width: min(300px, 38%);
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 13px;
}

/* The form itself must fit in the first view. */
.hm-translator-input-panel {
    min-height: 300px;
    border-radius: 19px;
    padding: 6px 6px 4px;
}

.hm-translator-textarea {
    min-height: 205px;
    height: clamp(205px, 27vh, 255px);
    max-height: 360px;
    padding: 19px 20px 6px;
    font-size: 18px;
    line-height: 1.65;
}

.hm-translator-textarea::placeholder {
    font-size: 18px;
}

.hm-translator-inline-hint {
    gap: 8px;
    padding: 0 18px 7px;
    font-size: 12px;
}

.hm-translator-inline-hint>span:first-child {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 13px;
}

.hm-translator-bottom-row {
    gap: 12px;
    padding: 9px 13px 7px;
}

.hm-context-trigger {
    gap: 6px;
}

.hm-context-trigger-icon {
    width: 28px;
    height: 28px;
    font-size: 17px;
}

.hm-context-select {
    max-width: 185px;
    font-size: 12px;
}

.hm-translator-actions {
    gap: 8px;
}

.hm-attach-button {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12px;
}

.hm-translate-submit {
    min-width: 132px;
    min-height: 42px;
    padding: 9px 16px;
    gap: 7px;
    font-size: 15px;
}

.hm-button-arrow {
    font-size: 16px;
}

.hm-translator-foot {
    padding: 2px 15px 7px;
    font-size: 10px;
}

.hm-autosave-note-compact {
    margin-top: 8px;
    font-size: 11px;
}

.hm-translator-image-panel {
    min-height: 300px;
    padding: 14px;
    border-radius: 19px;
}

.hm-translator-image-panel .hm-image-dropzone {
    min-height: 205px;
}

.hm-image-dropzone strong {
    font-size: 16px;
}

.hm-image-dropzone span {
    font-size: 13px;
}

.hm-image-dropzone small {
    font-size: 11px;
}

.hm-image-icon {
    width: 46px;
    height: 46px;
    font-size: 19px !important;
}

.hm-image-translate-inline {
    min-height: 42px;
    padding: 9px 16px;
    font-size: 14px;
}

.hm-quick-actions {
    gap: 12px;
    margin: 16px 0 24px;
}

.hm-quick-action {
    min-height: 94px;
    padding: 15px 17px;
    gap: 12px;
    border-radius: 17px;
}

.hm-quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 18px;
}

.hm-quick-action strong {
    font-size: 15px;
}

.hm-quick-action small {
    font-size: 11px;
    line-height: 1.5;
}

/* Results: readable, but less oversized than v2. */
.hm-result {
    padding: 24px;
}

.hm-result-head h2 {
    font-size: 21px;
}

.hm-result-action {
    padding: 6px 10px;
    font-size: 11px;
}

.hm-result-label {
    font-size: 11px;
}

.hm-result-translation {
    font-size: clamp(24px, 3vw, 34px);
}

.hm-result-primary {
    padding: 20px;
}

.hm-result-panel {
    padding: 16px;
}

.hm-result-panel p,
.hm-ocr-section p {
    font-size: 14px;
}

.hm-linking-box {
    padding: 15px;
}

.hm-linking-box p,
.hm-link-chip {
    font-size: 11px;
}

.hm-details summary {
    font-size: 13px;
}

.hm-detail-section h3 {
    font-size: 13px;
}

.hm-detail-section p,
.hm-list-title {
    font-size: 13px;
}

/* Mobile: prioritize complete initial form over oversized typography. */
@media (max-width: 640px) {
    .hm-app-main {
        padding: 22px 14px 64px;
    }

    .hm-app-intro {
        margin-bottom: 5px;
        padding: 0 2px;
    }

    .hm-app-intro-label {
        font-size: 12px;
    }

    .hm-app-intro h1 {
        margin: 5px 0 8px;
        font-size: 30px;
        line-height: 1.2;
        letter-spacing: -.035em;
    }

    .hm-app-intro p {
        font-size: 13px;
        line-height: 1.65;
    }

    .hm-translator-panel {
        padding: 10px;
        border-radius: 22px;
    }

    .hm-translator-toolbar {
        min-height: 48px;
        padding: 0 2px;
    }

    .hm-translator-toolbar .hm-input-tab {
        min-width: 72px;
        min-height: 40px;
        padding: 7px 10px;
        font-size: 14px;
    }

    .hm-translator-toolbar .hm-input-tab-icon {
        font-size: 14px;
    }

    .hm-translator-toolbar .hm-status,
    .hm-translator-toolbar .hm-save-state,
    .hm-translator-toolbar .hm-mini-badge {
        padding: 6px 9px;
        font-size: 11px;
    }

    .hm-translator-direction-row {
        gap: 7px;
        padding: 5px 2px 10px;
    }

    .hm-translator-direction-row .hm-direction {
        width: 100%;
        gap: 4px;
    }

    .hm-translator-direction-row .hm-direction-btn {
        min-height: 42px;
        padding: 8px 8px;
        font-size: 13px;
    }

    .hm-active-target-select {
        width: 100%;
        min-height: 43px;
        padding: 9px 11px;
        font-size: 13px;
    }

    .hm-translator-input-panel {
        min-height: 330px;
        border-radius: 20px;
        padding: 6px 6px 4px;
    }

    .hm-translator-textarea {
        min-height: 220px;
        height: clamp(220px, 30vh, 270px);
        max-height: 330px;
        padding: 20px 18px 8px;
        font-size: 17px;
        line-height: 1.65;
    }

    .hm-translator-textarea::placeholder {
        font-size: 17px;
    }

    .hm-translator-inline-hint {
        gap: 8px;
        padding: 0 16px 8px;
        font-size: 12px;
    }

    .hm-translator-inline-hint>span:first-child {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .hm-translator-bottom-row {
        align-items: center;
        gap: 8px;
        padding: 8px 10px 7px;
    }

    .hm-context-trigger-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .hm-context-select {
        max-width: 126px;
        font-size: 12px;
    }

    .hm-translate-submit {
        min-width: 120px;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 15px;
    }

    .hm-translator-foot {
        font-size: 10px;
    }

    .hm-autosave-note-compact {
        font-size: 11px;
    }

    .hm-translator-image-panel {
        min-height: 330px;
        padding: 12px;
    }

    .hm-translator-image-panel .hm-image-dropzone {
        min-height: 235px;
    }

    .hm-quick-actions {
        gap: 9px;
        margin: 16px 0 22px;
    }

    .hm-quick-action {
        min-height: 96px;
        padding: 13px;
        gap: 8px;
    }

    .hm-quick-action-icon {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .hm-quick-action strong {
        font-size: 15px;
    }

    .hm-quick-action small {
        font-size: 12px;
        line-height: 1.5;
    }

    .hm-result {
        padding: 20px;
    }

    .hm-result-head h2 {
        font-size: 20px;
    }

    .hm-result-translation {
        font-size: 26px;
    }

    .hm-result-panel p,
    .hm-ocr-section p {
        font-size: 14px;
    }
}


/* === HANGUL TRANSLATOR FOCUS START === */

/*
 * ページ背景はハングルマッチらしさを残しつつ、
 * 翻訳フォームを最も強い視覚要素にする
 */
body.hm-app-body {
    background-color: #f8fbff;
    background-image:
        radial-gradient(circle at 1px 1px,
            rgba(50, 158, 255, .065) 1px,
            transparent 0);
}

/* Heroはフォームと競わせない */
.hm-app-intro {
    margin-bottom: 5px;
}

.hm-app-intro h1 {
    font-size: clamp(36px, 3.8vw, 44px);
}

.hm-app-intro p {
    color: var(--ink-soft);
}

/*
 * 翻訳フォーム全体を「白い主役カード」に
 * 青い大きな箱感をなくす
 */
.hm-translator-panel {
    background: #ffffff;
    border: 1.5px solid var(--haneul-100);
    box-shadow:
        0 18px 48px rgba(18, 101, 184, .13),
        0 2px 8px rgba(18, 101, 184, .05);
}

/* 上部の操作エリアはほんのり水色 */
.hm-translator-toolbar,
.hm-translator-direction-row {
    background: transparent;
}

/* 選択中タブ */
.hm-translator-toolbar .hm-input-tab.is-active {
    background: var(--haneul-50);
    color: var(--bada);
    box-shadow: none;
}

/* 言語方向 */
.hm-translator-direction-row .hm-direction-btn {
    border-radius: 10px;
}

.hm-translator-direction-row .hm-direction-btn.is-active {
    background: var(--haneul-50);
    color: var(--bada);
}

/* Target選択 */
.hm-active-target-select {
    background: #f8fbff;
    border-color: var(--haneul-100);
}

/*
 * 入力欄。
 * 外枠を少しグレー寄りにして白背景の中でも輪郭を出す
 */
.hm-translator-input-panel {
    background: #ffffff;
    border: 1.5px solid #dce8f3;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .8),
        0 2px 8px rgba(18, 38, 58, .025);
}

.hm-translator-input-panel:focus-within {
    border-color: var(--haneul);
    box-shadow:
        0 0 0 3px rgba(50, 158, 255, .10),
        0 4px 14px rgba(18, 101, 184, .05);
}

/* 翻訳ボタンはCTA専用色 */
.hm-translate-submit,
.hm-image-translate-inline {
    background: var(--gyul) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(255, 138, 61, .22);
}

.hm-translate-submit:hover,
.hm-image-translate-inline:hover {
    background: var(--gyul-dark) !important;
}

/* 入力前disabledだけはグレー */
.hm-translate-submit:disabled {
    background: #cbd5df !important;
    box-shadow: none;
}

/* 下のクイック導線はフォームより弱くする */
.hm-quick-action {
    background: rgba(255, 255, 255, .72);
    box-shadow: none;
}

.hm-quick-action:hover {
    background: #ffffff;
}

/* PC */
@media (min-width: 981px) {
    .hm-translator-panel {
        padding: 14px;
        border-radius: 20px;
    }
}

/* スマホでも同じ優先順位を維持 */
@media (max-width: 640px) {
    .hm-app-intro h1 {
        font-size: 28px;
    }

    .hm-translator-panel {
        background: #ffffff;
        border-radius: 20px;
        padding: 10px;
        box-shadow:
            0 12px 32px rgba(18, 101, 184, .12);
    }

    .hm-translator-input-panel {
        border-color: #dce8f3;
    }
}

@media (max-width: 767px) {
    .hm-textarea-foot.hm-translator-foot {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hm-active-target-banner {
        display: none !important;
    }
}

/* === HANGUL TRANSLATOR FOCUS END === */



/* ==========================================================
   HANGUL_PROFILE_MODAL_V1
   ========================================================== */

body.hm-profile-modal-open {
    overflow: hidden;
}

.hm-sidebar-footer-profile {
    display: grid;
    gap: 8px;
}

.hm-profile-trigger {
    appearance: none;
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    padding: 8px 7px;
    text-align: left;
    cursor: pointer;
    transition:
        background .16s ease,
        border-color .16s ease;
}

.hm-profile-trigger:hover,
.hm-profile-trigger:focus-visible {
    border-color: var(--haneul-100);
    background: var(--haneul-50);
    outline: none;
}

.hm-profile-trigger-avatar {
    width: 38px;
    height: 38px;
}

.hm-profile-trigger-copy {
    min-width: 0;
}

.hm-profile-trigger-copy strong,
.hm-profile-trigger-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-profile-trigger-copy strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}

.hm-profile-trigger-copy small {
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 10px;
}

.hm-profile-trigger-chevron {
    color: #7f93a6;
    font-size: 22px;
    line-height: 1;
}

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

.hm-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: grid;
    place-items: center;
    padding: 24px;
}

.hm-profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 48, .42);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hm-profile-modal-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid #dce9f5;
    border-radius: 24px;
    background: #f7faff;
    padding: 18px;
    box-shadow: 0 28px 90px rgba(15, 36, 56, .24);
    overscroll-behavior: contain;
}

.hm-profile-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    appearance: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe8f4;
    border-radius: 50%;
    background: #fff;
    color: #607386;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.hm-profile-modal-account {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 46px 15px 14px;
    border: 1px solid #e0ebf6;
    border-radius: 17px;
    background:
        linear-gradient(135deg,
            #eef7ff 0%,
            #fff8fc 100%);
}

.hm-profile-modal-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--haneul);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 5px 15px rgba(50, 158, 255, .20);
}

.hm-profile-modal-account-copy {
    min-width: 0;
}

.hm-profile-modal-account-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
}

.hm-profile-modal-account-copy p {
    margin: 3px 0 7px;
    overflow: hidden;
    color: #65798c;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-profile-plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid #dce7f1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #607386;
    font-size: 10px;
    font-weight: 850;
}

.hm-profile-usage-section {
    margin-top: 12px;
}

.hm-profile-modal .hm-ai-usage {
    margin: 0;
    padding: 14px 15px;
    border: 1px solid #e0ebf5;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.hm-profile-modal .hm-ai-usage-head {
    margin-bottom: 9px;
}

.hm-profile-modal .hm-ai-usage-head span {
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}

.hm-profile-modal .hm-ai-usage-head strong {
    color: var(--bada);
    font-size: 13px;
}

.hm-profile-modal .hm-ai-usage-track {
    height: 6px;
    margin: 0 0 8px;
    border-radius: 999px;
    background: #e7f1fa;
}

.hm-profile-modal .hm-ai-usage-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--haneul);
}

.hm-profile-modal .hm-ai-usage>small {
    display: block;
    color: #6f8294;
    font-size: 10px;
    line-height: 1.5;
}

.hm-profile-reset {
    margin-top: 2px;
}

.hm-profile-menu {
    display: grid;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #e0ebf5;
    border-radius: 17px;
    background: #fff;
}

.hm-profile-menu-row {
    appearance: none;
    width: 100%;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #edf3f8;
    background: #fff;
    padding: 12px 13px;
    text-align: left;
    cursor: pointer;
}

.hm-profile-menu-row:last-child {
    border-bottom: 0;
}

.hm-profile-menu-row:hover,
.hm-profile-menu-row:focus-visible {
    background: #f8fbff;
    outline: none;
}

.hm-profile-menu-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f0f7ff;
    color: var(--bada);
    font-size: 14px;
    font-weight: 900;
}

.hm-profile-menu-copy {
    min-width: 0;
}

.hm-profile-menu-copy strong,
.hm-profile-menu-copy small {
    display: block;
}

.hm-profile-menu-copy strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}

.hm-profile-menu-copy small {
    margin-top: 2px;
    color: #8393a2;
    font-size: 9px;
}

.hm-profile-menu-arrow {
    color: #9babb9;
    font-size: 20px;
    line-height: 1;
}

.hm-profile-menu-note {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #eef7ff;
    color: #49677f;
    font-size: 10px;
    line-height: 1.55;
}

.hm-profile-modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.hm-profile-pricing-link,
.hm-profile-logout {
    min-height: 42px;
    display: grid;
    place-items: center;
    width: 100%;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.hm-profile-pricing-link {
    border: 1px solid var(--haneul);
    background: var(--haneul-50);
    color: var(--bada);
}

.hm-profile-logout-form {
    margin: 0;
}

.hm-profile-logout {
    appearance: none;
    border: 1px solid #efdede;
    background: #fff;
    color: #9a5151;
}

.hm-profile-pricing-link:hover {
    background: #e6f3ff;
}

.hm-profile-logout:hover {
    border-color: #e8bebe;
    background: #fff7f7;
    color: #b42318;
}

@media (max-width: 640px) {
    .hm-profile-modal {
        align-items: end;
        padding: 10px;
    }

    .hm-profile-modal-panel {
        width: 100%;
        max-height: min(86vh, 760px);
        border-radius: 22px 22px 16px 16px;
        padding: 14px;
    }

    .hm-profile-modal-account {
        padding: 13px 42px 13px 12px;
    }

    .hm-profile-modal-avatar {
        width: 44px;
        height: 44px;
    }

    .hm-profile-menu-row {
        padding: 11px 12px;
    }

    .hm-profile-menu-copy small {
        display: none;
    }

    .hm-profile-modal-footer {
        grid-template-columns: 1fr;
    }
}



/* ==========================================================
   HANGUL_PROFILE_MODAL_VIEWPORT_CENTER_V3
   Profile modal is rooted under <body>
   ========================================================== */

.hm-profile-modal {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 24px !important;

    display: grid !important;
    place-items: center !important;

    transform: none !important;
}

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

.hm-profile-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;
}

.hm-profile-modal-panel {
    position: relative !important;

    width: min(520px, calc(100vw - 48px)) !important;

    margin: auto !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    transform: none !important;
}

@media (max-width: 640px) {
    .hm-profile-modal {
        padding: 10px !important;
        align-items: end !important;
        justify-items: center !important;
    }

    .hm-profile-modal-panel {
        width: min(100%, 520px) !important;
        margin: 0 auto !important;
    }
}

/* ==========================================================
   HANGUL_GENERATION_FEEDBACK_UX_V1
   追加AIリクエストなし
   ========================================================== */

.hm-generation-feedback[hidden] {
    display: none !important;
}

.hm-generation-feedback {
    position: relative;
    width: min(980px, calc(100% - 32px));
    margin: 16px auto 20px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid #d7eafa;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(238, 247, 255, .98),
            rgba(255, 255, 255, .98)
        );
    box-shadow:
        0 12px 32px
        rgba(18, 101, 184, .05);
}

.hm-generation-feedback::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -42%;
    width: 38%;
    opacity: 0;
    transform: skewX(-14deg);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .82),
            transparent
        );
    pointer-events: none;
}

.hm-generation-feedback.is-working::after {
    opacity: 1;
    animation:
        hmGenerationShine
        1.7s
        ease-in-out
        infinite;
}

.hm-generation-feedback-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 15px;
    background: #329eff;
    box-shadow:
        0 8px 20px
        rgba(50, 158, 255, .2);
}

.hm-generation-feedback-icon i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    opacity: .45;
}

.hm-generation-feedback.is-working
.hm-generation-feedback-icon i {
    animation:
        hmGenerationDot
        1s
        ease-in-out
        infinite;
}

.hm-generation-feedback.is-working
.hm-generation-feedback-icon i:nth-child(2) {
    animation-delay: .12s;
}

.hm-generation-feedback.is-working
.hm-generation-feedback-icon i:nth-child(3) {
    animation-delay: .24s;
}

.hm-generation-feedback.is-complete
.hm-generation-feedback-icon {
    background: #20a66a;
}

.hm-generation-feedback.is-error
.hm-generation-feedback-icon {
    background: #d75656;
}

.hm-generation-feedback-body {
    min-width: 0;
}

.hm-generation-feedback-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.hm-generation-feedback-meta span {
    color: #1680dc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.hm-generation-feedback-meta time {
    color: #7c8f9f;
    font-size: 10px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.hm-generation-feedback h2 {
    margin: 4px 0 3px;
    color: #112a42;
    font-size: 17px;
    line-height: 1.35;
}

.hm-generation-feedback p {
    margin: 0;
    color: #687d90;
    font-size: 12px;
    line-height: 1.6;
}

.hm-generation-feedback-track {
    height: 3px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcecf8;
}

.hm-generation-feedback-track span {
    display: block;
    width: 34%;
    height: 100%;
    border-radius: inherit;
    background: #329eff;
    transform: translateX(-110%);
}

.hm-generation-feedback.is-working
.hm-generation-feedback-track span {
    animation:
        hmGenerationTrack
        1.3s
        ease-in-out
        infinite;
}

.hm-generation-feedback.is-complete
.hm-generation-feedback-track span {
    width: 100%;
    transform: none;
    background: #20a66a;
}

.hm-generation-feedback.is-error
.hm-generation-feedback-track span {
    width: 100%;
    transform: none;
    background: #d75656;
}

#hm-result-translation.is-generating-text::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 4px;
    vertical-align: -.08em;
    border-radius: 999px;
    background: #329eff;
    animation:
        hmGenerationCursor
        .7s
        steps(1)
        infinite;
}

.hm-result.is-result-arriving
.hm-result-primary {
    animation:
        hmResultArrive
        .36s
        ease-out
        both;
}

.hm-result.is-result-arriving
.hm-result-grid > * {
    animation:
        hmResultArrive
        .4s
        ease-out
        both;
}

.hm-result.is-result-arriving
.hm-result-grid > *:nth-child(1) {
    animation-delay: .08s;
}

.hm-result.is-result-arriving
.hm-result-grid > *:nth-child(2) {
    animation-delay: .14s;
}

.hm-result.is-result-arriving
.hm-result-grid > *:nth-child(3) {
    animation-delay: .20s;
}

.hm-result.is-result-arriving
.hm-result-grid > *:nth-child(4) {
    animation-delay: .26s;
}

@keyframes hmGenerationDot {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .4;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@keyframes hmGenerationTrack {
    0% {
        transform: translateX(-110%);
    }

    65%,
    100% {
        transform: translateX(190%);
    }
}

@keyframes hmGenerationShine {
    0% {
        left: -42%;
    }

    72%,
    100% {
        left: 125%;
    }
}

@keyframes hmGenerationCursor {
    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }
}

@keyframes hmResultArrive {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .hm-generation-feedback {
        width: min(100% - 20px, 980px);
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
        border-radius: 17px;
    }

    .hm-generation-feedback-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .hm-generation-feedback h2 {
        font-size: 15px;
    }

    .hm-generation-feedback p {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-generation-feedback *,
    .hm-generation-feedback::after,
    #hm-result-translation.is-generating-text::after,
    .hm-result.is-result-arriving * {
        animation: none !important;
        transition: none !important;
    }
}



/* ==========================================================
   HANGUL_SIDEBAR_SEO_CLEANUP_V1
   ========================================================== */

.hm-sidebar-memory-head {
    margin-bottom: 10px;
}

.hm-sidebar-memory-head .hm-sidebar-eyebrow {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .01em;
}

#hm-fixed-memory-collections {
    gap: 6px;
}

#hm-fixed-memory-collections .hm-quick-target-row {
    min-height: 56px;
    padding-top: 9px;
    padding-bottom: 9px;
}

#hm-fixed-memory-collections .hm-target-copy {
    display: flex;
    align-items: center;
}

#hm-fixed-memory-collections .hm-target-name {
    font-size: 13px;
}

#hm-fixed-memory-collections .hm-target-meta {
    display: none !important;
}

.hm-sidebar-target-separator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-sidebar-target-add-inline {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border: 1px solid var(--haneul-100);
    border-radius: 9px;
    background: #fff;
    color: var(--bada);
    font-size: 18px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
}

.hm-sidebar-target-add-inline:hover,
.hm-sidebar-target-add-inline:focus-visible {
    border-color: var(--haneul);
    background: var(--haneul-50);
    outline: none;
}

.hm-target-list {
    gap: 6px;
}

.hm-target-row {
    min-height: 54px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.hm-target-progress-mini,
.hm-target-next {
    display: none !important;
}

.hm-quick-actions {
    display: none !important;
}

body.hm-translation-engaged .hm-seo {
    display: none !important;
}

