@charset "UTF-8";
:root {
  color-scheme: light;
  --accent: #c44370;
  --accent-hover: #ad315c;
  --text: #352a30;
  --muted: #8b7e84;
  --subtle: #b4a6ad;
  --pink: #fff1f6;
  --line: #f0e5e9;
  --bg: #fffcfd;
  --surface: #fff;
  --green: #408b70;
  --danger: #b23b52;
  --radius: 18px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #eb9cb7;
  outline-offset: 4px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #d45b8412;
}
input::placeholder,
textarea::placeholder {
  color: var(--subtle);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
label input,
label textarea,
label select {
  margin-top: 7px;
  font-weight: 400;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.45;
  letter-spacing: -1.5px;
  font-weight: 720;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 14px;
}
svg.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 11px;
}
.row-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.hidden,
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 99;
  padding: 12px;
  background: var(--surface);
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 214px;
  padding: 34px 23px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.9px;
}
.brand-symbol {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--pink);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.brand-symbol .icon {
  width: 23px;
  height: 23px;
}
.brand-sub {
  color: var(--subtle);
  font-size: 10px;
  margin: 8px 0 36px 44px;
  letter-spacing: 0.8px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--subtle);
  margin: 12px 12px;
}
.nav-links {
  display: grid;
  gap: 6px;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 13px;
  transition: background 0.15s;
}
.nav-links a.active {
  background: var(--pink);
  color: var(--accent);
  font-weight: 650;
}
.nav-links a:hover {
  background: var(--pink);
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 23px 12px;
}
.sidebar-note {
  margin-top: auto;
  padding: 17px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.sidebar-note .icon {
  color: #d489a3;
  margin-bottom: 8px;
}
.sidebar-note strong {
  display: block;
  color: var(--text);
  font-weight: 500;
}
.shell {
  margin-left: 214px;
}
.topbar {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
}
.breadcrumb {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb .icon {
  width: 15px;
  height: 15px;
  color: var(--subtle);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--muted);
  font-size: 11px;
}
.avatar {
  background: var(--pink);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.main {
  max-width: 1130px;
  padding: 36px 46px 60px;
  margin: auto;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 27px;
  min-height: 125px;
}
.hero p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.hero-art {
  height: 108px;
  width: 150px;
  position: relative;
  margin-right: 24px;
  flex-shrink: 0;
}
.hero-art span {
  position: absolute;
  width: 76px;
  height: 43px;
  border: 12px solid #f0c4d3;
  border-radius: 30px;
  transform: rotate(-39deg);
  left: 16px;
  top: 40px;
  box-shadow: inset 0 2px 3px #c7799720;
}
.hero-art span + span {
  left: 59px;
  top: 20px;
  border-color: #d77e9e;
}
.hero-art i {
  position: absolute;
  top: 7px;
  left: 24px;
  color: #e6afc3;
  font-size: 21px;
  font-style: normal;
}
.hero-art small {
  position: absolute;
  bottom: 3px;
  right: 6px;
  color: #d89ab1;
  font-size: 18px;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #faeaf1, transparent 69%);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.create-card {
  padding: 23px 26px;
  box-shadow: 0 4px 20px #8a3f5b03;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.section-title .icon {
  color: var(--accent);
  width: 17px;
}
.section-title h2 {
  font-size: 14px;
}
.section-title .step {
  font-size: 10px;
  margin-left: auto;
  color: var(--subtle);
}
.create-line {
  display: flex;
  gap: 10px;
}
.url-field {
  display: flex;
  flex: 1;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  padding-left: 15px;
  color: #c5a8b4;
}
.url-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #d45b8412;
}
.url-field input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 14px 12px;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 15px;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.7;
  font-weight: 600;
}
.btn:hover {
  background: var(--bg);
  border-color: #debdca;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-primary .icon {
  width: 16px;
}
.btn-soft {
  background: var(--pink);
  color: var(--accent);
  border-color: transparent;
}
.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-quiet {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 5px 0;
  font-size: 11px;
  font-weight: 400;
}
.btn-quiet:hover {
  color: var(--accent);
  background: transparent;
}
.form-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--subtle);
  font-size: 10px;
  margin-top: 11px;
}
.form-footnote .icon {
  width: 12px;
  height: 12px;
}
.platforms {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: auto;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c596a9;
  margin-right: 4px;
}
.resolve-panel {
  padding-top: 19px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.product-preview {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 17px;
}
.product-image {
  width: 66px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
  background: var(--pink);
}
.product-copy {
  flex: 1;
  min-width: 0;
}
.product-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.product-price {
  font-size: 15px;
  margin: 2px 0;
}
.conversion {
  font-size: 11px;
  color: var(--green);
}
.conversion.unconverted {
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.code-field {
  display: flex;
  gap: 7px;
  align-items: center;
}
.code-field .btn {
  margin-top: 7px;
  padding: 11px;
}
.form-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.form-details summary {
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  width: fit-content;
}
.form-details[open] summary {
  margin-bottom: 14px;
}
.field-hint {
  font-size: 10px;
  color: var(--subtle);
  font-weight: 400;
}
.feedback {
  font-size: 12px;
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--pink);
  color: var(--accent);
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.feedback.error {
  color: var(--danger);
}
.success-card {
  border: 1px solid #cfe6dc;
  background: #f8fcf9;
  padding: 13px 16px;
  border-radius: 12px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.success-card > .icon {
  color: var(--green);
}
.success-card div {
  min-width: 0;
  flex: 1;
}
.success-card strong {
  font-size: 12px;
  display: block;
}
.success-card a {
  font-size: 12px;
  color: var(--green);
  overflow-wrap: anywhere;
}
.skeleton {
  height: 14px;
  width: 75%;
  border-radius: 6px;
  background: var(--line);
  animation: breathe 1.3s ease-in-out infinite alternate;
}
.skeleton + .skeleton {
  width: 40%;
  margin-top: 10px;
}
.skeleton-box {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--line);
}
@keyframes breathe {
  to {
    opacity: 0.4;
  }
}
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 31px;
}
.mini-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.metric-icon {
  background: var(--bg);
  color: #ce94aa;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.metric-label {
  color: var(--muted);
  font-size: 10px;
}
.metric-value {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 11px;
  color: var(--subtle);
  margin-left: 4px;
  font-weight: 400;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.list-heading h2 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.count-badge {
  color: var(--accent);
  background: var(--pink);
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
}
.search {
  position: relative;
  width: 235px;
}
.search .icon {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 15px;
  color: var(--subtle);
}
.search input {
  padding: 9px 11px 9px 35px;
  font-size: 11px;
  border-radius: 9px;
}
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.chip[aria-pressed="true"] {
  border-color: #e6b7c9;
  background: var(--pink);
  color: var(--accent);
  font-weight: 600;
}
.chip:hover {
  color: var(--accent);
}
.link-list {
  overflow: hidden;
}
.list-columns,
.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 66px 174px;
  align-items: center;
  gap: 14px;
}
.list-columns {
  padding: 11px 21px;
  color: var(--subtle);
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.list-columns span:not(:first-child) {
  text-align: center;
}
.link-row {
  padding: 15px 21px;
  border-bottom: 1px solid var(--line);
}
.link-row:last-child {
  border: 0;
}
.link-row:hover {
  background: var(--bg);
}
.link-main {
  display: flex;
  gap: 13px;
  min-width: 0;
  align-items: center;
}
.thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--pink);
}
.thumb-placeholder {
  display: grid;
  place-items: center;
  color: #d4a0b4;
}
.thumb-placeholder .icon {
  width: 17px;
  height: 17px;
}
.link-info {
  min-width: 0;
}
.link-title {
  font-size: 12px;
  font-weight: 550;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-title:hover {
  color: var(--accent);
}
.link-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 10px;
  min-width: 0;
}
.link-meta .code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform {
  font-size: 9px;
  color: var(--muted);
}
.click-count {
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-size: 12px;
}
.click-count.today {
  color: var(--accent);
}
.link-actions {
  display: flex;
  gap: 3px;
  justify-content: flex-end;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--subtle);
  border-radius: 7px;
  width: 30px;
  height: 32px;
  display: grid;
  place-items: center;
}
.icon-btn:hover {
  color: var(--accent);
  background: var(--pink);
}
.icon-btn .icon {
  width: 15px;
  height: 15px;
}
.icon-btn.is-pinned {
  color: #c885a0;
}
.copy-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 3px;
}
.copy-btn .icon {
  width: 12px;
  height: 12px;
}
.copy-btn:hover {
  color: var(--accent);
  border-color: #e6b7c9;
}
.list-footer {
  text-align: center;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 10px;
}
.empty-state {
  text-align: center;
  padding: 45px 24px;
  color: var(--muted);
  font-size: 12px;
}
.empty-state .icon {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto 12px;
  color: #dcabbf;
}
.footer {
  margin-top: 37px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 10px;
}
.footer .icon {
  width: 11px;
  height: 11px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 107px);
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 12px;
  box-shadow: 0 4px 20px #32233017;
  z-index: 60;
  max-width: 90vw;
}
.toast:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  max-width: min(550px, calc(100vw - 32px));
  width: 100%;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 20px 80px #3f263b15;
}
dialog::backdrop {
  background: #352a3045;
  backdrop-filter: blur(2px);
}
dialog h2 {
  margin-bottom: 15px;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dialog-header h2 {
  margin: 0;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.qr-image {
  display: block;
  width: 240px;
  max-width: 100%;
  margin: 20px auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.qr-url {
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
}
.upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.upload-row input {
  flex: 1;
}
.upload-label {
  margin-top: 7px;
  cursor: pointer;
}
.page-heading {
  margin: 6px 0 28px;
}
.page-heading h1 {
  font-size: 28px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.stats-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 22px;
}
.stats-metric {
  padding: 19px 21px;
}
.stats-metric .metric-value {
  font-size: 30px;
  margin-top: 9px;
}
.stats-metric:first-child {
  background: var(--pink);
  border-color: #efd2df;
}
.stats-metric:first-child .metric-value {
  color: var(--accent);
}
.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 18px;
  align-items: start;
}
.chart-card,
.calendar-card,
.sources-card {
  padding: 21px;
}
.chart-card {
  min-width: 0;
}
.date-range {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.date-range input {
  font-size: 11px;
  padding: 7px 9px;
}
.date-range .btn {
  padding: 7px 11px;
}
.chart {
  width: 100%;
  height: 215px;
  margin-top: 14px;
  overflow: visible;
}
.chart text {
  font-family: inherit;
  font-size: 10px;
  fill: var(--subtle);
}
.chart .grid-line {
  stroke: var(--line);
  stroke-width: 1;
}
.chart .trend {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .area {
  fill: #d5658b12;
}
.chart circle {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.7;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  font-size: 12px;
  font-weight: 600;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.calendar-grid .weekday {
  font-size: 9px;
  color: var(--subtle);
  padding: 3px;
}
.calendar-day {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px 0;
  min-height: 32px;
  font-size: 10px;
  color: var(--text);
  position: relative;
}
.calendar-day:hover {
  background: var(--pink);
}
.calendar-day[aria-pressed="true"] {
  background: var(--accent);
  color: white;
}
.calendar-day[data-clicks="true"]:after {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  background: #d47c9d;
  border-radius: 50%;
  margin: 1px auto;
}
.calendar-day[aria-pressed="true"]:after {
  background: white;
}
.calendar-total {
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.calendar-total strong {
  color: var(--accent);
  float: right;
}
.sources-card {
  margin-top: 18px;
}
.source-row {
  font-size: 10px;
  margin-top: 13px;
}
.source-bar {
  height: 5px;
  border-radius: 4px;
  background: var(--pink);
  margin-top: 5px;
  overflow: hidden;
}
.source-bar span {
  display: block;
  background: #d58aa6;
  height: 100%;
  border-radius: 4px;
}
.stats-table {
  margin-top: 22px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 11px 17px;
  background: var(--bg);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
td:first-child {
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
th button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
}
tr:last-child td {
  border: 0;
}
.stats-table-title {
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: start;
}
.settings-card {
  padding: 25px;
}
.settings-card + .settings-card {
  margin-top: 18px;
}
.settings-card h2 {
  font-size: 15px;
  margin-bottom: 6px;
}
.settings-card > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.settings-card form > label {
  margin-bottom: 15px;
}
.connection {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 10px;
}
.connection:last-child {
  border: 0;
}
.status-ok {
  color: var(--green);
  font-size: 10px;
}
.status-missing {
  color: var(--danger);
  font-size: 10px;
}
.guide {
  margin-top: 24px;
}
.guide summary {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
}
.guide ol {
  padding-left: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}
.guide p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 25%, #fff1f7, transparent 65%), var(--bg);
}
.login-container {
  width: min(395px, calc(100% - 36px));
  margin: 42px auto;
}
.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}
.login-card {
  padding: 35px 32px;
}
.login-card h1 {
  font-size: 26px;
}
.login-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 24px;
}
.login-card form > label {
  margin: 15px 0;
}
.login-options {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 25px;
}
.login-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
}
.login-options input {
  margin: 0;
}
.login-card .btn-primary {
  width: 100%;
  padding: 12px;
}
.login-footer {
  text-align: center;
  color: var(--subtle);
  font-size: 10px;
  margin-top: 24px;
}
.editor-wrap {
  color: var(--text);
}
.editor-wrap .controls-col {
  background: var(--surface);
}
.editor-wrap input:not([type="range"]):not([type="checkbox"]),
.editor-wrap select {
  font-size: 12px;
}
.editor-wrap .btn-primary {
  padding: 12px;
  border: 0;
  border-radius: 10px;
}
.editor-wrap .glass {
  border: 1px solid var(--line);
  border-radius: 16px;
}
.editor-wrap .ctrl-label {
  color: var(--accent);
}
@media (min-width: 1500px) {
  .main {
    padding-top: 45px;
  }
  .hero {
    margin-bottom: 33px;
  }
  .create-card {
    padding: 26px 29px;
  }
  .link-row {
    padding-top: 17px;
    padding-bottom: 17px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 185px;
    padding: 29px 16px;
  }
  .shell {
    margin-left: 185px;
  }
  .main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .link-row,
  .list-columns {
    grid-template-columns: minmax(0, 1fr) 46px 52px 150px;
    gap: 8px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .link-actions {
    gap: 0;
  }
  .icon-btn {
    width: 27px;
  }
  .mini-metric {
    padding: 15px;
  }
  .stats-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .chart-card,
  .calendar-card,
  .sources-card {
    padding: 17px;
  }
  .toast {
    left: calc(50% + 92px);
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .brand {
    font-size: 18px;
  }
  .brand-symbol {
    width: 29px;
    height: 29px;
    border-radius: 9px;
  }
  .brand-sub,
  .nav-label,
  .nav-divider,
  .sidebar-note {
    display: none;
  }
  .nav-links {
    display: flex;
    gap: 5px;
    margin: 13px -4px 9px;
  }
  .nav-links a {
    padding: 8px 12px;
    font-size: 12px;
    gap: 7px;
  }
  .nav-links a .icon {
    width: 16px;
    height: 16px;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    display: none;
  }
  .main {
    padding: 24px 22px 36px;
    max-width: 720px;
  }
  .hero {
    min-height: 100px;
    margin-bottom: 22px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero-art {
    transform: scale(0.8);
    margin-right: 0;
    width: 120px;
  }
  .hero p {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .create-card {
    padding: 21px;
  }
  .stats-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .toast {
    left: 50%;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-layout > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .settings-layout > div:last-child .settings-card {
    margin: 0;
  }
  .link-row,
  .list-columns {
    grid-template-columns: minmax(0, 1fr) 50px 58px 158px;
  }
  .stats-metric {
    padding: 16px;
  }
  .stats-metric .metric-value {
    font-size: 26px;
  }
}
@media (max-width: 560px) {
  .main {
    padding: 22px 17px 30px;
  }
  .sidebar {
    padding-left: 17px;
    padding-right: 17px;
  }
  .nav-links a {
    padding: 7px 11px;
    font-size: 11px;
  }
  .hero {
    margin-bottom: 18px;
  }
  .hero h1 {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .hero-art {
    width: 82px;
    transform: scale(0.68);
    transform-origin: right center;
    margin-right: 12px;
  }
  .hero p {
    max-width: 230px;
    font-size: 11px;
  }
  .create-card {
    padding: 18px 16px;
  }
  .section-title {
    margin-bottom: 14px;
  }
  .section-title .step {
    font-size: 9px;
  }
  .create-line {
    gap: 8px;
    flex-wrap: wrap;
  }
  .url-field {
    flex-basis: 100%;
  }
  .url-field input {
    font-size: 12px;
    padding: 13px 10px;
  }
  .create-line > .btn {
    width: 100%;
    padding: 10px;
  }
  .form-footnote {
    font-size: 9px;
  }
  .platforms {
    gap: 6px;
  }
  .platforms .dot {
    display: none;
  }
  .form-grid {
    gap: 10px;
  }
  .form-grid label {
    font-size: 10px;
  }
  .form-grid input {
    font-size: 12px;
  }
  .mini-metrics {
    gap: 8px;
    margin: 14px 0 25px;
  }
  .mini-metric {
    display: block;
    padding: 12px 13px;
  }
  .metric-icon {
    display: none;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-value {
    font-size: 21px;
    margin-top: 4px;
  }
  .metric-value small {
    font-size: 9px;
  }
  .list-heading {
    gap: 12px;
    align-items: center;
  }
  .list-heading h2 {
    font-size: 14px;
    white-space: nowrap;
  }
  .search {
    width: 170px;
  }
  .search input {
    font-size: 10px;
  }
  .filter-row {
    gap: 5px;
  }
  .chip {
    padding: 5px 9px;
    font-size: 9px;
  }
  .list-columns {
    display: none;
  }
  .link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 9px;
    padding: 14px;
  }
  .link-main {
    gap: 10px;
  }
  .thumb {
    width: 39px;
    height: 39px;
    border-radius: 8px;
  }
  .link-title {
    font-size: 11px;
  }
  .link-meta {
    font-size: 9px;
    gap: 5px;
  }
  .click-count.today {
    font-size: 13px;
    align-self: center;
  }
  .click-count.today:before {
    content: "오늘 ";
    font-size: 9px;
    color: var(--subtle);
    display: block;
  }
  .click-count.total {
    grid-column: 1;
    text-align: left;
    padding-left: 49px;
    font-size: 10px;
    color: var(--muted);
  }
  .click-count.total:before {
    content: "누적 ";
    color: var(--subtle);
  }
  .link-actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    width: 142px;
    height: 25px;
  }
  .icon-btn {
    height: 27px;
    width: 26px;
  }
  .icon-btn .icon {
    width: 13px;
  }
  .copy-btn {
    font-size: 9px;
    padding: 3px 6px;
  }
  .link-meta .code {
    max-width: 100px;
  }
  .list-footer {
    font-size: 9px;
  }
  .footer {
    font-size: 9px;
    margin-top: 27px;
  }
  .footer span:last-child {
    display: none;
  }
  .stats-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stats-metric {
    padding: 15px 18px;
  }
  .stats-metric .metric-value {
    font-size: 25px;
  }
  .stats-layout {
    grid-template-columns: 1fr;
  }
  .stats-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }
  .calendar-card,
  .sources-card {
    padding: 13px;
    margin: 0;
  }
  .source-row {
    margin-top: 11px;
    font-size: 9px;
  }
  .date-range {
    gap: 5px;
  }
  .date-range input {
    font-size: 10px;
    padding: 7px 5px;
    max-width: 130px;
  }
  .date-range .btn {
    font-size: 10px;
    padding: 7px 9px;
  }
  .chart {
    height: 195px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .settings-card {
    padding: 21px;
  }
  .settings-layout > div:last-child {
    display: block;
  }
  .settings-layout > div:last-child .settings-card + .settings-card {
    margin-top: 17px;
  }
  .settings-card h2 {
    font-size: 14px;
  }
  td:first-child {
    max-width: 180px;
  }
  .product-preview {
    gap: 11px;
  }
  .product-image {
    width: 54px;
    height: 54px;
  }
  .product-copy strong {
    font-size: 12px;
  }
  .product-price {
    font-size: 13px;
  }
  dialog {
    padding: 21px;
  }
  .success-card {
    padding: 11px;
  }
  .success-card strong,
  .success-card a {
    font-size: 11px;
  }
  .editor-wrap {
    padding: 12px !important;
  }
  .editor-wrap .canvas-col,
  .editor-wrap .controls-col {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }
  .editor-wrap .editor-layout {
    gap: 12px;
  }
  .login-card {
    padding: 29px 25px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --accent: #efa8c1;
    --accent-hover: #fac1d5;
    --text: #efdee5;
    --muted: #b4a0aa;
    --subtle: #8c7682;
    --pink: #39232d;
    --line: #402c37;
    --bg: #20191e;
    --surface: #292027;
    --green: #8cc6ac;
    --danger: #f49bad;
  }
  .btn-primary {
    background: #ab446b;
    color: white;
    border-color: #ab446b;
  }
  .btn-primary:hover {
    background: #bb547b;
    color: white;
    border-color: #bb547b;
  }
  .btn-danger {
    background: #a13b56;
    color: white;
  }
  .hero-art span {
    border-color: #89556a;
  }
  .hero-art span + span {
    border-color: #be7391;
  }
  .hero-art:before {
    background: radial-gradient(ellipse, #472736, transparent 69%);
  }
  .stats-metric:first-child {
    border-color: #63374b;
  }
  .success-card {
    background: #1c3028;
    border-color: #315344;
  }
  .login-body {
    background:
      radial-gradient(ellipse at 50% 25%, #3d2431, transparent 65%), var(--bg);
  }
  .calendar-day[aria-pressed="true"] {
    background: #a7476e;
  }
  .toast {
    background: #f2e4ea;
    color: #352a30;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep compact row actions on one line at every breakpoint. */
.copy-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.icon-btn {
  flex-shrink: 0;
}
.list-columns,
.link-row {
  grid-template-columns: minmax(0, 1fr) 62px 66px 194px;
}
@media (max-width: 1100px) and (min-width: 561px) {
  .list-columns,
  .link-row {
    grid-template-columns: minmax(0, 1fr) 46px 52px 174px;
  }
}
@media (max-width: 560px) {
  .link-row {
    grid-template-columns: minmax(0, 1fr) 54px;
  }
  .link-actions {
    width: 150px;
  }
  .link-actions .icon-btn {
    width: 25px;
  }
}
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stats-side {
  grid-column: 2;
  grid-row: 1 / 3;
}
.chart-card {
  grid-column: 1;
  grid-row: 1;
}
.stats-table {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}
@media (max-width: 560px) {
  .hero-art {
    margin-right: 32px;
  }
  .link-title {
    font-size: 12px;
  }
  .stats-side {
    grid-column: 1;
    grid-row: 2;
  }
  .stats-table {
    grid-row: 3;
  }
}
/* Optional per-link sharing fields */
.link-inputs { border: 0; padding: 0; margin: 0; min-width: 0; }
.image-zone { min-width: 0; }
.image-zone .upload-row { flex-wrap: wrap; }
.image-zone .upload-row > input { min-width: 140px; }
.image-zone .upload-row > button { margin-top: 7px; }
.image-paste-area { margin-top: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; font-size: 11px; color: var(--muted); background: var(--bg); }
.image-paste-area span { display: block; margin-top: 4px; font-size: 10px; }
.image-paste-area:focus, .image-zone.is-dragging .image-paste-area { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-card-preview { max-width: 400px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.share-card-preview > img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.share-card-copy { padding: 13px 15px; overflow-wrap: anywhere; }
.share-card-copy strong { display: block; font-size: 14px; }
.share-card-copy p { color: var(--muted); font-size: 12px; white-space: pre-wrap; margin: 6px 0; }
.share-card-copy > span { display: block; color: var(--subtle); font-size: 10px; margin-top: 8px; }
#saved-card-preview, .saved-edit { margin-top: 14px; }
.input-preview { margin-top: 12px; display: grid; gap: 8px; }
.input-preview .field-hint:empty { display: none; }
.input-preview .field-hint.error { color: var(--danger, #d33); }
.input-keyword { display: flex; gap: 8px; }
.input-keyword input { flex: 1; min-width: 0; }

.manual-save { margin-top: 16px; }
.custom-card-options { margin-top: 16px; }
.custom-card-toggle { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.custom-card-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.custom-card-fields { border: 0; padding: 16px 0 0; margin: 0; min-width: 0; }
.custom-card-options > .field-hint { display: block; margin: 8px 0 0; line-height: 1.6; }

/* Compact navigation and product-first saved links. */
:root { --accent:#315bd6; --accent-hover:#2449b6; --text:#20242b; --muted:#69717e; --subtle:#8c94a0; --pink:#f0f4ff; --line:#e7e9ee; --bg:#f8f9fb; --surface:#fff; --radius:12px; }
.skip-link { clip-path:inset(50%); }
.skip-link:focus { clip-path:none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline-color:var(--accent); }
.site-header { background:var(--surface); border-bottom:1px solid var(--line); }
.site-header-inner { max-width:1040px; min-height:68px; padding:0 28px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-header .brand { display:flex; align-items:center; gap:9px; font-size:18px; white-space:nowrap; }
.site-header .brand > .icon { color:var(--accent); width:23px; height:23px; }
.site-nav { display:flex; align-items:center; gap:6px; }
.site-nav a { padding:9px 13px; border-radius:8px; color:var(--muted); font-size:13px; white-space:nowrap; }
.site-nav a.active, .site-nav a:hover { color:var(--text); background:var(--bg); }
.site-nav a.active { font-weight:650; }
.main.simple-main { max-width:1040px; padding:38px 28px 64px; margin:auto; }
.home-heading { margin-bottom:23px; }
.home-heading h1 { font-size:25px; line-height:1.4; letter-spacing:-.6px; }
.home-heading p { color:var(--muted); margin-top:5px; font-size:13px; }
.create-card { padding:24px; box-shadow:none; }
.create-card > h2 { font-size:15px; margin-bottom:13px; }
.create-line { gap:10px; }
.create-line .url-field { min-height:48px; border-radius:8px; }
.create-line .url-field { color:var(--subtle); }
.create-line .url-field input { margin:0; }
.create-line .btn { border-radius:8px; }
.custom-card-options { margin-top:15px; }
.custom-card-toggle { font-size:12px; font-weight:500; }
.create-card .form-footnote, .custom-card-options > .field-hint { font-size:11px; }
.share-card-preview { display:flex; align-items:center; max-width:none; border-radius:9px; }
.share-card-preview > img { width:88px; height:88px; max-height:88px; flex:0 0 88px; object-fit:contain; background:#fff; }
.share-card-copy { min-width:0; padding:12px; }
.share-card-copy strong { font-size:13px; }
.share-card-copy p { font-size:12px; margin:4px 0; }
.saved-links { margin-top:32px; }
.list-heading { margin-bottom:10px; gap:16px; }
.list-heading h2 { font-size:17px; }
.count-badge { background:transparent; color:var(--muted); padding:0; font-size:14px; font-weight:400; }
.list-heading .search { background:var(--surface); width:220px; border:1px solid var(--line); border-radius:8px; }
.list-heading .search input { margin:0; border:0; background:transparent; box-shadow:none; }
.list-heading .search:focus-within { border-color:var(--accent); }
.list-metrics { display:flex; flex-wrap:wrap; gap:17px; color:var(--muted); font-size:11px; margin-bottom:12px; }
.list-metrics b { margin-left:4px; color:var(--text); font-weight:550; }
.link-list { overflow:visible; border-radius:12px; box-shadow:none; }
.link-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px; padding:18px 20px; }
.link-main { min-width:0; gap:14px; }
.link-main .thumb { width:66px; height:66px; flex:0 0 66px; border:1px solid var(--line); background:#fff; border-radius:9px; object-fit:contain; }
.link-title { font-size:14px; font-weight:600; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; overflow:hidden; }
.link-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:5px; font-size:11px; }
.link-meta .code { color:var(--muted); }
.link-meta .companion-tag { color:var(--accent); }
.product-preview-price { color:var(--text); font-size:12px; font-weight:650; margin-top:4px; }
.link-stats { color:var(--subtle); font-size:10px; margin-top:4px; }
.preview-state { color:var(--subtle); font-size:10px; margin-top:4px; }
.preview-find button { display:inline-flex; align-items:center; gap:4px; padding:3px 0; background:none; border:0; color:var(--accent); font-size:11px; }
.preview-find .icon { width:12px; height:12px; }
.preview-keyword-label { margin-top:18px; }
.link-actions { width:auto; height:auto; grid-column:auto; grid-row:auto; display:flex; gap:7px; align-items:center; }
.link-actions .icon-btn { width:32px; height:34px; }
.copy-btn { height:34px; padding:0 10px; border-radius:7px; font-size:12px; background:var(--surface); }
.row-menu { position:relative; }
.row-menu > summary { list-style:none; display:grid; place-items:center; width:32px; height:34px; cursor:pointer; border-radius:7px; color:var(--muted); }
.row-menu > summary::-webkit-details-marker { display:none; }
.row-menu > summary:hover, .row-menu[open] > summary { background:var(--bg); }
.row-menu-panel { position:absolute; right:0; top:39px; z-index:20; min-width:164px; padding:5px; border:1px solid var(--line); border-radius:9px; background:var(--surface); box-shadow:0 8px 24px #00000014; }
.row-menu-panel button { display:flex; align-items:center; gap:9px; width:100%; padding:9px; text-align:left; border:0; background:transparent; border-radius:6px; font-size:12px; color:var(--text); }
.row-menu-panel button:hover { background:var(--bg); }
.row-menu-panel [data-action="delete"] { color:var(--danger); }
.list-footer { margin-top:12px; }
@media (max-width:600px) {
  .site-header-inner { padding:13px 18px; min-height:0; gap:12px; flex-wrap:wrap; }
  .site-header .brand { font-size:17px; }
  .site-nav { gap:0; }
  .site-nav a { font-size:12px; padding:7px 8px; }
  .main.simple-main { padding:25px 16px 44px; }
  .home-heading { margin-bottom:18px; }
  .home-heading h1 { font-size:23px; }
  .create-card { padding:18px; }
  .create-line { flex-direction:column; align-items:stretch; }
  .create-line > .btn { min-height:44px; width:100%; }
  .list-heading { align-items:center; gap:12px; }
  .list-heading h2 { font-size:16px; white-space:nowrap; }
  .list-heading .search { width:145px; }
  .list-heading .search input { font-size:12px; min-width:0; }
  .link-row { padding:15px 13px; gap:10px; grid-template-columns:minmax(0,1fr) auto; }
  .link-main { gap:11px; }
  .link-main .thumb { width:54px; height:54px; flex-basis:54px; }
  .link-title { font-size:13px; }
  .link-meta { font-size:10px; gap:6px; }
  .link-actions { flex-wrap:wrap; justify-content:flex-end; max-width:76px; gap:4px; }
  .link-actions .copy-btn { width:72px; }
  .link-actions .icon-btn, .row-menu > summary { width:32px; height:29px; }
  .share-card-preview > img { width:70px; height:70px; flex-basis:70px; }
}
@media (prefers-color-scheme:dark) {
  :root { --accent:#91adff; --accent-hover:#b0c4ff; --text:#ecedf1; --muted:#a8afbb; --subtle:#87909d; --pink:#252f48; --line:#343943; --bg:#171a20; --surface:#21252d; }
  .site-header { background:var(--surface); }
  .btn-primary { background:#315bd6; border-color:#315bd6; }
  .btn-primary:hover { background:#426feb; border-color:#426feb; }
}
