/*
 * v1.43.0 - Project 8 adoption (phase 2 motion; phase 3 overlays; phase 4 navigation.css; phase 5 settings)
 * v1.43.0 - every line, outline and decorative blue moved toward white (lighter light-blue scheme);
 * text colours and the keyboard focus ring keep their stronger blue for legibility.
 *
 * This file is deliberately loaded after the historical application sheet.
 * It is the final visual authority shared by the public site and the admin
 * studio, so old feature styles cannot quietly reintroduce gradients, candy
 * cards, browser-default controls or inconsistent radii.
 */

:root {
  --fog-white: #f7f9fc;
  --cloud-blue: #edf4fc;
  --petal-pink: #f7e5ed;
  --line-blue: #ebf3fa;
  --line-blue-strong: #d9e8f6;
  --silver-mist: var(--line-blue);
  --graphite-blue: #354052;
  --sunny-blue: #526fa6;
  --accent-soft: #99abcd;
  --canvas: var(--fog-white);
  --canvas-blue: var(--cloud-blue);
  --surface: #fff;
  --surface-soft: #fbfcfe;
  --text: var(--graphite-blue);
  --text-soft: #5f6b7d;
  --text-faint: #778397;
  --border: var(--line-blue);
  --border-strong: var(--line-blue-strong);
  --blue-050: #f2f6fb;
  --blue-50: #f2f6fb;
  --blue-100: var(--cloud-blue);
  --blue-200: #e5f0fa;
  --blue-300: var(--line-blue-strong);
  --blue-500: var(--sunny-blue);
  --blue-600: var(--sunny-blue);
  --action-blue: var(--cloud-blue);
  --action-blue-hover: #e9f2fc;
  --action-blue-ink: var(--graphite-blue);
  --gray-100: var(--line-blue);
  --gray-300: var(--line-blue-strong);
  --gray-600: var(--text-soft);
  --progress-fill: var(--blue-200);
  --radius-sm: 9px;
  --radius-control: 13px;
  --radius-md: 14px;
  --radius-card: 20px;
  --radius-lg: 20px;
  --radius-panel: 28px;
  --radius-xl: 30px;
  --shadow-xs: 0 1px 2px rgba(53, 64, 82, .045);
  --shadow-sm: 0 9px 24px rgba(70, 91, 122, .07);
  --shadow-md: 0 16px 38px rgba(70, 91, 122, .11);
  --shadow-float: 0 24px 58px rgba(70, 91, 122, .15);
  --ease: cubic-bezier(.2, .78, .22, 1);
  --spring: cubic-bezier(.2, .86, .24, 1.08);
  --motion-enter: 460ms;
  --motion-hover: 170ms;
  --motion-press: 105ms;
  --motion-card: 220ms;
  --motion-panel: 280ms;
  --font-reading: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --page-width: 1280px;
  --reading-width: 740px;
}

/* Keep the existing font presets; only repair the default fallback chain. */
html[data-font-style="cloud-rounded"] {
  --font: ui-rounded, "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

html,
body {
  background: var(--fog-white) !important;
  color: var(--graphite-blue);
}

body {
  background-image: none !important;
  font-size: 16px;
  line-height: 1.65;
  font-family: var(--font);
}

h1,
h2,
h3,
h4 {
  color: var(--graphite-blue);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

time, output, [data-number], .tabular-nums, .dashboard-widget__metric strong {
  font-variant-numeric: tabular-nums;
}

::selection {
  color: var(--graphite-blue);
  background: var(--cloud-blue);
}

a:not(.button):not(.icon-button) {
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.text-link,
.article-content a,
.article a,
.site-footer a {
  color: var(--sunny-blue);
  text-decoration: none;
}

.text-link:hover,
.article-content a:hover,
.article a:hover,
.site-footer a:hover {
  color: #465f90;
}

/* Quiet paper surfaces. Large content areas stay flat; only interactive
   components receive a small amount of tactile depth. */
:where(
  .card,
  .admin-panel,
  .admin-section,
  .admin-form,
  .component-showcase,
  .filter-card,
  .toc,
  .article,
  .profile-card,
  .friend-board,
  .guestbook,
  .comments,
  .editor-sidebar-widget,
  .system-fact-card,
  .seo-panel,
  .seo-preview-card,
  .auth-card,
  .message-card,
  .comment-card,
  .moderation-message-card,
  .account-panel,
  .account-section,
  .managed-page-card,
  .menu-editor-card,
  .page-block-card,
  .footer-column-card,
  .admin-layout-parent,
  .moderation-card
) {
  border-color: var(--silver-mist) !important;
  border-style: solid;
  border-radius: var(--radius-card) !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: var(--shadow-sm);
}

:where(.admin-panel, .admin-section, .admin-form, .editor-sidebar-widget) {
  border-radius: var(--radius-card) !important;
}

.auth-card {
  border-radius: 26px !important;
}

:where(
  .hero-card,
  .hero-story,
  .featured-note,
  .showcase-card,
  .project-showcase,
  .home-cta,
  .home-about-collage,
  .now-card,
  .note-card,
  .post-card,
  .corner-card,
  .moment-note,
  .content-state,
  .home-config,
  .home-admin-overview,
  .home-editor-section,
  .home-editor-section__heading,
  .site-logo-preview,
  .moderation-card__front-link,
  .moderation-inline-editor
) {
  background-color: #fff !important;
  background-image: none !important;
}

:where(.wash--pink, .wash--blue, .wash--mint, .wash--purple, .wash--yellow) {
  background: #fff !important;
}

:where(.cover--blue, .cover--pink, .cover--purple, .list-post__cover, .post-card__cover) {
  background: var(--cloud-blue) !important;
  color: var(--accent-soft) !important;
}

/* Controls use the requested 12-14px family instead of universal pills. */
.button {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: var(--radius-control) !important;
  font-weight: 700;
  transition:
    transform var(--motion-press) var(--spring),
    color var(--motion-hover) var(--ease),
    background-color var(--motion-hover) var(--ease),
    border-color var(--motion-hover) var(--ease),
    box-shadow var(--motion-hover) var(--ease);
}

.button--primary {
  border: 1px solid var(--line-blue-strong);
  border-color: var(--line-blue-strong) !important;
  background: var(--surface) !important;
  background-image: none !important;
  box-shadow: var(--shadow-xs) !important;
  color: var(--graphite-blue) !important;
}

.button--primary:hover {
  border-color: var(--line-blue-strong) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-sm) !important;
}

.button--soft {
  border-color: var(--silver-mist) !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: var(--shadow-xs) !important;
  color: var(--graphite-blue) !important;
}

.button--soft:hover {
  border-color: var(--blue-300) !important;
  background: var(--surface) !important;
}

.button--danger,
.button--pink,
.button--mint,
.button--cream {
  background-image: none !important;
}

.button:hover,
.icon-button:hover {
  transform: translate3d(0, -1px, 0) !important;
}

.button:active,
.icon-button:active {
  transform: translate3d(0, 1px, 0) scale(.985) !important;
  transition-duration: var(--motion-press) !important;
}

.icon-button {
  border-color: var(--silver-mist) !important;
  border-radius: var(--radius-control) !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: var(--shadow-xs) !important;
  color: var(--graphite-blue);
}

.icon-button:hover {
  border-color: var(--blue-300) !important;
  background: var(--surface) !important;
}

:where(.badge, .status-pill, .tag-cloud span, .system-version-number) {
  border-radius: var(--radius-sm) !important;
}

.badge--blue,
.status-pill--published,
.status-pill--approved {
  border: 1px solid var(--line-blue-strong);
  background: var(--surface) !important;
  color: var(--graphite-blue) !important;
}

/* Native-looking fields are replaced globally, including compact admin
   filters and editor side panels. */
:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
  textarea,
  select
) {
  min-height: 44px;
  border: 1px solid var(--silver-mist) !important;
  border-radius: var(--radius-control) !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: inset 0 1px 1px rgba(53, 64, 82, .025) !important;
  color: var(--graphite-blue);
  transition:
    border-color var(--motion-hover) var(--ease),
    box-shadow var(--motion-hover) var(--ease),
    background-color var(--motion-hover) var(--ease);
}

:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
  textarea,
  select
):focus {
  border-color: var(--line-blue-strong) !important;
  box-shadow: none !important;
  outline: 2px solid var(--sunny-blue);
  outline-offset: 3px;
  transform: none !important;
}

:where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--accent-soft);
}

/* Public capsules keep their translucent identity; content surfaces do not
   use broad blur. */
.site-nav,
.mobile-bottom-nav {
  border-color: var(--line-blue) !important;
  background: rgba(255, 255, 255, .84) !important;
  background-image: none !important;
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: blur(16px);
}

.nav-indicator,
.mobile-nav-indicator {
  border: 1px solid var(--line-blue-strong);
  border-color: var(--line-blue-strong) !important;
  background: var(--surface) !important;
  background-image: none !important;
  box-shadow: var(--shadow-xs) !important;
}

/* Administrator studio: the same material system, not a separate theme. */
.admin-body {
  --admin-surface: #fff;
  --admin-line: var(--silver-mist);
  background: var(--fog-white) !important;
}

.admin-shell {
  gap: 0;
  background: var(--fog-white);
}

.admin-sidebar {
  border-color: var(--silver-mist) !important;
  background: rgba(255, 255, 255, .96) !important;
  background-image: none !important;
  box-shadow: 10px 0 28px rgba(70, 91, 122, .055) !important;
  backdrop-filter: none !important;
}

/* A motion host must not turn the sticky rail / fixed drawer into a flow
   element. Otherwise a closed tablet drawer reserves an entire viewport. */
html.is-motion-ready body .admin-sidebar.motion-line-target {
  position: sticky;
}

.admin-workspace,
.admin-main {
  background: transparent !important;
}

.admin-topbar {
  min-height: 98px;
  border-bottom: 1px solid var(--silver-mist);
  background: rgba(247, 249, 252, .94);
}

.admin-topbar h1 {
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.3;
}

.admin-main {
  padding-top: 24px;
}

.admin-main .button,
.admin-main button,
.admin-main input[type="submit"],
.admin-main input[type="button"] {
  white-space: nowrap !important;
}

.admin-brand {
  border-bottom-color: var(--silver-mist) !important;
}

.admin-nav-group,
.admin-subnav {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-nav-group.is-open,
.admin-subnav.is-open {
  border-color: var(--silver-mist) !important;
  background: var(--surface) !important;
  background-image: none !important;
}

.admin-nav-group__toggle,
.admin-subnav__toggle,
.admin-nav .admin-nav-group__items a,
.admin-nav .admin-subnav__items a {
  box-shadow: none !important;
}

.admin-nav-group__toggle:hover,
.admin-nav-group__toggle:focus-visible,
.admin-subnav__toggle:hover,
.admin-subnav__toggle:focus-visible,
.admin-nav .admin-nav-group__items a:hover,
.admin-nav .admin-nav-group__items a:focus-visible,
.admin-nav .admin-subnav__items a:hover,
.admin-nav .admin-subnav__items a:focus-visible {
  border-color: var(--line-blue) !important;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--graphite-blue) !important;
}

.admin-nav-group__toggle.is-current,
.admin-nav .admin-nav-group__items a.is-current,
.admin-nav .admin-subnav__items a.is-current {
  border-color: var(--line-blue-strong) !important;
  background: var(--surface) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--graphite-blue) !important;
}

.admin-nav-group__toggle > .icon:first-child,
.admin-nav-group__toggle.is-current > .icon:first-child,
.admin-nav .admin-nav-group__items a::before {
  color: var(--accent-soft) !important;
}

.admin-nav .admin-nav-group__items a::before {
  background: var(--accent-soft) !important;
}

.admin-profile,
.admin-menu-button {
  background: #fff !important;
}

/* Dashboard and status cards lose the alternating candy decorations. */
:where(.dashboard-widget, .dashboard-widget-option, .dashboard-fixed-grid > .dashboard-widget, .moderation-stat) {
  border-color: var(--silver-mist) !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: var(--shadow-sm) !important;
}

.moderation-stat::after,
.dashboard-widget::after,
.stat-card::after,
.user-stat-card::after {
  display: none !important;
}

.user-stat-card {
  --user-stat-color: var(--cloud-blue) !important;
}

:where(.dashboard-widget__actions a, .dashboard-widget__timeline > div, .dashboard-widget__status > div, .dashboard-widget__status > a) {
  border-color: var(--silver-mist) !important;
  background: var(--fog-white) !important;
  background-image: none !important;
}

.dashboard-widget .soft-icon,
.dashboard-widget__hero-mark,
.system-version-card__mark,
.home-editor-section__heading > span {
  background: var(--cloud-blue) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--accent-soft) !important;
}

.dashboard-widget__progress,
.runtime-resource-meter {
  background: var(--silver-mist) !important;
  box-shadow: none !important;
}

.dashboard-widget__progress i,
.runtime-resource-meter i {
  background: var(--blue-200) !important;
  background-image: none !important;
}

/* Lists and tables use spacing and separators instead of nested card noise. */
.admin-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--silver-mist);
  border-radius: var(--radius-card);
  background: #fff;
}

.admin-table thead {
  background: var(--fog-white) !important;
  background-image: none !important;
}

.admin-table th,
.admin-table td {
  border-color: var(--silver-mist) !important;
}

.admin-table tbody tr:hover {
  background: var(--surface-soft) !important;
}

:where(.admin-post-row, .version-list article, .taxonomy-items > div, .interaction-row-card, .broadcast-history article) {
  border-color: var(--silver-mist) !important;
  background-image: none !important;
}

.moderation-card__content,
.moderation-inline-editor,
.home-admin-overview__stats span,
.system-version-card dl div,
.site-address-card > strong,
.admin-layout-children article {
  border-color: var(--silver-mist) !important;
  background: var(--fog-white) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.home-admin-jumpbar,
.sticky-form-actions {
  border-color: var(--silver-mist) !important;
  background: rgba(255, 255, 255, .92) !important;
  background-image: none !important;
  box-shadow: var(--shadow-md) !important;
  backdrop-filter: blur(12px);
}

.home-admin-jumpbar a,
.moderation-filterbar a {
  border-radius: var(--radius-sm) !important;
}

.home-admin-jumpbar a:hover,
.home-admin-jumpbar a:focus-visible,
.moderation-filterbar a:hover,
.moderation-filterbar a.is-active {
  background: var(--cloud-blue) !important;
  color: var(--sunny-blue) !important;
}

/* Media, editor and preview workspaces use pale neutral wells. */
:where(.media-card, .album-card, .photo-tile, .site-logo-preview, .image-crop-stage, .editor-canvas, .component-motion-live-preview__stage) {
  border-color: var(--silver-mist) !important;
  background-color: var(--fog-white) !important;
  background-image: none !important;
}

.media-card,
.album-card,
.photo-tile {
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-xs) !important;
}

.media-card img,
.album-card img,
.photo-tile img {
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}

/* Shared floating layers. */
.button--small {
  min-height: 36px;
  padding-inline: var(--space-3);
  font-size: 13px;
}

.button:disabled,
.icon-button:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

:focus-visible {
  outline: 2px solid var(--sunny-blue);
  outline-offset: 3px;
}

.site-nav__links a:hover,
.site-nav__links a.is-current,
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.is-current {
  background: transparent;
  color: var(--graphite-blue);
}

:where(.themed-select__trigger, .themed-select__menu, .themed-number-stepper,
       .segmented-control, .filter-chip, .filter-tab, .font-choice) {
  border-color: var(--line-blue) !important;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--graphite-blue);
}

.font-choice {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
}

.font-choice:has(input:checked) {
  border-color: var(--line-blue-strong) !important;
  background: var(--surface) !important;
  background-image: none !important;
  box-shadow: var(--shadow-sm);
}

.themed-select__option.is-active,
.themed-select__option[aria-selected="true"],
.segmented-control button.is-active {
  background: var(--surface) !important;
  color: var(--graphite-blue) !important;
  box-shadow: inset 0 0 0 1px var(--line-blue-strong) !important;
}

/* The owner's SVG still replaces this fallback border. Do not override
   is-outline-ready or motion-surface-owned: phase 1 leaves motion intact. */
:where(.compact-empty, .file-drop, .hero-tags span, .dialog-preview-panel,
       .home-module-fixed-field strong, .component-upload-preview) {
  border-style: solid !important;
  border-color: var(--line-blue);
}

.form-grid {
  gap: var(--space-4);
}

.field,
.field > :is(input, textarea, select),
.form-grid > *,
.admin-main :is(.admin-panel, .admin-section, .admin-form) {
  min-width: 0;
}

.field__label,
.field > span:not(.upload-progress),
.admin-main .field > span:not(.upload-progress) {
  font-size: 13px;
  line-height: 1.5;
}

.field > small,
.field-error {
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.field > :is(input, textarea, select),
.themed-select__trigger {
  font-size: 14px;
  line-height: 1.5;
}

.admin-form__actions,
.sticky-form-actions,
.site-identity-form__actions {
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.admin-main :is(.admin-panel, .admin-section) > h2,
.admin-main .section-heading h2 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.35;
}

.admin-table :is(th, td) {
  font-size: 13px;
  line-height: 1.6;
  vertical-align: middle;
}

.admin-nav-group__toggle,
.admin-subnav__toggle {
  font-size: 14px;
  line-height: 1.5;
}

.admin-nav :is(.admin-nav-group__items, .admin-subnav__items) a {
  font-size: 13px;
  line-height: 1.5;
}

.home-intro__surface {
  min-height: clamp(350px, 33vw, 420px);
  border-radius: var(--radius-panel) !important;
  border-color: var(--line-blue) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-sm);
}

.home-intro__copy,
.home-intro__portrait {
  padding: clamp(24px, 3vw, 40px);
}

.home-intro__copy h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.18;
}

.home-intro__portrait {
  border-color: var(--line-blue);
  background: var(--surface-soft);
}

.home-intro__mark {
  border-color: var(--line-blue-strong);
}

.home-section-header h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.3;
}

.home-about-v3 {
  gap: var(--space-4);
}

.home-about-v3 > .card {
  min-height: 280px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-card);
}

.home-about-v3__intro h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.3;
}

.home-entry-meta,
.home-intro__focus small,
.home-about-v3__facts dt {
  font-size: 12px;
}

.article {
  max-width: var(--reading-width);
}

/* Stable information density, independent of the host viewport width. */
.dashboard-fixed-grid {
  gap: var(--space-4);
  align-items: stretch;
}

.dashboard-fixed-grid > .dashboard-widget {
  min-width: 0;
  min-height: 120px;
  padding: var(--space-6);
  border-radius: var(--radius-card);
}

.dashboard-fixed-grid .dashboard-fixed-grid__hero {
  min-height: 160px !important;
}

.dashboard-fixed-grid .dashboard-fixed-grid__activity,
.dashboard-fixed-grid .dashboard-fixed-grid__actions,
.dashboard-fixed-grid .dashboard-fixed-grid__status,
.dashboard-fixed-grid .dashboard-fixed-grid__progress {
  min-height: 220px !important;
}

.dashboard-fixed-grid .dashboard-widget__metric small,
.dashboard-fixed-grid .dashboard-widget__actions a,
.dashboard-fixed-grid .dashboard-widget__status > div,
.dashboard-fixed-grid .dashboard-widget__status > a,
.dashboard-fixed-grid .dashboard-widget__timeline strong {
  font-size: 13px;
}

.dashboard-fixed-grid .dashboard-widget__metric strong {
  font-size: clamp(30px, 2.5vw, 38px);
  line-height: 1.2;
}

.dashboard-fixed-grid .dashboard-widget__metric em,
.dashboard-fixed-grid .dashboard-widget__heading small,
.dashboard-fixed-grid .dashboard-widget__timeline small,
.dashboard-fixed-grid .dashboard-widget__timeline time {
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-fixed-grid .dashboard-widget__heading strong {
  font-size: 18px;
  line-height: 1.4;
}

.dashboard-fixed-grid__hero h2 {
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.3;
}

.auth-card h1 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.35;
}

dialog.modal,
.app-system-dialog,
.image-crop-dialog,
.image-lightbox {
  border-color: var(--silver-mist) !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: var(--shadow-float) !important;
}

dialog.modal,
.app-system-dialog,
.image-crop-dialog,
.image-lightbox {
  border-radius: 22px !important;
}

dialog.modal::backdrop,
.image-crop-dialog::backdrop,
.image-lightbox::backdrop {
  background: rgba(53, 64, 82, .2);
  backdrop-filter: blur(6px);
}

/* The physical line system remains the only entrance outline. */
.motion-outline,
.motion-outline__path {
  color: var(--component-motion-color, var(--line-blue-strong));
}

:where(.card--interactive, .post-card, .list-post, .project-card, .moment-entry, .album-card, .photo-tile, .friend-card, .message-card, .comment-card, .admin-panel, .admin-section) {
  transition:
    transform var(--motion-card) var(--spring),
    border-color var(--motion-hover) var(--ease),
    box-shadow var(--motion-card) var(--ease),
    background-color var(--motion-hover) var(--ease);
}

@media (hover: hover) {
  :where(.card--interactive, .post-card, .list-post, .project-card, .moment-entry, .album-card, .photo-tile, .friend-card, .message-card, .comment-card):hover {
    border-color: var(--blue-300) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translate3d(0, -2px, 0) !important;
  }
}

@media (max-width: 1180px) {
  html.is-motion-ready body .admin-sidebar.motion-line-target {
    position: fixed;
  }

  .admin-topbar {
    min-height: 84px;
    padding-top: 20px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 0;
    padding-top: 18px;
  }

  .admin-topbar__actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .admin-main {
    padding-top: 18px;
  }

  :where(.admin-panel, .admin-section, .admin-form) {
    border-radius: 20px;
  }

  .button {
    min-height: 42px;
    padding-inline: 15px;
  }

  .home-intro__surface {
    min-height: 0;
    border-radius: var(--radius-card) !important;
  }

  .home-intro__copy h1 {
    font-size: clamp(30px, 7.5vw, 36px);
  }

  .home-about-v3 > .card {
    min-height: 0;
    padding: var(--space-6);
  }

  .dashboard-fixed-grid > .dashboard-widget {
    min-height: 0 !important;
    padding: var(--space-6);
  }

  .dashboard-fixed-grid .dashboard-fixed-grid__activity,
  .dashboard-fixed-grid .dashboard-fixed-grid__actions,
  .dashboard-fixed-grid .dashboard-fixed-grid__status,
  .dashboard-fixed-grid .dashboard-fixed-grid__progress {
    min-height: 0 !important;
  }

  .admin-table {
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .admin-topbar h1 {
    font-size: 24px;
  }

  .admin-main {
    padding-inline: 14px;
  }
}

/* Phase 2: one locally measured outline and one shared animation clock. */
html.motion-preparing :is(.dashboard-widget, .admin-post-row) {
  opacity: 0;
}

.admin-post-list {
  gap: 12px;
}

.admin-post-row {
  padding: 16px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-card);
  background: var(--surface);
  min-width: 0;
}

.admin-post-row > div {
  min-width: 0;
}

html.is-motion-ready .motion-line-target.is-outline-ready {
  border-color: transparent !important;
}

html.is-motion-ready .motion-line-target.motion-surface-owned,
html.is-motion-ready .motion-child-control.motion-surface-owned {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.is-motion-ready :is(.motion-line-target, .motion-child-control) > .motion-outline {
  color: var(--component-motion-color, var(--line-blue-strong));
}

/* Do not promote the entire content card to a filter layer. */
html.is-motion-ready .motion-line-target.is-motion-active > .motion-surface-layer {
  will-change: opacity, transform;
}

html.is-motion-ready :is(button, [role="button"], summary, [data-motion-control], .button, .icon-button, .card--interactive, .article-card-link, .film-frame, .moment-note).is-pressed {
  transform: translate3d(0, 1px, 0) scale(.975) !important;
  transition: transform 105ms var(--ease);
}

html.is-motion-ready :is(button, [role="button"], summary, [data-motion-control], .button, .icon-button, .card--interactive, .article-card-link, .film-frame, .moment-note).is-releasing {
  animation: small-window-control-release 280ms var(--ease);
}

@keyframes small-window-control-release {
  0% { transform: translate3d(0, 1px, 0) scale(.975); }
  70% { transform: translate3d(0, var(--press-rest-y, 0px), 0) scale(1.008); }
  100% { transform: translate3d(0, var(--press-rest-y, 0px), 0) scale(1); }
}

@media (hover: hover) {
  html.is-motion-ready :is(button, [role="button"], summary, [data-motion-control], .button, .icon-button, .card--interactive, .article-card-link, .film-frame, .moment-note):hover:not(.is-pressed) {
    --press-rest-y: -2px;
    transform: translate3d(0, -2px, 0) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-motion-ready :is(button, [role="button"], summary, [data-motion-control], .button, .icon-button, .card--interactive, .article-card-link, .film-frame, .moment-note).is-releasing {
    animation: none;
  }
  html.is-motion-ready :is(button, [role="button"], summary, [data-motion-control], .button, .icon-button, .card--interactive, .article-card-link, .film-frame, .moment-note):is(:hover, .is-pressed) {
    transform: none !important;
  }
}

html.is-motion-ready[data-motion="reduce"] :is(button, [role="button"], summary, [data-motion-control], .button, .icon-button, .card--interactive, .article-card-link, .film-frame, .moment-note):is(:hover, .is-pressed, .is-releasing) {
  animation: none;
  transform: none !important;
}

/* Icon-size selectors must never shrink a component's generated outline. */
.motion-line-target > svg.motion-outline,
.motion-child-control > svg.motion-outline {
  width: 100% !important;
  height: 100% !important;
}

html[data-motion="reduce"] *,
html[data-performance="low"] * {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* v1.41.0 - one themed range control everywhere (settings, image studio,
   editor image width, gallery), replacing native and candy gradients. */
input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  accent-color: var(--accent-soft);
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--blue-200);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--blue-200);
}

input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line-blue-strong);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--motion-hover) var(--ease);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: 2px solid var(--line-blue-strong); outline-offset: 3px; border-radius: 999px; }
input[type="range"]:disabled { cursor: not-allowed; opacity: .5; }

/* v1.43.0 - line glyphs (logo window symbol, loading symbol) follow the lighter line colour. */
.window-symbol,
.window-symbol--loading,
.component-window-symbol-preview .window-symbol,
.local-auth-intro .window-symbol {
  color: var(--accent-soft);
}

/* Decorative icon strokes (card arrows) share the lighter line colour. */
.article-card-link__arrow {
  color: var(--accent-soft);
}
