:root {
        --bg: #06101d;
        --bg-2: #091829;
        --panel: #0d1d30;
        --panel-2: #11263d;
        --panel-3: #0a1727;
        --line: rgba(148, 163, 184, 0.17);
        --line-strong: rgba(148, 163, 184, 0.28);
        --text: #f5f8fc;
        --muted: #91a2b8;
        --muted-2: #62758e;
        --brand: #47c7b2;
        --brand-2: #2f80ed;
        --brand-3: #78e8d3;
        --green: #58d68d;
        --red: #ff7a8a;
        --amber: #f4bf59;
        --purple: #b49cff;
        --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
        --radius: 20px;
      }
      * {
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
      }
      body {
        margin: 0;
        background:
          radial-gradient(
            circle at 88% -5%,
            rgba(47, 128, 237, 0.16),
            transparent 30%
          ),
          radial-gradient(
            circle at 15% 110%,
            rgba(71, 199, 178, 0.12),
            transparent 35%
          ),
          var(--bg);
        color: var(--text);
        font-family:
          Inter,
          ui-sans-serif,
          -apple-system,
          BlinkMacSystemFont,
          "Segoe UI",
          sans-serif;
        min-height: 100vh;
      }
      body:before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        opacity: 0.22;
        background-image:
          linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
          linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
          );
        background-size: 36px 36px;
        mask-image: linear-gradient(to bottom, black, transparent 75%);
      }
      button,
      input,
      select,
      textarea {
        font: inherit;
      }
      button {
        cursor: pointer;
      }
      a {
        color: inherit;
        text-decoration: none;
      }
      .app {
        display: grid;
        grid-template-columns: 276px minmax(0, 1fr);
        min-height: 100vh;
      }
      .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 20px 16px;
        border-right: 1px solid var(--line);
        background: rgba(5, 14, 25, 0.88);
        backdrop-filter: blur(24px);
        z-index: 20;
        display: flex;
        flex-direction: column;
      }
      .brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 4px 6px 22px;
      }
      .brand-logo {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        display: grid;
        place-items: center;
        background: linear-gradient(
          145deg,
          rgba(255, 255, 255, 0.09),
          rgba(255, 255, 255, 0.02)
        );
        border: 1px solid var(--line);
        box-shadow:
          inset 0 1px rgba(255, 255, 255, 0.08),
          0 16px 34px rgba(0, 0, 0, 0.22);
        overflow: hidden;
        flex: 0 0 auto;
      }
      .brand-logo img {
        width: 56px;
        height: 56px;
        object-fit: contain;
      }
      .brand-name {
        font-weight: 850;
        font-size: 19px;
        letter-spacing: -0.02em;
      }
      .brand-name span {
        color: var(--brand-3);
      }
      .brand-sub {
        font-size: 11px;
        color: var(--muted);
        margin-top: 3px;
      }
      .nav-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: var(--muted-2);
        padding: 0 12px;
        margin: 7px 0;
      }
      .nav {
        display: grid;
        gap: 5px;
      }
      .nav-btn {
        appearance: none;
        border: 0;
        background: transparent;
        color: #b9c6d6;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 13px;
        border-radius: 13px;
        text-align: left;
        font-weight: 650;
        transition: 0.2s ease;
        position: relative;
        width: 100%;
      }
      .nav-btn svg {
        width: 19px;
        height: 19px;
        stroke: currentColor;
        opacity: 0.9;
      }
      .nav-btn:hover {
        background: rgba(255, 255, 255, 0.045);
        color: #fff;
        transform: translateX(2px);
      }
      .nav-btn.active {
        background: linear-gradient(
          90deg,
          rgba(71, 199, 178, 0.16),
          rgba(47, 128, 237, 0.08)
        );
        color: #fff;
        border: 1px solid rgba(71, 199, 178, 0.18);
      }
      .nav-btn.active:before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 3px;
        background: var(--brand);
        border-radius: 0 3px 3px 0;
        box-shadow: 0 0 18px var(--brand);
      }
      .sidebar-bottom {
        margin-top: auto;
        display: grid;
        gap: 10px;
      }
      .storage-card {
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 14px;
        background: linear-gradient(
          145deg,
          rgba(71, 199, 178, 0.08),
          rgba(47, 128, 237, 0.04)
        );
      }
      .storage-card strong {
        display: block;
        font-size: 13px;
      }
      .storage-card p {
        margin: 5px 0 10px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.5;
      }
      .progress {
        height: 7px;
        border-radius: 999px;
        background: #13263a;
        overflow: hidden;
      }
      .progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--brand), var(--brand-2));
        width: 24%;
      }
      .workspace {
        min-width: 0;
        padding: 26px 30px 64px;
        max-width: 1680px;
        width: 100%;
        margin: 0 auto;
      }
      .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 26px;
      }
      .eyebrow {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--brand-3);
        font-weight: 800;
        margin-bottom: 7px;
      }
      h1,
      h2,
      h3,
      p {
        margin-top: 0;
      }
      .page-title {
        font-size: clamp(28px, 4vw, 40px);
        letter-spacing: -0.045em;
        margin-bottom: 5px;
      }
      .page-sub {
        color: var(--muted);
        font-size: 14px;
        margin-bottom: 0;
        max-width: 780px;
        line-height: 1.55;
      }
      .top-actions {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
      }
      .btn {
        border: 1px solid var(--line-strong);
        background: #0a192b;
        color: #eef5fb;
        border-radius: 12px;
        min-height: 43px;
        padding: 0 15px;
        font-weight: 720;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: 0.2s ease;
        white-space: nowrap;
      }
      .btn:hover {
        border-color: rgba(71, 199, 178, 0.46);
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
      }
      .btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, var(--brand), #3a9ad9);
        color: #04131b;
        box-shadow: 0 12px 30px rgba(71, 199, 178, 0.18);
      }
      .btn.primary:hover {
        box-shadow: 0 15px 34px rgba(71, 199, 178, 0.28);
      }
      .btn.ghost {
        background: transparent;
      }
      .btn.danger {
        color: #ffc1c8;
        border-color: rgba(255, 122, 138, 0.28);
        background: rgba(255, 122, 138, 0.06);
      }
      .btn.danger:hover {
        color: #fff;
        border-color: rgba(255, 122, 138, 0.55);
        background: rgba(255, 122, 138, 0.14);
        box-shadow: 0 12px 28px rgba(255, 122, 138, 0.12);
      }
      .reset-warning {
        border: 1px solid rgba(255, 122, 138, 0.28);
        background: rgba(255, 122, 138, 0.07);
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 14px;
        color: #ffd3d8;
        font-size: 12px;
        line-height: 1.55;
      }
      .reset-warning strong {
        color: #fff;
      }
      .btn.small {
        min-height: 34px;
        padding: 0 11px;
        border-radius: 10px;
        font-size: 12px;
      }
      .btn.icon {
        width: 40px;
        padding: 0;
      }
      .demo-banner {
        display: none;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border: 1px solid rgba(244, 191, 89, 0.24);
        background: linear-gradient(
          90deg,
          rgba(244, 191, 89, 0.08),
          rgba(244, 191, 89, 0.03)
        );
        border-radius: 14px;
        padding: 11px 14px;
        margin-bottom: 18px;
        color: #f8ddb0;
        font-size: 12px;
      }
      .demo-banner.show {
        display: flex;
      }
      .view {
        display: none;
        animation: fadeUp 0.35s ease;
      }
      .view.active {
        display: block;
      }
      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      .grid {
        display: grid;
        gap: 16px;
      }
      .kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 16px;
      }
      .split {
        grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
      }
      .two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .panel {
        background: linear-gradient(
          180deg,
          rgba(16, 35, 57, 0.92),
          rgba(9, 23, 39, 0.95)
        );
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.15);
        overflow: hidden;
      }
      .panel-pad {
        padding: 20px;
      }
      .panel-head {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        align-items: flex-start;
        padding: 20px 20px 0;
      }
      .panel-title {
        font-size: 16px;
        font-weight: 820;
        margin-bottom: 4px;
      }
      .panel-sub {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.45;
      }
      .kpi {
        padding: 18px;
        position: relative;
        overflow: hidden;
        min-height: 132px;
      }
      .kpi:after {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        right: -42px;
        top: -38px;
        background: var(--glow, rgba(71, 199, 178, 0.12));
        filter: blur(2px);
      }
      .kpi-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.11em;
        color: var(--muted);
        font-weight: 750;
      }
      .kpi-value {
        font-size: 29px;
        letter-spacing: -0.04em;
        font-weight: 880;
        margin: 9px 0 6px;
      }
      .kpi-foot {
        font-size: 11px;
        color: var(--muted);
      }
      .up {
        color: var(--green);
      }
      .down {
        color: var(--red);
      }
      .chart-wrap {
        padding: 10px 20px 20px;
      }
      .bar-chart {
        height: 260px;
        display: flex;
        align-items: flex-end;
        gap: 14px;
        border-bottom: 1px solid var(--line);
        padding: 22px 4px 0;
      }
      .bar-item {
        flex: 1;
        height: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        position: relative;
        min-width: 52px;
      }
      .bar {
        width: min(50px, 74%);
        min-height: 5px;
        border-radius: 10px 10px 3px 3px;
        background: linear-gradient(180deg, var(--brand-3), var(--brand-2));
        box-shadow: 0 10px 26px rgba(47, 128, 237, 0.18);
        position: relative;
        transition: 0.35s ease;
      }
      .bar.negative {
        background: linear-gradient(180deg, #ff9aa7, #b83250);
      }
      .bar:hover {
        filter: brightness(1.12);
      }
      .bar-tooltip {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        font-size: 10px;
        background: #04101d;
        border: 1px solid var(--line);
        padding: 5px 7px;
        border-radius: 7px;
        opacity: 0;
        pointer-events: none;
        white-space: nowrap;
      }
      .bar:hover .bar-tooltip {
        opacity: 1;
      }
      .bar-label {
        position: absolute;
        bottom: -29px;
        font-size: 10px;
        color: var(--muted);
        text-align: center;
        max-width: 76px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .mix-list {
        padding: 16px 20px 20px;
        display: grid;
        gap: 15px;
      }
      .mix-row {
        display: grid;
        grid-template-columns: 92px 1fr 44px;
        gap: 10px;
        align-items: center;
        font-size: 12px;
      }
      .mix-row span:first-child {
        color: #c9d4e0;
      }
      .mix-track {
        height: 8px;
        background: #13253a;
        border-radius: 999px;
        overflow: hidden;
      }
      .mix-track i {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--brand), var(--brand-2));
      }
      .mix-row b {
        text-align: right;
      }
      .activity {
        padding: 8px 20px 18px;
      }
      .activity-item {
        display: grid;
        grid-template-columns: 38px 1fr auto;
        gap: 11px;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
      }
      .activity-item:last-child {
        border: 0;
      }
      .activity-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        display: grid;
        place-items: center;
        background: rgba(71, 199, 178, 0.1);
        border: 1px solid rgba(71, 199, 178, 0.14);
        font-size: 16px;
      }
      .activity-name {
        font-size: 13px;
        font-weight: 720;
        margin-bottom: 2px;
      }
      .activity-meta {
        font-size: 11px;
        color: var(--muted);
      }
      .activity-value {
        font-size: 13px;
        font-weight: 800;
      }
      .empty {
        padding: 46px 20px;
        text-align: center;
        color: var(--muted);
      }
      .empty strong {
        display: block;
        color: #e8eff7;
        margin-bottom: 6px;
        font-size: 15px;
      }
      .empty-icon {
        font-size: 34px;
        margin-bottom: 8px;
        opacity: 0.7;
      }
      .toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 16px;
      }
      .toolbar-left,
      .toolbar-right {
        display: flex;
        gap: 9px;
        align-items: center;
        flex-wrap: wrap;
      }
      .field,
      .select,
      .textarea {
        width: 100%;
        border: 1px solid var(--line-strong);
        background: #071524;
        color: #f3f7fb;
        border-radius: 12px;
        min-height: 44px;
        padding: 0 13px;
        outline: none;
        transition: 0.2s;
      }
      .field:focus,
      .select:focus,
      .textarea:focus {
        border-color: rgba(71, 199, 178, 0.65);
        box-shadow: 0 0 0 3px rgba(71, 199, 178, 0.08);
      }
      .textarea {
        padding: 12px 13px;
        min-height: 94px;
        resize: vertical;
      }
      .search {
        min-width: 260px;
        padding-left: 38px;
      }
      .search-wrap {
        position: relative;
      }
      .search-wrap svg {
        position: absolute;
        left: 12px;
        top: 13px;
        width: 18px;
        stroke: var(--muted);
        pointer-events: none;
      }
      .show-selector {
        display: flex;
        gap: 10px;
        overflow: auto;
        padding: 2px 1px 12px;
        scrollbar-width: thin;
      }
      .show-chip {
        flex: 0 0 auto;
        border: 1px solid var(--line);
        background: rgba(11, 26, 44, 0.84);
        border-radius: 14px;
        padding: 12px 14px;
        min-width: 190px;
        text-align: left;
        color: #dbe5ef;
      }
      .show-chip.active {
        border-color: rgba(71, 199, 178, 0.55);
        background: linear-gradient(
          145deg,
          rgba(71, 199, 178, 0.14),
          rgba(47, 128, 237, 0.08)
        );
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
      }
      .show-chip strong {
        display: block;
        font-size: 13px;
      }
      .show-chip span {
        font-size: 10px;
        color: var(--muted);
        margin-top: 4px;
        display: block;
      }
      .show-hero {
        padding: 22px;
        background: linear-gradient(
          135deg,
          rgba(71, 199, 178, 0.13),
          rgba(47, 128, 237, 0.07) 52%,
          rgba(180, 156, 255, 0.05)
        );
        border: 1px solid rgba(71, 199, 178, 0.18);
        border-radius: 22px;
        margin-bottom: 16px;
        position: relative;
        overflow: hidden;
      }
      .show-hero:after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(71, 199, 178, 0.07);
        right: -90px;
        top: -120px;
      }
      .show-hero-top {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        align-items: flex-start;
        position: relative;
        z-index: 1;
      }
      .show-hero h2 {
        font-size: 25px;
        letter-spacing: -0.03em;
        margin-bottom: 4px;
      }
      .show-meta {
        color: var(--muted);
        font-size: 12px;
      }
      .show-stats {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
        margin-top: 20px;
        position: relative;
        z-index: 1;
      }
      .stat-box {
        padding: 13px 14px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(4, 16, 29, 0.42);
      }
      .stat-box label {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--muted);
        font-weight: 750;
      }
      .stat-box b {
        display: block;
        font-size: 18px;
        margin-top: 5px;
      }
      .table-card {
        overflow: hidden;
      }
      .table-scroll {
        overflow: auto;
      }
      .data-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 980px;
      }
      .data-table th {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--muted);
        font-weight: 780;
        text-align: left;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
        background: rgba(4, 15, 27, 0.35);
      }
      .data-table td {
        padding: 13px 14px;
        border-bottom: 1px solid var(--line);
        font-size: 12px;
        vertical-align: middle;
      }
      .data-table tr:last-child td {
        border-bottom: 0;
      }
      .data-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.018);
      }
      .card-name-cell strong {
        display: block;
        font-size: 13px;
      }
      .card-name-cell small {
        color: var(--muted);
        display: block;
        margin-top: 3px;
      }
      .money {
        font-variant-numeric: tabular-nums;
        font-weight: 730;
      }
      .positive {
        color: var(--green);
      }
      .negative {
        color: var(--red);
      }
      .status {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border-radius: 999px;
        padding: 5px 9px;
        font-size: 10px;
        font-weight: 750;
        border: 1px solid transparent;
      }
      .status:before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
      }
      .status.sold {
        color: #8ff1b2;
        background: rgba(88, 214, 141, 0.09);
        border-color: rgba(88, 214, 141, 0.14);
      }
      .status.inventory {
        color: #ffd282;
        background: rgba(244, 191, 89, 0.08);
        border-color: rgba(244, 191, 89, 0.14);
      }
      .status.pc {
        color: #9fc3ff;
        background: rgba(47, 128, 237, 0.09);
        border-color: rgba(47, 128, 237, 0.14);
      }
      .status.grading {
        color: #d2c3ff;
        background: rgba(180, 156, 255, 0.09);
        border-color: rgba(180, 156, 255, 0.14);
      }
      .actions {
        display: flex;
        gap: 6px;
      }
      .action {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        border: 1px solid var(--line);
        background: #091829;
        color: #bcc9d8;
        display: grid;
        place-items: center;
      }
      .action:hover {
        color: #fff;
        border-color: rgba(71, 199, 178, 0.4);
      }
      .action svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
      }
      .collection-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
      }
      .collect-card {
        border: 1px solid var(--line);
        background: linear-gradient(180deg, #10233a, #0a1829);
        border-radius: 18px;
        overflow: hidden;
        transition: 0.25s ease;
        min-width: 0;
      }
      .collect-card:hover {
        transform: translateY(-3px);
        border-color: rgba(71, 199, 178, 0.3);
        box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
      }
      .collect-image {
        aspect-ratio: 4/3;
        background: linear-gradient(145deg, #132944, #091627);
        display: grid;
        place-items: center;
        overflow: hidden;
        position: relative;
      }
      .collect-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
      }
      .collect-placeholder {
        width: 60px;
        height: 82px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 7px;
        background: linear-gradient(
          145deg,
          rgba(255, 255, 255, 0.07),
          rgba(255, 255, 255, 0.01)
        );
        display: grid;
        place-items: center;
        font-size: 22px;
        color: var(--muted);
      }
      .collect-badge {
        position: absolute;
        left: 10px;
        top: 10px;
      }
      .collect-body {
        padding: 14px;
      }
      .collect-title {
        font-weight: 780;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .collect-meta {
        color: var(--muted);
        font-size: 10px;
        margin: 5px 0 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .collect-values {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        border-top: 1px solid var(--line);
        padding-top: 11px;
      }
      .collect-values label {
        font-size: 9px;
        text-transform: uppercase;
        color: var(--muted);
        letter-spacing: 0.08em;
      }
      .collect-values b {
        display: block;
        font-size: 13px;
        margin-top: 3px;
      }
      .collect-foot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
      }
      .collect-location {
        font-size: 10px;
        color: var(--muted);
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .list-view .collection-grid {
        display: block;
      }
      .list-view .collect-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        margin-bottom: 10px;
      }
      .list-view .collect-image {
        aspect-ratio: auto;
        min-height: 120px;
      }
      .list-view .collect-body {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) 1fr auto;
        align-items: center;
        gap: 18px;
      }
      .list-view .collect-meta {
        margin-bottom: 0;
      }
      .list-view .collect-values {
        border-top: 0;
        padding-top: 0;
        min-width: 220px;
      }
      .list-view .collect-foot {
        margin-top: 0;
        justify-content: flex-end;
        gap: 12px;
      }
      .quick-add-layout {
        grid-template-columns: minmax(360px, 0.8fr) minmax(480px, 1.2fr);
      }
      .upload-card {
        padding: 20px;
      }
      .upload-zone {
        min-height: 420px;
        border: 1.5px dashed rgba(71, 199, 178, 0.42);
        border-radius: 18px;
        background: linear-gradient(
          145deg,
          rgba(71, 199, 178, 0.05),
          rgba(47, 128, 237, 0.025)
        );
        display: grid;
        place-items: center;
        text-align: center;
        overflow: hidden;
        position: relative;
      }
      .upload-zone.drag {
        border-color: var(--brand);
        background: rgba(71, 199, 178, 0.08);
      }
      .upload-zone img {
        max-width: 100%;
        max-height: 400px;
        object-fit: contain;
        padding: 15px;
      }
      .upload-placeholder {
        padding: 26px;
      }
      .upload-placeholder .big {
        font-size: 44px;
        margin-bottom: 10px;
      }
      .upload-placeholder h3 {
        margin-bottom: 5px;
      }
      .upload-placeholder p {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
        max-width: 320px;
        margin: 0 auto;
      }
      .upload-tools {
        display: flex;
        gap: 9px;
        justify-content: center;
        margin-top: 14px;
        flex-wrap: wrap;
      }
      .form-card {
        padding: 22px;
      }
      .form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
      }
      .form-group label {
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
        margin: 0 0 7px;
        font-weight: 720;
      }
      .form-group.full {
        grid-column: 1/-1;
      }
      .form-section {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--brand-3);
        font-weight: 800;
        grid-column: 1/-1;
        padding-top: 5px;
      }
      .form-actions {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        margin-top: 18px;
        flex-wrap: wrap;
      }
      .report-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
      }
      .report-card {
        padding: 20px;
      }
      .report-value {
        font-size: 26px;
        font-weight: 860;
        letter-spacing: -0.04em;
        margin: 8px 0;
      }
      .report-note {
        font-size: 11px;
        color: var(--muted);
      }
      .breakdown {
        display: grid;
        gap: 11px;
        margin-top: 16px;
      }
      .break-row {
        display: grid;
        grid-template-columns: 110px 1fr 50px;
        gap: 10px;
        align-items: center;
        font-size: 11px;
      }
      .break-track {
        height: 7px;
        border-radius: 999px;
        background: #13263a;
        overflow: hidden;
      }
      .break-track span {
        height: 100%;
        display: block;
        background: linear-gradient(90deg, var(--brand), var(--brand-2));
        border-radius: inherit;
      }
      .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(1, 7, 13, 0.72);
        backdrop-filter: blur(8px);
        z-index: 100;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
      }
      .modal-backdrop.show {
        display: flex;
      }
      .modal {
        width: min(760px, 100%);
        max-height: 92vh;
        overflow: auto;
        background: linear-gradient(180deg, #11243a, #081626);
        border: 1px solid var(--line-strong);
        border-radius: 22px;
        box-shadow: var(--shadow);
      }
      .modal-head {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        align-items: flex-start;
        padding: 20px;
        border-bottom: 1px solid var(--line);
      }
      .modal-head h3 {
        margin: 0 0 4px;
        font-size: 18px;
      }
      .modal-head p {
        margin: 0;
        color: var(--muted);
        font-size: 11px;
      }
      .modal-body {
        padding: 20px;
      }
      .modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 9px;
        padding: 16px 20px;
        border-top: 1px solid var(--line);
      }
      .toast-wrap {
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 200;
        display: grid;
        gap: 8px;
      }
      .toast {
        background: #0c1d30;
        border: 1px solid var(--line-strong);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
        border-radius: 13px;
        padding: 12px 14px;
        min-width: 260px;
        display: flex;
        gap: 10px;
        align-items: flex-start;
        animation: toastIn 0.25s ease;
      }
      .toast b {
        font-size: 12px;
      }
      .toast p {
        font-size: 10px;
        color: var(--muted);
        margin: 3px 0 0;
      }
      .toast-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--brand);
        margin-top: 4px;
        box-shadow: 0 0 12px var(--brand);
      }
      @keyframes toastIn {
        from {
          opacity: 0;
          transform: translateY(10px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      .mobile-head {
        display: none;
      }

      .save-status {
        position: fixed;
        right: 18px;
        top: 16px;
        z-index: 60;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 32px;
        padding: 0 11px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: rgba(5, 16, 29, 0.82);
        backdrop-filter: blur(16px);
        color: var(--muted);
        font-size: 10px;
        font-weight: 750;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
        pointer-events: none;
      }
      .save-status:before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--green);
        box-shadow: 0 0 12px rgba(88, 214, 141, 0.7);
      }
      .show-actions-row {
        display: flex;
        gap: 9px;
        flex-wrap: wrap;
        margin: 14px 0 16px;
      }
      .show-summary-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin-top: 16px;
      }
      .summary-panel {
        padding: 18px;
      }
      .summary-list {
        display: grid;
        gap: 10px;
        margin-top: 14px;
      }
      .summary-row {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        align-items: center;
        padding-bottom: 9px;
        border-bottom: 1px solid var(--line);
        font-size: 11px;
      }
      .summary-row:last-child {
        padding-bottom: 0;
        border-bottom: 0;
      }
      .summary-row span {
        color: var(--muted);
      }
      .summary-row b {
        font-size: 12px;
        text-align: right;
      }
      .ocr-panel {
        margin-top: 14px;
        padding: 15px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(4, 16, 29, 0.38);
      }
      .ocr-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
      }
      .ocr-title { font-size: 12px; font-weight: 800; }
      .ocr-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
      .ocr-method-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: #0a1828; color: #b9c7d6; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
      .ocr-method-badge.cloud { border-color: rgba(61, 232, 214, .38); background: rgba(61, 232, 214, .10); color: #79f2e6; }
      .ocr-method-badge.local { border-color: rgba(117, 156, 255, .38); background: rgba(117, 156, 255, .10); color: #a9c0ff; }
      .ocr-method-badge.fallback { border-color: rgba(255, 190, 92, .4); background: rgba(255, 190, 92, .10); color: #ffd18a; }
      .ocr-method-badge.error { border-color: rgba(255, 104, 128, .42); background: rgba(255, 104, 128, .10); color: #ff9eb0; }
      .ocr-sub { font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
      .ocr-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
      .ocr-actions .btn.ghost { background: transparent; }
      .ocr-privacy { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.06); color: #71849a; font-size: 9px; line-height: 1.45; }
      .ocr-progress { height: 7px; background: #13253a; border-radius: 999px; overflow: hidden; margin-top: 12px; }
      .ocr-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .25s ease; }
      .ocr-result { margin-top: 10px; font-size: 11px; color: #c9d4e0; line-height: 1.5; }
      .ocr-result strong { color: var(--green); }
      .ocr-raw { margin-top: 10px; }
      .ocr-raw summary { cursor: pointer; color: var(--muted); font-size: 10px; }
      .ocr-raw pre { white-space: pre-wrap; word-break: break-word; max-height: 150px; overflow: auto; padding: 10px; border-radius: 10px; background: #06111f; border: 1px solid var(--line); font-size: 9px; color: #b8c7d6; }
      .field:disabled, .select:disabled { opacity: .55; cursor: not-allowed; }
      .hidden { display: none !important; }
      .show-mobile-cards {
        display: none;
      }
      .show-sale-card {
        border: 1px solid var(--line);
        background: linear-gradient(
          180deg,
          rgba(15, 34, 55, 0.96),
          rgba(7, 20, 35, 0.96)
        );
        border-radius: 17px;
        padding: 14px;
      }
      .show-sale-top {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: flex-start;
      }
      .show-sale-name {
        font-weight: 800;
        font-size: 13px;
        line-height: 1.35;
      }
      .show-sale-meta {
        color: var(--muted);
        font-size: 10px;
        margin-top: 4px;
      }
      .show-sale-money {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 13px 0;
      }
      .show-sale-money div {
        border: 1px solid var(--line);
        background: rgba(4, 15, 27, 0.42);
        border-radius: 11px;
        padding: 9px;
      }
      .show-sale-money label {
        display: block;
        color: var(--muted);
        font-size: 8px;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        margin-bottom: 4px;
      }
      .show-sale-money b {
        font-size: 12px;
      }
      .show-sale-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }
      .quick-sell {
        color: #051b18;
        background: linear-gradient(135deg, var(--brand-3), var(--brand));
        border-color: transparent;
      }
      .mobile-bottom-nav {
        display: none;
      }
      .print-only {
        display: none;
      }
      @media print {
        body {
          background: #fff !important;
          color: #111 !important;
        }
        body:before,
        .sidebar,
        .mobile-head,
        .mobile-bottom-nav,
        .save-status,
        .demo-banner,
        .topbar,
        .show-selector,
        .show-actions-row,
        #showAddArea,
        .table-card,
        .toast-wrap {
          display: none !important;
        }
        .app {
          display: block;
        }
        .workspace {
          padding: 0;
          max-width: none;
        }
        .view {
          display: none !important;
        }
        #view-shows {
          display: block !important;
        }
        .show-hero,
        .panel {
          background: #fff !important;
          color: #111 !important;
          box-shadow: none !important;
          border-color: #bbb !important;
        }
        .show-meta,
        .panel-sub,
        .summary-row span,
        .stat-box label {
          color: #555 !important;
        }
        .show-summary-grid {
          grid-template-columns: repeat(3, 1fr);
        }
        .print-only {
          display: block !important;
        }
      }
      @media (max-width: 680px) {
        .ocr-top { align-items: flex-start; }
        .ocr-actions { width: 100%; justify-content: stretch; }
        .ocr-actions .btn { flex: 1; }
      }
      @media (max-width: 1250px) {
        .kpi-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .collection-grid {
          grid-template-columns: repeat(3, 1fr);
        }
        .show-stats {
          grid-template-columns: repeat(3, 1fr);
        }
        .split {
          grid-template-columns: 1fr;
        }
        .report-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }
      @media (max-width: 930px) {
        .app {
          grid-template-columns: 1fr;
        }
        .sidebar {
          position: fixed;
          left: 0;
          top: 0;
          bottom: 0;
          width: 276px;
          transform: translateX(-102%);
          transition: 0.28s ease;
          box-shadow: 20px 0 50px rgba(0, 0, 0, 0.38);
        }
        .sidebar.open {
          transform: none;
        }
        .workspace {
          padding: 18px 18px 56px;
        }
        .mobile-head {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-bottom: 18px;
        }
        .mobile-brand {
          display: flex;
          align-items: center;
          gap: 9px;
          font-weight: 820;
        }
        .mobile-brand img {
          width: 38px;
          height: 38px;
        }
        .menu-btn {
          width: 42px;
          height: 42px;
          border-radius: 12px;
          border: 1px solid var(--line);
          background: #0b1b2d;
          color: #fff;
        }
        .topbar {
          align-items: flex-start;
        }
        .top-actions {
          display: none;
        }
        .collection-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .quick-add-layout {
          grid-template-columns: 1fr;
        }
        .report-grid {
          grid-template-columns: 1fr 1fr;
        }
        .list-view .collect-card {
          grid-template-columns: 90px 1fr;
        }
        .list-view .collect-body {
          grid-template-columns: 1fr;
        }
        .list-view .collect-values {
          min-width: 0;
        }
        .list-view .collect-foot {
          justify-content: space-between;
        }
        body {
          padding-bottom: 78px;
        }
        .save-status {
          top: 12px;
          right: 66px;
        }
        .mobile-bottom-nav {
          position: fixed;
          display: grid;
          grid-template-columns: repeat(5, minmax(0, 1fr));
          left: 10px;
          right: 10px;
          bottom: calc(9px + env(safe-area-inset-bottom));
          z-index: 80;
          min-height: 62px;
          border: 1px solid var(--line-strong);
          background: rgba(5, 15, 27, 0.92);
          backdrop-filter: blur(24px);
          border-radius: 20px;
          box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
          overflow: hidden;
        }
        .mobile-nav-btn {
          appearance: none;
          border: 0;
          background: transparent;
          color: var(--muted);
          display: grid;
          place-items: center;
          align-content: center;
          gap: 3px;
          font-size: 9px;
          font-weight: 750;
          min-width: 0;
        }
        .mobile-nav-btn b {
          font-size: 19px;
          line-height: 1;
          font-weight: 600;
        }
        .mobile-nav-btn.active {
          color: var(--brand-3);
          background: rgba(71, 199, 178, 0.08);
        }
        .mobile-nav-btn.add-mobile {
          margin: 7px 4px;
          border-radius: 15px;
          color: #04131b;
          background: linear-gradient(135deg, var(--brand), #3a9ad9);
        }
      }
      @media (max-width: 620px) {
        .workspace {
          padding: 14px 12px 42px;
        }
        .page-title {
          font-size: 29px;
        }
        .kpi-grid,
        .two,
        .report-grid {
          grid-template-columns: 1fr;
        }
        .collection-grid {
          grid-template-columns: 1fr;
        }
        .show-stats {
          grid-template-columns: repeat(2, 1fr);
        }
        .show-hero-top {
          display: block;
        }
        .show-hero-top .actions {
          margin-top: 12px;
        }
        .toolbar {
          align-items: stretch;
        }
        .toolbar-left,
        .toolbar-right {
          width: 100%;
        }
        .search-wrap,
        .search {
          width: 100%;
          min-width: 0;
        }
        .form-grid {
          grid-template-columns: 1fr;
        }
        .form-group.full,
        .form-section {
          grid-column: auto;
        }
        .panel-head {
          display: block;
        }
        .panel-head .btn {
          margin-top: 10px;
        }
        .list-view .collect-card {
          display: block;
        }
        .list-view .collect-image {
          min-height: 180px;
        }
        .list-view .collect-body {
          display: block;
        }
        .list-view .collect-values {
          margin-top: 12px;
          border-top: 1px solid var(--line);
          padding-top: 10px;
        }
        .list-view .collect-foot {
          margin-top: 12px;
        }
        .demo-banner {
          align-items: flex-start;
          flex-direction: column;
        }
        .show-summary-grid {
          grid-template-columns: 1fr;
        }
        .show-mobile-cards {
          display: grid;
          gap: 10px;
          padding: 14px;
        }
        .show-desktop-table {
          display: none;
        }
        .show-sale-actions .btn {
          flex: 1;
          min-width: 92px;
        }
        .show-actions-row .btn {
          flex: 1;
        }
        .show-sale-money {
          grid-template-columns: repeat(3, 1fr);
        }
        .save-status {
          display: none;
        }
        .modal {
          max-height: 92vh;
          border-radius: 22px 22px 0 0;
          margin-top: auto;
        }
        .modal-backdrop {
          align-items: flex-end;
          padding: 0;
        }
        .modal-actions {
          position: sticky;
          bottom: 0;
          background: #0b1b2d;
        }
      }

/* Premium V6 performance refinements */
.dashboard-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -2px 0 16px;
}
.pulse-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 35, 58, .82), rgba(7, 20, 35, .78));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.pulse-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.pulse-value {
  margin-top: 7px;
  color: #f6f9fc;
  font-size: 15px;
  font-weight: 820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pulse-detail {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}
.pulse-detail span,
.pulse-detail small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pulse-detail small { color: var(--muted-2); }

.chart-wrap { padding: 10px 20px 20px; }
.bar-chart {
  height: auto;
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 12px;
  border-bottom: 0;
  padding: 8px 0 0;
}
.profit-show-row {
  display: grid;
  grid-template-columns: minmax(155px, .8fr) minmax(160px, 1.25fr) 88px;
  gap: 14px;
  align-items: center;
}
.profit-show-copy { min-width: 0; }
.profit-show-copy strong {
  display: block;
  color: #edf4fa;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profit-show-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profit-show-track,
.report-profit-track,
.report-break-track,
.performance-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #13253a;
}
.profit-show-track i,
.report-profit-track i,
.report-break-track i,
.performance-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 18px rgba(71,199,178,.2);
}
.profit-show-track i.negative,
.report-profit-track i.negative {
  background: linear-gradient(90deg, #b83250, #ff7a8a);
}
.profit-show-row > b {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.eyebrow.mini { margin-bottom: 7px; font-size: 8px; }
.show-performance-strip {
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) minmax(160px, .55fr) minmax(160px, .55fr);
  gap: 12px;
  margin: 16px 0;
}
.show-performance-strip > div {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 22, 38, .72);
}
.show-performance-strip span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.show-performance-strip b {
  float: right;
  color: #f4f8fc;
  font-size: 14px;
}
.show-performance-strip small {
  display: block;
  clear: both;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}
.show-performance-strip .performance-track {
  clear: both;
  height: 7px;
  margin-top: 10px;
}
.performance-metric b {
  float: none;
  display: block;
  margin-top: 7px;
  font-size: 20px;
  letter-spacing: -.03em;
}
.performance-metric small { margin-top: 4px; }

.show-add-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.form-tip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(71,199,178,.18);
  border-radius: 999px;
  color: var(--brand-3);
  background: rgba(71,199,178,.07);
  font-size: 9px;
  font-weight: 750;
}
.inventory-head { padding-bottom: 12px; }
.show-inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--line);
}
.show-inventory-toolbar .search-wrap { flex: 1; max-width: 430px; }
.show-inventory-toolbar .search { width: 100%; min-width: 0; }
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4,15,27,.52);
}
.segmented button {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 8px 11px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.segmented button.active {
  color: #06131e;
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
}

.report-visual-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr) minmax(250px, .75fr);
  align-items: stretch;
}
.report-chart-panel { min-width: 0; }
.report-profit-list,
.report-breakdown {
  display: grid;
  gap: 13px;
  padding: 4px 20px 20px;
}
.report-profit-row {
  display: grid;
  grid-template-columns: minmax(125px, .9fr) minmax(110px, 1fr) 80px;
  gap: 12px;
  align-items: center;
}
.report-profit-row > div:first-child,
.report-break-row > div:first-child { min-width: 0; }
.report-profit-row strong,
.report-break-row strong {
  display: block;
  color: #eaf2f9;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-profit-row span,
.report-break-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}
.report-profit-row > b,
.report-break-row > b {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.report-break-row {
  display: grid;
  grid-template-columns: minmax(105px, .85fr) minmax(85px, 1fr) 74px;
  gap: 10px;
  align-items: center;
}
.report-break-track { height: 7px; }
.report-break-track i {
  background: linear-gradient(90deg, var(--brand-2), var(--purple));
}

@media (max-width: 1250px) {
  .dashboard-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-visual-grid { grid-template-columns: 1fr 1fr; }
  .report-visual-grid > :first-child { grid-column: 1 / -1; }
  .break-even-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 930px) {
  .show-performance-strip { grid-template-columns: 1fr 1fr; }
  .show-performance-strip > :first-child { grid-column: 1 / -1; }
  .report-visual-grid { grid-template-columns: 1fr; }
  .report-visual-grid > :first-child { grid-column: auto; }
}
@media (max-width: 620px) {
  .dashboard-pulse { grid-template-columns: 1fr; }
  .profit-show-row { grid-template-columns: minmax(0, 1fr) 70px; gap: 9px; }
  .profit-show-track { grid-column: 1 / -1; grid-row: 2; }
  .profit-show-row > b { grid-column: 2; grid-row: 1; }
  .show-performance-strip { grid-template-columns: 1fr; }
  .show-performance-strip > :first-child { grid-column: auto; }
  .show-add-heading { display: block; }
  .form-tip { display: inline-block; margin-top: 10px; }
  .show-inventory-toolbar { align-items: stretch; flex-direction: column; padding: 0 14px 14px; }
  .show-inventory-toolbar .search-wrap { max-width: none; width: 100%; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .report-profit-row { grid-template-columns: minmax(0, 1fr) 74px; }
  .report-profit-track { grid-column: 1 / -1; grid-row: 2; }
  .report-profit-row > b { grid-column: 2; grid-row: 1; }
  .report-break-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .report-break-track { grid-column: 1 / -1; grid-row: 2; }
  .report-break-row > b { grid-column: 2; grid-row: 1; }
}

/* Premium V9: break-even command center */
.break-even-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 128, 237, .16), transparent 34%),
    linear-gradient(145deg, rgba(12, 35, 57, .96), rgba(6, 21, 37, .96)) !important;
  border-color: rgba(71, 199, 178, .2) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 14px 34px rgba(0,0,0,.14);
}
.break-even-panel:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -95px;
  bottom: -115px;
  border-radius: 50%;
  background: rgba(71, 199, 178, .06);
  pointer-events: none;
}
.break-even-panel.close {
  border-color: rgba(244, 191, 89, .3) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 191, 89, .12), transparent 36%),
    linear-gradient(145deg, rgba(31, 35, 43, .96), rgba(7, 22, 37, .96)) !important;
}
.break-even-panel.profitable {
  border-color: rgba(88, 214, 141, .32) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(88, 214, 141, .15), transparent 36%),
    linear-gradient(145deg, rgba(8, 39, 42, .96), rgba(6, 22, 36, .96)) !important;
}
.break-even-panel.empty { opacity: .92; }
.break-even-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.break-even-kicker {
  display: block;
  color: var(--brand-3) !important;
}
.break-even-top h3 {
  margin: 7px 0 0;
  color: #f5f9fc;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.18;
  letter-spacing: -.025em;
  max-width: 620px;
}
.break-even-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(71, 199, 178, .22);
  border-radius: 999px;
  background: rgba(71, 199, 178, .08);
  color: var(--brand-3) !important;
  font-size: 9px !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
}
.break-even-status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.break-even-panel.close .break-even-status {
  color: #ffd282 !important;
  border-color: rgba(244, 191, 89, .22);
  background: rgba(244, 191, 89, .08);
}
.break-even-panel.profitable .break-even-status {
  color: #8ff1b2 !important;
  border-color: rgba(88, 214, 141, .22);
  background: rgba(88, 214, 141, .08);
}
.break-even-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}
.break-even-amounts > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 12px;
  background: rgba(2, 12, 23, .32);
}
.break-even-amounts small {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 8px !important;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.break-even-amounts b {
  float: none !important;
  display: block;
  margin-top: 5px;
  font-size: 14px !important;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.break-even-track {
  position: relative;
  z-index: 1;
  height: 12px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 999px;
  background: rgba(2, 12, 23, .6);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.3);
}
.break-even-track i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 20px rgba(71,199,178,.32);
  transition: width .45s ease;
}
.break-even-panel.close .break-even-track i {
  background: linear-gradient(90deg, #e0a63d, #ffd282);
  box-shadow: 0 0 20px rgba(244,191,89,.3);
}
.break-even-panel.profitable .break-even-track i {
  background: linear-gradient(90deg, #3fba76, #8ff1b2);
  box-shadow: 0 0 20px rgba(88,214,141,.35);
}
.break-even-marker {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 3px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 8px rgba(255,255,255,.35);
}
.break-even-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
}
.break-even-footer b {
  float: none !important;
  font-size: inherit !important;
  margin-left: 4px;
}

/* Payment-driven sale fields */
#showSoldGroup,
#mSoldGroup,
#mSoldDateGroup {
  transition: opacity .18s ease, transform .18s ease;
}

@media (max-width: 620px) {
  .break-even-top { display: block; }
  .break-even-status { margin-top: 11px; }
  .break-even-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .break-even-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}


/* Premium V11: clarity, lifecycle, and focused workflows */
.show-chip-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.show-chip-top strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.show-status{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:5px 8px;border-radius:999px;border:1px solid var(--line);font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.show-status.active{color:#8ff1b2;border-color:rgba(88,214,141,.25);background:rgba(88,214,141,.08)}.show-status.upcoming{color:#9fd6ff;border-color:rgba(47,128,237,.25);background:rgba(47,128,237,.08)}.show-status.completed{color:#d2c8ff;border-color:rgba(180,156,255,.25);background:rgba(180,156,255,.08)}.show-status.archived{color:#aeb9c6;background:rgba(148,163,184,.06)}
.compact-show-hero{margin-bottom:12px}.show-section-tabs{display:flex;gap:6px;overflow:auto;margin:0 0 16px;padding:5px;border:1px solid var(--line);border-radius:15px;background:rgba(7,20,35,.72);scrollbar-width:none}.show-section-tabs::-webkit-scrollbar{display:none}.show-section-tabs button{flex:1;min-width:110px;border:0;border-radius:11px;padding:11px 16px;background:transparent;color:var(--muted);font-weight:760;cursor:pointer}.show-section-tabs button.active{color:#06131e;background:linear-gradient(135deg,var(--brand-3),var(--brand));box-shadow:0 8px 24px rgba(47,128,237,.16)}.show-section-content{min-width:0}.overview-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;margin-top:16px}.btn.warning{border-color:rgba(244,191,89,.35);color:#ffd282}.closed-show-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;margin-bottom:16px;border-color:rgba(180,156,255,.22);background:rgba(180,156,255,.05)}.closed-show-notice p{margin:4px 0 0;color:var(--muted);font-size:11px}.show-expense-layout{align-items:start}.expense-summary-card{padding:22px;position:sticky;top:18px}.summary-row.total{margin-top:4px;padding-top:12px;border-top:1px solid var(--line-strong);border-bottom:0}.summary-row.total span,.summary-row.total b{color:#f5f8fc;font-weight:820}.summary-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-bottom:14px}
.compact-entry-grid{align-items:end}.sale-details{grid-column:1/-1;padding:14px;border:1px solid rgba(71,199,178,.15);background:rgba(71,199,178,.035);border-radius:14px}.sale-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.row-action-wrap{display:flex;align-items:center;justify-content:flex-end;gap:8px}.row-menu{position:relative}.row-menu summary{list-style:none;cursor:pointer;display:grid;place-items:center;min-width:36px;height:34px;border:1px solid var(--line);border-radius:10px;color:#c9d4e0;background:#0a192a;font-weight:900;letter-spacing:.08em}.row-menu summary::-webkit-details-marker{display:none}.row-menu-pop{position:absolute;right:0;top:calc(100% + 7px);z-index:30;min-width:150px;padding:6px;border:1px solid var(--line-strong);border-radius:12px;background:#071522;box-shadow:0 18px 40px rgba(0,0,0,.4)}.row-menu-pop button{display:block;width:100%;border:0;background:transparent;color:#dce6ef;text-align:left;padding:9px 10px;border-radius:8px;cursor:pointer;font:inherit;font-size:10px}.row-menu-pop button:hover{background:rgba(255,255,255,.05)}.row-menu-pop .danger-text{color:#ff9aa7}.mobile-row-menu{margin-left:auto}.mobile-row-menu summary{display:flex;padding:0 12px;font-size:10px;letter-spacing:0}
.mobile-show-cta{display:none}.polished-empty p{max-width:430px;margin:7px auto 14px;color:var(--muted);line-height:1.5}.report-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin-bottom:16px}.report-filter-controls{display:flex;align-items:center;gap:10px}.report-filter-controls>span{font-size:10px;color:var(--muted);white-space:nowrap}.report-filter-controls .select{min-width:190px}.report-grid-primary{grid-template-columns:repeat(4,minmax(0,1fr))}.beta-badge{display:inline-flex;margin-left:6px;padding:3px 6px;border-radius:999px;background:rgba(244,191,89,.1);border:1px solid rgba(244,191,89,.22);color:#ffd282;font-size:7px;letter-spacing:.08em;text-transform:uppercase;vertical-align:middle}
@media(max-width:1250px){.report-grid-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-actions{align-items:flex-start}.overview-actions .actions{justify-content:flex-end}.sale-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:930px){.overview-actions{display:block}.overview-actions .actions{margin-top:13px;justify-content:flex-start}.expense-summary-card{position:static}.show-expense-layout{grid-template-columns:1fr}.mobile-show-cta{display:block;position:fixed;right:16px;bottom:82px;z-index:90;border:0;border-radius:999px;padding:14px 19px;background:linear-gradient(135deg,var(--brand-3),var(--brand));color:#06131e;font-weight:850;box-shadow:0 18px 44px rgba(0,0,0,.38)}.report-filter-bar{align-items:flex-start}.row-menu-pop{position:fixed;right:14px;left:14px;top:auto;bottom:82px;min-width:0}.show-section-tabs{position:sticky;top:0;z-index:40;backdrop-filter:blur(12px)}}
@media(max-width:620px){.show-section-tabs button{min-width:92px;padding:10px 12px}.show-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.break-even-amounts{grid-template-columns:1fr 1fr}.sale-details-grid{grid-template-columns:1fr}.report-grid-primary{grid-template-columns:1fr}.report-filter-bar{display:block}.report-filter-controls{margin-top:12px;display:block}.report-filter-controls>span{display:block;margin-bottom:7px}.report-filter-controls .select{width:100%;min-width:0}.summary-actions{justify-content:stretch}.summary-actions .btn{flex:1}.closed-show-notice{align-items:flex-start;flex-direction:column}.show-sale-actions{align-items:center}.show-sale-actions>.btn{flex:1}.show-add-heading{display:block}.show-add-heading .form-tip{display:inline-flex;margin-top:10px}}


/* V11 visual cleanup */
.break-even-amounts{grid-template-columns:repeat(4,minmax(0,1fr))}
.glance-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line)}.glance-row:last-child{border-bottom:0}.glance-row>div:first-child{min-width:0}.glance-row .activity-name{white-space:normal}.glance-row .activity-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}.glance-row .activity-value{flex:0 0 auto;text-align:right}
.report-visual-grid{grid-template-columns:1fr 1fr}.report-visual-grid>:first-child{grid-column:1/-1}.report-break-row{grid-template-columns:minmax(145px,1.1fr) minmax(120px,1fr) minmax(112px,max-content)}.report-break-row>b{min-width:112px;white-space:nowrap;text-align:right}.report-breakdown{overflow:hidden}
@media(max-width:1250px){.break-even-amounts{grid-template-columns:repeat(2,minmax(0,1fr))}.report-visual-grid{grid-template-columns:1fr 1fr}.report-visual-grid>:first-child{grid-column:1/-1}}
@media(max-width:930px){.report-visual-grid{grid-template-columns:1fr}.report-visual-grid>:first-child{grid-column:auto}.report-break-row{grid-template-columns:minmax(125px,1fr) minmax(90px,1fr) minmax(100px,max-content)}}
@media(max-width:620px){.break-even-amounts{grid-template-columns:1fr 1fr}.glance-row .activity-meta{max-width:190px}.report-break-row{grid-template-columns:minmax(100px,1fr) minmax(70px,.8fr) minmax(88px,max-content);gap:8px}.report-break-row>b{min-width:88px}}


/* Premium V12: clarity, validation, and mobile workflow polish */
.starter-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px;padding:22px 24px;border:1px solid rgba(71,199,178,.24);border-radius:20px;background:linear-gradient(135deg,rgba(71,199,178,.10),rgba(47,128,237,.05))}.starter-panel h2{margin:5px 0 7px;font-size:22px;letter-spacing:-.03em}.starter-panel p{margin:0;color:var(--muted);font-size:12px;line-height:1.55;max-width:660px}.starter-actions{display:flex;gap:9px;flex-wrap:wrap;flex:0 0 auto}
.calculation-note{margin-bottom:16px;padding:12px 15px;border:1px solid rgba(47,128,237,.18);border-radius:13px;background:rgba(47,128,237,.055);color:var(--muted);font-size:11px;line-height:1.5}.calculation-note strong{color:#dce9f5}
.calculation-guide{display:grid;gap:11px}.calculation-guide>div{padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.018)}.calculation-guide strong{display:block;font-size:12px}.calculation-guide p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.55}
.show-section-tabs button{display:flex;align-items:center;justify-content:center;gap:7px}.show-section-tabs button em{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(148,163,184,.12);color:currentColor;font-size:8px;font-style:normal}.show-section-tabs button.active em{background:rgba(6,19,30,.14)}
.inventory-snapshot{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.inventory-snapshot>div{padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:rgba(10,27,45,.72);min-width:0}.inventory-snapshot span{display:block;color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.09em}.inventory-snapshot b{display:block;margin-top:5px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.segmented button span{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:rgba(148,163,184,.12);font-size:8px}.segmented button.active span{background:rgba(6,19,30,.13)}
.field-help{display:block;margin-top:6px;color:var(--muted);font-size:9px;line-height:1.35}
@media(max-width:930px){.starter-panel{align-items:flex-start;flex-direction:column}.starter-actions{width:100%}.starter-actions .btn{flex:1}.inventory-snapshot{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.starter-panel{padding:18px}.starter-actions{display:grid;grid-template-columns:1fr}.inventory-snapshot{grid-template-columns:1fr 1fr}.inventory-snapshot>div{padding:11px 12px}.inventory-snapshot b{font-size:13px}.calculation-note{font-size:10px}.show-section-tabs button span:first-child{white-space:nowrap}}

/* Premium V13: account access and cloud-ready sync */
.app-shell-locked { display: none !important; }
.auth-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 54px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(71,199,178,.14), transparent 31%),
    radial-gradient(circle at 92% 86%, rgba(47,128,237,.15), transparent 34%),
    #06101d;
}
.auth-gate.hidden { display: none; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.auth-orb-one { width: 410px; height: 410px; left: -210px; bottom: -180px; background: rgba(71,199,178,.07); }
.auth-orb-two { width: 520px; height: 520px; right: -250px; top: -260px; background: rgba(47,128,237,.08); }
.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .75fr);
  border: 1px solid rgba(148,163,184,.17);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 38px 100px rgba(0,0,0,.42);
  position: relative;
  z-index: 1;
  background: rgba(7,19,33,.87);
  backdrop-filter: blur(22px);
}
.auth-story { padding: clamp(34px, 6vw, 72px); min-height: 650px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, rgba(71,199,178,.08), rgba(47,128,237,.045)); border-right: 1px solid rgba(148,163,184,.13); }
.auth-brand-lockup { display: flex; gap: 13px; align-items: center; }
.auth-mark { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #04111d; font-weight: 950; letter-spacing: -.06em; font-size: 19px; background: linear-gradient(135deg, var(--brand-3), var(--brand-2)); box-shadow: 0 14px 36px rgba(47,128,237,.18); }
.auth-brand-name { font-size: 22px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.auth-brand-name span { color: var(--brand-3); }
.auth-brand-sub { color: var(--muted); font-size: 10px; margin-top: 6px; }
.auth-copy { max-width: 600px; margin: 70px 0 50px; }
.auth-copy h1 { font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.06em; margin: 15px 0 22px; max-width: 650px; }
.auth-copy p { color: #9fb0c3; line-height: 1.72; font-size: 15px; max-width: 560px; }
.auth-benefits { display: grid; gap: 13px; }
.auth-benefits > div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 13px 14px; border: 1px solid rgba(148,163,184,.11); border-radius: 15px; background: rgba(2,12,23,.24); }
.auth-benefits > div > b { color: var(--brand-3); font-size: 10px; letter-spacing: .1em; padding-top: 3px; }
.auth-benefits span { display: grid; gap: 4px; }
.auth-benefits strong { font-size: 12px; }
.auth-benefits small { color: var(--muted); line-height: 1.45; font-size: 10px; }
.auth-card { padding: clamp(28px, 5vw, 52px); display: flex; flex-direction: column; justify-content: center; background: rgba(5,15,27,.78); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); background: rgba(2,12,23,.5); border-radius: 14px; margin-bottom: 28px; }
.auth-tab { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 780; cursor: pointer; }
.auth-tab.active { color: #06131e; background: linear-gradient(135deg, var(--brand-3), var(--brand-2)); }
.auth-form { display: grid; gap: 14px; }
.auth-form.hidden { display: none; }
.auth-form-heading { margin-bottom: 5px; }
.auth-form-heading h2 { font-size: 28px; letter-spacing: -.045em; margin-bottom: 7px; }
.auth-form-heading p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-check { display: inline-flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 10px; line-height: 1.45; cursor: pointer; }
.auth-check input { accent-color: var(--brand); margin-top: 1px; }
.auth-terms { margin: 2px 0 3px; }
.text-button { border: 0; background: none; padding: 0; color: var(--brand-3); font-size: 10px; cursor: pointer; }
.auth-submit { width: 100%; min-height: 50px; margin-top: 4px; font-size: 13px; }
.auth-message { display: none; padding: 11px 12px; margin-top: 13px; border-radius: 11px; font-size: 10px; line-height: 1.5; }
.auth-message.show { display: block; }
.auth-message.error { color: #ffc2ca; border: 1px solid rgba(255,122,138,.22); background: rgba(255,122,138,.08); }
.auth-message.success { color: #9bf0c2; border: 1px solid rgba(88,214,141,.22); background: rgba(88,214,141,.08); }
.auth-mode-note { display: grid; grid-template-columns: 9px 1fr; gap: 10px; align-items: start; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.auth-mode-note > span { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 11px currentColor; }
.auth-mode-note.cloud > span { background: var(--green); }
.auth-mode-note div { display: grid; gap: 3px; }
.auth-mode-note strong { font-size: 10px; }
.auth-mode-note small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.auth-password-grid { gap: 10px; }
.account-card { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,22,38,.72); }
.account-avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #04111d; font-size: 13px; font-weight: 900; background: linear-gradient(135deg, var(--brand-3), var(--brand-2)); }
.account-copy { min-width: 0; display: grid; gap: 3px; }
.account-copy strong, .account-copy span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-copy strong { font-size: 10px; }
.account-copy span { color: var(--muted); font-size: 8px; }
.account-sync { padding: 4px 6px; border: 1px solid rgba(71,199,178,.18); border-radius: 999px; color: var(--brand-3); background: rgba(71,199,178,.07); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.account-sync.local { color: #ffd282; border-color: rgba(244,191,89,.2); background: rgba(244,191,89,.07); }

@media (max-width: 900px) {
  .auth-gate { align-items: start; padding: 16px; }
  .auth-shell { grid-template-columns: 1fr; border-radius: 23px; }
  .auth-story { min-height: auto; padding: 26px; border-right: 0; border-bottom: 1px solid rgba(148,163,184,.13); }
  .auth-copy { margin: 38px 0 24px; }
  .auth-copy h1 { font-size: clamp(34px, 10vw, 48px); }
  .auth-benefits { display: none; }
  .auth-card { padding: 26px; }
}
@media (max-width: 540px) {
  .auth-gate { padding: 0; }
  .auth-shell { min-height: 100dvh; border-radius: 0; border: 0; }
  .auth-story { padding: 22px 20px; }
  .auth-copy { margin: 28px 0 5px; }
  .auth-copy h1 { font-size: 35px; }
  .auth-copy p { display: none; }
  .auth-card { padding: 25px 20px 34px; justify-content: start; }
  .auth-password-grid { grid-template-columns: 1fr; }
}


/* Profile and secure password recovery */
.account-card-link { cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.account-card-link:hover, .account-card-link:focus-visible { border-color: rgba(71,199,178,.42); background: rgba(71,199,178,.08); transform: translateY(-1px); outline: none; }
.reset-auth-shell { max-width: 1050px; }
.profile-topbar { margin-bottom: 18px; }
.profile-hero { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 22px; margin-bottom: 16px; background: linear-gradient(135deg,rgba(71,199,178,.12),rgba(47,128,237,.07) 55%,rgba(180,156,255,.06)); }
.profile-avatar-large { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-size: 29px; font-weight: 900; color: #06131e; background: linear-gradient(135deg,var(--brand-3),var(--brand)); box-shadow: 0 16px 40px rgba(47,128,237,.2); }
.profile-hero-copy h2 { margin: 8px 0 3px; font-size: 24px; letter-spacing: -.035em; }
.profile-hero-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-hero-meta { display: grid; grid-template-columns: repeat(2,minmax(120px,1fr)); gap: 10px; }
.profile-hero-meta > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4,16,29,.35); }
.profile-hero-meta small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.profile-hero-meta b { display: block; margin-top: 5px; font-size: 12px; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.profile-panel { min-width: 0; padding-bottom: 20px; }
.profile-form { padding: 0 20px; }
.profile-form .form-actions { padding-top: 4px; }
.profile-note { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(244,191,89,.16); border-radius: 11px; background: rgba(244,191,89,.055); color: var(--muted); font-size: 10px; line-height: 1.5; }
.profile-security-actions { justify-content: flex-start; }
.profile-data-list { display: grid; gap: 0; padding: 0 20px 15px; }
.profile-data-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.profile-data-list > div:last-child { border-bottom: 0; }
.profile-data-list span { color: var(--muted); }
.profile-data-list code { max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c8d8e8; font-size: 9px; }
.profile-action-stack { display: flex; gap: 9px; flex-wrap: wrap; padding: 0 20px; }
.profile-danger-panel { border-color: rgba(255,122,138,.18); }
.profile-danger-copy { padding: 0 20px 14px; }
.profile-danger-copy strong { font-size: 12px; }
.profile-danger-copy p { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 5px 0 0; }
.profile-danger-panel > .btn { margin-left: 20px; }
#passwordResetGate .auth-card { align-self: center; }
#passwordResetGate .auth-submit + .auth-submit { margin-top: 9px; }

@media(max-width:930px){
  .profile-hero { grid-template-columns: auto 1fr; }
  .profile-hero-meta { grid-column: 1 / -1; }
}
@media(max-width:700px){
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 58px 1fr; padding: 17px; }
  .profile-avatar-large { width: 58px; height: 58px; border-radius: 17px; font-size: 23px; }
  .profile-hero-meta { grid-template-columns: 1fr 1fr; }
  .profile-security-actions, .profile-action-stack { flex-direction: column; align-items: stretch; }
  .profile-security-actions .btn, .profile-action-stack .btn { width: 100%; }
}
@media(max-width:430px){
  .profile-hero-meta { grid-template-columns: 1fr; }
}

/* WarrantyVault V16 enhancements */
.global-search-shell {
  position: relative;
  z-index: 35;
  margin: 0 0 18px;
}
.global-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(125, 211, 252, .16);
  border-radius: 15px;
  background: rgba(5, 18, 32, .88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}
.global-search-input-wrap:focus-within {
  border-color: rgba(71, 199, 178, .58);
  box-shadow: 0 0 0 3px rgba(71, 199, 178, .09), 0 16px 44px rgba(0, 0, 0, .22);
}
.global-search-input-wrap svg {
  width: 19px;
  height: 19px;
  margin-left: 15px;
  stroke: var(--muted);
  flex: 0 0 auto;
}
.global-search-input-wrap .field {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 80px 0 11px;
}
.global-search-input-wrap .field:focus { box-shadow: none; }
.global-search-input-wrap kbd {
  position: absolute;
  right: 42px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-bottom-color: rgba(255,255,255,.18);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font: 700 10px/1 system-ui;
}
.global-search-clear {
  position: absolute;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.global-search-shell.has-query .global-search-clear { opacity: 1; pointer-events: auto; }
.global-search-shell.has-query .global-search-input-wrap kbd { opacity: 0; }
.global-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: min(520px, 64vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(125, 211, 252, .16);
  border-radius: 16px;
  background: rgba(5, 17, 30, .98);
  box-shadow: 0 24px 70px rgba(0,0,0,.46);
  backdrop-filter: blur(20px);
}
.global-search-results.show { display: grid; gap: 4px; }
.global-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}
.global-search-result:hover,
.global-search-result.active {
  border-color: rgba(71,199,178,.2);
  background: rgba(71,199,178,.075);
}
.global-search-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #07131d;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  font-size: 13px;
  font-weight: 900;
}
.global-search-result strong,
.global-search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result strong { font-size: 11px; }
.global-search-result small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.global-search-type { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.global-search-empty { padding: 18px 14px; color: var(--muted); text-align: center; font-size: 10px; }

.duplicate-warning {
  margin: 4px 0 14px;
  padding: 13px 14px;
  border: 1px solid rgba(244, 191, 89, .28);
  border-radius: 13px;
  background: rgba(244, 191, 89, .075);
}
.duplicate-warning strong { display: block; color: #ffd989; font-size: 11px; }
.duplicate-warning p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.duplicate-list { display: grid; gap: 8px; margin-top: 12px; }
.duplicate-list > div { padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.duplicate-list b, .duplicate-list small { display: block; }
.duplicate-list b { font-size: 10px; }
.duplicate-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.account-avatar,
.profile-avatar-large,
.mobile-profile-btn {
  overflow: hidden;
  position: relative;
}
.account-avatar img,
.profile-avatar-large img,
.mobile-profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-control { display: grid; justify-items: center; gap: 7px; }
.profile-avatar-large {
  border: 0;
  padding: 0;
  cursor: pointer;
}
.profile-avatar-large:focus-visible { outline: 3px solid rgba(71,199,178,.28); outline-offset: 3px; }
.profile-avatar-edit {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #0a1724;
  border-radius: 8px;
  color: #07131d;
  background: var(--brand-3);
  font-size: 10px;
}
.profile-photo-actions { display: flex; gap: 8px; }
.profile-photo-actions .text-button { font-size: 9px; }
.profile-photo-note { border-color: rgba(71,199,178,.18); background: rgba(71,199,178,.05); }
.mobile-head-actions { display: flex; align-items: center; gap: 8px; }
.mobile-profile-btn {
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  border: 1px solid rgba(71,199,178,.22);
  border-radius: 10px;
  color: #07131d;
  background: linear-gradient(135deg,var(--brand-3),var(--brand-2));
  font-size: 11px;
  font-weight: 900;
}

.sync-offline { color: #ffd989 !important; }
.sync-error { color: #ff9ca9 !important; }
.sync-saving { color: #9dc5ff !important; }
.csv-preview-list { display: grid; gap: 8px; margin: 12px 0; max-height: 250px; overflow: auto; }
.csv-preview-row { padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.csv-preview-row b, .csv-preview-row small { display: block; }
.csv-preview-row b { font-size: 10px; }
.csv-preview-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.csv-import-summary { color: var(--muted); font-size: 10px; line-height: 1.55; }
.csv-import-summary strong { color: var(--text); }

@media (max-width: 820px) {
  .mobile-profile-btn { display: grid; }
  .global-search-shell { margin: 0 12px 14px; position: sticky; top: 7px; z-index: 42; }
  .global-search-input-wrap { min-height: 44px; border-radius: 13px; }
  .global-search-input-wrap .field { height: 42px; padding-right: 44px; font-size: 11px; }
  .global-search-input-wrap kbd { display: none; }
  .global-search-results { max-height: 58vh; }
  .profile-avatar-control { justify-self: start; }
}
@media (max-width: 680px) {
  #view-add .sticky-form-actions {
    position: sticky;
    bottom: 70px;
    z-index: 30;
    margin: 0 -14px -14px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(6, 18, 31, .96);
    box-shadow: 0 -16px 36px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
  }
  #view-add .sticky-form-actions .btn { flex: 1 1 100%; }
  .global-search-result { grid-template-columns: auto minmax(0,1fr); }
  .global-search-type { display: none; }
}


/* V17 Import Center */
.import-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.65fr);gap:18px;align-items:start}.import-main-column,.import-side-column{display:grid;gap:16px}.import-side-column{position:sticky;top:18px}.import-step-card,.import-preview-panel,.import-format-card,.import-help-card{padding:22px}.import-step-heading{display:flex;gap:13px;align-items:flex-start;margin-bottom:18px}.import-step-heading>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:var(--accent,#ef4444);color:#fff;font-weight:800}.import-destination-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.import-choice{display:flex;gap:12px;padding:16px;border:1px solid var(--line,#e5e7eb);border-radius:14px;cursor:pointer;background:var(--panel,#fff);transition:.18s ease}.import-choice:hover{border-color:rgba(239,68,68,.45);transform:translateY(-1px)}.import-choice:has(input:checked){border-color:var(--accent,#ef4444);box-shadow:0 0 0 3px rgba(239,68,68,.09)}.import-choice input{margin-top:3px;accent-color:var(--accent,#ef4444)}.import-choice span{display:grid;gap:4px}.import-choice small{color:var(--muted,#6b7280);line-height:1.45}.import-show-select{margin-top:16px}.import-empty-shows{margin-top:16px;border:1px dashed var(--line,#d1d5db);border-radius:14px;padding:18px;background:rgba(148,163,184,.06)}.import-empty-shows p{color:var(--muted);margin:5px 0 12px}.import-source-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(320px,1.2fr);gap:14px}.import-upload-zone,.import-paste-zone{border:1px solid var(--line,#e5e7eb);border-radius:16px;padding:18px;background:rgba(148,163,184,.035)}.import-upload-zone{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:270px;border-style:dashed}.import-upload-zone.dragging{border-color:var(--accent,#ef4444);background:rgba(239,68,68,.06)}.import-upload-icon{font-size:34px;line-height:1;margin-bottom:10px}.import-upload-zone p{max-width:360px;color:var(--muted);font-size:13px;line-height:1.5}.import-upload-zone small{margin-top:10px;color:var(--muted);word-break:break-word}.import-paste-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.import-paste-heading span{font-size:12px;color:var(--muted)}.import-paste-area{min-height:210px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5;white-space:pre}.import-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.import-stat-grid>div{padding:14px;border:1px solid var(--line);border-radius:13px;background:rgba(148,163,184,.035)}.import-stat-grid small{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}.import-stat-grid b{display:block;margin-top:5px;font-size:20px}.import-warning{border:1px solid rgba(245,158,11,.35);background:rgba(245,158,11,.08);border-radius:13px;padding:13px 15px;margin-bottom:14px}.import-warning p{margin:4px 0 0;color:var(--muted);font-size:13px}.import-preview-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;max-height:430px}.import-preview-table{min-width:760px}.import-preview-table thead{position:sticky;top:0;background:var(--panel,#fff);z-index:1}.import-invalid-list{margin-top:14px;border:1px solid rgba(239,68,68,.25);border-radius:13px;padding:14px;background:rgba(239,68,68,.045)}.import-invalid-list>strong{display:block;margin-bottom:8px}.import-invalid-list>div{display:grid;grid-template-columns:minmax(150px,.35fr) 1fr;gap:10px;padding:8px 0;border-top:1px solid rgba(239,68,68,.12);font-size:13px}.import-invalid-list span{color:var(--muted)}.import-confirm-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:16px}.import-confirm-row .auth-check{margin:0}.import-format-card .panel-sub{margin-top:4px}.import-format-section{margin-top:18px}.import-format-section>small{display:block;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;margin-bottom:8px}.import-format-section>div{display:flex;flex-wrap:wrap;gap:7px}.import-format-section span,.import-format-section em{display:inline-flex;border:1px solid var(--line);background:rgba(148,163,184,.06);border-radius:999px;padding:6px 9px;font-size:11px;font-style:normal}.import-format-section em{border-style:dashed;color:var(--muted)}.import-rules{margin-top:20px}.import-rules ul{padding-left:19px;margin:9px 0 0;color:var(--muted);font-size:12px;line-height:1.65}.import-example{margin:18px 0}.import-example small{display:block;color:var(--muted);margin-bottom:7px}.import-example code{display:block;max-height:116px;overflow:auto;padding:11px;border-radius:10px;background:rgba(15,23,42,.92);color:#e2e8f0;font-size:10px;line-height:1.5;white-space:normal;word-break:break-word}.import-help-card ol{padding-left:20px;color:var(--muted);font-size:13px;line-height:1.7}.import-help-card p{color:var(--muted);font-size:12px;line-height:1.5}.btn.wide{width:100%}
@media(max-width:1050px){.import-layout{grid-template-columns:1fr}.import-side-column{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.import-source-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.import-side-column{grid-template-columns:1fr}.import-source-grid,.import-destination-grid{grid-template-columns:1fr}.import-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.import-confirm-row{align-items:stretch;flex-direction:column}.import-confirm-row .btn{width:100%}.import-step-card,.import-preview-panel,.import-format-card,.import-help-card{padding:16px}.import-paste-heading{align-items:flex-start;flex-direction:column}.import-invalid-list>div{grid-template-columns:1fr}.import-topbar .top-actions{width:100%}}
