.home-keyword-tool{--keyword-hero-start:var(--primary);--keyword-hero-end:color-mix(in srgb,var(--primary) 48%,var(--calculator-operations-accent));width:min(900px,100%);margin:16px auto 0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-soft)}
.home-keyword-stage{position:relative;isolation:isolate;padding:38px 42px 34px;overflow:hidden;background:linear-gradient(135deg,var(--keyword-hero-start),var(--keyword-hero-end));color:var(--text-inverse);text-align:center}
.home-keyword-stage::before{content:"";position:absolute;z-index:-1;inset:0;background-image:radial-gradient(circle,color-mix(in srgb,var(--text-inverse) 12%,transparent) 1px,transparent 1px);background-size:24px 24px;mask-image:linear-gradient(to bottom,rgb(0 0 0 / 75%),transparent)}
.home-keyword-stage::after{content:"";position:absolute;z-index:-1;right:-120px;bottom:-180px;width:400px;height:400px;border-radius:50%;background:color-mix(in srgb,var(--text-inverse) 10%,transparent)}
.home-keyword-kicker{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid color-mix(in srgb,var(--text-inverse) 34%,transparent);border-radius:999px;background:color-mix(in srgb,var(--text-inverse) 10%,transparent);font-size:12px;font-weight:700;line-height:1}
.home-keyword-kicker svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.home-keyword-stage h2{margin:18px 0 0;color:inherit;font-size:26px;line-height:1.24;letter-spacing:-1.5px}
.home-keyword-stage h2 strong{color:inherit;font-weight:900}
.home-keyword-stage>p{max-width:640px;margin:12px auto 0;color:color-mix(in srgb,var(--text-inverse) 85%,transparent);font-size:14px;line-height:1.65}
.home-keyword-form{max-width:690px;margin:25px auto 0}
.home-keyword-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.home-keyword-searchbox{display:grid;grid-template-columns:minmax(0,1fr) 150px;min-height:132px;overflow:hidden;border:1px solid color-mix(in srgb,var(--text-inverse) 42%,transparent);border-radius:12px;background:var(--surface);box-shadow:0 14px 34px rgb(16 45 112 / 20%)}
.home-keyword-input-wrap{position:relative;min-width:0;background:var(--surface)}
.home-keyword-searchbox textarea{display:block;width:100%;min-height:132px;padding:17px 58px 17px 20px;resize:vertical;border:0;border-radius:0;background:var(--surface);color:var(--text);font:500 16px/1.55 inherit;outline:0;box-shadow:none}
.home-keyword-searchbox textarea::placeholder{color:var(--text-faint)}
.home-keyword-searchbox textarea:focus{box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--focus-ring) 24%,transparent)}
.home-keyword-input-count{position:absolute;right:13px;bottom:11px;padding:3px 7px;border-radius:999px;background:var(--surface-subtle);color:var(--text-muted);font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}
.home-keyword-input-count[data-over-limit="true"]{background:var(--danger-subtle);color:var(--danger)}
.home-keyword-searchbox button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:132px;padding:0 18px;border:0;border-left:1px solid var(--line);border-radius:0;background:var(--surface-subtle);color:var(--accent-link);font-size:14px;font-weight:800;cursor:pointer}
.home-keyword-searchbox button:hover,.home-keyword-searchbox button:focus-visible{background:var(--surface-selected);outline:0}
.home-keyword-searchbox button:focus-visible{box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--focus-ring) 30%,transparent)}
.home-keyword-searchbox button:disabled{cursor:wait;opacity:.72}
.home-keyword-tool[data-quota-exhausted="true"] .home-keyword-searchbox button:disabled{cursor:not-allowed}
.home-keyword-searchbox button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}
.home-keyword-input-help{margin:8px 2px 0;color:color-mix(in srgb,var(--text-inverse) 82%,transparent);font-size:11px;line-height:1.55;text-align:left}
.home-keyword-examples{display:flex;align-items:center;justify-content:center;gap:10px;min-height:24px;margin:13px auto 0;color:color-mix(in srgb,var(--text-inverse) 78%,transparent);font-size:12px}
.home-keyword-examples b{color:var(--text-inverse);font-size:12px}
.home-keyword-examples button{padding:2px 0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.home-keyword-examples button:hover,.home-keyword-examples button:focus-visible{color:var(--text-inverse);text-decoration:underline;text-underline-offset:3px;outline:0}
.home-keyword-examples i{font-style:normal;opacity:.55}
.home-keyword-benefits{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:17px}
.home-keyword-benefits span{padding:6px 10px;border:1px solid color-mix(in srgb,var(--text-inverse) 28%,transparent);border-radius:999px;background:color-mix(in srgb,var(--text-inverse) 10%,transparent);color:var(--text-inverse);font-size:11px;font-weight:650}
.home-keyword-feedback:empty{display:none}
.home-keyword-feedback{border-top:1px solid var(--line);background:var(--surface)}
.home-keyword-storage-status{margin:0;padding:10px 18px;border-top:1px solid var(--line);background:var(--warning-subtle);color:var(--warning);font-size:12px;font-weight:700;line-height:1.5}
.home-keyword-action-status{margin:0;padding:10px 18px;border-top:1px solid var(--line);background:var(--success-subtle);color:var(--success);font-size:12px;font-weight:700;line-height:1.5}
.home-keyword-result-state{display:grid;justify-items:center;padding:32px 24px;text-align:center}
.home-keyword-result-state>span:not(.home-keyword-spinner){display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--surface-subtle);color:var(--accent-link);font-size:18px;font-weight:800}
.home-keyword-result-state.error>span{background:var(--danger-subtle);color:var(--danger)}
.home-keyword-result-state h3{margin:12px 0 0;color:var(--text);font-size:18px;line-height:1.4}
.home-keyword-result-state p{margin:6px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}
.home-keyword-result-state.compact{padding:18px 16px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-subtle)}
.home-keyword-result-state.compact>span{width:30px;height:30px;font-size:15px}
.home-keyword-result-state.compact h3{font-size:15px}
.home-keyword-result-state button{min-height:40px;margin-top:16px;padding:8px 16px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:13px;font-weight:700;cursor:pointer}
.home-keyword-spinner{width:30px;height:30px;border:3px solid var(--line);border-top-color:var(--accent-link);border-radius:50%;animation:home-keyword-spin .75s linear infinite}
@keyframes home-keyword-spin{to{transform:rotate(360deg)}}
.home-keyword-results{padding:24px}
.home-keyword-table-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:24px;padding-bottom:10px}
.home-keyword-related-section .home-keyword-table-heading{margin-top:0}
.home-keyword-table-heading b,.home-keyword-table-heading span{display:block}
.home-keyword-table-heading b{color:var(--text);font-size:16px}
.home-keyword-table-heading span,.home-keyword-table-heading small{margin-top:3px;color:var(--text-muted);font-size:11px;line-height:1.5}
.home-keyword-table-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.home-keyword-table-actions small{margin:0 5px 0 0}
.home-keyword-table-actions button{min-height:44px;padding:8px 13px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--accent-link);font:700 12px/1.2 inherit;cursor:pointer}
.home-keyword-table-actions button:hover,.home-keyword-table-actions button:focus-visible{background:var(--surface-selected);outline:3px solid color-mix(in srgb,var(--focus-ring) 24%,transparent);outline-offset:1px}
.home-keyword-table-actions button.primary{border-color:var(--action-primary-bg);background:var(--action-primary-bg);color:var(--action-primary-fg)}
.home-keyword-table-actions button.primary:hover,.home-keyword-table-actions button.primary:focus-visible{border-color:var(--action-primary-hover);background:var(--action-primary-hover);color:var(--action-primary-fg)}
.home-keyword-table-actions button.danger{color:var(--danger)}
.home-keyword-table-actions button:disabled{cursor:not-allowed;opacity:.5}
.home-keyword-table-wrap{border:1px solid var(--line);border-radius:var(--radius-md)}
.home-keyword-related-wrap{max-height:420px;overflow:auto;overscroll-behavior:contain}
.home-keyword-saved-wrap{max-height:none;overflow-x:auto;overflow-y:hidden}
.home-keyword-table-wrap table{width:100%;min-width:720px;border-collapse:separate;border-spacing:0}
.home-keyword-saved-wrap table{min-width:770px}
.home-keyword-table-wrap th,.home-keyword-table-wrap td{padding:11px 13px;border-right:0;border-bottom:1px solid var(--line);font-size:13px;text-align:right;white-space:nowrap}
.home-keyword-table-wrap thead th{background:var(--surface-subtle);color:var(--text-muted);font-weight:700}
.home-keyword-related-wrap thead th{position:sticky;z-index:1;top:0}
.home-keyword-related-wrap thead th:nth-child(2),.home-keyword-saved-wrap thead th:nth-child(3),.home-keyword-table-wrap tbody th{text-align:left}
.home-keyword-table-wrap tbody th{min-width:230px;background:var(--surface);color:var(--text);font-weight:650}
.home-keyword-related-wrap tbody tr{height:47px}
.home-keyword-table-wrap tbody tr.exact th,.home-keyword-table-wrap tbody tr.exact td{background:var(--surface-selected)}
.home-keyword-table-wrap tbody tr.remembered th,.home-keyword-table-wrap tbody tr.remembered td{background:var(--accent-subtle)}
.home-keyword-table-wrap tbody tr.selected th,.home-keyword-table-wrap tbody tr.selected td{background:var(--surface-selected)}
.home-keyword-table-wrap tbody tr.is-dragging{opacity:.55}
.home-keyword-table-wrap tbody tr:last-child th,.home-keyword-table-wrap tbody tr:last-child td{border-bottom:0}
.home-keyword-table-wrap tbody th em{display:inline-flex;margin-left:7px;padding:2px 6px;border-radius:999px;background:var(--accent-subtle);color:var(--accent-link);font-size:10px;font-style:normal;font-weight:750}
.home-keyword-table-wrap tbody th em.remembered-label{background:var(--success-subtle);color:var(--success)}
.home-keyword-table-wrap tbody th small{display:block;margin-top:4px;color:var(--text-muted);font-size:10px;font-weight:500}
.home-keyword-remember-column{width:58px;min-width:58px;text-align:center!important}
.home-keyword-remember-cell{width:58px;padding:1px 7px!important;text-align:center!important}
.home-keyword-checkbox-hit{display:inline-grid;place-items:center;width:44px;height:44px;margin:auto;cursor:pointer}
.home-keyword-checkbox-hit.is-disabled{cursor:not-allowed;opacity:.55}
.home-keyword-remember-cell input{width:18px;height:18px;margin:0;accent-color:var(--accent-link);cursor:pointer}
.home-keyword-remember-cell input:disabled{cursor:not-allowed}
.home-keyword-remember-cell input:focus-visible{outline:3px solid color-mix(in srgb,var(--focus-ring) 30%,transparent);outline-offset:2px}
.home-keyword-move-column{width:58px;min-width:58px;text-align:center!important}
.home-keyword-move-cell{width:58px;padding:1px 7px!important;text-align:center!important}
.home-keyword-drag-handle{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);cursor:grab}
.home-keyword-drag-handle:active{cursor:grabbing}
.home-keyword-drag-handle:hover{border-color:var(--line-strong);background:var(--surface-selected);color:var(--accent-link)}
.home-keyword-drag-handle:focus-visible{border-color:var(--focus-ring);outline:3px solid color-mix(in srgb,var(--focus-ring) 28%,transparent);outline-offset:1px}
.home-keyword-drag-handle svg{width:16px;height:20px;fill:currentColor}
.home-keyword-saved-empty{display:grid;gap:4px;padding:22px;border:1px dashed var(--line-strong);border-radius:var(--radius-md);background:var(--surface-subtle);text-align:center}
.home-keyword-saved-empty b{color:var(--text);font-size:14px}
.home-keyword-saved-empty span{color:var(--text-muted);font-size:12px;line-height:1.5}
.home-keyword-competition{display:inline-flex;justify-content:center;min-width:54px;padding:4px 7px;border-radius:999px;background:var(--surface-subtle);color:var(--text-muted);font-size:11px;font-weight:750}
.home-keyword-competition.competition-high{background:var(--danger-subtle);color:var(--danger)}
.home-keyword-competition.competition-medium{background:var(--warning-subtle);color:var(--warning)}
.home-keyword-competition.competition-low{background:var(--success-subtle);color:var(--success)}
.home-keyword-source-note{margin:13px 0 0;color:var(--text-muted);font-size:11px;line-height:1.6}
.home-keyword-source-note a{color:var(--accent-link);font-weight:700}
html[data-theme="dark"] .home-keyword-tool{--keyword-hero-start:#294E8F;--keyword-hero-end:#4D518F;border-color:var(--border-strong)}
html[data-theme="dark"] .home-keyword-searchbox{border-color:color-mix(in srgb,var(--text-inverse) 30%,var(--border-strong));box-shadow:0 16px 36px rgb(4 9 18 / 32%)}
@media(max-width:760px){
  .home-keyword-tool{margin-top:12px;border-radius:var(--radius-md)}
  .home-keyword-stage{padding:30px 20px 26px}
  .home-keyword-stage h2{font-size:26px}
  .home-keyword-searchbox{grid-template-columns:1fr}
  .home-keyword-searchbox button{min-height:50px;border-top:1px solid var(--line);border-left:0}
  .home-keyword-searchbox textarea{min-height:126px;font-size:15px}
  .home-keyword-input-help{text-align:center}
  .home-keyword-examples{flex-wrap:wrap;gap:7px 9px}
  .home-keyword-table-heading{display:block}
  .home-keyword-table-heading>small{display:block;margin-top:7px}
  .home-keyword-table-actions{justify-content:flex-start;margin-top:10px}
  .home-keyword-results{padding:20px 16px}
  .home-keyword-table-wrap table{min-width:690px}
  .home-keyword-saved-wrap table{min-width:740px}
}

/* 공통 앱 제목 규칙보다 이 홈 도구의 합의한 크기(+4px)를 우선한다. */
#app .home-keyword-stage h2{font-size:26px!important;line-height:1.24!important}
