/*
 * EmlogStudio theme styles
 * Local assets only; compatible with the PHP 7.4+ Emlog theme templates.
 */

:root {
      color-scheme: dark;
      --bg: #020403;
      --panel: rgba(13, 17, 16, 0.82);
      --panel-strong: #0d1110;
      --panel-soft: rgba(255, 255, 255, 0.035);
      --line: rgba(220, 239, 231, 0.12);
      --line-strong: rgba(220, 239, 231, 0.24);
      --text: #f2f7f4;
      --muted: #8b9691;
      --subtle: #56605c;
      --green: #18e276;
      --green-bright: #63ffab;
      --green-dark: #063d24;
      --red: #ff5c50;
      --amber: #f0b55f;
      --blue: #38bdf8;
      --violet: #9d7cff;
      --radius-xl: 24px;
      --radius-lg: 18px;
      --radius-md: 13px;
      --shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
      --font-body: "Microsoft YaHei UI", "PingFang SC", sans-serif;
      --font-display: Bahnschrift, "DIN Alternate", "Microsoft YaHei UI", sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      min-width: 320px;
      background: var(--bg);
    }

    body {
      min-height: 100vh;
      margin: 0;
      color: var(--text);
      font-family: var(--font-body);
      background:
        radial-gradient(circle at 53% 48%, rgba(0, 98, 52, 0.11), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(86, 106, 97, 0.08), transparent 24%),
        linear-gradient(145deg, #010202 0%, #050807 48%, #010202 100%);
      overflow-x: hidden;
    }

    body::before {
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      content: "";
      opacity: 0.18;
      background-image:
        linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
      background-size: 48px 48px;
      mask-image: linear-gradient(to bottom, black, transparent 88%);
    }

    button,
    input,
    textarea,
    select {
      font: inherit;
    }

    button,
    a {
      -webkit-tap-highlight-color: transparent;
    }

    button {
      color: inherit;
    }

    .icon {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.8;
    }

    .app-shell {
      display: grid;
      grid-template-columns: 190px minmax(0, 1fr) 276px;
      gap: 18px;
      width: min(1536px, calc(100% - 28px));
      min-height: calc(100vh - 28px);
      margin: 14px auto;
    }

    .glass {
      background:
        linear-gradient(145deg, rgba(255,255,255,.052), transparent 42%),
        var(--panel);
      border: 1px solid var(--line);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.055), var(--shadow);
      backdrop-filter: blur(22px);
    }

    .sidebar {
      position: sticky;
      top: 14px;
      display: flex;
      height: calc(100vh - 28px);
      min-height: 700px;
      flex-direction: column;
      padding: 20px 14px 16px;
      border-radius: var(--radius-xl);
      overflow: hidden;
    }

    .sidebar::after {
      position: absolute;
      width: 160px;
      height: 160px;
      left: -78px;
      top: 84px;
      content: "";
      border-radius: 50%;
      background: rgba(230, 255, 243, 0.07);
      filter: blur(34px);
      pointer-events: none;
    }

    .brand {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 9px;
      min-height: 46px;
      padding: 0 7px 12px;
    }

    .brand-mark {
      position: relative;
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -2px;
      text-shadow: 0 0 18px rgba(93,255,172,.22);
    }

    .brand-mark span {
      display: inline-block;
      margin-left: -3px;
      transform: skewX(-14deg);
    }

    .brand-name {
      overflow: hidden;
      font-size: 11px;
      color: #d2dbd7;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .nav-list {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 6px;
      margin-top: 26px;
    }

    .nav-item {
      display: flex;
      width: 100%;
      min-height: 44px;
      align-items: center;
      gap: 12px;
      padding: 0 13px;
      color: #929c97;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 13px;
      cursor: pointer;
      transition: color .2s ease, background .2s ease, transform .2s ease, border-color .2s ease;
    }

    .nav-item:hover {
      color: #e9f1ed;
      background: rgba(255,255,255,.035);
      transform: translateX(2px);
    }

    .nav-item.active {
      color: #fff;
      background:
        linear-gradient(90deg, rgba(255,255,255,.13), rgba(255,255,255,.045)),
        #141918;
      border-color: rgba(255,255,255,.14);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 10px 30px rgba(0,0,0,.26);
    }

    .nav-item.active .nav-icon {
      color: var(--green-bright);
      filter: drop-shadow(0 0 8px rgba(60,255,148,.5));
    }

    .nav-text {
      flex: 1;
      text-align: left;
      font-size: 13px;
      white-space: nowrap;
    }

    .nav-arrow {
      width: 14px;
      opacity: .75;
    }

    .sidebar-bottom {
      position: relative;
      z-index: 1;
      margin-top: auto;
    }

    .workspace-switcher {
      padding: 13px 8px 16px;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .switcher-label {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
      color: #69736e;
      font-size: 10px;
    }

    .switcher {
      display: flex;
      width: 100%;
      min-height: 40px;
      align-items: center;
      gap: 8px;
      padding: 0 9px;
      color: #d4dcd8;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 12px;
      cursor: pointer;
    }

    .switcher .icon {
      width: 15px;
    }

    .switcher span {
      overflow: hidden;
      flex: 1;
      font-size: 11px;
      text-align: left;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .profile {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 16px 5px 4px;
    }

    .avatar {
      position: relative;
      display: grid;
      width: 35px;
      height: 35px;
      flex: 0 0 auto;
      place-items: center;
      color: #ecf2ef;
      font-family: var(--font-display);
      font-size: 11px;
      background: linear-gradient(145deg, #596661, #252c29);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 50%;
    }

    .avatar::after {
      position: absolute;
      right: -1px;
      bottom: 0;
      width: 7px;
      height: 7px;
      content: "";
      background: var(--green);
      border: 2px solid #111513;
      border-radius: 50%;
      box-shadow: 0 0 10px rgba(24,226,118,.7);
    }

    .profile-meta {
      min-width: 0;
      flex: 1;
    }

    .profile-name,
    .profile-role {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .profile-name {
      font-size: 11px;
      color: #e5ece8;
    }

    .profile-role {
      margin-top: 3px;
      color: #69736e;
      font-size: 9px;
    }

    .workspace {
      display: flex;
      min-width: 0;
      flex-direction: column;
      padding: 7px 0 0;
    }

    .topbar {
      display: grid;
      grid-template-columns: minmax(170px, .75fr) minmax(290px, 1.15fr) auto;
      min-height: 74px;
      align-items: center;
      gap: 18px;
    }

    .page-title h1 {
      margin: 0 0 5px;
      font-family: var(--font-display);
      font-size: 21px;
      font-weight: 650;
      letter-spacing: .03em;
    }

    .page-title p {
      margin: 0;
      color: #69736e;
      font-size: 10px;
      letter-spacing: .08em;
    }

    .search-box {
      position: relative;
    }

    .search-box .icon {
      position: absolute;
      top: 50%;
      left: 14px;
      width: 15px;
      color: #7a8580;
      transform: translateY(-50%);
      pointer-events: none;
    }

    .search-box input {
      width: 100%;
      height: 39px;
      padding: 0 54px 0 39px;
      color: #dfe6e2;
      outline: none;
      background: rgba(8,11,10,.82);
      border: 1px solid var(--line);
      border-radius: 999px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    .search-box input::placeholder {
      color: #59625e;
    }

    .search-box input:focus {
      border-color: rgba(67,255,157,.35);
      box-shadow: 0 0 0 3px rgba(24,226,118,.08), inset 0 1px 0 rgba(255,255,255,.04);
    }

    .shortcut {
      position: absolute;
      top: 50%;
      right: 11px;
      padding: 3px 7px;
      color: #69726e;
      font-family: var(--font-display);
      font-size: 9px;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 6px;
      transform: translateY(-50%);
    }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .icon-button,
    .toolbar-button,
    .round-button {
      display: inline-grid;
      place-items: center;
      cursor: pointer;
      transition: border-color .2s ease, background .2s ease, transform .2s ease;
    }

    .icon-button {
      position: relative;
      width: 37px;
      height: 37px;
      color: #aab3af;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 50%;
    }

    .icon-button:hover,
    .toolbar-button:hover,
    .round-button:hover {
      color: #fff;
      background: rgba(255,255,255,.055);
      border-color: var(--line);
      transform: translateY(-1px);
    }

    .notification-dot {
      position: absolute;
      top: 5px;
      right: 5px;
      width: 6px;
      height: 6px;
      background: var(--green-bright);
      border: 2px solid #050706;
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(99,255,171,.8);
    }

    .primary-button {
      display: inline-flex;
      height: 39px;
      align-items: center;
      gap: 8px;
      padding: 0 16px;
      color: #eef5f1;
      font-weight: 600;
      font-size: 11px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.07), transparent),
        #101513;
      border: 1px solid var(--line);
      border-radius: 999px;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.18);
      transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    }

    .primary-button:hover {
      border-color: rgba(99,255,171,.28);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 26px rgba(0,0,0,.24);
      transform: translateY(-1px);
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr)) 124px;
      gap: 14px;
      margin-top: 6px;
    }

    .stat-card {
      position: relative;
      min-height: 111px;
      padding: 17px 18px;
      border-radius: var(--radius-lg);
      overflow: hidden;
      animation: rise-in .55s both;
    }

    .stat-card:nth-child(2) { animation-delay: .05s; }
    .stat-card:nth-child(3) { animation-delay: .1s; }
    .stat-card:nth-child(4) { animation-delay: .15s; }

    .stat-card::before {
      position: absolute;
      right: -28px;
      bottom: -54px;
      width: 142px;
      height: 92px;
      content: "";
      border-top: 1px solid rgba(255,255,255,.32);
      border-radius: 50%;
      filter: blur(.2px);
      transform: rotate(11deg);
      box-shadow: 0 -9px 26px rgba(255,255,255,.08);
    }

    .stat-card::after {
      position: absolute;
      width: 70px;
      height: 70px;
      right: -9px;
      top: -24px;
      content: "";
      background: rgba(255,255,255,.05);
      border-radius: 50%;
      filter: blur(18px);
    }

    .stat-card.alert-card {
      padding-right: 12px;
      padding-left: 14px;
    }

    .stat-label {
      display: flex;
      align-items: center;
      gap: 7px;
      color: #c8d1cd;
      font-size: 11px;
    }

    .stat-icon {
      position: absolute;
      top: 14px;
      right: 14px;
      display: grid;
      width: 40px;
      height: 40px;
      place-items: center;
      color: #e6eeea;
      background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 50%;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }

    .alert-card .stat-icon {
      width: 30px;
      height: 30px;
      color: var(--red);
      background: transparent;
      border-color: transparent;
    }

    .stat-number {
      display: flex;
      align-items: baseline;
      gap: 6px;
      margin-top: 8px;
      font-family: var(--font-display);
      font-size: 28px;
      line-height: 1;
      letter-spacing: -.03em;
    }

    .stat-number small {
      color: #79837e;
      font-family: var(--font-body);
      font-size: 9px;
      letter-spacing: 0;
    }

    .stat-trend {
      margin-top: 11px;
      color: #6d7772;
      font-size: 9px;
    }

    .stat-trend b {
      color: #41c982;
      font-weight: 500;
    }

    .stat-trend.down b {
      color: #e46258;
    }

    .board-section {
      min-height: 0;
      margin-top: 15px;
    }

    .section-heading {
      display: flex;
      min-height: 33px;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .section-heading h2 {
      margin: 0;
      color: #dce4e0;
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 550;
      letter-spacing: .06em;
    }

    .board-controls,
    .control-group,
    .segmented {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .segmented {
      gap: 2px;
      padding: 3px;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.055);
      border-radius: 999px;
    }

    .segment {
      min-height: 25px;
      padding: 0 13px;
      color: #646e69;
      background: transparent;
      border: 0;
      border-radius: 999px;
      cursor: pointer;
      font-size: 9px;
      transition: color .2s ease, background .2s ease;
    }

    .segment:hover {
      color: #c8d1cc;
    }

    .segment.active {
      color: #f0f6f3;
      background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 12px rgba(0,0,0,.18);
    }

    .toolbar-button {
      display: inline-flex;
      min-height: 30px;
      align-items: center;
      gap: 6px;
      padding: 0 10px;
      color: #828c87;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.065);
      border-radius: 10px;
      font-size: 9px;
    }

    .toolbar-button .icon {
      width: 13px;
    }

    .toolbar-button.active {
      color: var(--green-bright);
      border-color: rgba(24,226,118,.25);
      background: rgba(24,226,118,.07);
    }

    .board-card {
      position: relative;
      display: grid;
      grid-template-columns: 236px minmax(0, 1fr);
      min-height: 304px;
      margin-top: 8px;
      border-radius: 16px;
      overflow: hidden;
      isolation: isolate;
    }

    .board-card::before {
      position: absolute;
      inset: 0;
      content: "";
      pointer-events: none;
      background: radial-gradient(circle at 67% 55%, rgba(9,159,81,.08), transparent 31%);
    }

    .task-groups {
      position: relative;
      z-index: 2;
      padding: 10px 0 10px 10px;
    }

    .task-group {
      margin-bottom: 8px;
      overflow: hidden;
      background: rgba(5,8,7,.78);
      border: 1px solid rgba(255,255,255,.055);
      border-radius: 10px;
    }

    .group-heading {
      display: flex;
      width: 100%;
      height: 34px;
      align-items: center;
      gap: 8px;
      padding: 0 10px;
      color: #d8e0dc;
      background: transparent;
      border: 0;
      cursor: pointer;
      font-size: 10px;
      text-align: left;
    }

    .group-dot {
      width: 6px;
      height: 6px;
      background: var(--group-color, var(--green));
      border-radius: 50%;
      box-shadow: 0 0 8px color-mix(in srgb, var(--group-color, var(--green)) 55%, transparent);
    }

    .group-count {
      padding: 2px 6px;
      color: #7e8883;
      background: rgba(255,255,255,.045);
      border-radius: 999px;
      font-family: var(--font-display);
      font-size: 8px;
    }

    .group-heading .icon {
      width: 12px;
      margin-left: auto;
      color: #58615d;
      transition: transform .2s ease;
    }

    .task-group.collapsed .group-heading .icon {
      transform: rotate(-90deg);
    }

    .task-group.collapsed .task-list {
      display: none;
    }

    .task-list {
      display: grid;
      gap: 1px;
      padding: 0 5px 5px;
    }

    .task-row {
      display: grid;
      grid-template-columns: 78px minmax(0, 1fr) auto;
      min-height: 30px;
      align-items: center;
      gap: 5px;
      padding: 0 6px;
      color: #7b8580;
      background: transparent;
      border: 0;
      border-radius: 7px;
      cursor: pointer;
      text-align: left;
      transition: color .18s ease, background .18s ease;
    }

    .task-row:hover {
      color: #cfd7d3;
      background: rgba(255,255,255,.035);
    }

    .task-row.selected {
      color: #eaf1ed;
      background: linear-gradient(90deg, rgba(255,255,255,.105), rgba(255,255,255,.025));
      box-shadow: inset 1px 0 0 rgba(99,255,171,.55);
    }

    .task-id {
      font-family: var(--font-display);
      font-size: 8px;
      letter-spacing: .015em;
    }

    .task-name {
      overflow: hidden;
      font-size: 9px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .task-due {
      color: #68716d;
      font-size: 8px;
      white-space: nowrap;
    }

    .priority-chip {
      display: inline-grid;
      width: 16px;
      height: 16px;
      margin-left: 3px;
      place-items: center;
      color: #53e998;
      background: rgba(24,226,118,.09);
      border-radius: 4px;
      font-size: 8px;
    }

    .priority-chip.medium {
      color: var(--amber);
      background: rgba(240,181,95,.1);
    }

    .document-stage {
      /* 分类文件卡始终使用同一条倾斜轴，避免因透视原点不同而向两侧散开。 */
      --deck-tilt: -6deg;
      position: relative;
      z-index: 3;
      min-width: 0;
      /* 详情卡的旋转投影会越过网格单元边界；裁剪由外层看板统一负责。 */
      overflow: visible;
      isolation: isolate;
    }

    .document-stage::before {
      position: absolute;
      z-index: 0;
      left: 9%;
      right: 3%;
      bottom: 15px;
      height: 54px;
      content: "";
      background: radial-gradient(ellipse, rgba(241,248,244,.15), rgba(24,226,118,.045) 27%, transparent 70%);
      filter: blur(18px);
      transform: rotate(-1deg);
    }

    .progress-document {
      --fly-x: 90px;
      --fly-y: 0px;
      position: absolute;
      z-index: 50;
      top: 31px;
      left: 34px;
      width: 170px;
      height: 205px;
      padding: 22px 17px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      background:
        radial-gradient(circle at 78% 17%, rgba(255,255,255,.22), transparent 24%),
        linear-gradient(108deg, rgba(255,255,255,.06), rgba(242,252,247,.24) 41%, rgba(255,255,255,.04) 62%, rgba(3,9,6,.22)),
        linear-gradient(180deg, rgba(225,238,232,.32) 0%, rgba(132,151,141,.19) 48%, rgba(3,9,6,.68) 100%);
      border: 1px solid rgba(240,255,248,.46);
      border-radius: 13px;
      box-shadow:
        inset 1px 0 0 rgba(255,255,255,.4),
        inset 0 1px 0 rgba(255,255,255,.36),
        inset -12px 0 24px rgba(0,0,0,.14),
        22px 30px 62px rgba(0,0,0,.48);
      -webkit-backdrop-filter: blur(12px) saturate(115%);
      backdrop-filter: blur(12px) saturate(115%);
      transform:
        translate3d(var(--fly-x), var(--fly-y), 0)
        rotate(var(--deck-tilt))
        scale(.72);
      transform-origin: 50% 50%;
      transform-style: preserve-3d;
      transition:
        opacity .22s ease,
        visibility 0s linear .46s,
        transform .46s cubic-bezier(.18,.84,.2,1),
        box-shadow .46s ease;
    }

    .progress-document.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform:
        translate3d(0, 0, 0)
        rotate(var(--deck-tilt))
        scale(1);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 28px 34px 68px rgba(0,0,0,.55);
      transition-delay: 0s;
    }

    .progress-document.is-resetting {
      transition: none !important;
    }

    .progress-document::after {
      position: absolute;
      inset: 0;
      content: "";
      background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.14), transparent 48%);
      border-radius: inherit;
      pointer-events: none;
    }

    .progress-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #eef5f1;
      font-size: 17px;
      font-weight: 650;
    }

    .progress-close {
      position: relative;
      z-index: 2;
      display: grid;
      width: 28px;
      height: 28px;
      margin: -7px -7px 0 0;
      place-items: center;
      color: #eef5f1;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 50%;
      cursor: pointer;
    }

    .progress-close:hover,
    .progress-close:focus-visible {
      background: rgba(255,255,255,.08);
      border-color: rgba(255,255,255,.12);
      outline: none;
    }

    .progress-close .icon {
      width: 15px;
    }

    .progress-period {
      margin-top: 6px;
      color: #c6d0cb;
      font-family: var(--font-display);
      font-size: 12px;
    }

    .progress-value {
      margin-top: 48px;
      font-family: var(--font-display);
      font-size: 32px;
      line-height: .9;
    }

    .progress-value small {
      display: block;
      margin-top: 9px;
      color: #dce5e0;
      font-family: var(--font-body);
      font-size: 9px;
    }

    .doc-deck {
      position: absolute;
      z-index: 1;
      inset: 0;
      pointer-events: none;
      transform-style: preserve-3d;
    }

    .file-card {
      --x: 0px;
      --z: 0px;
      --brightness: .88;
      position: absolute;
      z-index: var(--layer, 1);
      top: 25px;
      left: 23%;
      display: block;
      width: 101px;
      height: 230px;
      padding: 0;
      color: rgba(226,236,231,.82);
      text-align: left;
      cursor: pointer;
      pointer-events: auto;
      background:
        linear-gradient(106deg, rgba(255,255,255,.05) 4%, rgba(244,252,248,.36) 40%, rgba(255,255,255,.08) 61%, rgba(4,10,7,.18) 100%),
        linear-gradient(180deg, rgba(225,238,232,.46) 0%, rgba(182,199,191,.3) 42%, rgba(86,99,92,.4) 70%, rgba(12,19,15,.72) 100%);
      border: 1px solid rgba(239,255,247,.48);
      border-radius: 10px;
      box-shadow:
        inset 1px 0 0 rgba(255,255,255,.38),
        inset 0 1px 0 rgba(255,255,255,.34),
        inset -1px 0 0 rgba(8,15,11,.36),
        inset -10px 0 22px rgba(0,0,0,.12),
        13px 20px 34px rgba(0,0,0,.4);
      -webkit-backdrop-filter: blur(10px) saturate(115%);
      backdrop-filter: blur(10px) saturate(115%);
      filter: brightness(var(--brightness));
      transform:
        translate3d(var(--x), 0, 0)
        rotate(var(--deck-tilt));
      transform-origin: 50% 100%;
      transform-style: flat;
      transition:
        opacity .28s ease,
        filter .3s ease,
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        transform .38s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease;
    }

    .file-card::before {
      position: absolute;
      top: 36px;
      left: 17px;
      width: 53px;
      height: 58px;
      content: "";
      opacity: .26;
      background:
        repeating-linear-gradient(0deg, rgba(9,15,12,.36) 0 5px, transparent 5px 12px),
        repeating-linear-gradient(90deg, rgba(9,15,12,.3) 0 5px, transparent 5px 12px);
      border: 1px solid rgba(10,16,13,.12);
      border-radius: 4px;
    }

    .file-card::after {
      position: absolute;
      inset: 0;
      content: "";
      background:
        linear-gradient(103deg, transparent 26%, rgba(255,255,255,.3) 45%, transparent 61%),
        linear-gradient(180deg, rgba(255,255,255,.1), transparent 46%, rgba(0,0,0,.13));
      border-radius: inherit;
      opacity: .58;
      pointer-events: none;
    }

    .file-card:hover,
    .file-card:focus-visible {
      z-index: 30;
      color: #eafff3;
      background:
        radial-gradient(circle at 48% 25%, rgba(158,255,201,.28), transparent 35%),
        linear-gradient(106deg, rgba(255,255,255,.08), rgba(32,255,136,.34) 45%, rgba(0,72,35,.18)),
        linear-gradient(180deg, rgba(24,236,124,.72) 0%, rgba(5,190,94,.58) 52%, rgba(1,45,23,.72) 100%);
      border-color: rgba(116,255,179,.82);
      filter: brightness(1.03) saturate(1.08);
      transform:
        translate3d(var(--x), -5px, 0)
        rotate(var(--deck-tilt));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.42),
        inset -9px 0 22px rgba(0,65,31,.18),
        0 0 20px rgba(24,226,118,.24),
        17px 23px 40px rgba(0,0,0,.46);
      outline: none;
    }

    .file-card:hover::before,
    .file-card:focus-visible::before {
      opacity: .43;
      background:
        repeating-linear-gradient(0deg, rgba(230,255,242,.58) 0 5px, transparent 5px 12px),
        repeating-linear-gradient(90deg, rgba(230,255,242,.52) 0 5px, transparent 5px 12px);
      border-color: rgba(231,255,243,.2);
    }

    .file-card.selected {
      opacity: 0;
      pointer-events: none;
      transform:
        translate3d(var(--x), 0, 0)
        rotate(var(--deck-tilt));
    }

    .file-meta {
      position: absolute;
      z-index: 1;
      left: 5px;
      right: auto;
      bottom: 59px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 4px;
      font-family: var(--font-display);
      font-size: 8px;
    }

    .file-meta .icon {
      width: 11px;
      height: 11px;
    }

    .file-title {
      position: absolute;
      z-index: 1;
      left: 5px;
      right: auto;
      bottom: 17px;
      width: 38px;
      overflow: visible;
      color: rgba(226,236,231,.86);
      font-size: 9px;
      font-weight: 650;
      line-height: 1.3;
      letter-spacing: -.02em;
      text-shadow: 0 1px 8px rgba(0,0,0,.68);
      text-align: left;
      text-overflow: clip;
      white-space: normal;
      word-break: break-all;
    }

    .file-card:nth-child(1) { --x: -46px; --z: -108px; --layer: 3; --brightness: .7; }
    .file-card:nth-child(2) { --x: 2px; --z: -96px; --layer: 4; --brightness: .73; }
    .file-card:nth-child(3) { --x: 50px; --z: -84px; --layer: 5; --brightness: .76; }
    .file-card:nth-child(4) { --x: 98px; --z: -72px; --layer: 6; --brightness: .79; }
    .file-card:nth-child(5) { --x: 146px; --z: -60px; --layer: 7; --brightness: .82; }
    .file-card:nth-child(6) { --x: 194px; --z: -48px; --layer: 8; --brightness: .85; }
    .file-card:nth-child(7) { --x: 242px; --z: -36px; --layer: 9; --brightness: .88; }
    .file-card:nth-child(8) { --x: 290px; --z: -24px; --layer: 10; --brightness: .91; }
    .file-card:nth-child(9) { --x: 338px; --z: -12px; --layer: 11; --brightness: .94; }
    .file-card:nth-child(10) { --x: 386px; --z: 0px; --layer: 12; --brightness: .97; }

    .timeline-card {
      min-height: 155px;
      margin-top: 10px;
      padding: 10px 14px 11px;
      border-radius: 16px;
      overflow: hidden;
      animation: rise-in .55s .18s both;
    }

    .timeline-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 7px;
    }

    .timeline-title {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #d8e0dc;
      font-size: 10px;
    }

    .timeline-title::before {
      width: 2px;
      height: 16px;
      content: "";
      background: linear-gradient(var(--blue), var(--green));
      border-radius: 999px;
      box-shadow: 0 0 9px rgba(24,226,118,.45);
    }

    .timeline-month {
      margin-left: 8px;
      color: #69736e;
      font-size: 9px;
    }

    .timeline-view {
      display: flex;
      gap: 3px;
      padding: 3px;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.055);
      border-radius: 8px;
    }

    .timeline-view button {
      padding: 3px 8px;
      color: #64706a;
      background: transparent;
      border: 0;
      border-radius: 6px;
      cursor: pointer;
      font-size: 8px;
    }

    .timeline-view button.active {
      color: #e6eee9;
      background: rgba(255,255,255,.075);
    }

    .timeline-grid {
      position: relative;
      display: grid;
      grid-template-columns: 82px repeat(15, minmax(28px, 1fr));
      grid-template-rows: 18px repeat(4, 21px);
      min-width: 650px;
      align-items: center;
    }

    .timeline-grid::before {
      position: absolute;
      inset: 18px 0 0 82px;
      content: "";
      background: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px calc(100% / 15));
      pointer-events: none;
    }

    .date-cell,
    .row-label {
      color: #59635e;
      font-family: var(--font-display);
      font-size: 7px;
    }

    .date-cell {
      text-align: center;
    }

    .date-cell.today {
      color: #d8f5e5;
    }

    .date-cell.today span {
      display: inline-grid;
      width: 18px;
      height: 18px;
      place-items: center;
      background: #17613b;
      border: 1px solid rgba(99,255,171,.45);
      border-radius: 50%;
      box-shadow: 0 0 14px rgba(24,226,118,.25);
    }

    .row-label {
      padding-left: 4px;
      color: #69736e;
      font-family: var(--font-body);
      font-size: 8px;
    }

    .timeline-bar {
      z-index: 1;
      height: 16px;
      padding: 0 10px;
      color: #aeb7b2;
      font-size: 7px;
      line-height: 16px;
      background: linear-gradient(180deg, #4b514e, #262b29);
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 999px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 5px 12px rgba(0,0,0,.2);
      white-space: nowrap;
    }

    .timeline-bar.green {
      color: #d5f9e5;
      background: linear-gradient(90deg, #0b7b43, #10b75f);
      border-color: rgba(86,255,165,.42);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 12px rgba(24,226,118,.18);
    }

    .today-line {
      position: absolute;
      z-index: 3;
      top: 18px;
      bottom: 0;
      left: calc(82px + (100% - 82px) * 3.5 / 15);
      width: 1px;
      background: linear-gradient(var(--green), rgba(24,226,118,.08));
      box-shadow: 0 0 8px rgba(24,226,118,.3);
    }

    .detail-panel {
      position: sticky;
      top: 14px;
      display: flex;
      height: calc(100vh - 28px);
      min-height: 700px;
      flex-direction: column;
      padding: 18px 15px 14px;
      border-radius: var(--radius-xl);
      overflow: hidden;
      animation: slide-left .55s both;
    }

    .detail-panel::before {
      position: absolute;
      width: 170px;
      height: 170px;
      right: -75px;
      top: -74px;
      content: "";
      background: rgba(226,255,241,.085);
      border-radius: 50%;
      filter: blur(30px);
      pointer-events: none;
    }

    .detail-header {
      position: relative;
      z-index: 1;
      display: flex;
      min-height: 42px;
      align-items: flex-start;
      justify-content: space-between;
      padding: 0 2px 14px;
      border-bottom: 1px solid rgba(255,255,255,.065);
    }

    .detail-header h2 {
      display: flex;
      align-items: center;
      gap: 7px;
      margin: 0;
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 550;
    }

    .detail-header h2 .icon {
      color: #e9f7ef;
      filter: drop-shadow(0 0 7px rgba(255,255,255,.3));
    }

    .detail-id {
      margin-top: 16px;
      color: #8b9690;
      font-family: var(--font-display);
      font-size: 10px;
      letter-spacing: .04em;
    }

    .detail-title-line {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 11px;
    }

    .detail-title-line h3 {
      overflow: hidden;
      margin: 0;
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 600;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .high-badge {
      flex: 0 0 auto;
      padding: 4px 7px;
      color: #46e990;
      background: rgba(24,226,118,.09);
      border: 1px solid rgba(24,226,118,.1);
      border-radius: 5px;
      font-size: 8px;
    }

    .detail-description {
      min-height: 46px;
      margin: 11px 0 15px;
      color: #77817c;
      font-size: 9px;
      line-height: 1.7;
    }

    .detail-list {
      display: grid;
      gap: 13px;
      margin: 0;
    }

    .detail-row {
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      font-size: 9px;
    }

    .detail-row dt {
      color: #5f6964;
    }

    .detail-row dd {
      display: flex;
      min-width: 0;
      align-items: center;
      gap: 6px;
      margin: 0;
      color: #aeb7b2;
    }

    .detail-row dd span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .detail-row .icon {
      width: 12px;
      color: #929c97;
    }

    .mini-avatar {
      position: relative;
      display: grid;
      width: 21px;
      height: 21px;
      flex: 0 0 auto;
      place-items: center;
      color: #dce5e0;
      font-family: var(--font-display);
      font-size: 7px;
      background: #4b5551;
      border-radius: 50%;
    }

    .mini-avatar::after {
      position: absolute;
      right: -1px;
      bottom: -1px;
      width: 5px;
      height: 5px;
      content: "";
      background: var(--green);
      border: 1px solid #101412;
      border-radius: 50%;
    }

    .status-dot {
      width: 6px;
      height: 6px;
      flex: 0 0 auto;
      background: var(--green);
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(24,226,118,.5);
    }

    .status-dot.red {
      background: var(--red);
      box-shadow: 0 0 8px rgba(255,92,80,.35);
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }

    .tag {
      padding: 4px 6px;
      color: #8d9792;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.055);
      border-radius: 6px;
      font-size: 8px;
    }

    .ai-card {
      position: relative;
      margin-top: auto;
      padding: 13px 13px 14px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.065), transparent 52%),
        rgba(255,255,255,.028);
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 14px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
      overflow: hidden;
    }

    .ai-card::after {
      position: absolute;
      right: -20px;
      bottom: -33px;
      width: 100px;
      height: 70px;
      content: "";
      border-top: 1px solid rgba(255,255,255,.18);
      border-radius: 50%;
      filter: blur(.2px);
      transform: rotate(12deg);
      pointer-events: none;
    }

    .ai-card h4 {
      display: flex;
      align-items: center;
      gap: 7px;
      margin: 0 0 9px;
      color: #dce4e0;
      font-family: var(--font-display);
      font-size: 11px;
      font-weight: 500;
    }

    .ai-card ul {
      margin: 0;
      padding-left: 13px;
      color: #747f79;
      font-size: 8px;
      line-height: 1.8;
    }

    .suggestion-button {
      display: block;
      margin: 11px auto 0;
      padding: 7px 13px;
      color: #aeb7b2;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 999px;
      cursor: pointer;
      font-size: 8px;
      transition: color .2s ease, border-color .2s ease, background .2s ease;
    }

    .suggestion-button:hover {
      color: #eff7f3;
      background: rgba(24,226,118,.06);
      border-color: rgba(24,226,118,.2);
    }

    .detail-actions {
      display: grid;
      grid-template-columns: 1fr 1.1fr 37px;
      gap: 7px;
      padding-top: 13px;
    }

    .detail-button,
    .complete-button,
    .round-button {
      min-height: 36px;
      border-radius: 999px;
    }

    .detail-button,
    .complete-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      cursor: pointer;
      font-size: 9px;
    }

    .detail-button {
      color: #bdc6c1;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.08);
    }

    .complete-button {
      color: #c9ffe1;
      background: linear-gradient(180deg, rgba(24,226,118,.18), rgba(24,226,118,.08));
      border: 1px solid rgba(61,244,145,.3);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(24,226,118,.08);
    }

    .detail-button:hover,
    .complete-button:hover {
      transform: translateY(-1px);
      filter: brightness(1.12);
    }

    .round-button {
      color: #a9b2ad;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.09);
    }

    .detail-button .icon,
    .complete-button .icon,
    .round-button .icon {
      width: 13px;
    }

    .mobile-menu {
      display: none;
    }

    dialog {
      width: min(480px, calc(100% - 30px));
      padding: 0;
      color: var(--text);
      background: #0c100f;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 20px;
      box-shadow: 0 34px 100px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.06);
    }

    dialog::backdrop {
      background: rgba(0,0,0,.68);
      backdrop-filter: blur(8px);
    }

    .dialog-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 20px;
      border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .dialog-head h3 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 550;
    }

    .dialog-close {
      display: grid;
      width: 32px;
      height: 32px;
      place-items: center;
      color: #8b9690;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 50%;
      cursor: pointer;
    }

    .dialog-close:hover {
      color: #fff;
      border-color: rgba(255,255,255,.1);
      background: rgba(255,255,255,.04);
    }

    .task-form {
      display: grid;
      gap: 14px;
      padding: 20px;
    }

    .field {
      display: grid;
      gap: 7px;
    }

    .field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .field label {
      color: #919b96;
      font-size: 10px;
    }

    .field input,
    .field textarea,
    .field select {
      width: 100%;
      color: #e9f0ec;
      outline: none;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 10px;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    .field input,
    .field select {
      height: 40px;
      padding: 0 12px;
    }

    .field textarea {
      min-height: 88px;
      padding: 11px 12px;
      resize: vertical;
    }

    .field input:focus,
    .field textarea:focus,
    .field select:focus {
      border-color: rgba(24,226,118,.35);
      box-shadow: 0 0 0 3px rgba(24,226,118,.07);
    }

    .form-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      padding-top: 5px;
    }

    .form-actions button {
      min-height: 38px;
      padding: 0 16px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 10px;
    }

    .cancel-button {
      color: #9aa49f;
      background: transparent;
      border: 1px solid rgba(255,255,255,.09);
    }

    .save-button {
      color: #d9ffe9;
      background: rgba(24,226,118,.14);
      border: 1px solid rgba(24,226,118,.32);
    }

    .toast {
      position: fixed;
      z-index: 100;
      right: 22px;
      bottom: 22px;
      display: flex;
      min-width: 220px;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      color: #dff8e9;
      background: rgba(12,20,16,.94);
      border: 1px solid rgba(24,226,118,.25);
      border-radius: 12px;
      box-shadow: 0 18px 50px rgba(0,0,0,.45);
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px);
      transition: opacity .25s ease, transform .25s ease;
      font-size: 10px;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .toast .icon {
      width: 15px;
      color: var(--green);
    }

    .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;
    }

    [hidden] {
      display: none !important;
    }

    .profile {
      width: 100%;
      color: inherit;
      text-align: left;
      background: transparent;
      border: 0;
      cursor: pointer;
      border-radius: 12px;
      transition: background .2s ease;
    }

    .profile:hover {
      background: rgba(255,255,255,.035);
    }

    .app-shell.wide-view {
      grid-template-columns: 190px minmax(0, 1fr);
    }

    .app-shell.wide-view .detail-panel {
      display: none;
    }

    .route-view {
      display: none;
      min-width: 0;
    }

    .route-view.active {
      display: block;
      animation: route-enter .38s both;
    }

    .content-page {
      padding: 14px 0 24px;
    }

    .eyebrow {
      display: block;
      margin-bottom: 8px;
      color: var(--green);
      font-family: var(--font-display);
      font-size: 8px;
      letter-spacing: .2em;
    }

    .page-toolbar-card {
      display: flex;
      min-height: 110px;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 20px 22px;
      border-radius: 18px;
    }

    .page-toolbar-card h2,
    .archive-hero h2,
    .tags-hero h2,
    .about-hero h2,
    .user-hero h2 {
      margin: 0;
      font-family: var(--font-display);
      font-weight: 550;
      letter-spacing: .01em;
    }

    .page-toolbar-card h2 {
      font-size: 22px;
    }

    .page-toolbar-card p,
    .archive-hero p,
    .tags-hero > p {
      margin: 7px 0 0;
      color: #717b76;
      font-size: 10px;
      line-height: 1.7;
    }

    code {
      padding: 2px 5px;
      color: #9bd8b7;
      background: rgba(24,226,118,.06);
      border: 1px solid rgba(24,226,118,.1);
      border-radius: 5px;
      font-family: Consolas, monospace;
      font-size: .94em;
    }

    .page-filter-pills {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 5px;
    }

    .page-filter-pills button,
    .page-filter-pills a {
      min-height: 30px;
      padding: 0 11px;
      color: #76807b;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 999px;
      cursor: pointer;
      font-size: 9px;
    }

    .page-filter-pills button.active,
    .page-filter-pills a.active {
      color: #dff9ea;
      background: rgba(24,226,118,.08);
      border-color: rgba(24,226,118,.24);
    }

    .post-library {
      margin-top: 12px;
      padding: 8px;
      border-radius: 18px;
    }

    .post-table-head,
    .post-table-row {
      display: grid;
      grid-template-columns: minmax(300px, 2fr) 100px 95px 88px 34px;
      align-items: center;
      gap: 12px;
    }

    .post-table-head {
      min-height: 38px;
      padding: 0 12px;
      color: #535d58;
      font-size: 8px;
      text-transform: uppercase;
      letter-spacing: .1em;
    }

    .post-table-row {
      min-height: 82px;
      padding: 10px 12px;
      border-top: 1px solid rgba(255,255,255,.055);
      transition: background .2s ease, transform .2s ease;
    }

    .post-table-row:hover {
      background: rgba(255,255,255,.025);
      transform: translateX(2px);
    }

    .post-cell-main {
      display: flex;
      min-width: 0;
      align-items: center;
      gap: 13px;
    }

    .post-index {
      color: #4d5752;
      font-family: var(--font-display);
      font-size: 17px;
    }

    .post-cell-main > div {
      min-width: 0;
    }

    .post-cell-main h3 {
      overflow: hidden;
      margin: 0;
      color: #dce4e0;
      font-size: 11px;
      font-weight: 550;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .post-cell-main p {
      overflow: hidden;
      margin: 6px 0 0;
      color: #606a65;
      font-size: 8px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .table-category {
      width: max-content;
      padding: 4px 7px;
      color: #8b9690;
      background: rgba(255,255,255,.035);
      border-radius: 6px;
      font-size: 8px;
    }

    .table-metric,
    .post-table-row time {
      color: #68726d;
      font-size: 8px;
      line-height: 1.7;
    }

    .row-action {
      display: grid;
      width: 30px;
      height: 30px;
      place-items: center;
      color: #717b76;
      background: transparent;
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 50%;
      cursor: pointer;
    }

    .row-action:hover {
      color: var(--green-bright);
      border-color: rgba(24,226,118,.25);
      background: rgba(24,226,118,.06);
    }

    .row-action .icon {
      width: 13px;
    }

    .empty-state {
      padding: 64px 20px;
      color: #5f6964;
      text-align: center;
    }

    .empty-state .icon {
      width: 28px;
      height: 28px;
    }

    .empty-state h3 {
      margin: 12px 0 5px;
      color: #aeb8b2;
      font-size: 13px;
    }

    .empty-state p {
      margin: 0;
      font-size: 9px;
    }

    .pagination {
      display: flex;
      justify-content: center;
      gap: 5px;
      padding: 14px 0 7px;
      border-top: 1px solid rgba(255,255,255,.05);
    }

    .pagination button,
    .pagination a,
    .pagination span {
      min-width: 29px;
      height: 29px;
      padding: 0 9px;
      color: #6c7671;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 8px;
      cursor: pointer;
      font-size: 8px;
    }

    .pagination button.active,
    .pagination a.active,
    .pagination span.current {
      color: #dff9ea;
      background: rgba(24,226,118,.09);
      border-color: rgba(24,226,118,.24);
    }

    .pagination button:disabled {
      opacity: .35;
      cursor: not-allowed;
    }

    .category-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
    }

    .category-card {
      position: relative;
      min-height: 210px;
      padding: 20px;
      color: inherit;
      text-align: left;
      border-radius: 18px;
      cursor: pointer;
      overflow: hidden;
      transition: transform .25s ease, border-color .25s ease;
    }

    .category-card::after {
      position: absolute;
      right: -38px;
      bottom: -55px;
      width: 150px;
      height: 130px;
      content: "";
      background: radial-gradient(circle, color-mix(in srgb, var(--category-accent) 24%, transparent), transparent 67%);
      filter: blur(6px);
    }

    .category-card:hover {
      border-color: color-mix(in srgb, var(--category-accent) 40%, transparent);
      transform: translateY(-4px);
    }

    .category-card > .icon {
      width: 27px;
      height: 27px;
      margin-top: 34px;
      color: var(--category-accent);
      filter: drop-shadow(0 0 10px color-mix(in srgb, var(--category-accent) 40%, transparent));
    }

    .category-number {
      position: absolute;
      top: 17px;
      right: 18px;
      color: #424c47;
      font-family: var(--font-display);
      font-size: 25px;
    }

    .category-card h3 {
      margin: 13px 0 6px;
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 550;
    }

    .category-card p {
      min-height: 38px;
      margin: 0;
      color: #6b7570;
      font-size: 9px;
      line-height: 1.65;
    }

    .category-card footer {
      position: absolute;
      right: 20px;
      bottom: 18px;
      left: 20px;
      z-index: 1;
      display: flex;
      justify-content: space-between;
      color: #78827d;
      font-size: 8px;
    }

    .category-card footer b {
      color: var(--category-accent);
      font-family: var(--font-display);
      font-weight: 500;
    }

    .archive-hero {
      position: relative;
      display: flex;
      min-height: 210px;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      padding: 28px 34px;
      border-radius: 20px;
      overflow: hidden;
    }

    .archive-hero::after {
      position: absolute;
      right: 10%;
      bottom: -80px;
      width: 280px;
      height: 180px;
      content: "";
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 50%;
      box-shadow: 0 -15px 42px rgba(24,226,118,.08);
      transform: rotate(-12deg);
    }

    .archive-hero h2 {
      max-width: 560px;
      font-size: clamp(24px, 3vw, 38px);
      line-height: 1.25;
    }

    .archive-total {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: flex-end;
      gap: 10px;
    }

    .archive-total strong {
      font-family: var(--font-display);
      font-size: clamp(56px, 7vw, 92px);
      font-weight: 450;
      line-height: .8;
      letter-spacing: -.07em;
      text-shadow: 0 0 30px rgba(255,255,255,.12);
    }

    .archive-total span {
      color: #69736e;
      font-size: 9px;
      line-height: 1.6;
    }

    .archive-layout {
      display: grid;
      grid-template-columns: 145px minmax(0, 1fr);
      gap: 12px;
      margin-top: 12px;
    }

    .year-switcher {
      display: grid;
      align-content: start;
      gap: 4px;
      padding: 10px;
      border-radius: 16px;
    }

    .year-switcher button,
    .year-switcher a {
      display: flex;
      min-height: 46px;
      align-items: center;
      justify-content: space-between;
      padding: 0 12px;
      color: #737d78;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 10px;
      cursor: pointer;
      font-family: var(--font-display);
    }

    .year-switcher button.active,
    .year-switcher a.active {
      color: #e7efeb;
      background: rgba(255,255,255,.045);
      border-color: rgba(255,255,255,.07);
    }

    .year-switcher span {
      color: #4f5954;
      font-size: 9px;
    }

    .archive-stream {
      padding: 8px 18px;
      border-radius: 16px;
    }

    .archive-month {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      gap: 18px;
      padding: 20px 0;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .archive-month:last-child {
      border-bottom: 0;
    }

    .archive-month > header {
      display: flex;
      gap: 13px;
    }

    .archive-month > header strong {
      color: #dce5e0;
      font-family: var(--font-display);
      font-size: 34px;
      font-weight: 450;
      line-height: 1;
    }

    .archive-month h3 {
      margin: 1px 0 5px;
      font-size: 11px;
    }

    .archive-month header p {
      margin: 0;
      color: #5f6964;
      font-size: 8px;
    }

    .archive-posts {
      display: grid;
    }

    .archive-posts button,
    .archive-posts a {
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr) auto;
      min-height: 37px;
      align-items: center;
      gap: 8px;
      color: #9da7a2;
      text-align: left;
      background: transparent;
      border: 0;
      border-bottom: 1px solid rgba(255,255,255,.035);
      cursor: pointer;
      font-size: 9px;
    }

    .archive-posts button:hover,
    .archive-posts a:hover {
      color: #e6eee9;
    }

    .archive-posts time,
    .archive-posts b {
      color: #59635e;
      font-size: 8px;
      font-weight: 400;
    }

    .moment-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 230px;
      gap: 12px;
    }

    .moment-composer {
      display: flex;
      gap: 13px;
      padding: 18px;
      border-radius: 17px;
    }

    .composer-main {
      min-width: 0;
      flex: 1;
    }

    .composer-main h2 {
      margin: 0 0 9px;
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 550;
    }

    .composer-main textarea {
      width: 100%;
      min-height: 86px;
      padding: 11px 0;
      color: #dfe6e2;
      outline: 0;
      resize: vertical;
      background: transparent;
      border: 0;
      border-bottom: 1px solid rgba(255,255,255,.07);
      font-size: 10px;
      line-height: 1.7;
    }

    .composer-main footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 9px;
      color: #59635e;
      font-size: 8px;
    }

    .composer-main footer button {
      height: 32px;
      padding: 0 13px;
      color: #caffdf;
      background: rgba(24,226,118,.1);
      border: 1px solid rgba(24,226,118,.27);
      border-radius: 999px;
      cursor: pointer;
      font-size: 9px;
    }

    .moment-feed {
      display: grid;
      gap: 10px;
      margin-top: 10px;
    }

    .moment-item {
      display: grid;
      grid-template-columns: 35px minmax(0, 1fr);
      gap: 12px;
      padding: 17px;
      border-radius: 16px;
    }

    .moment-rail {
      position: relative;
    }

    .moment-rail i {
      position: absolute;
      top: 27px;
      bottom: -28px;
      left: 10px;
      width: 1px;
      background: linear-gradient(rgba(24,226,118,.3), transparent);
    }

    .moment-item header {
      display: flex;
      justify-content: space-between;
      color: #cfd7d3;
      font-size: 9px;
    }

    .moment-item header time {
      color: #59635e;
      font-size: 8px;
    }

    .moment-item p {
      margin: 9px 0 13px;
      color: #8d9792;
      font-size: 10px;
      line-height: 1.75;
    }

    .moment-item footer {
      display: flex;
      gap: 7px;
    }

    .moment-item footer button {
      padding: 5px 8px;
      color: #646e69;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.055);
      border-radius: 7px;
      cursor: pointer;
      font-size: 8px;
    }

    .moment-aside {
      align-self: start;
      padding: 20px;
      border-radius: 17px;
    }

    .moment-aside h3 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 16px;
    }

    .mini-stat-list {
      display: grid;
      gap: 15px;
      margin: 24px 0;
    }

    .mini-stat-list div {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      padding-bottom: 11px;
      border-bottom: 1px solid rgba(255,255,255,.055);
    }

    .mini-stat-list strong {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 450;
    }

    .mini-stat-list span,
    .moment-aside p {
      color: #66706b;
      font-size: 8px;
      line-height: 1.7;
    }

    .tags-hero {
      padding: 27px;
      border-radius: 20px;
    }

    .tags-hero h2 {
      font-size: 26px;
    }

    .tag-cloud {
      display: flex;
      min-height: 260px;
      align-content: center;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px 15px;
      padding: 30px 7%;
    }

    .tag-cloud button,
    .tag-cloud a {
      padding: 8px 11px;
      color: color-mix(in srgb, #c5d0ca calc(45% + var(--tag-size) * 20%), #4d5752);
      font-family: var(--font-display);
      font-size: calc(9px * var(--tag-size));
      background: transparent;
      border: 1px solid transparent;
      border-radius: 999px;
      cursor: pointer;
      transition: color .2s ease, background .2s ease, transform .2s ease;
    }

    .tag-cloud button:hover,
    .tag-cloud a:hover {
      color: var(--green-bright);
      background: rgba(24,226,118,.055);
      border-color: rgba(24,226,118,.14);
      transform: translateY(-3px);
    }

    .tag-cloud span {
      margin-left: 3px;
      color: #56605b;
      font-size: .55em;
    }

    .tag-insights {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 12px;
    }

    .tag-insights article {
      padding: 18px;
      border-radius: 16px;
    }

    .tag-insights span {
      color: #5d6762;
      font-size: 8px;
    }

    .tag-insights strong {
      display: block;
      margin: 11px 0 7px;
      font-family: var(--font-display);
      font-size: 19px;
      font-weight: 500;
    }

    .tag-insights p {
      margin: 0;
      color: #69736e;
      font-size: 8px;
    }

    .friend-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
    }

    .friend-card {
      display: flex;
      min-height: 140px;
      align-items: center;
      gap: 16px;
      padding: 18px;
      color: inherit;
      text-decoration: none;
      border-radius: 17px;
      transition: transform .22s ease, border-color .22s ease;
    }

    .friend-card:hover {
      border-color: rgba(24,226,118,.24);
      transform: translateY(-3px);
    }

    .friend-mark {
      display: grid;
      width: 52px;
      height: 52px;
      flex: 0 0 auto;
      place-items: center;
      color: #d9ffe9;
      font-family: var(--font-display);
      font-size: 15px;
      background: linear-gradient(145deg, rgba(24,226,118,.24), rgba(24,226,118,.06));
      border: 1px solid rgba(24,226,118,.26);
      border-radius: 15px;
    }

    .friend-mark.cyan { color:#c9f7ff; background:rgba(56,189,248,.1); border-color:rgba(56,189,248,.24); }
    .friend-mark.amber { color:#ffe8c4; background:rgba(240,181,95,.1); border-color:rgba(240,181,95,.24); }
    .friend-mark.rose { color:#ffd4dc; background:rgba(251,113,133,.1); border-color:rgba(251,113,133,.24); }

    .friend-card h3 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 550;
    }

    .friend-card p {
      margin: 7px 0 11px;
      color: #6a746f;
      font-size: 9px;
      line-height: 1.6;
    }

    .friend-card div > span {
      color: #4e9e71;
      font-family: var(--font-display);
      font-size: 8px;
    }

    .link-apply {
      display: grid;
      grid-template-columns: 1.1fr repeat(3, minmax(120px, 1fr)) auto;
      align-items: end;
      gap: 10px;
      margin-top: 12px;
      padding: 18px;
      border-radius: 17px;
    }

    .link-apply h3 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 13px;
    }

    .link-apply label,
    .account-form > label,
    .account-form .field-row label {
      display: grid;
      gap: 6px;
      color: #747e79;
      font-size: 8px;
    }

    .link-apply input,
    .account-form input,
    .account-form textarea {
      width: 100%;
      color: #dce4e0;
      outline: 0;
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 9px;
    }

    .link-apply input,
    .account-form input {
      height: 37px;
      padding: 0 10px;
    }

    .link-apply button,
    .save-profile {
      height: 37px;
      padding: 0 14px;
      color: #d5ffe6;
      background: rgba(24,226,118,.1);
      border: 1px solid rgba(24,226,118,.26);
      border-radius: 9px;
      cursor: pointer;
      font-size: 9px;
    }

    .about-hero {
      position: relative;
      display: grid;
      grid-template-columns: 170px minmax(0, 1fr);
      gap: 36px;
      min-height: 310px;
      align-items: center;
      padding: 30px 42px;
      border-radius: 21px;
      overflow: hidden;
    }

    .about-hero::after {
      position: absolute;
      width: 320px;
      height: 320px;
      right: -130px;
      top: -150px;
      content: "";
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 50%;
      box-shadow: inset 0 0 80px rgba(24,226,118,.055);
    }

    .about-monogram {
      display: grid;
      width: 150px;
      height: 190px;
      place-items: center;
      font-family: var(--font-display);
      font-size: 50px;
      font-weight: 750;
      letter-spacing: -.12em;
      background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.025));
      border: 1px solid rgba(255,255,255,.15);
      border-radius: 18px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 20px 25px 50px rgba(0,0,0,.35);
      transform: rotate(-4deg);
    }

    .about-hero h2 {
      max-width: 680px;
      font-size: clamp(26px, 4vw, 44px);
      line-height: 1.22;
    }

    .about-hero p {
      max-width: 620px;
      margin: 15px 0 0;
      color: #7c8681;
      font-size: 10px;
      line-height: 1.85;
    }

    .about-actions {
      display: flex;
      gap: 8px;
      margin-top: 20px;
    }

    .about-actions button,
    .about-actions a {
      min-height: 35px;
      padding: 0 14px;
      color: #aeb8b2;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 999px;
      cursor: pointer;
      font-size: 9px;
    }

    .about-actions button:first-child,
    .about-actions a:first-child {
      color: #d8ffe8;
      background: rgba(24,226,118,.09);
      border-color: rgba(24,226,118,.23);
    }

    .about-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 12px;
    }

    .about-grid article {
      padding: 20px;
      border-radius: 16px;
    }

    .about-grid span {
      color: var(--green);
      font-family: var(--font-display);
      font-size: 9px;
    }

    .about-grid h3 {
      margin: 18px 0 8px;
      font-size: 13px;
    }

    .about-grid p {
      margin: 0;
      color: #68726d;
      font-size: 9px;
      line-height: 1.65;
    }

    .site-timeline {
      display: grid;
      grid-template-columns: 150px repeat(3, 1fr);
      gap: 20px;
      margin-top: 12px;
      padding: 20px;
      border-radius: 16px;
    }

    .site-timeline h3 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 13px;
    }

    .site-timeline time {
      color: var(--green);
      font-family: var(--font-display);
      font-size: 9px;
    }

    .site-timeline p {
      margin: 7px 0 0;
      color: #6a746f;
      font-size: 8px;
      line-height: 1.6;
    }

    .user-hero {
      position: relative;
      display: grid;
      grid-template-columns: 90px minmax(180px, 1fr) auto auto;
      min-height: 190px;
      align-items: end;
      gap: 18px;
      padding: 28px;
      border-radius: 20px;
      overflow: hidden;
    }

    .user-cover-lines {
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 78% 0%, rgba(24,226,118,.13), transparent 27%),
        repeating-linear-gradient(105deg, transparent 0 47px, rgba(255,255,255,.025) 48px, transparent 49px);
      mask-image: linear-gradient(to bottom, black, transparent 80%);
    }

    .user-avatar-large {
      position: relative;
      z-index: 1;
      display: grid;
      width: 82px;
      height: 82px;
      place-items: center;
      font-family: var(--font-display);
      font-size: 24px;
      background: linear-gradient(145deg, #56625d, #171c1a);
      border: 2px solid rgba(255,255,255,.18);
      border-radius: 22px;
      box-shadow: 0 20px 34px rgba(0,0,0,.35);
    }

    .user-avatar-large span {
      position: absolute;
      right: -3px;
      bottom: -3px;
      width: 13px;
      height: 13px;
      background: var(--green);
      border: 3px solid #111513;
      border-radius: 50%;
    }

    .user-identity {
      position: relative;
      z-index: 1;
    }

    .user-identity h2 {
      font-size: 22px;
    }

    .user-identity p {
      margin: 7px 0 0;
      color: #6b7570;
      font-size: 9px;
    }

    .user-hero-stats {
      position: relative;
      z-index: 1;
      display: flex;
      gap: 22px;
    }

    .user-hero-stats div {
      display: grid;
      gap: 4px;
      text-align: center;
    }

    .user-hero-stats strong {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 500;
    }

    .user-hero-stats span {
      color: #606a65;
      font-size: 8px;
    }

    .user-edit-button {
      position: relative;
      z-index: 1;
      display: flex;
      min-height: 35px;
      align-items: center;
      gap: 6px;
      padding: 0 13px;
      color: #c7d0cb;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 999px;
      cursor: pointer;
      font-size: 9px;
    }

    .user-edit-button .icon {
      width: 13px;
    }

    .profile-layout {
      display: grid;
      grid-template-columns: 180px minmax(0, 1fr);
      gap: 12px;
      margin-top: 12px;
    }

    .profile-nav {
      align-self: start;
      display: grid;
      gap: 4px;
      padding: 10px;
      border-radius: 16px;
    }

    .profile-nav button {
      display: flex;
      min-height: 42px;
      align-items: center;
      gap: 10px;
      padding: 0 11px;
      color: #707a75;
      text-align: left;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 10px;
      cursor: pointer;
      font-size: 9px;
    }

    .profile-nav button.active {
      color: #e5eee9;
      background: rgba(255,255,255,.045);
      border-color: rgba(255,255,255,.07);
    }

    .profile-nav .icon {
      width: 14px;
    }

    .profile-nav button.active .icon {
      color: var(--green);
    }

    .profile-nav .logout-item {
      display: flex;
      min-height: 42px;
      align-items: center;
      gap: 10px;
      padding: 0 11px;
      margin-top: 9px;
      color: #a96b65;
      border-top: 1px solid rgba(255,255,255,.05);
      border-radius: 0 0 10px 10px;
      font-size: 9px;
      white-space: nowrap;
    }

    .profile-panel {
      display: none;
    }

    .profile-panel.active {
      display: block;
      animation: route-enter .28s both;
    }

    .profile-stat-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .profile-stat-grid article {
      padding: 17px;
      border-radius: 15px;
    }

    .profile-stat-grid span {
      display: block;
      color: #68726d;
      font-size: 8px;
    }

    .profile-stat-grid strong {
      display: block;
      margin: 13px 0 7px;
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 500;
    }

    .profile-stat-grid b {
      color: #3fc47d;
      font-size: 8px;
      font-weight: 500;
    }

    .activity-card {
      margin-top: 10px;
      padding: 18px;
      border-radius: 16px;
    }

    .activity-card > header,
    .panel-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .activity-card h3,
    .panel-heading h3 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 13px;
      font-weight: 550;
    }

    .activity-card header button,
    .activity-card header a {
      color: #69736e;
      background: transparent;
      border: 0;
      cursor: pointer;
      font-size: 8px;
    }

    .activity-card ul {
      display: grid;
      gap: 0;
      margin: 12px 0 0;
      padding: 0;
      list-style: none;
    }

    .activity-card li {
      display: grid;
      grid-template-columns: 11px minmax(0, 1fr);
      gap: 10px;
      padding: 12px 0;
      border-top: 1px solid rgba(255,255,255,.05);
    }

    .activity-card li i {
      width: 7px;
      height: 7px;
      margin-top: 3px;
      background: var(--green);
      border: 2px solid #15211b;
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(24,226,118,.35);
    }

    .activity-card li b {
      color: #b7c0bb;
      font-size: 9px;
    }

    .activity-card li p {
      margin: 5px 0;
      color: #707a75;
      font-size: 8px;
    }

    .activity-card li time {
      color: #4f5954;
      font-size: 7px;
    }

    .panel-heading {
      min-height: 62px;
      padding: 0 4px 10px;
    }

    .panel-heading p {
      margin: 5px 0 0;
      color: #66706b;
      font-size: 8px;
    }

    .panel-heading > button,
    .panel-heading > a {
      height: 33px;
      padding: 0 12px;
      color: #d4ffe5;
      background: rgba(24,226,118,.09);
      border: 1px solid rgba(24,226,118,.24);
      border-radius: 999px;
      cursor: pointer;
      font-size: 8px;
    }

    .user-list {
      padding: 6px 14px;
      border-radius: 15px;
    }

    .user-list > div {
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr) auto;
      min-height: 67px;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .user-list > div:last-child {
      border-bottom: 0;
    }

    .list-status {
      width: max-content;
      padding: 4px 6px;
      border-radius: 5px;
      font-size: 7px;
    }

    .list-status.published { color:#6cf5aa; background:rgba(24,226,118,.08); }
    .list-status.draft { color:#eac17e; background:rgba(240,181,95,.08); }

    .user-list p {
      display: grid;
      gap: 5px;
      margin: 0;
    }

    .user-list b {
      color: #b9c2bd;
      font-size: 9px;
    }

    .user-list small,
    .user-list time {
      color: #59635e;
      font-size: 7px;
    }

    .comment-list,
    .favorite-grid {
      display: grid;
      gap: 10px;
    }

    .comment-list article {
      padding: 16px;
      border-radius: 15px;
    }

    .comment-list header {
      display: flex;
      justify-content: space-between;
      color: #aeb8b2;
      font-size: 9px;
    }

    .comment-list time {
      color: #56605b;
      font-size: 7px;
    }

    .comment-list p {
      margin: 10px 0;
      color: #77817c;
      font-size: 9px;
      line-height: 1.7;
    }

    .comment-list a {
      color: #4da878;
      font-size: 8px;
      text-decoration: none;
    }

    .favorite-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    .favorite-grid button,
    .favorite-grid > a {
      min-height: 145px;
      padding: 17px;
      color: inherit;
      text-align: left;
      border-radius: 15px;
      cursor: pointer;
    }

    .favorite-grid span {
      color: var(--green);
      font-size: 7px;
    }

    .favorite-grid h3 {
      margin: 21px 0 12px;
      font-size: 11px;
      line-height: 1.55;
    }

    .favorite-grid p {
      margin: 0;
      color: #58625d;
      font-size: 7px;
    }

    .account-form {
      display: grid;
      gap: 14px;
      padding: 18px;
      border-radius: 15px;
    }

    .account-form .field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .account-form textarea {
      min-height: 80px;
      padding: 10px;
      resize: vertical;
    }

    .security-row {
      display: flex;
      min-height: 57px;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 0;
      border-top: 1px solid rgba(255,255,255,.05);
    }

    .security-row > div {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .security-row .icon {
      width: 15px;
      color: #7d8782;
    }

    .security-row span {
      display: grid;
      gap: 4px;
    }

    .security-row b {
      color: #aeb8b2;
      font-size: 9px;
    }

    .security-row small {
      color: #59635e;
      font-size: 7px;
    }

    .security-row > button:not(.switch-control),
    .security-row > a {
      padding: 6px 9px;
      color: #77817c;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 7px;
      cursor: pointer;
      font-size: 8px;
    }

    .switch-control {
      position: relative;
      width: 35px;
      height: 20px;
      background: #27302c;
      border: 0;
      border-radius: 999px;
      cursor: pointer;
    }

    .switch-control i {
      position: absolute;
      top: 3px;
      left: 3px;
      width: 14px;
      height: 14px;
      background: #7a8580;
      border-radius: 50%;
      transition: left .2s ease, background .2s ease;
    }

    .switch-control.active {
      background: rgba(24,226,118,.2);
    }

    .switch-control.active i {
      left: 18px;
      background: var(--green);
    }

    .save-profile {
      justify-self: end;
    }

    .login-screen {
      position: relative;
      display: grid;
      min-height: 100vh;
      padding: 22px;
      place-items: center;
      background:
        radial-gradient(circle at 19% 20%, rgba(24,226,118,.09), transparent 25%),
        radial-gradient(circle at 82% 80%, rgba(255,255,255,.055), transparent 24%),
        #020403;
      overflow: hidden;
    }

    .login-orbit {
      position: absolute;
      border: 1px solid rgba(255,255,255,.055);
      border-radius: 50%;
      pointer-events: none;
    }

    .orbit-one {
      width: 520px;
      height: 520px;
      left: -230px;
      bottom: -250px;
    }

    .orbit-two {
      width: 420px;
      height: 420px;
      right: -220px;
      top: -210px;
      box-shadow: inset 0 0 100px rgba(24,226,118,.025);
    }

    .login-shell {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1.08fr .92fr;
      width: min(1080px, 100%);
      min-height: 680px;
      border-radius: 26px;
      overflow: hidden;
    }

    .login-story {
      position: relative;
      display: flex;
      flex-direction: column;
      padding: 34px 38px;
      background:
        radial-gradient(circle at 35% 52%, rgba(24,226,118,.12), transparent 25%),
        linear-gradient(145deg, rgba(255,255,255,.035), transparent 55%);
      border-right: 1px solid rgba(255,255,255,.07);
      overflow: hidden;
    }

    .login-brand {
      display: inline-flex;
      width: max-content;
      align-items: center;
      gap: 10px;
      color: #e9f0ec;
      background: transparent;
      border: 0;
      cursor: pointer;
    }

    .login-brand span {
      font-family: var(--font-display);
      font-size: 23px;
      font-weight: 750;
      letter-spacing: -.13em;
    }

    .login-brand b {
      font-size: 10px;
      font-weight: 500;
    }

    .login-copy {
      position: relative;
      z-index: 2;
      margin-top: 90px;
    }

    .login-copy h1 {
      margin: 0;
      font-family: var(--font-display);
      font-size: clamp(34px, 4.4vw, 54px);
      font-weight: 500;
      line-height: 1.18;
      letter-spacing: -.04em;
    }

    .login-copy p {
      max-width: 400px;
      margin: 18px 0 0;
      color: #79837e;
      font-size: 10px;
      line-height: 1.9;
    }

    .login-deck {
      position: absolute;
      right: 5%;
      bottom: 82px;
      left: 5%;
      height: 190px;
      perspective: 850px;
    }

    .login-deck i {
      position: absolute;
      top: 24px;
      left: calc(30% + var(--i) * 50px);
      width: 74px;
      height: 138px;
      background: linear-gradient(115deg, rgba(255,255,255,.18), rgba(255,255,255,.035) 55%, rgba(24,226,118,.09));
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 9px;
      box-shadow: 13px 18px 28px rgba(0,0,0,.34);
      transform: translateZ(calc(var(--i) * -20px)) rotateY(-17deg) rotateZ(-4deg);
    }

    .login-deck i:nth-child(3) {
      background: linear-gradient(145deg, rgba(81,255,161,.35), rgba(0,120,59,.22));
      border-color: rgba(99,255,171,.45);
      box-shadow: 0 0 20px rgba(24,226,118,.15), 13px 18px 28px rgba(0,0,0,.38);
    }

    .login-deck > span {
      position: absolute;
      bottom: 0;
      left: 27%;
      color: #69736e;
      font-size: 8px;
    }

    .login-deck strong {
      color: #dce5e0;
      font-family: var(--font-display);
      font-size: 17px;
    }

    .login-story > footer {
      display: flex;
      justify-content: space-between;
      margin-top: auto;
      color: #46504b;
      font-family: var(--font-display);
      font-size: 7px;
      letter-spacing: .12em;
    }

    .login-form-side {
      position: relative;
      display: grid;
      place-items: center;
      padding: 58px 46px 40px;
      background: rgba(8,11,10,.76);
    }

    .login-back {
      position: absolute;
      top: 25px;
      right: 25px;
      display: flex;
      align-items: center;
      gap: 6px;
      color: #6f7974;
      background: transparent;
      border: 0;
      cursor: pointer;
      font-size: 8px;
    }

    .login-back .icon {
      width: 12px;
    }

    .login-form {
      width: min(340px, 100%);
    }

    .login-form header {
      margin-bottom: 28px;
    }

    .login-form h2 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 25px;
      font-weight: 550;
    }

    .login-form header p {
      margin: 8px 0 0;
      color: #67716c;
      font-size: 9px;
    }

    .login-field {
      display: grid;
      gap: 7px;
      margin-top: 14px;
      color: #8d9792;
      font-size: 9px;
    }

    .login-field > div {
      position: relative;
      display: flex;
      height: 44px;
      align-items: center;
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.085);
      border-radius: 11px;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    .login-field > div:focus-within {
      border-color: rgba(24,226,118,.32);
      box-shadow: 0 0 0 3px rgba(24,226,118,.06);
    }

    .login-field .icon {
      width: 14px;
      margin-left: 12px;
      color: #616b66;
    }

    .login-field input {
      min-width: 0;
      height: 100%;
      flex: 1;
      padding: 0 11px;
      color: #e4ece8;
      outline: 0;
      background: transparent;
      border: 0;
      font-size: 10px;
    }

    .login-field div > button {
      display: grid;
      width: 39px;
      height: 100%;
      place-items: center;
      color: #68726d;
      background: transparent;
      border: 0;
      cursor: pointer;
    }

    .login-field div > button .icon {
      width: 15px;
      margin: 0;
    }

    .login-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 13px 0 18px;
    }

    .login-options label {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #747e79;
      font-size: 8px;
    }

    .login-options input {
      accent-color: var(--green);
    }

    .login-options button {
      color: #638c74;
      background: transparent;
      border: 0;
      cursor: pointer;
      font-size: 8px;
    }

    .login-error {
      margin: -5px 0 12px;
      padding: 9px 10px;
      color: #ffaaa4;
      background: rgba(255,92,80,.07);
      border: 1px solid rgba(255,92,80,.18);
      border-radius: 8px;
      font-size: 8px;
    }

    .login-submit,
    .register-button {
      display: flex;
      width: 100%;
      height: 43px;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 11px;
      cursor: pointer;
      font-size: 9px;
    }

    .login-submit {
      color: #dcffe9;
      background: linear-gradient(180deg, rgba(24,226,118,.2), rgba(24,226,118,.1));
      border: 1px solid rgba(24,226,118,.34);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.22);
    }

    .login-submit.loading {
      pointer-events: none;
      opacity: .7;
    }

    .login-submit .icon {
      width: 13px;
    }

    .login-demo {
      margin: 9px 0 0;
      color: #4f5954;
      font-size: 7px;
      text-align: center;
    }

    .login-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 22px 0 12px;
      color: #515b56;
      font-size: 7px;
    }

    .login-divider::before,
    .login-divider::after {
      height: 1px;
      flex: 1;
      content: "";
      background: rgba(255,255,255,.06);
    }

    .register-button {
      color: #89938e;
      background: transparent;
      border: 1px solid rgba(255,255,255,.08);
    }

    /* Emlog production template bridge */
    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      max-width: 100%;
      height: auto;
    }

    :where(a, button, input, textarea, select):focus-visible {
      outline: 2px solid color-mix(in srgb, var(--green) 72%, white);
      outline-offset: 3px;
    }

    .skip-link {
      position: fixed;
      z-index: 220;
      top: 10px;
      left: 50%;
      padding: 10px 14px;
      color: #eafff3;
      background: #0d1712;
      border: 1px solid rgba(99,255,171,.42);
      border-radius: 10px;
      box-shadow: 0 14px 38px rgba(0,0,0,.48);
      transform: translate(-50%, calc(-100% - 20px));
      transition: transform .2s ease;
    }

    .skip-link:focus {
      transform: translate(-50%, 0);
    }

    .icon-sprite {
      position: absolute;
      width: 0;
      height: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .primary-chevron,
    .profile-arrow {
      width: 12px;
      height: 12px;
    }

    .profile-arrow {
      margin-left: auto;
      color: #59635e;
    }

    .post-table-body,
    .profile-content {
      min-width: 0;
    }

    .empty-copy {
      margin: 0;
      color: #66716b;
      font-size: 9px;
      line-height: 1.7;
    }

    .deck-empty {
      position: absolute;
      top: 50%;
      left: 50%;
      width: min(260px, calc(100% - 32px));
      color: #69746e;
      font-size: 9px;
      line-height: 1.7;
      text-align: center;
      transform: translate(-50%, -50%) rotate(var(--deck-tilt));
    }

    .progress-link {
      position: absolute;
      z-index: 2;
      left: 17px;
      bottom: 16px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #d9f9e7;
      font-size: 8px;
      letter-spacing: .04em;
    }

    .progress-link::after {
      content: "→";
      color: var(--green-bright);
    }

    .progress-link:hover {
      color: #fff;
    }

    .timeline-title h2 {
      margin: 0;
      font: inherit;
      font-weight: 600;
    }

    .timeline-title > i {
      display: none;
    }

    .timeline-switch {
      padding: 5px 8px;
      color: #737e78;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 8px;
      font-size: 8px;
      transition: color .2s ease, border-color .2s ease;
    }

    .timeline-switch:hover {
      color: var(--green-bright);
      border-color: rgba(24,226,118,.25);
    }

    .release-strip {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
      gap: 7px;
      min-width: 0;
    }

    .release-item {
      position: relative;
      display: grid;
      min-width: 0;
      min-height: 78px;
      align-content: center;
      gap: 6px;
      padding: 11px 12px;
      color: #7c8781;
      background: rgba(255,255,255,.022);
      border: 1px solid rgba(255,255,255,.052);
      border-radius: 11px;
      transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
    }

    .release-item:hover,
    .release-item.is-current {
      color: #dce8e1;
      background: rgba(24,226,118,.055);
      border-color: rgba(24,226,118,.19);
      transform: translateY(-1px);
    }

    .release-item time {
      color: var(--green);
      font-family: var(--font-display);
      font-size: 8px;
    }

    .release-item span {
      overflow: hidden;
      font-size: 8px;
      line-height: 1.5;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .moment-copy {
      margin: 9px 0 2px;
      color: #8d9792;
      font-size: 10px;
      line-height: 1.75;
      overflow-wrap: anywhere;
    }

    .archive-layout-full {
      align-items: start;
    }

    .account-state {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 8px;
      color: #83efb3;
      background: rgba(24,226,118,.07);
      border: 1px solid rgba(24,226,118,.18);
      border-radius: 999px;
      font-size: 8px;
    }

    .account-state::before {
      width: 5px;
      height: 5px;
      content: "";
      background: var(--green);
      border-radius: 50%;
      box-shadow: 0 0 7px rgba(24,226,118,.55);
    }

    .login-options a {
      color: #638c74;
      font-size: 8px;
    }

    body.auth-mode {
      min-height: 100vh;
      overflow: auto;
    }

    .login-captcha {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
    }

    .login-captcha img {
      width: 104px;
      height: 38px;
      object-fit: cover;
      cursor: pointer;
      background: #fff;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px;
    }

    .sidebar-overlay {
      position: fixed;
      z-index: 55;
      inset: 0;
      background: rgba(0,4,2,.64);
      -webkit-backdrop-filter: blur(5px);
      backdrop-filter: blur(5px);
    }

    body.sidebar-open {
      overflow: hidden;
    }

    .site-footer {
      display: flex;
      min-height: 64px;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px 18px;
      margin-top: auto;
      padding: 18px 2px 8px;
      color: #59645e;
      border-top: 1px solid rgba(255,255,255,.055);
      font-size: 8px;
      line-height: 1.7;
    }

    .site-footer > div:first-child {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 16px;
    }

    .site-footer a {
      color: #718078;
      transition: color .2s ease;
    }

    .site-footer a:hover {
      color: var(--green-bright);
    }

    .footer-info {
      flex: 1 0 100%;
      color: #535e58;
    }

    .footer-info :where(p, ul, ol) {
      margin: 0;
    }

    /* Emlog widgets */
    .emstudio-widget-sidebar {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 12px;
      margin: 14px 0 24px;
    }

    .side-widget {
      min-width: 0;
      padding: 17px;
      border-radius: 16px;
    }

    .side-widget h3 {
      margin: 0 0 12px;
      color: #cbd5cf;
      font-family: var(--font-display);
      font-size: 12px;
      font-weight: 550;
    }

    .side-widget ul {
      display: grid;
      gap: 0;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .side-widget li {
      border-top: 1px solid rgba(255,255,255,.05);
    }

    .side-widget li a {
      display: flex;
      min-width: 0;
      justify-content: space-between;
      gap: 10px;
      padding: 9px 0;
      color: #78837d;
      font-size: 8px;
      line-height: 1.55;
      transition: color .2s ease;
    }

    .side-widget li a:hover {
      color: #d8e6de;
    }

    .side-widget li a span {
      flex: 0 0 auto;
      color: #4f5a54;
    }

    .side-widget li > .widget-copy {
      padding-top: 9px;
    }

    .side-widget li > small {
      display: block;
      padding: 4px 0 9px;
      color: #505b55;
      font-size: 7px;
    }

    .side-widget form {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 7px;
    }

    .side-widget input {
      min-width: 0;
      height: 36px;
      padding: 0 10px;
      color: #d8e1dc;
      background: rgba(0,0,0,.18);
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 9px;
      outline: none;
    }

    .side-widget form button {
      padding: 0 12px;
      color: #cffff0;
      background: rgba(24,226,118,.09);
      border: 1px solid rgba(24,226,118,.22);
      border-radius: 9px;
      cursor: pointer;
      font-size: 8px;
    }

    .widget-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .widget-tags a {
      padding: 5px 8px;
      color: #7d8982;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.065);
      border-radius: 999px;
      font-size: 8px;
    }

    .widget-tags a:hover {
      color: var(--green-bright);
      border-color: rgba(24,226,118,.22);
    }

    .widget-copy {
      color: #78837d;
      font-size: 9px;
      line-height: 1.8;
      overflow-wrap: anywhere;
    }

    .widget-copy > :first-child { margin-top: 0; }
    .widget-copy > :last-child { margin-bottom: 0; }

    .side-blogger {
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr);
      align-items: center;
      gap: 6px 12px;
    }

    .side-blogger h3 {
      grid-column: 1 / -1;
    }

    .side-blogger > img {
      grid-row: 2 / span 2;
      width: 52px;
      height: 52px;
      object-fit: cover;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 14px;
    }

    .side-blogger > strong {
      align-self: end;
      color: #cbd6d0;
      font-size: 10px;
    }

    .side-blogger > p {
      align-self: start;
      margin: 0;
      color: #66716b;
      font-size: 8px;
      line-height: 1.55;
    }

    .side-calendar > a {
      display: grid;
      gap: 6px;
      padding: 13px;
      color: #7f8a84;
      background: rgba(24,226,118,.035);
      border: 1px solid rgba(24,226,118,.11);
      border-radius: 11px;
    }

    .side-calendar > a strong {
      color: #d2ddd7;
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 500;
    }

    .side-calendar > a span {
      color: #66716b;
      font-size: 8px;
    }

    /* Article and standalone page */
    .article-view {
      min-width: 0;
      padding: 14px 0 30px;
    }

    .page-view .article-hero {
      grid-template-columns: 1fr;
    }

    .article-hero {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
      min-height: 290px;
      align-items: stretch;
      gap: clamp(24px, 4vw, 54px);
      padding: clamp(28px, 4vw, 52px);
      border-radius: 22px;
      overflow: hidden;
    }

    .article-hero::before {
      position: absolute;
      width: 360px;
      height: 360px;
      right: -160px;
      bottom: -220px;
      content: "";
      background: rgba(24,226,118,.08);
      border: 1px solid rgba(99,255,171,.1);
      border-radius: 50%;
      filter: blur(8px);
      pointer-events: none;
    }

    .article-heading {
      position: relative;
      z-index: 1;
      align-self: center;
      min-width: 0;
    }

    .article-heading:only-child {
      grid-column: 1 / -1;
      max-width: 920px;
    }

    .article-kicker {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
      margin-bottom: 17px;
      color: var(--green);
      font-family: var(--font-display);
      font-size: 8px;
      letter-spacing: .14em;
    }

    .top-badge {
      padding: 4px 7px;
      color: #d9ffe9;
      background: rgba(24,226,118,.09);
      border: 1px solid rgba(24,226,118,.23);
      border-radius: 999px;
      font-family: var(--font-body);
      font-size: 7px;
      letter-spacing: 0;
    }

    .article-heading h1 {
      max-width: 900px;
      margin: 0;
      color: #edf5f1;
      font-family: var(--font-display);
      font-size: clamp(30px, 4.2vw, 54px);
      font-weight: 550;
      letter-spacing: -.035em;
      line-height: 1.15;
      text-wrap: balance;
    }

    .article-heading > p {
      max-width: 760px;
      margin: 18px 0 0;
      color: #89948e;
      font-size: 11px;
      line-height: 1.8;
    }

    .article-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px 16px;
      margin-top: 24px;
      color: #6d7872;
      font-size: 8px;
    }

    .article-meta > span,
    .article-meta > a {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .article-meta .icon {
      width: 12px;
      height: 12px;
      color: #718078;
    }

    .article-meta a:hover {
      color: var(--green-bright);
    }

    .article-edit-link {
      padding: 4px 7px;
      color: #8fe9b7;
      background: rgba(24,226,118,.05);
      border: 1px solid rgba(24,226,118,.16);
      border-radius: 6px;
    }

    .article-cover {
      position: relative;
      z-index: 1;
      min-height: 210px;
      margin: 0;
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 17px;
      overflow: hidden;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 18px 24px 50px rgba(0,0,0,.32);
      transform: rotate(1.5deg);
    }

    .article-cover img {
      display: block;
      width: 100%;
      height: 100%;
      min-height: 210px;
      object-fit: cover;
    }

    .article-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 245px;
      align-items: start;
      gap: 14px;
      margin-top: 14px;
    }

    .article-main {
      min-width: 0;
      padding: clamp(24px, 4vw, 54px);
      border-radius: 20px;
    }

    .page-content {
      margin-top: 14px;
    }

    .article-content {
      color: #b9c3bd;
      font-size: clamp(14px, 1.2vw, 16px);
      line-height: 1.9;
      overflow-wrap: anywhere;
    }

    .article-content > :first-child { margin-top: 0; }
    .article-content > :last-child { margin-bottom: 0; }

    .markdown :where(h1, h2, h3, h4, h5, h6) {
      margin: 1.8em 0 .7em;
      color: #edf5f1;
      font-family: var(--font-display);
      font-weight: 560;
      line-height: 1.35;
      scroll-margin-top: 24px;
    }

    .markdown h1 { font-size: 2em; }
    .markdown h2 { font-size: 1.55em; }
    .markdown h3 { font-size: 1.28em; }
    .markdown h4 { font-size: 1.08em; }

    .markdown p,
    .markdown ul,
    .markdown ol,
    .markdown blockquote,
    .markdown pre,
    .markdown table {
      margin: 1.15em 0;
    }

    .markdown a {
      color: #7be7aa;
      text-decoration: underline;
      text-decoration-color: rgba(123,231,170,.35);
      text-underline-offset: 3px;
    }

    .markdown a:hover {
      color: #b0ffd1;
      text-decoration-color: currentColor;
    }

    .markdown img,
    .markdown video,
    .markdown iframe {
      display: block;
      max-width: 100%;
      margin: 1.6em auto;
      border-radius: 14px;
    }

    .markdown iframe {
      width: 100%;
      min-height: 360px;
      border: 0;
    }

    .markdown blockquote {
      padding: 14px 18px;
      color: #8f9a94;
      background: rgba(24,226,118,.035);
      border-left: 3px solid rgba(24,226,118,.48);
      border-radius: 0 10px 10px 0;
    }

    .markdown pre {
      max-width: 100%;
      padding: 17px;
      color: #b8d9c7;
      background: #050a07;
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 13px;
      overflow: auto;
      line-height: 1.65;
      tab-size: 2;
    }

    .markdown pre code {
      padding: 0;
      color: inherit;
      background: transparent;
      border: 0;
    }

    .markdown table {
      display: block;
      width: 100%;
      border-collapse: collapse;
      overflow-x: auto;
    }

    .markdown th,
    .markdown td {
      min-width: 100px;
      padding: 10px 12px;
      border: 1px solid rgba(255,255,255,.08);
      text-align: left;
    }

    .markdown th {
      color: #d8e4dd;
      background: rgba(255,255,255,.035);
    }

    .markdown hr {
      height: 1px;
      margin: 2em 0;
      background: rgba(255,255,255,.08);
      border: 0;
    }

    .article-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 42px;
      padding-top: 20px;
      border-top: 1px solid rgba(255,255,255,.065);
    }

    .article-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .article-tags a {
      padding: 5px 8px;
      color: #83a993;
      background: rgba(24,226,118,.04);
      border: 1px solid rgba(24,226,118,.13);
      border-radius: 999px;
      font-size: 8px;
    }

    .article-counters {
      display: flex;
      gap: 10px;
      color: #5f6a64;
      font-size: 8px;
    }

    .article-toc {
      position: sticky;
      top: 14px;
      display: grid;
      gap: 10px;
      padding: 20px;
      border-radius: 17px;
    }

    .article-toc h2 {
      margin: 0;
      color: #dce5e0;
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 550;
    }

    .article-toc p {
      margin: 0 0 8px;
      color: #6d7872;
      font-size: 9px;
      line-height: 1.75;
    }

    .article-toc a {
      display: flex;
      min-height: 34px;
      align-items: center;
      justify-content: space-between;
      padding: 0 10px;
      color: #86918b;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 9px;
      font-size: 8px;
    }

    .article-toc a::after {
      content: "→";
      color: var(--green);
    }

    .neighbor-log {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
    }

    .neighbor-card {
      display: grid;
      min-width: 0;
      gap: 8px;
      padding: 17px 19px;
      background: rgba(13,17,16,.82);
      border: 1px solid var(--line);
      border-radius: 15px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
      transition: border-color .2s ease, transform .2s ease;
    }

    .neighbor-card:hover {
      border-color: rgba(24,226,118,.22);
      transform: translateY(-2px);
    }

    .neighbor-card.next {
      text-align: right;
    }

    .neighbor-card span {
      color: var(--green);
      font-size: 8px;
    }

    .neighbor-card strong {
      overflow: hidden;
      color: #c9d3cd;
      font-size: 10px;
      font-weight: 550;
      line-height: 1.55;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* Comments */
    .comments-section,
    .comment-form-card {
      margin-top: 14px;
      padding: clamp(20px, 3vw, 32px);
      background:
        linear-gradient(145deg, rgba(255,255,255,.045), transparent 42%),
        var(--panel);
      border: 1px solid var(--line);
      border-radius: 19px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 22px 65px rgba(0,0,0,.3);
    }

    .comments-section > header,
    .comment-form-card > header {
      margin-bottom: 18px;
    }

    .comments-section h2,
    .comment-form-card h2 {
      margin: 0;
      color: #e1e9e5;
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 550;
    }

    .comments-section h2 small {
      color: #69746e;
      font-size: .55em;
      font-weight: 400;
    }

    .comment-item {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      gap: 12px;
      margin-top: 9px;
      padding: 16px;
      border-radius: 14px;
    }

    .comment-item.is-child {
      margin-left: clamp(22px, 5vw, 64px);
    }

    .comment-item > img {
      width: 38px;
      height: 38px;
      object-fit: cover;
      border: 1px solid rgba(255,255,255,.13);
      border-radius: 11px;
    }

    .comment-item > div {
      min-width: 0;
    }

    .comment-item header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: #d3ddd7;
      font-size: 9px;
    }

    .comment-item header time {
      color: #59645e;
      font-size: 8px;
    }

    .comment-copy {
      margin-top: 9px;
      color: #8c9791;
      font-size: 10px;
      line-height: 1.75;
      overflow-wrap: anywhere;
    }

    .comment-copy > :first-child { margin-top: 0; }
    .comment-copy > :last-child { margin-bottom: 0; }

    .comment-copy a {
      color: #74dda2;
    }

    .comment-copy img {
      max-width: 100%;
      border-radius: 10px;
    }

    .comment-reply-button {
      margin-top: 10px;
      padding: 5px 8px;
      color: #718079;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 7px;
      cursor: pointer;
      font-size: 8px;
    }

    .comment-reply-button:hover {
      color: var(--green-bright);
      border-color: rgba(24,226,118,.2);
    }

    .comment-reply-slot:not(:empty) {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255,255,255,.06);
    }

    .comment-form-card > p {
      color: #89948e;
      font-size: 10px;
      line-height: 1.7;
    }

    .comment-form-card > p a {
      color: var(--green-bright);
    }

    #commentform {
      display: grid;
      gap: 13px;
    }

    .comment-replying {
      margin: 0;
      color: #76827b;
      font-size: 8px;
    }

    .comment-replying strong {
      color: var(--green-bright);
      font-weight: 550;
    }

    .comment-replying:has(strong:empty) {
      display: none;
    }

    #commentform label {
      display: grid;
      gap: 7px;
      color: #79847e;
      font-size: 8px;
    }

    #commentform :where(input, textarea) {
      width: 100%;
      min-width: 0;
      color: #dce5e0;
      background: rgba(0,0,0,.2);
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 10px;
      outline: none;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    #commentform input {
      height: 39px;
      padding: 0 11px;
    }

    #commentform textarea {
      min-height: 132px;
      padding: 11px;
      resize: vertical;
      line-height: 1.7;
    }

    #commentform :where(input, textarea):focus {
      border-color: rgba(24,226,118,.34);
      box-shadow: 0 0 0 3px rgba(24,226,118,.065);
    }

    .comment-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .comment-captcha {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 9px;
      color: #737e78;
      font-size: 8px;
    }

    .comment-captcha img {
      max-height: 38px;
      background: #fff;
      border-radius: 8px;
    }

    .comment-captcha input {
      width: min(180px, 100%) !important;
    }

    .comment-form-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      padding-top: 3px;
    }

    .comment-form-actions button {
      min-height: 37px;
      padding: 0 15px;
      color: #d9fce8;
      background: rgba(24,226,118,.1);
      border: 1px solid rgba(24,226,118,.24);
      border-radius: 999px;
      cursor: pointer;
      font-size: 8px;
    }

    .comment-form-actions button[type="button"] {
      color: #7a857f;
      background: transparent;
      border-color: rgba(255,255,255,.075);
    }

    /* 404 */
    .error-screen {
      position: relative;
      display: grid;
      min-height: 100vh;
      min-height: 100dvh;
      padding: 22px;
      place-items: center;
      overflow: hidden;
    }

    .error-screen::before,
    .error-screen::after {
      position: absolute;
      content: "";
      border: 1px solid rgba(255,255,255,.055);
      border-radius: 50%;
      pointer-events: none;
    }

    .error-screen::before {
      width: min(72vw, 820px);
      height: min(72vw, 820px);
      transform: rotate(-12deg);
    }

    .error-screen::after {
      width: min(48vw, 540px);
      height: min(48vw, 540px);
      border-color: rgba(24,226,118,.08);
      transform: rotate(18deg);
    }

    .error-card {
      position: relative;
      z-index: 1;
      width: min(660px, 100%);
      padding: clamp(34px, 7vw, 76px);
      border-radius: 24px;
      text-align: center;
      overflow: hidden;
    }

    .error-card::before {
      position: absolute;
      width: 250px;
      height: 250px;
      top: -150px;
      right: -80px;
      content: "";
      background: rgba(24,226,118,.09);
      border-radius: 50%;
      filter: blur(45px);
      pointer-events: none;
    }

    .error-card > strong {
      display: block;
      margin: 4px 0 8px;
      color: rgba(230,241,235,.94);
      font-family: var(--font-display);
      font-size: clamp(86px, 18vw, 150px);
      font-weight: 450;
      letter-spacing: -.08em;
      line-height: .9;
      text-shadow: 0 0 50px rgba(24,226,118,.12);
    }

    .error-card h1 {
      margin: 20px 0 0;
      color: #e8f0ec;
      font-family: var(--font-display);
      font-size: clamp(22px, 4vw, 34px);
      font-weight: 550;
    }

    .error-card > p {
      max-width: 480px;
      margin: 13px auto 0;
      color: #7e8983;
      font-size: 10px;
      line-height: 1.8;
    }

    .error-search {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      width: min(450px, 100%);
      margin: 26px auto 12px;
      gap: 7px;
    }

    .error-search input {
      padding-inline: 13px;
    }

    .error-search button {
      min-width: 72px;
      color: #d8ffea;
      background: rgba(24,226,118,.1);
      border: 1px solid rgba(24,226,118,.25);
      border-radius: 10px;
      cursor: pointer;
      font-size: 9px;
    }

    .error-card > .primary-button {
      width: max-content;
      margin: 0 auto;
    }

    .about-contact {
      color: #8caaa0 !important;
      font-size: 9px !important;
    }

    @keyframes route-enter {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes rise-in {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes slide-left {
      from { opacity: 0; transform: translateX(15px); }
      to { opacity: 1; transform: translateX(0); }
    }

    @keyframes float-card {
      0%, 100% { translate: 0 0; }
      50% { translate: 0 -5px; }
    }

    @media (max-width: 1280px) {
      .app-shell {
        grid-template-columns: 74px minmax(0, 1fr) 260px;
      }

      .app-shell.wide-view {
        grid-template-columns: 74px minmax(0, 1fr);
      }

      .sidebar {
        align-items: center;
        padding-inline: 9px;
      }

      .brand-name,
      .nav-text,
      .nav-arrow,
      .workspace-switcher,
      .profile-meta {
        display: none;
      }

      .brand {
        padding-inline: 0;
      }

      .nav-list {
        width: 100%;
      }

      .nav-item {
        justify-content: center;
        padding: 0;
      }

      .profile {
        justify-content: center;
      }

      .file-card:nth-child(10),
      .file-card:nth-child(9) {
        display: none;
      }
    }

    @media (max-width: 1080px) {
      .app-shell {
        grid-template-columns: 74px minmax(0, 1fr);
      }

      .detail-panel {
        position: fixed;
        z-index: 40;
        top: 14px;
        right: 14px;
        width: min(310px, calc(100% - 28px));
        animation: none;
        transform: translateX(calc(100% + 32px));
        transition: transform .3s ease;
      }

      .detail-panel.open {
        transform: translateX(0);
      }

      .detail-close-mobile {
        display: inline-grid !important;
      }

      .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) 112px;
      }
    }

    @media (max-width: 820px) {
      .app-shell {
        display: block;
        width: min(100% - 20px, 720px);
        margin: 10px auto;
      }

      .sidebar {
        position: fixed;
        z-index: 60;
        inset: 10px auto 10px 10px;
        width: 210px;
        height: auto;
        min-height: 0;
        align-items: stretch;
        transform: translateX(calc(-100% - 22px));
        transition: transform .3s ease;
      }

      .sidebar.open {
        transform: translateX(0);
      }

      .brand-name,
      .nav-text,
      .nav-arrow,
      .workspace-switcher,
      .profile-meta {
        display: block;
      }

      .nav-item {
        justify-content: flex-start;
        padding: 0 13px;
      }

      .profile {
        justify-content: flex-start;
      }

      .workspace {
        padding-top: 0;
      }

      .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 9px;
      }

      .mobile-menu {
        display: inline-grid;
      }

      .page-title p,
      .top-actions .icon-button,
      .primary-button span {
        display: none;
      }

      .page-title h1 {
        font-size: 17px;
      }

      .primary-button {
        width: 39px;
        padding: 0;
        justify-content: center;
      }

      .search-box input {
        height: 37px;
      }

      .shortcut {
        display: none;
      }

      .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .stat-card.alert-card {
        min-height: 92px;
      }

      .section-heading {
        align-items: flex-start;
        flex-direction: column;
      }

      .board-controls {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .board-controls::-webkit-scrollbar {
        display: none;
      }

      .board-card {
        grid-template-columns: 210px minmax(430px, 1fr);
        overflow-x: auto;
      }

      .timeline-card {
        overflow-x: auto;
      }

      .page-toolbar-card,
      .archive-hero {
        align-items: flex-start;
        flex-direction: column;
      }

      .page-filter-pills {
        justify-content: flex-start;
      }

      .post-table-head {
        display: none;
      }

      .post-table-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 14px 10px;
      }

      .post-cell-main {
        grid-column: 1 / -1;
      }

      .table-category,
      .table-metric,
      .post-table-row time {
        display: none;
      }

      .row-action {
        position: absolute;
        right: 14px;
      }

      .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .archive-layout,
      .moment-layout,
      .profile-layout {
        grid-template-columns: 1fr;
      }

      .year-switcher,
      .profile-nav {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .year-switcher button,
      .year-switcher a,
      .profile-nav button {
        flex: 0 0 auto;
      }

      .profile-nav .logout-item {
        flex: 0 0 auto;
        margin-top: 0;
        border-top: 0;
      }

      .archive-month {
        grid-template-columns: 120px minmax(0, 1fr);
      }

      .moment-aside {
        display: none;
      }

      .tag-insights,
      .about-grid,
      .profile-stat-grid,
      .favorite-grid {
        grid-template-columns: 1fr;
      }

      .friend-grid {
        grid-template-columns: 1fr;
      }

      .link-apply {
        grid-template-columns: 1fr 1fr;
      }

      .link-apply > div {
        grid-column: 1 / -1;
      }

      .about-hero {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 22px;
        padding: 26px;
      }

      .about-monogram {
        width: 105px;
        height: 150px;
        font-size: 37px;
      }

      .site-timeline {
        grid-template-columns: 1fr;
      }

      .user-hero {
        grid-template-columns: 82px minmax(0, 1fr) auto;
      }

      .user-hero-stats {
        grid-column: 1 / -1;
        justify-content: flex-start;
      }
    }

    @media (max-width: 760px) {
      .login-screen {
        padding: 10px;
      }

      .login-shell {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 20px);
      }

      .login-story {
        display: none;
      }

      .login-form-side {
        padding: 60px 28px 35px;
      }
    }

    @media (max-width: 540px) {
      .topbar {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
          "menu title add"
          "search search search";
        padding: 8px 0 12px;
      }

      .mobile-menu { grid-area: menu; }
      .page-title { grid-area: title; }
      .search-box { grid-area: search; }
      .top-actions { grid-area: add; }

      .stats-grid {
        gap: 9px;
      }

      .stat-card {
        min-height: 99px;
        padding: 14px;
      }

      .stat-number {
        font-size: 24px;
      }

      .stat-icon {
        width: 34px;
        height: 34px;
      }

      .segment {
        padding: 0 9px;
      }

      .control-group .toolbar-button span {
        display: none;
      }

      .board-card {
        grid-template-columns: 195px minmax(410px, 1fr);
      }

      .toast {
        right: 12px;
        bottom: 12px;
        left: 12px;
      }

      .field-row {
        grid-template-columns: 1fr;
      }

      .page-toolbar-card {
        padding: 18px;
      }

      .category-grid {
        grid-template-columns: 1fr;
      }

      .category-card {
        min-height: 190px;
      }

      .archive-hero {
        padding: 23px;
      }

      .archive-total strong {
        font-size: 60px;
      }

      .archive-month {
        grid-template-columns: 1fr;
      }

      .tag-cloud {
        padding-inline: 0;
      }

      .link-apply,
      .about-hero,
      .account-form .field-row {
        grid-template-columns: 1fr;
      }

      .about-monogram {
        width: 76px;
        height: 92px;
      }

      .user-hero {
        grid-template-columns: 70px minmax(0, 1fr);
        padding: 20px;
      }

      .user-avatar-large {
        width: 66px;
        height: 66px;
        border-radius: 18px;
      }

      .user-edit-button {
        grid-column: 1 / -1;
        width: max-content;
      }

      .user-hero-stats {
        gap: 14px;
      }

      .user-list > div {
        grid-template-columns: 52px minmax(0, 1fr);
      }

      .user-list time {
        display: none;
      }
    }

    @media (max-width: 820px) {
      .board-card {
        scroll-padding-inline: 18px;
        overscroll-behavior-inline: contain;
      }

      .article-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 24px;
        padding: 30px;
      }

      .article-cover {
        min-height: 230px;
        transform: none;
      }

      .article-cover img {
        min-height: 230px;
        max-height: 420px;
      }

      .article-layout {
        grid-template-columns: 1fr;
      }

      .article-toc {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .article-toc > :not(a) {
        grid-column: 1 / -1;
      }

      .emstudio-widget-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .site-footer {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
      }
    }

    @media (max-width: 540px) {
      .article-view {
        padding-top: 8px;
      }

      .article-hero {
        padding: 22px;
        border-radius: 17px;
      }

      .article-heading h1 {
        font-size: clamp(27px, 10vw, 38px);
      }

      .article-heading > p {
        margin-top: 13px;
        font-size: 10px;
      }

      .article-meta {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 18px;
      }

      .article-cover,
      .article-cover img {
        min-height: 180px;
      }

      .article-main {
        padding: 21px;
        border-radius: 16px;
      }

      .article-content {
        font-size: 14px;
      }

      .markdown iframe {
        min-height: 220px;
      }

      .article-footer {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 32px;
      }

      .article-toc {
        grid-template-columns: 1fr;
      }

      .article-toc > :not(a) {
        grid-column: auto;
      }

      .neighbor-log {
        grid-template-columns: 1fr;
      }

      .neighbor-card.next {
        text-align: left;
      }

      .comments-section,
      .comment-form-card {
        padding: 18px;
        border-radius: 16px;
      }

      .comment-form-grid {
        grid-template-columns: 1fr;
      }

      .comment-item {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
      }

      .comment-item > img {
        width: 32px;
        height: 32px;
        border-radius: 9px;
      }

      .comment-item.is-child {
        margin-left: 12px;
      }

      .comment-item header {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
      }

      .comment-form-actions {
        justify-content: stretch;
      }

      .comment-form-actions button {
        flex: 1;
      }

      .release-strip,
      .emstudio-widget-sidebar {
        grid-template-columns: 1fr;
      }

      .site-footer {
        align-items: flex-start;
        flex-direction: column;
      }

      .error-screen {
        padding: 10px;
      }

      .error-card {
        padding: 34px 20px;
        border-radius: 18px;
      }

      .error-search {
        grid-template-columns: 1fr;
      }

      .error-search button {
        min-height: 38px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }
    }
