/* Visual alignment with the supplied 담너머 mockup.
   Keep the real feed, optional images and access controls in the existing modules. */
:root {
  --feed-violet: #6853ee;
  --feed-ink: #202139;
  --feed-muted: #85889f;
  --feed-line: #eeedf5;
}
.header .brand { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0; flex-shrink: 0; }
.header .brand::after { content: none; }
.header .brand img { display: block; width: 144px; height: auto; aspect-ratio: 648 / 220; object-fit: contain; }
.footer-brand img { display: block; width: 100px; height: auto; aspect-ratio: 648 / 220; margin-bottom: 8px; }
.header-actions .header-mobile-search { display: none; }
.dam-home-page { background: #fcfcff; color: var(--feed-ink); }
.dam-home-page .header { height: 82px; background: #fff; border-color: #f1f0f7; }
.dam-home-page .header-inner,
.dam-home-page .page,
.dam-home-page .footer-inner { width: min(1280px, calc(100% - 48px)); }
.dam-home-page .header-inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 270px;
  gap: 24px;
}
.dam-home-page .header .brand { margin-left: 10px; }
.dam-home-page .header .nav,
.dam-home-page .header .write-button { display: none; }
.dam-home-page .header-search {
  display: block;
  grid-column: 2;
  margin: 0;
  width: 100%;
  max-width: none;
}
.dam-home-page .header-search input {
  height: 42px;
  padding: 10px 44px 10px 17px;
  border-radius: 10px;
  background: #f5f5fc;
  font-size: 13px;
  color: #4d516f;
}
.dam-home-page .header-search input::placeholder { color: #9295b0; }
.dam-home-page .header-search button { color: #57577b; }
.dam-home-page .header-actions { justify-content: flex-end; gap: 18px; margin: 0; }
.dam-home-page .header-sep { display: none; }
.dam-home-page .header-actions > .icon-button { display: inline-flex; color: #4c4c72; }
.dam-home-page .header-actions > .header-mobile-search { display: none; }
.dam-home-page .header-actions .avatar { width: 32px; height: 32px; font-size: 13px; }
.dam-home-page .page { padding-top: 0; }
.feed-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
  min-height: calc(100vh - 166px);
}
.feed-layout.without-aside { grid-template-columns: 160px minmax(0, 980px); gap: 24px; }
.feed-layout .dam-main,
.feed-layout.without-aside .dam-main { min-width: 0; max-width: none; padding: 16px 0 36px; }
.feed-layout .dam-left {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 82px;
  height: calc(100vh - 98px);
  padding: 20px 0 16px;
  border: 0;
}
.feed-layout .dam-left nav { gap: 3px; }
.feed-layout .dam-left nav > a {
  min-height: 43px;
  padding: 10px 15px;
  gap: 13px;
  border-radius: 7px;
  color: #545671;
  font-size: 14px;
  font-weight: 500;
}
.feed-layout .dam-left nav > a svg { width: 18px; height: 18px; }
.feed-layout .dam-left nav > a:hover { background: #f3f1ff; }
.feed-layout .dam-left nav > a.active { background: #eeeaff; color: var(--feed-violet); font-weight: 700; }
.feed-layout .dam-left nav > a[href="#/compose"] {
  justify-content: center;
  margin: 19px 0 17px;
  min-height: 44px;
  color: #fff;
  background: linear-gradient(105deg, #7863ff, #6550e9);
  box-shadow: 0 3px 8px #6953ed10;
}
.feed-nav-label { padding: 4px 14px 7px; font-size: 12px; color: #34364f; font-weight: 700; }
.feed-left-bottom { padding: 26px 13px 0; gap: 8px 11px; font-size: 10px; color: #999aae; }
.feed-toolbar {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--feed-line);
}
.feed-toolbar .dam-tabs { display: flex; flex: 1; gap: 25px; border: 0; margin: 0; align-self: stretch; }
.feed-toolbar .dam-tabs a {
  display: flex;
  align-items: center;
  min-height: 45px;
  padding: 6px 0 10px;
  font-size: 14px;
  color: #7f8199;
  white-space: nowrap;
}
.feed-toolbar .dam-tabs a.active { color: #503ce5; font-weight: 700; }
.feed-toolbar .dam-tabs a.active::after { background: #6a55ff; height: 2px; bottom: -1px; }
.feed-sort { padding: 6px 9px; color: #767a97; font-size: 12px; white-space: nowrap; }
.feed-filter-menu { position: relative; align-self: center; margin: 0 0 5px; }
.feed-filter-menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 7px;
  background: #f3f3fb;
  color: #686886;
  cursor: pointer;
  position: relative;
}
.feed-filter-menu summary::-webkit-details-marker { display: none; }
.feed-filter-menu summary:focus-visible { outline: 2px solid #6a55ee; outline-offset: 3px; }
.feed-filter-menu summary:hover,
.feed-filter-menu[open] summary,
.feed-filter-menu summary.filter-active { background: #ebe7ff; color: #5d48dd; }
.filter-dot { position: absolute; right: 5px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #6c50ec; }
.feed-filter-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 226px;
  padding: 17px;
  z-index: 15;
  background: #fff;
  border: 1px solid #e9e6f5;
  border-radius: 9px;
  box-shadow: 0 8px 28px #2c225314;
}
.feed-filter-popover > strong { display: block; font-size: 12px; margin-bottom: 12px; }
.feed-filter-popover .dam-ai { margin: 0; min-height: 35px; color: #67677e; font-size: 12px; }
.feed-filter-popover .dam-ai input { accent-color: #6853ee; }
.feed-filter-popover .feed-tag-link { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #f0edf7; font-size: 12px; }
.feed-filter-popover .feed-tag-link svg:last-child { margin-left: auto; }
.feed-selected-tags { display: flex; gap: 6px; padding-bottom: 12px; }
.feed-list { gap: 12px; }
.feed-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "actions";
  gap: 0 18px;
  padding: 17px;
  background: #fff;
  border: 1px solid #efedf6;
  border-radius: 8px;
  color: var(--feed-ink);
}
.feed-card[data-has-cover="true"] { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "media copy" "media actions"; }
.feed-card .post-card-main,
.feed-card .novel-card-main { display: contents; }
.feed-card-copy { grid-area: copy; min-width: 0; }
.feed-card .post-image,
.feed-card .novel-cover { grid-area: media; width: 112px; height: 160px; margin: 0; border-radius: 6px; overflow: hidden; align-self: start; }
.feed-card .post-image img,
.feed-card .novel-cover img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.feed-card .text-cover { padding: 14px 10px; background: linear-gradient(155deg, #373450, #817299); }
.feed-card .text-cover > strong { font-family: var(--sans); font-size: 14px; line-height: 1.7; font-weight: 600; }
.feed-card .text-cover > span,
.feed-card .text-cover > small { font-size: 9px; }
.feed-card .feed-kind { margin: 0 0 5px; gap: 6px; font-size: 11px; line-height: 1.7; color: #7160ee; min-height: 22px; }
.feed-card .feed-kind.adult-kind { color: #f64d85; }
.feed-card .adult-label { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #ff4d83; color: #fff; font-size: 10px; font-weight: 700; }
.feed-card .feed-price { padding: 2px 7px; margin-left: auto; border-radius: 5px; font-size: 11px; line-height: 1.8; font-weight: 500; }
.feed-card .feed-price.free { background: #eafaf2; color: #239978; }
.feed-card .feed-price.paid { background: #ffebf2; color: #f2497d; }
.feed-card .feed-price.mixed { background: #f0edff; color: #7660cd; }
.feed-card h2 { margin: 0 0 6px; color: #22243d; font-size: 18px; line-height: 1.5; font-weight: 700; letter-spacing: -.5px; }
.feed-card h2 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.feed-card .feed-excerpt { margin: 0; font-size: 13px; line-height: 1.75; color: var(--feed-muted); -webkit-line-clamp: 2; }
.feed-card[data-has-cover="false"] .feed-excerpt { -webkit-line-clamp: 3; }
.feed-card .feed-author { margin: 9px 0 0; gap: 7px; font-size: 11px; line-height: 1.6; min-height: 23px; }
.feed-card .feed-author > a:first-child { gap: 6px; color: #575974; }
.feed-card .feed-author strong { font-size: 11px; font-weight: 500; max-width: 150px; }
.feed-card .feed-author .avatar { width: 22px; height: 22px; font-size: 10px; background: #eeebfa !important; color: #7b6eaa; }
.feed-card .feed-author time { font-size: 11px; color: #9093ad; }
.feed-card .feed-edit { margin-left: auto; color: #9290a5; font-size: 10px; }
.feed-card .feed-tags { gap: 5px; margin-top: 8px; }
.feed-card .feed-tags > a { padding: 2px 6px; font-size: 10px; line-height: 1.8; border-radius: 4px; background: #f2efff; color: #7a68d3; }
.feed-card .feed-tags .ai-badge { padding: 2px 5px; font-size: 9px; line-height: 2; border-radius: 4px; color: #8b8b9e; background: #f7f7fa; }
.feed-card .feed-tags .ai-badge.used { background: #f3eefb; color: #9580b7; }
.feed-card .feed-latest { margin: 9px 0 0; padding: 7px 0 0; border-top: 1px solid #f1eff7; border-radius: 0; background: transparent; gap: 8px; font-size: 11px; }
.feed-card .feed-latest > span { font-size: 10px; color: #9691ab; }
.feed-card .feed-latest > strong { color: #777790; }
.feed-card .feed-actions { grid-area: actions; gap: 13px; margin-top: 9px; min-height: 25px; color: #9693b2; font-size: 11px; }
.feed-card .feed-actions > button,
.feed-card .feed-actions > a { min-height: 27px; gap: 5px; padding: 0; }
.feed-card .feed-actions .liked { color: #ed6893; }
.feed-card .feed-actions .saved { color: #7157ef; }
.feed-card .feed-bookmark { margin-left: 0; padding: 3px; }
.feed-card .feed-reading-count { margin-left: auto; gap: 5px 10px; color: #a8a6b9; }
.feed-card .feed-reading-count .reading-metric { font-size: 10px; }
.feed-empty { min-height: 260px; border-color: #efedf6; background: #fff; }
.feed-empty h2 { font-size: 17px; color: #67667e; }
.feed-end { margin: 0; padding: 15px 0 7px; }
.feed-layout .dam-right { padding: 16px 0 30px; border: 0; }
.feed-side-section { padding: 19px 17px; margin-bottom: 14px; border-color: #efedf6; border-radius: 8px; }
.feed-side-section h2 { margin: 0 0 15px; font-size: 13px; color: #30314d; font-weight: 700; letter-spacing: -.45px; }
.feed-side-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.feed-side-heading h2 { margin: 0; }
.feed-side-heading > a { display: flex; align-items: center; gap: 2px; white-space: nowrap; color: #9592b0; font-size: 10px; }
.feed-side-tags { gap: 8px 6px; }
.feed-side-tags > a { padding: 4px 7px; background: #f2efff; color: #7e6bcf; font-size: 10px; border-radius: 5px; }
.feed-side-item { gap: 10px; margin-bottom: 16px; }
.feed-side-cover { width: 42px; height: 48px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.feed-side-item .side-format { width: 42px; height: 43px; color: #8779b2; background: #f4f1ff; }
.feed-side-item strong { font-size: 11px; line-height: 1.6; color: #575672; }
.feed-side-item small { color: #a29bb6; font-size: 10px; }
.dam-home-page .footer { background: #fcfcff; border-color: #f0edf6; }
.dam-home-page .footer-brand { color: #8c869d; }
.post-detail .post-detail-image { margin: 0; max-height: 380px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 8px; }
.post-detail .post-detail-heading { margin-top: 25px; padding-bottom: 23px; }
.post-detail .post-detail-heading h1 { margin: 13px 0 17px; font-size: 29px; color: #25243c; }
.post-detail .feed-tags > a { background: #f2efff; color: #7969bd; }
.post-detail .purchase-gate { border: 0; border-radius: 10px; background: linear-gradient(180deg, #f8f7fc, #eeedf7); padding: 32px 25px 25px; }
.post-detail .purchase-lock { background: transparent; color: #292840; margin-bottom: 12px; }
.post-detail .purchase-gate h2 { font-size: 17px; font-weight: 600; }
.post-detail .purchase-gate p { color: #848099; }
.post-detail .purchase-price { display: none; }
.post-detail .purchase-button { width: 100%; max-width: 380px; margin-top: 23px; background: #715cef; border-color: #715cef; }
@media (max-width: 1100px) {
  .header .brand img { width: 136px; }
  .feed-layout,
  .feed-layout.without-aside { grid-template-columns: 146px minmax(0, 1fr); gap: 23px; }
  .feed-layout .dam-right { display: none; }
  .dam-home-page .header-inner { grid-template-columns: 146px minmax(0, 1fr) 115px; gap: 23px; }
  .dam-home-page .header-search { display: block; max-width: none; }
  .dam-home-page .header-actions { gap: 9px; }
}
@media (max-width: 760px) {
  .dam-home-page { background: #fff; }
  .header .brand img { width: 112px; height: auto; }
  .dam-home-page .header { height: 70px; border-bottom: 0; }
  .dam-home-page .header-inner { display: flex; flex-wrap: nowrap; width: calc(100% - 32px); gap: 16px; }
  .dam-home-page .header .brand { margin: 0; }
  .dam-home-page .header-search { display: none; }
  .dam-home-page .header-actions { margin-left: auto; gap: 5px; }
  .dam-home-page .header-actions > .header-mobile-search { display: inline-flex; }
  .dam-home-page .header-actions > .icon-button { min-width: 40px; min-height: 40px; padding: 10px; }
  .dam-home-page .header-actions .avatar { width: 28px; height: 28px; font-size: 12px; }
  .dam-home-page .page { width: 100%; }
  .feed-layout,
  .feed-layout.without-aside { display: block; }
  .feed-layout .dam-left { display: none; }
  .feed-layout .dam-main,
  .feed-layout.without-aside .dam-main { padding: 0 16px 27px; max-width: none; }
  .feed-toolbar { min-height: 46px; margin-bottom: 0; gap: 5px; background: #fff; }
  .feed-toolbar .dam-tabs { gap: 24px; }
  .feed-toolbar .dam-tabs a { font-size: 13px; min-height: 46px; padding-bottom: 11px; }
  .feed-sort { font-size: 10px; padding: 6px; }
  .feed-filter-menu summary { width: 32px; height: 32px; }
  .feed-filter-popover .dam-ai { min-height: 44px; font-size: 12px; }
  .feed-filter-popover .feed-tag-link { min-height: 44px; }
  .feed-selected-tags { padding: 12px 0 2px; }
  .feed-list { gap: 0; }
  .feed-card { padding: 20px 0 17px; border: 0; border-bottom: 1px solid #f0eef6; border-radius: 0; gap: 0 14px; }
  .feed-card[data-has-cover="true"] { grid-template-columns: 78px minmax(0, 1fr); grid-template-areas: "media copy" "actions actions"; }
  .feed-card .post-image,
  .feed-card .novel-cover { width: 78px; height: 114px; border-radius: 5px; }
  .feed-card .text-cover { padding: 10px 7px; }
  .feed-card .text-cover > strong { font-size: 11px; line-height: 1.6; }
  .feed-card .text-cover > span,
  .feed-card .text-cover > small { font-size: 7px; }
  .feed-card .feed-kind { font-size: 10px; min-height: 21px; gap: 5px; margin-bottom: 5px; }
  .feed-card .feed-price { font-size: 10px; padding: 2px 5px; }
  .feed-card .adult-label { width: 17px; height: 17px; font-size: 9px; }
  .feed-card h2 { font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
  .feed-card .feed-excerpt { font-size: 12px; line-height: 1.75; -webkit-line-clamp: 2; }
  .feed-card[data-has-cover="false"] .feed-excerpt { font-size: 13px; -webkit-line-clamp: 3; }
  .feed-card .feed-author { margin-top: 8px; gap: 5px; min-height: 21px; }
  .feed-card .feed-author strong { max-width: 82px; font-size: 10px; }
  .feed-card .feed-author time { font-size: 10px; }
  .feed-card .feed-author .avatar { width: 20px; height: 20px; font-size: 9px; }
  .feed-card .feed-edit { font-size: 9px; }
  .feed-card .feed-tags { margin-top: 7px; gap: 4px; }
  .feed-card .feed-tags > a { font-size: 9px; padding: 2px 5px; line-height: 1.8; }
  .feed-card .feed-tags .ai-badge { font-size: 8px; padding: 2px 4px; }
  .feed-card .feed-latest { font-size: 10px; margin-top: 8px; padding-top: 6px; }
  .feed-card .feed-latest > span { font-size: 9px; }
  .feed-card .feed-actions { margin-top: 11px; gap: 14px; min-height: 30px; }
  .feed-card .feed-reading-count { gap: 6px; }
  .feed-card .feed-reading-count .reading-metric { font-size: 9px; }
  .feed-empty { margin-top: 18px; border: 0; min-height: 250px; }
  .feed-more { margin-top: 15px; }
  .dam-home-page .footer { background: #fff; }
  .dam-home-page .mobile-nav { display: flex; min-height: 66px; border-top: 1px solid #f0edf8; background: #fff; }
  .mobile-nav > a:nth-child(3) > svg { width: 20px; height: 20px; padding: 8px; margin-top: -7px; background: linear-gradient(135deg, #816bff, #6250e8); box-shadow: 0 3px 8px #6755e32a; }
  .mobile-nav a.active { color: #6853ee; }
  .post-detail .post-detail-heading h1 { font-size: 24px; }
  .post-detail .post-detail-image { border-radius: 7px; }
}
@media (max-width: 380px) {
  .feed-toolbar .dam-tabs { gap: 19px; }
  .feed-toolbar .dam-tabs a { font-size: 12px; }
  .feed-card[data-has-cover="true"] { grid-template-columns: 68px minmax(0, 1fr); gap: 0 12px; }
  .feed-card .post-image,
  .feed-card .novel-cover { width: 68px; height: 103px; }
  .feed-card h2 { font-size: 15px; }
  .feed-card .feed-actions { gap: 11px; }
}
@media (pointer: coarse) {
  .feed-card .feed-actions > button,
  .feed-card .feed-actions > a { min-width: 36px; min-height: 44px; }
  .feed-card .feed-edit { min-height: 28px; display: inline-flex; align-items: center; }
  .feed-side-tags > a { min-height: 36px; display: inline-flex; align-items: center; }
  .feed-filter-menu summary { min-width: 42px; min-height: 42px; }
}
