html:has(.discover-home) {
  --dh-bg: #131517;
  --dh-surface: #1c1e20;
  --dh-text: #f8f8f5;
  --dh-muted: #b2b2ab;
  --dh-line: #3a3c3c;
  --dh-lime: #d1fe17;
  --dh-accent-text: #d1fe17;
  --dh-popover: #232527;
  --dh-hover: #282a29;
  --dh-selected: #2c3021;
  --dh-divider: #2b2d2d;
  --dh-role: #c2c3bd;
  --dh-hero-copy: #c8c9c3;
  color-scheme: dark;
  background: var(--dh-bg);
}
html[data-theme="light"]:has(.discover-home) {
  --dh-bg: #fafaf8;
  --dh-surface: #eeefe9;
  --dh-text: #161615;
  --dh-muted: #5f6059;
  --dh-line: #cacbc2;
  --dh-lime: #c9f321;
  --dh-accent-text: #466000;
  --dh-popover: #fff;
  --dh-hover: #e6e8df;
  --dh-selected: #eaf2cb;
  --dh-divider: #d9dad0;
  --dh-role: #56594d;
  --dh-hero-copy: #51534a;
  color-scheme: light;
}
body:has(.discover-home) { margin: 0; }
.lastai-app:has(.discover-home):has([data-mobile-navigation]) { padding-bottom: 0; }
.lastai-app:has(.discover-home) [data-mobile-navigation] { display: none; }
.discover-home {
  min-height: 100vh;
  background: var(--dh-bg);
  color: var(--dh-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans Khmer", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.discover-home *, .discover-home *::before, .discover-home *::after { box-sizing: border-box; }
.discover-home a { color: inherit; }
.discover-home .discover-header a, .discover-main a, .discover-skip { text-decoration: none; }
.discover-home a:focus-visible, .discover-home summary:focus-visible,
.discover-home button:focus-visible { outline: 2px solid var(--dh-accent-text); outline-offset: 2px; }
.discover-home input:focus-visible, .discover-home select:focus-visible { outline: 2px solid var(--dh-accent-text); outline-offset: -2px; }
.discover-home :is(a,button,summary) { touch-action: manipulation; }
.discover-symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.discover-icon { width: 22px; height: 22px; display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.discover-skip { position: fixed; z-index: 30; top: .4rem; left: .4rem; padding: .6rem .9rem; color: #131517 !important; background: var(--dh-lime); transform: translateY(-170%); }
.discover-skip:focus-visible { transform: none; }
/* Home-screen apps and in-app browsers draw the page under the status bar (viewport-fit=cover). */
.discover-header { position: relative; z-index: 10; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.discover-header-inner, .discover-main {
  width: min(100%, 1216px);
  margin-inline: auto;
  padding-inline: clamp(18px, 4.2vw, 50px);
}
.discover-header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.discover-header-actions { display: flex; align-items: center; gap: 2px; }
.discover-brand, .discover-settings { position: relative; }
/* The logo goes home; "앱 ⌄" beside it opens the 앱 / 저널 menu, anchored under the logo. */
.discover-brand { display: flex; align-items: center; gap: 2px; flex: none; }
.discover-home-link { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.discover-home summary { list-style: none; cursor: pointer; }
.discover-home summary::-webkit-details-marker { display: none; }
.discover-switch, .discover-icon-control { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; }
.discover-switch { gap: 5px; min-width: 44px; padding: 0 6px; font-weight: 600; font-size: 13px; }
.discover-switch > .discover-icon { width: 15px; height: 15px; color: var(--dh-muted); }
.discover-service[open] .discover-switch > .discover-icon { transform: rotate(180deg); }
.discover-wordmark { display: block; width: 104px; height: auto; }
html[data-theme="light"] .discover-wordmark { content: url("/platform/brand/lastai-logo-brand-light.svg"); }
.discover-icon-control { width: 44px; }
.discover-popover { position: absolute; z-index: 15; top: calc(100% + 5px); padding: 7px; border: 1px solid var(--dh-line); border-radius: 12px; background: var(--dh-popover); box-shadow: 0 12px 28px #0003; }
.discover-service-options { left: 0; width: max-content; min-width: 196px; }
.discover-service-options a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; border-radius: 6px; font-weight: 660; }
.discover-service-options [aria-current] { background: var(--dh-selected); }
.discover-service-options .discover-icon { width: 18px; color: var(--dh-accent-text); }
.discover-service-options small { font-weight: 500; color: var(--dh-muted); }
.discover-preferences { right: 0; width: min(290px,calc(100vw - 36px)); padding: 16px; }
.discover-preferences > strong { display: block; margin-bottom: 10px; }
.discover-preferences form, .discover-preferences label { display: grid; gap: 6px; }
.discover-preferences form { gap: 10px; }
.discover-preferences label { color: var(--dh-muted); font-size: 13px; font-weight: 570; }
.discover-preferences select, .discover-preferences button { min-width: 0; max-width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid var(--dh-line); border-radius: 8px; background: var(--dh-bg); color: var(--dh-text); font: inherit; font-size: 14px; }
.discover-preferences select { width: 100%; }
.discover-preferences button { cursor: pointer; }
.discover-preferences button[type="submit"] { background: var(--dh-lime); border-color: transparent; color: #15170c; font-weight: 690; }
.discover-preferences .guest-preferences { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 8px; }
.discover-preferences .guest-preferences label > span[aria-hidden] { display: none; }
.discover-preferences #public-language { position: static; opacity: 1; height: 44px; cursor: pointer; }
.discover-preferences #public-theme { display: inline-flex; align-items: center; justify-content: center; width: 44px; padding: 0; }
.discover-preferences #public-theme svg { width: 18px; height: 18px; }
.discover-tabs { position: fixed; z-index: 10; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: var(--dh-bg); border-top: 1px solid var(--dh-line); padding: 4px max(4px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left)); }
.discover-tabs a { min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; padding: 4px 0; color: var(--dh-muted); line-height: 1.25; font-weight: 590; font-size: clamp(10px,2.7vw,12px); text-align: center; overflow-wrap: anywhere; }
.discover-tabs a > span { display: grid; place-items: center; border-radius: 10px; width: 40px; height: 27px; }
.discover-tabs a[aria-current] { color: var(--dh-text); font-weight: 760; }
.discover-tabs a[aria-current] > span { color: #15170c; background: var(--dh-lime); }
.discover-tabs .discover-icon { width: 20px; height: 20px; }
.discover-main { padding-top: 9px; padding-bottom: 34px; }
.discover-main:focus { outline: 0; }
.discover-main h1, .discover-main h2, .discover-main p { margin: 0; }
.discover-main h1, .discover-main h2, .discover-project-name, .discover-model-name { text-wrap: balance; word-break: keep-all; overflow-wrap: break-word; }
.discover-main h1 { margin: 0 0 17px; font-size: clamp(32px,6.8vw,40px); line-height: 1.15; font-weight: 780; letter-spacing: -.055em; }
.discover-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; border: 1px solid var(--dh-line); border-radius: 17px; background: var(--dh-surface); }
.discover-wave { height: clamp(113px,34vw,179px); background-color: #1c1e1b; background-image: url("./wave.svg"),radial-gradient(ellipse at 50% 50%,#55584c .65px,transparent .95px); background-repeat: no-repeat,repeat; background-position: center,center; background-size: 100% 100%,10px 10px; }
.discover-hero-copy { min-width: 0; padding: 17px 18px 18px; }
.discover-hero h2 { font-size: clamp(23px,5.5vw,30px); font-weight: 760; line-height: 1.2; letter-spacing: -.045em; }
.discover-hero p { margin-top: 5px; max-width: 38em; font-size: 14px; line-height: 1.55; color: var(--dh-hero-copy); text-wrap: pretty; }
.discover-hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; margin-top: 17px; padding: 8px 14px 8px 17px; border-radius: 10px; color: #15170c !important; background: var(--dh-lime); font-weight: 740; font-size: 14px; }
.discover-hero-cta .discover-icon { width: 16px; height: 16px; stroke-width: 2; }
.discover-feed { display: grid; gap: 23px; margin-top: 21px; }
.discover-feed > section { min-width: 0; }
.discover-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.discover-section-title h2 { font-size: 23px; line-height: 1.25; font-weight: 730; letter-spacing: -.045em; }
.discover-section-title a { display: inline-flex; flex: none; min-height: 44px; align-items: center; gap: 4px; color: var(--dh-muted); font-size: 13px; font-weight: 570; }
.discover-section-title a .discover-icon { width: 14px; height: 14px; }
.discover-project-list, .discover-model-list { display: grid; }
.discover-project-list { gap: 12px; }
.discover-project { display: block; min-width: 0; overflow: hidden; border: 1px solid transparent; background: var(--dh-surface); border-radius: 13px; }
.discover-project-image, .discover-project-media { display: block; width: 100%; aspect-ratio: 2.65; overflow: hidden; object-fit: cover; object-position: center 49%; background: #232527; }
.discover-project-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.discover-project-body { position: relative; display: grid; align-content: center; min-height: 75px; gap: 3px; padding: 14px 42px 15px 16px; }
.discover-project-body::after, .discover-project:not(:has(.discover-project-body))::after { content: ""; position: absolute; width: 8px; height: 8px; right: 20px; top: 50%; border-top: 1.65px solid var(--dh-text); border-right: 1.65px solid var(--dh-text); transform: translateY(-50%) rotate(45deg); }
.discover-project:not(:has(.discover-project-body)) { position: relative; }
.discover-project-name { font-size: 20px; font-weight: 720; line-height: 1.26; letter-spacing: -.025em; }
.discover-project-desc { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.5; color: var(--dh-muted); }
.discover-model { position: relative; min-width: 0; display: grid; grid-template-columns: 58px minmax(0,1fr) 19px; align-items: center; gap: 12px; padding-block: 10px; }
.discover-model + .discover-model { border-top: 1px solid var(--dh-divider); }
.discover-model::after { content: ""; width: 19px; height: 19px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round' d='M5 5h14a1.8 1.8 0 0 1 1.8 1.8v9.4a1.8 1.8 0 0 1-1.8 1.8H9l-5.8 2.8v-14A1.8 1.8 0 0 1 5 5Z'/%3E%3C/svg%3E") no-repeat center / contain; }
.discover-model-portrait { width: 58px; height: 58px; object-fit: cover; border-radius: 14px; background: #2b2c2f; }
.discover-model-body { min-width: 0; }
.discover-model-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.discover-model-name { font-size: 18px; font-weight: 730; letter-spacing: -.025em; }
.discover-model-role { color: var(--dh-role); font-size: 12px; font-weight: 570; }
.discover-model-desc { display: block; max-width: 35em; color: var(--dh-muted); font-size: 14px; line-height: 1.5; margin-top: 2px; text-wrap: pretty; }
.discover-home > footer { margin: 0 auto; width: min(100%,1216px); padding: 15px clamp(18px,4.2vw,50px) calc(77px + env(safe-area-inset-bottom)); color: var(--dh-muted); font-size: 13px; }
.discover-home > footer::before { content: ""; display: block; height: 1px; margin-bottom: 14px; background: var(--dh-divider); }
.discover-home > footer nav { display: flex; flex-wrap: wrap; gap: 0 19px; }
.discover-home > footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.discover-home > footer :is(.business,dl,ul.list) { display: flex; flex-wrap: wrap; gap: 5px 17px; margin: 9px 0 0; padding: 0; color: var(--dh-muted); list-style: none; font-size: 12px; line-height: 1.65; }
.discover-home > footer :is(.business,dl,ul.list) > :is(div,li) { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.discover-home > footer dt { font-weight: 620; }
.discover-home > footer dd { margin: 0; }
.discover-home > footer [hidden] { display: none; }
.discover-home > footer a:hover { color: var(--dh-text); }
@media (hover:hover) {
  .discover-switch:hover, .discover-icon-control:hover, .discover-service-options a:hover { background-color: var(--dh-hover); }
  .discover-section-title a:hover, .discover-tabs a:hover { color: var(--dh-text); }
  .discover-hero-cta:hover { background-color: #e0ff5b; }
  .discover-project:hover { border-color: #50534b; }
  .discover-model:hover .discover-model-name, .discover-project:hover .discover-project-name { text-decoration: underline; text-underline-offset: 3px; }
  .discover-model:hover::after { color: var(--dh-accent-text); }
  .discover-home > footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 700px) {
  .discover-header { border-bottom: 1px solid var(--dh-divider); }
  .discover-header-inner { min-height: 72px; }
  .discover-wordmark { width: 118px; }
  .discover-tabs { position: static; display: flex; flex: 1; align-items: center; justify-content: center; gap: 3px; padding: 0; background: transparent; border: 0; }
  .discover-tabs a { min-height: 44px; flex-direction: row; justify-content: center; gap: 5px; padding: 8px; border-radius: 9px; line-height: 1.3; font-size: 13px; }
  .discover-tabs a > span { width: auto; height: auto; }
  .discover-tabs a[aria-current] { color: var(--dh-accent-text); }
  .discover-tabs a[aria-current] > span { background: transparent; color: inherit; }
  .discover-tabs .discover-icon { width: 16px; height: 16px; }
  .discover-main { padding-block: 36px 48px; }
  .discover-main h1 { margin-bottom: 21px; font-size: 43px; }
  .discover-hero { grid-template-columns: minmax(300px,.90fr) minmax(0,1.1fr); min-height: 240px; background: #1c1e1b; color: #f8f8f5; }
  .discover-hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; grid-area: 1 / 1; padding: 30px 0 30px 34px; }
  .discover-hero h2 { font-size: clamp(32px,3.7vw,48px); }
  .discover-hero p { font-size: 16px; margin-top: 9px; color: #c8c9c3; }
  .discover-hero-cta { margin-top: 22px; }
  .discover-wave { grid-area: 1 / 2; height: 100%; min-height: 235px; background-size: 100% min(185px,14vw),11px 11px; mask-image: linear-gradient(to right,transparent 0,#000 14%); }
  .discover-feed { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(26px,4vw,58px); margin-top: 29px; }
  .discover-section-title { margin-bottom: 13px; }
  .discover-section-title h2 { font-size: 25px; }
  .discover-project-image, .discover-project-media { aspect-ratio: 2.5; }
  .discover-project-list { gap: 14px; }
  .discover-home > footer { padding-bottom: 30px; }
}
@media (min-width: 1000px) {
  .discover-header-inner { min-height: 76px; }
  .discover-tabs { gap: 8px; }
  .discover-tabs a { gap: 8px; padding-inline: 13px; font-size: 14px; }
  .discover-main { padding-top: 44px; }
  .discover-hero { min-height: 281px; }
  .discover-hero-copy { padding-left: 44px; }
  .discover-wave { background-size: 100% 202px,11px 11px; }
  .discover-section-title h2 { font-size: 27px; }
  .discover-model { grid-template-columns: 72px minmax(0,1fr) 19px; gap: 15px; }
  .discover-model-portrait { width: 72px; height: 72px; border-radius: 16px; }
  .discover-project-name { font-size: 23px; }
}
@media (prefers-reduced-motion:no-preference) {
  .discover-hero-cta, .discover-icon-control, .discover-service-options a, .discover-project { transition: background-color .16s ease,border-color .16s ease; }
}
