/* Site-wide visual system. Loaded last on every themed page; data-theme also
   switches this layer atomically when settings are saved in the admin UI. */
html { -webkit-text-size-adjust: 100%; }
/* Authored UI symbols must render consistently with or without JavaScript. */
.ui-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; flex-shrink: 0; }
[data-theme="original"] .metrics article:first-child:after,
[data-theme="original"] .metrics article:nth-child(4):after {
  content: ""; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--metric-icon) center / contain no-repeat;
  mask: var(--metric-icon) center / contain no-repeat;
}
[data-theme="original"] .metrics article:first-child {
  --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3v26M3 16h26M7 7l18 18M7 25 25 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
[data-theme="original"] .metrics article:nth-child(4) {
  --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M6 6h12v12' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-theme="original"] {
  --paper: #fcfbf5;
  --white: #fffffc;
  --ink: #193e32;
  --muted: #586e62;
  --green: #187653;
  --green-hover: #105c40;
  --line: #d9e7da;
  --spring: #dcf5a8;
  --sage: #e8f4df;
  --v-accent: #187653;
  --v-shadow: 0 16px 40px #214c3210;
  background: var(--paper);
}
[data-theme] body { color: var(--ink); }
[data-theme] :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--v-accent);
  outline-offset: 4px;
}
[data-theme] :is(.primary, .outline, .entry, .project-card, .author-card) {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
[data-theme] :is(.site-header, .welcome-header, .desktop-bar) { isolation: isolate; }
[data-theme] :is(.entry, .project-card, .metrics article) { box-shadow: var(--v-shadow); }
[data-theme] :is(.site-description, .intro, .article-summary) { line-height: 1.95; }

/* DAYLIGHT GARDEN — bright paper, botanical green, peach and lilac. */
[data-theme="original"] body {
  background: radial-gradient(ellipse at 95% 8%, #e4f4d9 0, transparent 34%),
    radial-gradient(ellipse at 0 43%, #ffebdb80 0, transparent 32%), var(--paper);
}
[data-theme="original"] ::selection { background: #d6f3a6; color: #193e32; }
[data-theme="original"] :is(.brand-mark, .brand-icon) { color: #1a6a4d; }
[data-theme="original"] :is(.brand-mark, .brand-icon) > span { color: #ee9364; }
[data-theme="original"] .green-dot { background: #288d5e; box-shadow: 0 0 0 5px #76c78820; }
[data-theme="original"] .primary {
  background: #197451; border-color: #197451; color: #fff;
  box-shadow: 0 4px 0 #114c37, 0 10px 24px #27764b22;
}
[data-theme="original"] .primary:hover:not(:disabled) { background: #115e42; color: #fff; box-shadow: 0 6px 0 #103f30, 0 14px 26px #27764b28; }
[data-theme="original"] :is(.outline, .header-link) { background: #fffff8; border-color: #bfd7bc; color: #285c44; }
[data-theme="original"] .welcome-header { min-height: 110px; border-bottom-color: #d5e2d3; }
[data-theme="original"] .welcome-hero { gap: 4%; padding-top: 46px; min-height: 660px; }
[data-theme="original"] .welcome-copy > .eyebrow { background: #e9f5db; border-color: #d3e5bd; color: #41623e; padding: 9px 13px; }
[data-theme="original"] .welcome-copy h1 { font-weight: 750; line-height: 1.4; letter-spacing: -2px; }
[data-theme="original"] .title-highlight { color: #26835b; background: linear-gradient(100deg, #1f7a52, #2a9470 55%, #5a63b0); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="original"] .title-underline { -webkit-text-fill-color: initial; }
[data-theme="original"] .title-underline { stroke: #eeae63; stroke-width: 3; opacity: 1; bottom: -7px; }
[data-theme="original"] .title-dot { color: #e58c58; }
[data-theme="original"] .hero-spark { stroke: #df844b; fill: #ffe9b7; width: 39px; height: 39px; }
[data-theme="original"] :is(.site-description, .intro) { color: #596f60; font-size: 15px; }
/* Soft halo behind the plant: spring green below, lilac and apricot light above. */
[data-theme="original"] .plant-visual:before {
  inset: 6% 4% 8%; border: 0;
  background: radial-gradient(ellipse at 34% 32%, #e5efb659, transparent 55%),
    radial-gradient(ellipse at 62% 70%, #b8e6d240, transparent 60%),
    radial-gradient(ellipse at 78% 38%, #dcd1f538, transparent 52%);
  filter: blur(18px); border-radius: 50%;
}
[data-theme="original"] .plant-label { color: #476b4f; letter-spacing: 1.4px; padding: 5px 12px; border: 1px solid #dbe8d6; border-radius: 30px; background: #ffffffa6; backdrop-filter: blur(6px); box-shadow: 0 4px 14px #2c4d3a0a; }
[data-theme="original"] #plant-hint { color: #3f6450; }
[data-theme="original"] #plant-hint:before { content: ""; width: 64px; height: 1px; margin-bottom: 8px; background: linear-gradient(90deg, transparent, #c9a46a, transparent); }
[data-theme="original"] .author-card { padding: 20px; background: #fffff6e8; border-color: #cddfc5; border-radius: 22px; box-shadow: 0 7px 0 #e3eddb, 0 18px 35px #314d2b09; }
[data-theme="original"] .creator-avatar { background: #def0c7; color: #3c8353; }
[data-theme="original"] .author-copy h2 { font-size: 17px; }
[data-theme="original"] :is(.author-role, .author-intro, .author-greeting) { color: #5b745b; }
[data-theme="original"] .author-skills { gap: 5px; margin-top: 9px; }
[data-theme="original"] .author-skills span { color: #466447; background: #edf5e4; border: 1px solid #dce9cc; padding: 2px 7px; border-radius: 6px; font-size: 11.5px; }
[data-theme="original"] .author-skills span + span:before { content: none; }
[data-theme="original"] .author-link { color: #377a50; background: #eaf4d8; }
[data-theme="original"] .explore { padding-top: 36px; }
[data-theme="original"] .explore-heading h2 { font-weight: 700; font-size: 28px; }
[data-theme="original"] .explore-heading :is(.eyebrow, p) { color: #60755a; }
[data-theme="original"] .entry { --card-line: #c9dfb6; --card-accent: #47834b; --card-bg: #e6f3d7; padding: 27px; border-radius: 25px; background: var(--card-bg); box-shadow: 0 5px 0 #dce9cc, 0 15px 30px #315c2908; }
[data-theme="original"] .entry-learning { --card-bg: #fff0dc; --card-line: #eed3af; --card-accent: #a46a30; box-shadow: 0 5px 0 #efdfc6, 0 15px 30px #6d4b2908; }
[data-theme="original"] .entry-about { --card-bg: #eee7fa; --card-line: #d9c9ed; --card-accent: #8060ab; box-shadow: 0 5px 0 #e0d6ed, 0 15px 30px #50306708; }
[data-theme="original"] .entry :is(.entry-top, .entry-bottom) { color: var(--card-accent); }
[data-theme="original"] .entry h3 { font-weight: 700; margin-top: 35px; }
[data-theme="original"] .entry p { color: #586a50; font-size: 13px; }
[data-theme="original"] .entry-learning p { color: #816244; }
[data-theme="original"] .entry-about p { color: #746084; }
[data-theme="original"] .entry-icon { width: 31px; height: 31px; background: #ffffffaa; }
[data-theme="original"] .entry-art { filter: saturate(1.45); }
[data-theme="original"] .little-flower { color: #a185cf; }
[data-theme="original"] .site-header { border-color: #d9e5d1; background: #fffff6ed; box-shadow: 0 8px 28px #264f2f0a; }
[data-theme="original"] .site-header nav a.active { background: #dcf0bd; color: #235b3d; }
[data-theme="original"] .hero h1 { font-weight: 750; }
[data-theme="original"] .hero h1 #profile-name { color: #237c54; background: linear-gradient(transparent 77%, #e1efab 77%, #e1efab 95%, transparent 95%); }
[data-theme="original"] .hero-art { background: radial-gradient(circle at 70% 26%, #f5f9bf, transparent 49%), #e1efcf; border: 1px solid #c5d9ac; border-radius: 90px 28px 90px 28px; box-shadow: 9px 10px 0 #e8e4cf80; }
[data-theme="original"] .hero-flower { color: #448759; }
[data-theme="original"] .art-sticker { background: #ffe2b7; border-color: #e6c18a; color: #7d542d; transform: rotate(-9deg); }
[data-theme="original"] .stat b { color: #267451; }
[data-theme="original"] .stat:nth-child(3) b { color: #b67637; }
[data-theme="original"] .stat:nth-child(4) b { color: #8e6db0; }
[data-theme="original"] .section-number { background: #dbefbb; color: #346c3d; }
[data-theme="original"] .filter.active { background: #217852; color: #fff; box-shadow: 0 4px 10px #26745122; }
[data-theme="original"] .project-card { background: #fffffc; border-color: #d6e4ce; border-radius: 25px; }
[data-theme="original"] .cover-0 { background: #ddecbd; color: #4d7f42; }
[data-theme="original"] .cover-1 { background: #ffe1bf; color: #ac6a35; }
[data-theme="original"] .cover-2 { background: #e6dafa; color: #8762b0; }
[data-theme="original"] .project-kicker { color: #59734b; }
[data-theme="original"] .learning-item { border-color: #dbe5d4; background: #fffffc; }
[data-theme="original"] .about { background: #e5f0d6; border-color: #cadfb6; }
[data-theme="original"] .about .tags span:nth-child(3n+2) { background: #fff0da; color: #855b37; border-color: #ead8b9; }
[data-theme="original"] .about .tags span:nth-child(3n) { background: #f0e7fa; color: #795d97; border-color: #ded0ed; }


/* Reading, forms, dashboard, editor and dialogs use the same palette. */
[data-theme="original"] .article-header { background: radial-gradient(circle at 90% 20%, #f6edbe, transparent 50%), #e2efcf; border-color: #cdddba; border-radius: 28px; }
[data-theme="original"] .article-header h1 { color: #246546; font-weight: 750; }
[data-theme="original"] .article-category { color: #4c6d39; background: #fffdf0; }
[data-theme="original"] .prose { background: #fffffc; border-color: #dce6d4; box-shadow: var(--v-shadow); }
[data-theme="original"] .prose blockquote { background: #fff0dc; border-color: #df9960; color: #805c39; }
[data-theme="original"] .prose pre { background: #203f35; }
[data-theme="original"] .sidebar { background: linear-gradient(165deg, #e1efce, #eef4e3 70%); border-color: #cfdcbe; }
[data-theme="original"] #admin-nav a.active { background: #267451; color: #fff; box-shadow: 0 5px 13px #27664320; }
[data-theme="original"] #admin-nav a.active :is(span, b) { color: #f1ffd8; }
[data-theme="original"] .studio-welcome { background: linear-gradient(110deg, #dcf0c0, #f5efcc); border-color: #cdddaf; border-radius: 23px; }
[data-theme="original"] .welcome-flower { color: #de9660; }
[data-theme="original"] .metrics article { background: #eff7e5; border-color: #cfe0bc; border-top: 3px solid #85b167; border-radius: 18px; }
[data-theme="original"] .metrics article:nth-child(2) { background: #f1eafb; border-color: #dfd2ee; border-top-color: #b59bd3; }
[data-theme="original"] .metrics article:nth-child(3) { background: #fff1dd; border-color: #ebd8b9; border-top-color: #e5b071; }
[data-theme="original"] .metrics article:nth-child(4) { background: #e4f3ed; border-color: #c8e1d7; border-top-color: #74b59f; }
[data-theme="original"] .metrics b { color: #347450; }
[data-theme="original"] .metrics article:nth-child(2) b { color: #8963a5; }
[data-theme="original"] .metrics article:nth-child(3) b { color: #a66d37; }
[data-theme="original"] :is(.panel, dialog) { background: #fffffc; border-color: #d7e3ce; box-shadow: var(--v-shadow); border-radius: 20px; }
[data-theme="original"] .panel-heading { background: #f4f8ec; }
[data-theme="original"] :is(input, textarea, select) { background: #fffffc; border-color: #c8d9c2; }
[data-theme="original"] .login-shell { background: radial-gradient(ellipse at 16% 18%, #dceec7, transparent 45%), radial-gradient(ellipse at 90% 80%, #f0dcf2, transparent 45%), #fcfbf5; }
[data-theme="original"] .login-card { border: 1px solid #cdddbe; border-top: 5px solid #78a669; background: #fffff9; box-shadow: 10px 12px 0 #e2ebd7, 0 25px 60px #2c452e14; border-radius: 26px; }
[data-theme] dialog::backdrop { backdrop-filter: blur(7px); }

@media (hover: hover) and (pointer: fine) {
  [data-theme] .entry:hover { transform: translateY(-7px); border-color: var(--v-accent); box-shadow: 0 18px 35px #203c3320; }
  [data-theme] .primary:hover:not(:disabled) { transform: translateY(-2px); }
  [data-theme] .author-card:hover { transform: translateY(-3px); }
}
[data-theme] .primary:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
@media (min-width: 851px) {
  [data-theme="original"] .welcome-copy h1 { font-size: clamp(38px, 3.8vw, 55px); }
}
@media (max-width: 1000px) and (min-width: 701px) {
  [data-theme="original"] .entry { padding: 20px; }
  [data-theme="original"] .entry h3 { padding-right: 0; margin-top: 100px; }
  [data-theme="original"] .entry p { padding-right: 0; }
  [data-theme="original"] .entry-art { top: 49px; }
}
@media (max-width: 700px) {
  [data-theme="original"] .welcome-header { min-height: 92px; }
  [data-theme="original"] .welcome-hero { min-height: 0; padding-top: 34px; gap: 30px; }
  [data-theme="original"] .welcome-copy h1 { font-size: clamp(30px, 8.1vw, 49px); letter-spacing: -1.5px; }
  [data-theme="original"] :is(.site-description, .intro) { font-size: 13px; }
  [data-theme="original"] .hero-spark { width: 27px; height: 27px; right: 0; }
  [data-theme="original"] .author-card { width: 100%; padding: 16px; }
  [data-theme="original"] .explore-heading h2 { font-size: 22px; }
  [data-theme="original"] .entry { padding: 21px; }
  [data-theme="original"] .entry h3 { font-size: 23px; }
  [data-theme="original"] .entry p { padding-right: 0; font-size: 12px; }
  [data-theme="original"] .hero-art { border-radius: 55px 22px 55px 22px; }
  [data-theme] :is(.login-card, .hero-art) { box-shadow: var(--v-shadow); }
}
@media (prefers-reduced-motion: no-preference) {
  [data-theme] .entry { animation: vitality-arrive .6s ease both; }
  [data-theme] .entry:nth-child(2) { animation-delay: .08s; }
  [data-theme] .entry:nth-child(3) { animation-delay: .16s; }
}
@keyframes vitality-arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
/* Content can grow independently of decoration, labels and action buttons. */
[data-theme] :is(.hero-copy, .project-body, .about-copy, .profile-fields, .dialog-heading > div, .panel-heading > div) { min-width: 0; }
[data-theme] :is(.hero h1, #profile-name, .project-cover > span, .field-help, .panel-heading, .form-footer) { overflow-wrap: anywhere; }
[data-theme] :is(.learning-meta, .project-kicker, .learning-bottom, .card-bottom) { flex-wrap: wrap; }
[data-theme] .learning-meta > span:not(.status) { min-width: 0; overflow-wrap: anywhere; }
[data-theme] .browse-tools .filter { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
[data-theme] :is(input, textarea, select) { min-width: 0; max-width: 100%; }
[data-theme] .icon-button { flex-shrink: 0; }
/* Theme form backgrounds must not paint a rectangle inside rounded search bars. */
[data-theme] .search-field input {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  -webkit-appearance: none; appearance: none;
}
/* The rounded field shows the focus ring; the inner input must not draw its own. */
[data-theme] .search-field input:focus-visible { outline: none; }
[data-theme] .search-field :is(.search-submit, .search-clear):focus-visible { outline-offset: 1px; }
@media (max-width: 760px) {
  [data-theme] :is(.page-heading, .panel-heading, .page-editor-heading, .dialog-actions, .article-nav, .run-toolbar) { flex-wrap: wrap; }
  [data-theme] .panel-heading { align-items: flex-start; }
  [data-theme] .panel-heading > div { flex: 1 1 170px; }
  [data-theme] .form-footer > div { max-width: 100%; flex-wrap: wrap; }
  [data-theme] .profile-fields select { font-size: 16px; }
  [data-theme] .article-nav > span { min-width: 0; overflow-wrap: anywhere; }
  [data-theme] .login-footer { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 620px) {
  [data-theme] .site-header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    height: auto; min-height: 0; padding: 16px; gap: 14px 10px;
  }
  [data-theme] .site-header > .brand { grid-column: 1; grid-row: 1; }
  [data-theme] .site-header .header-actions { grid-column: 2; grid-row: 1; margin: 0; }
  [data-theme] .site-header nav { grid-column: 1 / -1; grid-row: 2; width: 100%; height: auto; gap: 6px; }
  [data-theme] .site-header nav a { flex: 1; padding: 8px 5px; text-align: center; white-space: normal; }
  [data-theme="original"] .site-header .private-badge { display: inline-flex; padding: 7px 10px; font-size: 11.5px; }
  [data-theme="original"] .site-header .brand-name { font-size: 10px; letter-spacing: 1px; }
  [data-theme="original"] .hero-art { transform: none; }
  [data-theme="original"] .hero { padding-top: 28px; gap: 24px; }
  [data-theme="original"] .hero h1 { font-size: clamp(30px, 8.6vw, 36px); line-height: 1.4; }
  [data-theme="original"] .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  [data-theme="original"] .hero-actions :is(.primary, .text-button) { min-width: 0; min-height: 46px; padding: 11px 12px; gap: 12px; font-size: 12px; }
  [data-theme="original"] .hero-art { height: 260px; }
  [data-theme="original"] .hero-flower { width: 230px; height: 230px; top: 16px; }
  [data-theme="original"] .art-label { font-size: 30px; }
  [data-theme="original"] .art-label em { font-size: 38px; }
  [data-theme="original"] .art-sticker { top: 58px; bottom: auto; right: 18px; }
  [data-theme] .browse-tools { padding: 12px; margin-bottom: 18px; }
  [data-theme] .browse-tools .filter-row { gap: 10px; padding-bottom: 11px; }
  [data-theme] .browse-tools .filters { gap: 6px; }
  [data-theme] .browse-tools .filter { min-height: 36px; padding: 6px 12px; font-size: 12px; }
  [data-theme] .browse-tools .filter.active { background: var(--browse-active); border-color: var(--tag-border); color: var(--browse-accent); box-shadow: none; }
  [data-theme] .browse-tags { gap: 8px; padding-top: 10px; }
  [data-theme] .browse-tags:has(.quick-tags:empty) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  [data-theme] .browse-tags:has(.quick-tags:empty) .browse-summary { padding: 0; min-height: 0; }
  [data-theme] .browse-tags:has(.quick-tags:empty) .tag-picker { max-width: 170px; }
  [data-theme] .search-field { min-height: 44px; overflow: hidden; }
  [data-theme] .search-field input { flex-basis: 0; padding-block: 10px; }
  [data-theme] .search-field input::placeholder { font-size: 12px; }
  [data-theme="original"] .empty, [data-theme="original"] .learning-list > .empty { min-height: 220px; padding: 28px 18px; }
  [data-theme="original"] .empty > span { width: 44px; height: 48px; font-size: 24px; margin-bottom: 10px; }
  [data-theme="original"] .empty h3 { font-size: 16px; margin-top: 10px; }
  [data-theme="original"] .empty p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-theme] *, [data-theme] *:before, [data-theme] *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Filing details stay centered below the existing footer on every page. */
[data-site-footer] { flex-wrap: wrap; }
[data-site-footer] .site-registration {
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line, #d9e7da);
  color: var(--muted, #586e62);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0;
}
.site-registration a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}
.site-registration a:hover { color: var(--ink, #193e32); text-decoration: underline; }
.site-registration a:focus-visible { outline: 2px solid var(--v-accent, #187653); outline-offset: 4px; border-radius: 3px; }
.site-registration img { display: block; flex: 0 0 auto; width: 18px; height: 20px; object-fit: contain; }
@media (max-width: 620px) {
  [data-site-footer] .site-registration { flex-direction: column; gap: 2px; padding-top: 14px; text-align: center; }
}
