@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");
      :root {
        --bg: #f7f2ea;
        --bg-2: #fdf8f2;
        --panel: #ffffff;
        --text: #2a2623;
        --muted: #6f6a64;
        --accent: #d7906d;
        --accent-2: #7bb5a6;
        --danger: #d76b6b;
        --border: #eadfd2;
        --glow: rgba(215, 144, 109, 0.25);
        --shadow-xs: 0 1px 2px rgba(42,38,35,0.04);
        --shadow-sm: 0 2px 8px rgba(42,38,35,0.06);
        --shadow-md: 0 8px 24px rgba(42,38,35,0.1);
        --shadow-lg: 0 16px 40px rgba(42,38,35,0.14);
        --container: 920px;
        --radius: 14px;
      }
      * { box-sizing: border-box; margin: 0; padding: 0; }
      body {
        font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
        color: var(--text);
        background: radial-gradient(1200px 600px at 10% -10%, #fff3e6 0%, transparent 60%),
          radial-gradient(900px 500px at 90% 0%, #e7f5f2 0%, transparent 55%),
          linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
        min-height: 100vh;
        -webkit-font-smoothing: antialiased;
      }

      /* ── Sticky Header ── */
      header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(247, 242, 234, 0.82);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
      }
      .header-inner {
        max-width: var(--container);
        margin: 0 auto;
        padding: 24px 24px 16px;
      }
      .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }
      h1 {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -0.3px;
        font-family: "Cormorant Garamond", "Times New Roman", serif;
      }
      .sub { color: var(--muted); font-size: 13px; }
      .profile-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
      .menu-btn { width: 38px; height: 38px; padding: 0; border-radius: 999px; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
      .profile-card {
        position: absolute;
        top: 48px;
        right: 0;
        min-width: 220px;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 12px 14px;
        box-shadow: var(--shadow-lg);
        z-index: 10;
        font-size: 13px;
        color: var(--muted);
      }
      .profile-card strong { color: var(--text); display: block; margin-bottom: 4px; }
      .hidden { display: none !important; }
      .sub-top-6 { margin-top: 6px; }
      .controls-note { align-self: center; }
      .status-line { margin-bottom: 16px; }
      .section-title {
        margin-top: 24px;
        font-size: 20px;
        font-family: "Cormorant Garamond", "Times New Roman", serif;
      }
      .list-top-12 { margin-top: 12px; }
      .empty-pad-top { padding-top: 16px; }
      .item-actions {
        display: flex;
        gap: 8px;
        align-items: center;
      }
      .item-actions-wrap {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
      }
      .profile-card-title {
        font-weight: 700;
        color: var(--text);
        margin-bottom: 10px;
        word-break: break-word;
      }
      .stack-grid {
        display: grid;
        gap: 8px;
      }
      .nav-btn-full {
        width: 100%;
        text-align: center;
      }

      /* ── Navigation ── */
      nav {
        margin-top: 14px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }
      .nav-btn {
        padding: 7px 14px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--panel);
        color: var(--text);
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.2s ease;
        cursor: pointer;
      }
      .nav-btn:hover {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--glow);
      }
      .nav-btn.active {
        background: linear-gradient(135deg, var(--accent), #c47d5c);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(215,144,109,0.3);
      }
      .admin-only { display: none; }
      body.is-admin .admin-only { display: inline-flex; }

      /* ── Controls ── */
      .controls-wrap {
        max-width: var(--container);
        margin: 20px auto 0;
        padding: 0 24px;
      }
      .controls {
        padding: 20px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
      }
      .controls-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
        align-items: end;
      }
      label {
        font-size: 11px;
        font-weight: 600;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 6px;
      }
      input, select {
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--panel);
        color: var(--text);
        font-family: inherit;
        font-size: 14px;
        transition: all 0.2s ease;
      }
      input:focus, select:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--glow);
      }
      button {
        cursor: pointer;
        font-family: inherit;
        font-size: 14px;
      }
      .btn {
        padding: 10px 16px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--panel);
        color: var(--text);
        font-weight: 500;
        transition: all 0.2s ease;
        width: 100%;
      }
      .btn:hover {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--glow);
      }
      .btn.success {
        background: var(--accent-2);
        color: #fff;
        border-color: var(--accent-2);
      }
      .btn.success:hover {
        box-shadow: 0 2px 12px rgba(123,181,166,0.35);
      }
      .btn.danger {
        color: #c0392b;
        border-color: #e8c5c0;
      }
      .btn.danger:hover {
        box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
      }

      /* ── Main Content ── */
      main {
        max-width: var(--container);
        margin: 0 auto;
        padding: 24px 24px 48px;
      }

      /* ── Account Items ── */
      .list { display: grid; gap: 12px; }
      .item {
        border: 1px solid var(--border);
        border-left: 3px solid var(--accent);
        border-radius: var(--radius);
        background: var(--panel);
        padding: 16px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-shadow: var(--shadow-xs);
        transition: box-shadow 0.2s ease;
      }
      .item:hover {
        box-shadow: var(--shadow-sm);
      }
      .item select {
        width: auto;
        min-width: 90px;
      }
      .pill {
        display: inline-flex;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid var(--border);
        font-size: 12px;
        color: var(--muted);
      }
      .empty {
        color: var(--muted);
        padding: 48px 0;
        text-align: center;
        font-size: 15px;
      }

      /* ── Responsive ── */
      @media (max-width: 640px) {
        .header-inner { padding: 20px 16px 14px; }
        h1 { font-size: 24px; }
        nav { gap: 6px; }
        .nav-btn { font-size: 12px; padding: 6px 10px; }
        .controls-wrap { margin: 12px 16px 0; padding: 0; }
        .controls { padding: 16px; }
        .controls-grid { grid-template-columns: 1fr; }
        main { padding: 16px 16px 32px; }
        .item {
          flex-direction: column;
          align-items: stretch;
          padding: 14px;
        }
        .item > div:last-child {
          justify-content: flex-end;
        }
      }
       @media (max-width: 640px) {
        /* Header mobile align */
        .header-top { display: grid; grid-template-columns: 1fr auto; align-items: start; }
        .profile-wrap { justify-self: end; margin-left: auto; }
      }
