/* Sparkles: shared product foundations. */
:root {
  --ink: #2a2035;
  --muted: #6b6278;
  --paper: #f0edf5;
  --surface: #ffffff;
  --white: #ffffff;
  --line: #e4dded;
  --shell: #1a112b;
  --shell-2: #231840;
  --accent: #c4285f;
  --accent-2: #8e1d4c;
  --accent-bg: rgba(196, 40, 95, 0.06);
  --gold: #f1c977;
  --gold-bg: rgba(241, 201, 119, 0.12);
  --danger: #ae2345;
  --success: #267a55;
  --focus-ring: #c4285f;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --text-xs: 10px;
  --text-sm: 12px;
  --text-body: 14px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  /* Existing components keep their token names. */
  --text-caption: var(--text-sm);
  --purple: var(--accent);
  --night: var(--shell);
  --primary-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --surface-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-feature-settings: "cv11", "ss01";
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
  /* Compatibility palette: exact media looks and component shades, centralized. */
  --tone-edf0f5: #edf0f5;
  --tone-bdc5d1: #bdc5d1;
  --tone-3: rgb(142 29 76 / 35%);
  --tone-b42a44: #b42a44;
  --tone-cdd4de: #cdd4de;
  --tone-526073: #526073;
  --tone-edf1f5: #edf1f5;
  --tone-566276: #566276;
  --tone-edf7f2: #edf7f2;
  --tone-246348: #246348;
  --tone-cfe5d9: #cfe5d9;
  --tone-fff0f1: #fff0f1;
  --tone-efcbd0: #efcbd0;
  --tone-9f263b: #9f263b;
  --tone-c9d1dc: #c9d1dc;
  --tone-fafbfc: #fafbfc;
  --tone-8b98ab: #8b98ab;
  --tone-f5f6f8: #f5f6f8;
  --tone-667184: #667184;
  --tone-15213a14: #15213a14;
  --tone-f3e1e9: #f3e1e9;
  --tone-92204f: #92204f;
  --tone-cad1dd: #cad1dd;
  --tone-e0dbe9: #e0dbe9;
  --tone-252f41: #252f41;
  --tone-26: rgb(241 201 119 / 15%);
  --tone-8592a8: #8592a8;
  --tone-f2bbd1: #f2bbd1;
  --tone-29: rgb(241 201 119 / 10%);
  --tone-30384b: #30384b;
  --tone-8c9bb4: #8c9bb4;
  --tone-313a4b: #313a4b;
  --tone-8f9cb1: #8f9cb1;
  --tone-c0cada: #c0cada;
  --tone-d7dde6: #d7dde6;
  --tone-8b97a8: #8b97a8;
  --tone-67758a: #67758a;
  --tone-778298: #778298;
  --tone-a2acbb: #a2acbb;
  --tone-263247: #263247;
  --tone-b5becd: #b5becd;
  --tone-18233908: #18233908;
  --tone-fbefdc: #fbefdc;
  --tone-a87d39: #a87d39;
  --tone-7b8799: #7b8799;
  --tone-edf0f4: #edf0f4;
  --tone-fff6f9: #fff6f9;
  --tone-f1e8f2: #f1e8f2;
  --tone-975e9f: #975e9f;
  --tone-283448: #283448;
  --tone-5b6d85: #5b6d85;
  --tone-8491a5: #8491a5;
  --tone-6a7890: #6a7890;
  --tone-eeeaf2: #eeeaf2;
  --tone-f2f4f7: #f2f4f7;
  --tone-492b54: #492b54;
  --tone-0003: #0003;
  --tone-10182b40: #10182b40;
  --tone-10182b80: #10182b80;
  --tone-1a253329: #1a253329;
  --tone-202533: #202533;
  --tone-dce0e7: #dce0e7;
  --tone-18223926: #18223926;
  --tone-15203920: #15203920;
  --tone-f0f3f7: #f0f3f7;
  --tone-f9eaf0: #f9eaf0;
  --tone-121b3280: #121b3280;
  --tone-46546a: #46546a;
  --tone-c3ccda: #c3ccda;
  --tone-3a465b: #3a465b;
  --tone-ded6e1: #ded6e1;
  --tone-605565: #605565;
  --tone-71364e: #71364e;
  --tone-f5f0fb: #f5f0fb;
  --tone-75: rgb(255 255 255 / 8%);
  --tone-76: rgb(0 0 0 / 25%);
  --tone-d6cde2: #d6cde2;
  --tone-ffffff14: #ffffff14;
  --tone-3c284d: #3c284d;
  --tone-f1c97755: #f1c97755;
  --tone-f1c97733: #f1c97733;
  --tone-ffffff08: #ffffff08;
  --tone-ffffff24: #ffffff24;
  --tone-ffffff0d: #ffffff0d;
  --tone-ffffff10: #ffffff10;
  --tone-ffffff0a: #ffffff0a;
  --tone-bcb0cc: #bcb0cc;
  --tone-c8bdd5: #c8bdd5;
  --tone-d7a7bf: #d7a7bf;
  --tone-fffafd: #fffafd;
  --tone-91: rgb(100 50 120 / 8%);
  --tone-faf8fc: #faf8fc;
  --tone-e1d8e9: #e1d8e9;
  --tone-fbf2df: #fbf2df;
  --tone-f7da98: #f7da98;
  --tone-e3b562: #e3b562;
  --tone-d4a84d44: #d4a84d44;
  --tone-98: rgb(196 40 95 / 35%);
  --tone-ffffff66: #ffffff66;
  --tone-100: rgb(196 40 95 / 4%);
  --tone-ffffff16: #ffffff16;
  --tone-1a112b1a: #1a112b1a;
  --tone-103: rgb(241 201 119 / 12%);
  --tone-ffffff40: #ffffff40;
  --tone-2a0d18: #2a0d18;
  --tone-9760ce: #9760ce;
  --tone-dcd4e5: #dcd4e5;
  --tone-f4eff9: #f4eff9;
  --tone-5d318f: #5d318f;
  --tone-cfc5d9: #cfc5d9;
  --tone-28212f: #28212f;
  --tone-9660c7: #9660c7;
  --tone-75528080: #75528080;
  --tone-0b041740: #0b041740;
  --tone-ded1e8: #ded1e8;
  --tone-ffffff2a: #ffffff2a;
  --tone-d1c4de: #d1c4de;
  --tone-d5c4e6: #d5c4e6;
  --tone-ffffff30: #ffffff30;
  --tone-352341: #352341;
  --tone-f1eef5: #f1eef5;
  --tone-665772: #665772;
  --tone-e1d5ee: #e1d5ee;
  --tone-4c2775: #4c2775;
  --tone-83758e: #83758e;
  --tone-dfd7e8: #dfd7e8;
  --tone-e2dce9: #e2dce9;
  --tone-706479: #706479;
  --tone-866598: #866598;
  --tone-463651: #463651;
  --tone-3e9168: #3e9168;
  --tone-b39971: #b39971;
  --tone-9e91a9: #9e91a9;
  --tone-857b8e: #857b8e;
  --tone-fbfafc: #fbfafc;
  --tone-7b7283: #7b7283;
  --tone-fcfaff: #fcfaff;
  --tone-3d304b: #3d304b;
  --tone-92869c: #92869c;
  --tone-f1eafa: #f1eafa;
  --tone-8b59bd: #8b59bd;
  --tone-477dba: #477dba;
  --tone-eaf2fc: #eaf2fc;
  --tone-bd984a: #bd984a;
  --tone-775892: #775892;
  --tone-ecf6ef: #ecf6ef;
  --tone-3b7755: #3b7755;
  --tone-fff5e5: #fff5e5;
  --tone-92733c: #92733c;
  --tone-f4eef9: #f4eef9;
  --tone-8b60a6: #8b60a6;
  --tone-bba4d2: #bba4d2;
  --tone-93869f: #93869f;
  --tone-edf5ee: #edf5ee;
  --tone-376246: #376246;
  --tone-d0e6d4: #d0e6d4;
  --tone-993d4f: #993d4f;
  --tone-efc9d0: #efc9d0;
  --tone-f6f2fa: #f6f2fa;
  --tone-e0d4ed: #e0d4ed;
  --tone-5f3f7b: #5f3f7b;
  --tone-756981: #756981;
  --tone-d2c0e1: #d2c0e1;
  --tone-30204030: #30204030;
  --tone-d5c7e2: #d5c7e2;
  --tone-27143633: #27143633;
  --tone-241a3866: #241a3866;
  --tone-8c8194: #8c8194;
  --tone-61437d: #61437d;
  --tone-a14455: #a14455;
  --tone-635273: #635273;
  --tone-21152b25: #21152b25;
  --tone-f2edf7: #f2edf7;
  --tone-f8f5fb: #f8f5fb;
  --tone-f5f1f8: #f5f1f8;
  --tone-a06ac6: #a06ac6;
  --tone-352044: #352044;
  --tone-eee5f6: #eee5f6;
  --tone-9562b5: #9562b5;
  --tone-140f21: #140f21;
  --tone-ddd: #ddd;
  --tone-cf3f91: #cf3f91;
  --tone-f5f3f8: #f5f3f8;
  --tone-e8dff1: #e8dff1;
  --tone-54347c: #54347c;
  --tone-91869b: #91869b;
  --tone-f4f0f8: #f4f0f8;
  --tone-795993: #795993;
  --tone-7b7286: #7b7286;
  --tone-30204003: #30204003;
  --tone-8a8094: #8a8094;
  --tone-4d365f: #4d365f;
  --tone-8c8496: #8c8496;
  --tone-faf9fc: #faf9fc;
  --tone-f0edf4: #f0edf4;
  --tone-f8f5fc: #f8f5fc;
  --tone-f2edf8: #f2edf8;
  --tone-b79854: #b79854;
  --tone-f7edc9: #f7edc9;
  --tone-3c314a: #3c314a;
  --tone-9a91a4: #9a91a4;
  --tone-f4f1e8: #f4f1e8;
  --tone-897445: #897445;
  --tone-7b6098: #7b6098;
  --tone-eee6f7: #eee6f7;
  --tone-e5deec: #e5deec;
  --tone-231b3530: #231b3530;
  --tone-ae4561: #ae4561;
  --tone-9b91a6: #9b91a6;
  --tone-eee3f4: #eee3f4;
  --tone-a48ab9: #a48ab9;
  --tone-e9e0f2: #e9e0f2;
  --tone-e9e1ef: #e9e1ef;
  --tone-1d102544: #1d102544;
  --tone-9561c0: #9561c0;
  --tone-eee4f8: #eee4f8;
  --tone-eaddf7: #eaddf7;
  --tone-1c102a66: #1c102a66;
  --tone-21102c25: #21102c25;
  --tone-9972bd: #9972bd;
  --tone-73627f: #73627f;
  --tone-80748a: #80748a;
  --tone-795494: #795494;
  --tone-786982: #786982;
  --tone-36293f: #36293f;
  --tone-fff3e9: #fff3e9;
  --tone-e7e1eb: #e7e1eb;
  --tone-817489: #817489;
  --tone-9b3548: #9b3548;
  --tone-dfb8c0: #dfb8c0;
  --tone-e7b65c: #e7b65c;
  --tone-fff5df: #fff5df;
  --tone-674414: #674414;
  --tone-f1e5fa: #f1e5fa;
  --tone-542269: #542269;
  --tone-b297c2: #b297c2;
  --tone-faf5fd: #faf5fd;
  --tone-512369: #512369;
  --tone-d47aed: #d47aed;
  --tone-32203e: #32203e;
  --tone-8d749b: #8d749b;
  --tone-9454a7: #9454a7;
  --tone-f2e5f8: #f2e5f8;
  --tone-fff4ee: #fff4ee;
  --tone-eae8fa: #eae8fa;
  --tone-f7f6ff: #f7f6ff;
  --tone-eee5f2: #eee5f2;
  --tone-70418a: #70418a;
  --tone-d5c9dc: #d5c9dc;
  --tone-241130: #241130;
  --tone-0006: #0006;
  --tone-351069: #351069;
  --tone-ff358b: #ff358b;
  --tone-d89d37: #d89d37;
  --tone-160e04: #160e04;
  --tone-080d29: #080d29;
  --tone-5939bd: #5939bd;
  --tone-0b6167: #0b6167;
  --tone-f69e40: #f69e40;
  --tone-092b21: #092b21;
  --tone-a82038: #a82038;
  --tone-000: #000;
  --tone-706477: #706477;
  --tone-ded4e5: #ded4e5;
  --tone-33293a: #33293a;
  --tone-faf3fd: #faf3fd;
  --tone-b23753: #b23753;
  --tone-30213b: #30213b;
  --tone-21152c30: #21152c30;
  --tone-22102c30: #22102c30;
  --tone-1e102a88: #1e102a88;
  --tone-ad2d4d: #ad2d4d;
  --tone-eae2ef: #eae2ef;
  --tone-735d80: #735d80;
  --tone-38213b12: #38213b12;
  --tone-e9e2ed: #e9e2ed;
  --tone-d2bbdf: #d2bbdf;
  --tone-f7f1fa: #f7f1fa;
  --tone-f6effa: #f6effa;
  --tone-191020: #191020;
  --tone-fff3d7: #fff3d7;
  --tone-f1edf3: #f1edf3;
  --tone-e9d8f5: #e9d8f5;
  --tone-442653: #442653;
  --tone-663285: #663285;
  --tone-cf3475: #cf3475;
  --tone-17151e: #17151e;
  --tone-eeeaf4: #eeeaf4;
  --tone-3a3445: #3a3445;
  --tone-aaa0b7: #aaa0b7;
  --tone-b286f2: #b286f2;
  --tone-211d29: #211d29;
  --tone-e3c7ff: #e3c7ff;
  --tone-2e2938: #2e2938;
  --tone-494052: #494052;
  --tone-44374f: #44374f;
  --tone-ae75e5: #ae75e5;
  --tone-180d22: #180d22;
  --tone-bfb5cc: #bfb5cc;
  --tone-24202d: #24202d;
  --tone-afa4ba: #afa4ba;
  --tone-cda3f7: #cda3f7;
  --tone-d0c4df: #d0c4df;
  --tone-44345e: #44345e;
  --tone-d1acf8: #d1acf8;
  --tone-463054: #463054;
  --tone-b989ee: #b989ee;
  --tone-453052: #453052;
  --tone-e1bafa: #e1bafa;
  --tone-282330: #282330;
  --tone-a99eb8: #a99eb8;
  --tone-19161f: #19161f;
  --tone-214b51: #214b51;
  --tone-bcf1dc: #bcf1dc;
  --tone-367f79: #367f79;
  --tone-4b3726: #4b3726;
  --tone-39756f: #39756f;
  --tone-c0f2e4: #c0f2e4;
  --tone-285e62: #285e62;
  --tone-40294f: #40294f;
  --tone-72bfbb66: #72bfbb66;
  --tone-f4c7ff: #f4c7ff;
  --tone-f4b6bc: #f4b6bc;
  --tone-1d2637: #1d2637;
  --tone-6b7688: #6b7688;
  --tone-a9b6ca: #a9b6ca;
  --tone-f3a3c3: #f3a3c3;
  --tone-ead1db: #ead1db;
  --tone-281925: #281925;
  --tone-e5dbea: #e5dbea;
  --tone-fff2: #fff2;
  --tone-111b2c90: #111b2c90;
  --tone-f3f5f8: #f3f5f8;
  --tone-e6eaf0: #e6eaf0;
  --tone-a6485b: #a6485b;
  --tone-e9edf2: #e9edf2;
  --tone-727f94: #727f94;
  --tone-27354c: #27354c;
  --tone-162c4214: #162c4214;
  --tone-8994a5: #8994a5;
  --tone-5e6d82: #5e6d82;
  --tone-14213625: #14213625;
  --tone-f1f4f8: #f1f4f8;
  --tone-e6c5d3: #e6c5d3;
  --tone-7a8799: #7a8799;
  --tone-e5eaf1: #e5eaf1;
  --tone-fdf4f8: #fdf4f8;
  --tone-798598: #798598;
  --tone-f5f7fa: #f5f7fa;
  --tone-eceff4: #eceff4;
  --tone-63738b: #63738b;
  --tone-10151f: #10151f;
  --tone-1b2331: #1b2331;
  --tone-e2e7f0: #e2e7f0;
  --tone-95a2b8: #95a2b8;
  --tone-303b4f: #303b4f;
  --tone-ef9dbf: #ef9dbf;
  --tone-141b28: #141b28;
  --tone-2c3649: #2c3649;
  --tone-e6ebf3: #e6ebf3;
  --tone-111824: #111824;
  --tone-2d384b: #2d384b;
  --tone-8797af: #8797af;
  --tone-a3b1c7: #a3b1c7;
  --tone-e3e9f4: #e3e9f4;
  --tone-202a3b: #202a3b;
  --tone-354155: #354155;
  --tone-b8c5d9: #b8c5d9;
  --tone-ed9abd: #ed9abd;
  --tone-271724: #271724;
  --tone-131b28: #131b28;
  --tone-303a4c: #303a4c;
  --tone-8f9fb6: #8f9fb6;
  --tone-354156: #354156;
  --tone-f0f3f8: #f0f3f8;
  --tone-aab7cc: #aab7cc;
  --tone-222d3e: #222d3e;
  --tone-43516a: #43516a;
  --tone-cbd5e6: #cbd5e6;
  --tone-344159: #344159;
  --tone-65768f: #65768f;
  --tone-202b3d: #202b3d;
  --tone-d3ddec: #d3ddec;
  --tone-3b4960: #3b4960;
  --tone-303d53: #303d53;
  --tone-6e7f9b: #6e7f9b;
  --tone-251822: #251822;
  --tone-99a9c0: #99a9c0;
  --tone-8d9fb9: #8d9fb9;
  --tone-182130: #182130;
  --tone-b6c3d7: #b6c3d7;
  --tone-1b2536: #1b2536;
  --tone-2e394c: #2e394c;
  --tone-7d8fa9: #7d8fa9;
  --tone-121a28: #121a28;
  --tone-050910: #050910;
  --tone-b5c3d8: #b5c3d8;
  --tone-b7c4d9: #b7c4d9;
  --tone-7f91ab: #7f91ab;
  --tone-32324a: #32324a;
  --tone-d9afd3: #d9afd3;
  --tone-b3c2d9: #b3c2d9;
  --tone-354157: #354157;
  --tone-8fa2bd: #8fa2bd;
  --tone-f3bdd3: #f3bdd3;
  --tone-354159: #354159;
  --tone-344157: #344157;
  --tone-c8aacb: #c8aacb;
  --tone-3c2e46: #3c2e46;
  --tone-c18ca6: #c18ca6;
  --tone-caaac9: #caaac9;
  --tone-2d394c: #2d394c;
  --tone-8b9db7: #8b9db7;
  --tone-354359: #354359;
  --tone-1d293b: #1d293b;
  --tone-8092ae: #8092ae;
  --tone-101827: #101827;
  --tone-b4d3df: #b4d3df;
  --tone-1c4953: #1c4953;
  --tone-397383: #397383;
  --tone-c5eced: #c5eced;
  --tone-285b65: #285b65;
  --tone-533650: #533650;
  --tone-f1cde5: #f1cde5;
  --tone-925379: #925379;
  --tone-dc9cba: #dc9cba;
  --tone-59304b: #59304b;
  --tone-f6dae7: #f6dae7;
  --tone-8fa0b9: #8fa0b9;
  --tone-f4bad3: #f4bad3;
  --tone-8295b1: #8295b1;
  --tone-1c2738: #1c2738;
  --tone-3b4860: #3b4860;
  --tone-e2e9f4: #e2e9f4;
  --tone-b5c2d6: #b5c2d6;
  --tone-4c392c: #4c392c;
  --tone-79573c: #79573c;
  --tone-303e55: #303e55;
  --tone-bfcbe0: #bfcbe0;
  --tone-1a2434: #1a2434;
  --tone-3b4a62: #3b4a62;
  --tone-f1a0b4: #f1a0b4;
  --tone-69399c: #69399c;
  --tone-994d91: #994d91;
  --tone-703b9c: #703b9c;
  --tone-d9d0df: #d9d0df;
  --tone-2a2033: #2a2033;
  --tone-e4dce9: #e4dce9;
  --tone-776c80: #776c80;
  --tone-d7c5e3: #d7c5e3;
  --tone-faf6fd: #faf6fd;
  --tone-f0e9f6: #f0e9f6;
  --tone-593578: #593578;
  --tone-f5f0f8: #f5f0f8;
  --tone-182334: #182334;
  --tone-42516a: #42516a;
  --tone-e2e8f0: #e2e8f0;
  --tone-111827: #111827;
  --tone-acbbd0: #acbbd0;
  --tone-f8eaf0: #f8eaf0;
  --tone-f2eaf6: #f2eaf6;
  --tone-5b316e: #5b316e;
  --tone-cdb7d8: #cdb7d8;
  --tone-754c8a: #754c8a;
  --tone-6b6271: #6b6271;
  --tone-eee7f2: #eee7f2;
  --tone-e2d9e8: #e2d9e8;
  --tone-d9c8e2: #d9c8e2;
  --tone-d8deea: #d8deea;
  --tone-101722: #101722;
  --tone-b95839: #b95839;
  --tone-fff4ed: #fff4ed;
  --tone-512b1d: #512b1d;
  --tone-9b2946: #9b2946;
  --tone-0004: #0004;
  --tone-eee8f4: #eee8f4;
  --tone-ffffff33: #ffffff33;
  --tone-ffffff18: #ffffff18;
  --tone-492649: #492649;
  --tone-4c345f: #4c345f;
  --tone-f1c97712: #f1c97712;
  --tone-d0c7dc: #d0c7dc;
  --tone-1a112b18: #1a112b18;
  --tone-e5dfea: #e5dfea;
  --tone-60546c: #60546c;
  --tone-e4c98f: #e4c98f;
  --tone-fff9eb: #fff9eb;
  --tone-785317: #785317;
  --tone-1e0b2e: #1e0b2e;
  --tone-0e0a18: #0e0a18;
  --tone-503963: #503963;
  --tone-ddd3e8: #ddd3e8;
  --tone-61446f: #61446f;
  --tone-2f1841: #2f1841;
  --tone-160d21: #160d21;
  --tone-7c688b: #7c688b;
  --tone-c2b4ce: #c2b4ce;
  --tone-ffffff09: #ffffff09;
  --tone-e5deed: #e5deed;
  --tone-604874: #604874;
  --tone-e0d6ea: #e0d6ea;
  --tone-d9356a: #d9356a;
  --tone-503: rgb(0 0 0 / 10%);
  --tone-f2eef6: #f2eef6;
  --tone-ded5e5: #ded5e5;
  --tone-ffffff88: #ffffff88;
  --tone-e3dce9: #e3dce9;
  --tone-e4bb6c: #e4bb6c;
  --tone-e9e2ee: #e9e2ee;
  --tone-00000012: #00000012;
  --tone-eae4f0: #eae4f0;
  --tone-8e1d4c24: #8e1d4c24;
  --tone-e4dae8: #e4dae8;
  --tone-fcf6e9: #fcf6e9;
  --tone-f9f6fc: #f9f6fc;
  --tone-e8e0ed: #e8e0ed;
  --tone-efc7d8: #efc7d8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.35;
}
button:hover,
.button:hover {
  background: var(--tone-edf0f5);
  border-color: var(--tone-bdc5d1);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button.primary,
.button.primary {
  background: var(--primary-gradient);
  border-color: transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: white;
}
button.primary:hover,
.button.primary:hover {
  background: var(--primary-gradient);
  border-color: var(--accent-2);
  box-shadow: 0 2px 8px var(--tone-3);
}
.danger {
  color: var(--tone-b42a44) !important;
}
a {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring, var(--accent-2));
  outline-offset: 3px;
}
input,
select,
textarea {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--tone-cdd4de);
  border-radius: 7px;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
input[type="range"] {
  accent-color: var(--accent);
  min-height: 24px;
}
label {
  color: var(--tone-526073);
  font-size: 12px;
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 750;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.04em;
  font-weight: 750;
}
h3 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 750;
}
.hint,
.small,
.muted,
small {
  color: var(--muted);
  line-height: 1.55;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.badge {
  border-radius: 5px;
  padding: 4px 8px;
  background: var(--tone-edf1f5);
  color: var(--tone-566276);
  font-size: 11px;
  font-weight: 600;
}
.badge.waiting {
  background: var(--tone-edf1f5);
  color: var(--tone-526073);
}
.badge.incomplete {
  background: var(--gold);
  color: var(--night);
}
.message {
  border-radius: 8px;
  background: var(--tone-edf7f2);
  color: var(--tone-246348);
  padding: 13px 16px;
  font-size: 13px;
  border: 1px solid var(--tone-cfe5d9);
}
.message.error {
  background: var(--tone-fff0f1);
  border-color: var(--tone-efcbd0);
  color: var(--tone-9f263b);
}
.error {
  color: var(--tone-b42a44);
}
.actions {
  gap: 8px;
}
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
}
.cards {
  gap: 18px;
}
.sectionhead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sectionhead h2 {
  margin: 0;
}
.sectionhead > .badge {
  margin-right: auto;
}
.empty {
  border: 1px dashed var(--tone-c9d1dc);
  background: var(--tone-fafbfc);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  padding: 44px 24px;
}
.empty .icon {
  width: 36px;
  height: 36px;
  color: var(--tone-8b98ab);
}
.empty h2 {
  color: var(--ink);
  margin: 14px 0 8px;
}
.empty p {
  max-width: 400px;
  margin: 0 auto;
}
.app-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.app-brand img {
  width: 32px;
  height: 32px;
}
.app-brand small {
  font-size: 10px;
  display: block;
  letter-spacing: 1.8px;
  font-weight: 500;
}
.product-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 9px;
  background: var(--tone-f5f6f8);
}
.product-switch a {
  font-size: 12px;
  font-weight: 650;
  padding: 7px 19px;
  min-height: 32px;
  color: var(--tone-667184);
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.product-switch a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px var(--tone-15213a14);
}
.topbar .brand img {
  width: 32px;
  height: 32px;
}
.topbar .brand small {
  letter-spacing: 1.6px;
  font-size: 9px;
}
.topbar .profile {
  gap: 12px;
  font-size: 12px;
}
.avatar {
  background: var(--tone-f3e1e9);
  color: var(--tone-92204f);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.topbar #signout {
  font-size: 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1000;
  background: white;
  color: var(--ink);
  padding: 14px;
}
.skip-link:focus {
  top: 10px;
}
/* Drive shell and library. */
.drive-app > .topbar {
  height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
}
.drive-app > .topbar .brand {
  margin-right: auto;
}
.drive-app > .shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: calc(100dvh - 68px);
  max-width: none;
  margin: 0;
}
.drive-app .sidebar {
  background: var(--shell-2);
  color: var(--tone-cad1dd);
  border: 0;
  padding: 24px 14px;
  position: sticky;
  top: 68px;
  height: calc(100dvh - 68px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar nav button,
.sidebar nav a {
  min-height: 41px;
  width: 100%;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: var(--tone-e0dbe9);
  font-size: 13px;
  text-decoration: none;
  text-align: left;
}
.sidebar nav button:hover,
.sidebar nav a:hover {
  background: var(--tone-252f41);
  color: white;
}
.sidebar nav button.selected {
  background: var(--tone-26);
  color: var(--gold);
  box-shadow: inset 3px 0 var(--gold);
}
.sidebar nav .nav-label,
.sidebar .tree-caption {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tone-8592a8);
  padding: 20px 13px 9px;
}
.sidebar nav .studio-nav {
  color: var(--tone-f2bbd1);
}
.sidebar .explorer-tree {
  margin: 0;
  padding: 0 0 12px;
  max-height: none;
  flex: 1;
  min-height: 60px;
  overflow: auto;
}
.sidebar .tree-line.selected {
  background: var(--tone-29);
  box-shadow: inset 3px 0 var(--gold);
}
.sidebar .tree-line button {
  color: var(--tone-e0dbe9);
  font-size: 13px;
  min-height: 44px;
  background: transparent;
}
.sidebar .tree-line.selected button {
  color: var(--white);
}
.sidebar .tree-line button:hover {
  background: var(--tone-30384b);
}
.sidebar .tree-folder .icon {
  color: var(--tone-8c9bb4);
  width: 15px;
}
.sidebar .tree-children {
  padding-left: 13px;
}
.sidebar .tree-folder {
  min-width: 0;
}
.sidebar .tree-folder span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar .sidefoot {
  border-top: 1px solid var(--tone-313a4b);
  padding: 16px 10px 0;
  margin-top: 14px;
  color: var(--tone-8f9cb1);
}
.sidebar .sidefoot strong {
  color: var(--tone-c0cada);
  font-size: 11px;
}
.sidebar .sidefoot p {
  font-size: 11px;
  line-height: 1.6;
  margin: 8px 0;
}
.drive-app .content {
  min-width: 0;
  max-width: 1600px;
  width: 100%;
  padding: 36px 40px 70px;
  margin: 0 auto;
}
.pagehead {
  margin: 0 0 25px;
  align-items: center;
  gap: 24px;
}
.pagehead h1 {
  margin: 0 0 8px;
}
.pagehead p {
  font-size: 13px;
  margin: 0;
  max-width: 540px;
  color: var(--muted);
}
.pagehead .eyebrow {
  margin: 0 0 12px;
}
.drive-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--muted);
}
.drive-summary strong {
  font-size: 21px;
  font-weight: 650;
  color: var(--ink);
  margin-right: 7px;
  letter-spacing: -0.6px;
}
.drive-summary .storage-status {
  margin-left: auto;
  font-size: 11px;
}
.browser-tools {
  margin: 0 0 18px;
  gap: 14px;
}
.browser-search {
  max-width: none;
  position: relative;
  gap: 0;
  background: white;
  border: 1px solid var(--tone-d7dde6);
  border-radius: 8px;
}
.browser-search > .icon {
  margin-left: 14px;
  color: var(--tone-8b97a8);
}
.browser-search input {
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 12px;
}
.browser-search button {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  border-radius: 0 8px 8px 0;
  padding: 12px 15px;
}
.sort-control {
  margin: 0;
  flex-shrink: 0;
}
.sort-control select {
  margin: 0;
  width: auto;
  font-size: 12px;
}
.library-filter {
  display: flex;
  gap: 5px;
  margin: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.library-filter button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  background: transparent;
  color: var(--tone-67758a);
  padding: 11px 18px;
  min-height: 42px;
  font-size: 12px;
}
.library-filter [aria-pressed="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.filepanel {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.crumbs {
  background: transparent;
  border: 0;
  padding: 0 0 20px;
  gap: 7px;
}
.crumbs button {
  padding: 3px 2px;
  font-size: 12px;
  color: var(--tone-778298);
  min-height: 28px;
  border: 0;
  background: transparent;
}
.crumbs .icon {
  width: 12px;
  color: var(--tone-a2acbb);
}
.crumbs [aria-current] {
  color: var(--tone-263247);
}
.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.folder-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.folder-tile:hover {
  border-color: var(--tone-b5becd);
  box-shadow: 0 3px 12px var(--tone-18233908);
}
.folder-tile .folder-link {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 3px;
  background: none;
  display: flex;
  justify-content: flex-start;
  text-align: left;
  gap: 13px;
  font-size: 13px;
}
.folder-tile .folder-link > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.folder-tile small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 5px;
}
.folder-tile .file-icon {
  background: var(--tone-fbefdc);
  color: var(--tone-a87d39);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
}
.folder-tile .folder-menu-button {
  min-width: 30px;
  padding: 0;
  align-self: flex-start;
  font-size: 21px;
  min-height: 30px;
  border: 0;
  background: transparent;
}
.filetable {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  overflow: hidden;
  table-layout: fixed;
}
.filetable th {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: var(--tone-fafbfc);
  color: var(--tone-7b8799);
  font-weight: 650;
  padding: 13px 18px;
}
.filetable th:first-child {
  width: 50%;
}
.filetable th:nth-child(2) {
  width: 19%;
}
.filetable th:nth-child(3) {
  width: 12%;
}
.filetable th:last-child {
  width: 19%;
}
.filetable td {
  padding: 14px 18px;
  font-size: 12px;
  border-color: var(--tone-edf0f4);
  vertical-align: middle;
}
.filetable tbody tr:hover {
  background: var(--tone-fff6f9);
}
.filename {
  gap: 13px;
  min-width: 0;
}
.filename > div {
  min-width: 0;
}
.file-icon {
  width: 37px;
  height: 42px;
  border-radius: 8px;
  background: var(--tone-f1e8f2);
  color: var(--tone-975e9f);
  flex-shrink: 0;
}
.file-title {
  font-size: 13px;
  color: var(--tone-283448);
  font-weight: 700;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  min-height: 24px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  display: block;
}
.filename small {
  font-size: 10px;
  margin-top: 4px;
}
.file-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}
.file-actions .preview-action {
  font-size: 11px;
  background: transparent;
  border: 0;
  padding: 6px;
  min-height: 34px;
  color: var(--tone-5b6d85);
}
.file-actions .folder-menu-button {
  border: 0;
  min-width: 30px;
  min-height: 34px;
  padding: 0;
  color: var(--tone-8491a5);
}
.file-actions .download {
  padding: 7px;
  min-width: 32px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--tone-6a7890);
}
.browser-footer {
  font-size: 11px;
  margin-top: 18px;
}
.storage-status {
  font-size: 11px;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
}
.search-summary {
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 8px;
  font-size: 12px;
  background: var(--tone-eeeaf2);
}
.drive-app .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.drive-app .card {
  padding: 25px;
}
.drive-app .card h2 {
  font-size: 18px;
}
.drive-app .card p,
.drive-app .steps {
  font-size: 13px;
  line-height: 1.7;
}
.account {
  padding: 17px 0;
  align-items: flex-start;
  gap: 12px;
  border-color: var(--line);
}
.account .actions {
  gap: 4px;
  justify-content: flex-end;
}
.account .small-button {
  font-size: 10px;
  padding: 7px;
  min-height: 32px;
}
.account strong {
  font-size: 13px;
}
.account p {
  font-size: 11px !important;
}
.code {
  background: var(--tone-f2f4f7);
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: 12px;
}
.privacy-footer {
  font-size: 10px;
  background: transparent;
}
.login-page {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 15% 0%, var(--tone-492b54), transparent 65%),
    var(--night);
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-card {
  width: min(440px, 100%);
  padding: 38px;
  background: var(--surface);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 90px var(--tone-0003);
}
.login-card h1 {
  font-size: 31px;
  line-height: 1.2;
  margin-top: 32px;
}
.login-card > p {
  font-size: 13px;
  color: var(--muted);
}
.login-brand strong {
  font-size: 19px;
}
.login-brand span {
  font-size: 9px;
  letter-spacing: 2px;
}
.login-foot {
  font-size: 11px;
  border-color: var(--line);
  color: var(--muted);
}
/* Dialogs and feedback shared across both apps. */
dialog,
.dialog {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  max-height: calc(100dvh - 48px);
  width: min(660px, calc(100vw - 32px));
  box-shadow: 0 24px 90px var(--tone-10182b40);
}
dialog::backdrop {
  background: var(--tone-10182b80);
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 21px;
  line-height: 1.3;
}
dialog p {
  font-size: 13px;
  line-height: 1.7;
}
.dialog .actions {
  margin-top: 22px;
}
.folder-context {
  z-index: 100;
  border-radius: 10px;
  padding: 6px;
  min-width: 210px;
  box-shadow: 0 10px 40px var(--tone-1a253329);
}
.folder-context button {
  justify-content: flex-start;
  min-height: 39px;
  font-size: 12px;
}
.preview-dialog {
  width: min(1000px, calc(100vw - 32px));
}
.preview-heading {
  gap: 20px;
}
.preview-heading h2 {
  font-size: 18px;
  word-break: break-word;
}
.preview-content {
  border-radius: 9px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  color: var(--tone-202533);
  color-scheme: light;
}
.preview-content section {
  padding: 16px;
  border-bottom: 1px solid var(--tone-dce0e7);
}
.preview-content section h3,
.preview-content section pre {
  color: var(--tone-202533);
}
.preview-content section pre {
  font-size: 16px;
  line-height: 1.65;
}
.preview-footer {
  gap: 12px;
  flex-wrap: wrap;
}
.preview-footer .button {
  font-size: 12px;
}
.uploadtray {
  right: 24px;
  bottom: 24px;
  width: 370px;
  max-width: calc(100vw - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 60px var(--tone-18223926);
}
.upload-item strong {
  font-size: 12px;
}
.upload-item p {
  font-size: 11px;
}
.upload-item progress {
  accent-color: var(--accent);
}
#notice {
  background: var(--night);
  box-shadow: 0 8px 30px var(--tone-15203920);
  border-radius: 8px;
  font-size: 12px;
  z-index: 100;
  max-width: calc(100vw - 30px);
  padding: 13px 20px;
}
.permission-user {
  font-size: 13px;
}
.fixed-access {
  background: var(--tone-f0f3f7);
}
.permissions-dialog .permission-users {
  max-height: 35vh;
}
.drop-target,
.folder-tile.drop-target {
  outline: 2px solid var(--accent);
  background: var(--tone-f9eaf0);
}
@media (min-width: 1500px) {
  .folder-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .drive-app .content {
    padding: 28px 24px;
  }
  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .drive-app .cards {
    grid-template-columns: 1fr;
  }
  .drive-app > .shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .filetable th:first-child {
    width: 46%;
  }
  .filetable th:last-child {
    width: 22%;
  }
}
@media (max-width: 767px) {
  .drive-app > .topbar {
    height: 62px;
    padding: 0 15px;
    gap: 12px;
  }
  .drive-app > .topbar .brand small,
  .profile > span,
  .profile #signout {
    display: none;
  }
  .drive-app > .topbar .brand strong {
    font-size: 15px;
  }
  .product-switch a {
    padding: 7px 11px;
    font-size: 11px;
  }
  .drive-app > .shell {
    display: block;
    min-height: calc(100dvh - 62px);
  }
  .drive-app .sidebar {
    position: fixed;
    top: 62px;
    left: 0;
    bottom: 0;
    width: 270px;
    height: calc(100dvh - 62px);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s;
    display: flex;
  }
  .drive-app .folders-open .sidebar {
    transform: translateX(0);
  }
  .drive-app .sidebar .explorer-tree {
    display: block;
  }
  .drive-app .sidebar nav {
    display: flex;
    flex-direction: column;
  }
  .folder-overlay {
    position: fixed;
    inset: 62px 0 0;
    z-index: 45;
    background: var(--tone-121b3280);
    border: 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    display: none;
  }
  .folders-open .folder-overlay {
    display: block;
  }
  .drive-app .mobile-folders {
    display: inline-flex;
    border: 0;
    padding: 6px;
    min-width: 32px;
  }
  .drive-app .content {
    padding: 26px 16px 60px;
  }
  .pagehead {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 18px;
  }
  .pagehead h1 {
    font-size: 29px;
  }
  .pagehead .actions {
    width: 100%;
  }
  .pagehead .actions button.primary {
    margin-left: auto;
  }
  .drive-summary {
    gap: 14px;
    flex-wrap: wrap;
    font-size: 11px;
    padding-bottom: 18px;
  }
  .drive-summary strong {
    font-size: 19px;
  }
  .drive-summary .storage-status {
    margin-left: 0;
    flex-basis: 100%;
  }
  .browser-tools {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .browser-search {
    flex-basis: 100%;
  }
  .browser-search > .icon {
    display: block;
  }
  .sort-control {
    margin-left: auto;
  }
  .sort-control select {
    font-size: 11px;
    min-height: 35px;
    padding: 6px;
  }
  .library-filter {
    margin-top: 0;
    gap: 0;
  }
  .library-filter button {
    padding: 10px 13px;
    font-size: 11px;
  }
  .folder-grid {
    gap: 8px;
    margin-bottom: 22px;
  }
  .folder-tile {
    padding: 11px;
    gap: 3px;
  }
  .folder-tile .folder-link {
    gap: 8px;
    font-size: 11px;
    align-items: flex-start;
  }
  .folder-tile .file-icon {
    width: 28px;
    height: 30px;
    border-radius: 5px;
  }
  .folder-tile .file-icon .icon {
    width: 17px;
  }
  .folder-tile small {
    font-size: 9px;
  }
  .folder-tile .folder-menu-button {
    min-width: 22px;
    min-height: 32px;
  }
  .filetable td,
  .filetable th {
    padding: 13px 10px;
  }
  .filetable th:nth-child(2),
  .filetable td:nth-child(2),
  .filetable th:nth-child(3),
  .filetable td:nth-child(3) {
    display: none;
  }
  .filetable th:first-child {
    width: 74%;
  }
  .filetable th:last-child {
    width: 26%;
  }
  .file-actions .preview-action {
    display: none;
  }
  .filetable .filename {
    gap: 9px;
  }
  .filetable .file-title {
    font-size: 12px;
  }
  .filetable .file-icon {
    width: 27px;
    height: 34px;
  }
  .filetable .file-icon .icon {
    width: 17px;
  }
  .file-actions {
    gap: 2px;
  }
  .drive-app .cards {
    grid-template-columns: 1fr;
  }
  .drive-app .card {
    padding: 21px;
  }
  .drive-app .account {
    flex-wrap: wrap;
  }
  .login-card {
    padding: 27px;
  }
  .login-page {
    padding: 18px;
  }
  .uploadtray {
    right: 16px;
    bottom: 16px;
  }
  .permissions-dialog {
    padding: 18px;
  }
  .permission-user select {
    width: 140px;
  }
  dialog,
  .dialog {
    padding: 21px;
  }
  .preview-footer .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.drive-app .topbar .brand {
  color: var(--ink);
}
.drive-app .brand small {
  color: var(--muted);
}

.drive-app .mobile-folders {
  color: var(--tone-46546a);
}
.drive-app .profile > span {
  color: var(--ink);
}
.folder-tile .folder-link {
  white-space: normal;
}

.mobile-signout {
  display: none;
}
@media (max-width: 767px) {
  .drive-app .sidebar {
    visibility: hidden;
    overflow: auto;
  }
  .drive-app .folders-open .sidebar {
    visibility: visible;
  }
  .drive-app .sidebar nav {
    flex-shrink: 0;
  }
  .drive-app .sidebar .explorer-tree {
    position: static;
    inset: auto;
    width: auto;
    max-height: none;
    z-index: auto;
    background: transparent;
    padding: 0;
    margin: 6px 0;
    box-shadow: none;
    overflow: visible;
  }
  .drive-app .mobile-signout {
    display: flex;
    color: var(--tone-c3ccda);
    background: transparent;
    border-color: var(--tone-3a465b);
    justify-content: flex-start;
    margin-top: 16px;
  }
}

.utility-page .migration-page,
.utility-page .privacy-page {
  max-width: 1080px;
  margin: auto;
  padding: 44px 26px;
}
.utility-page .privacy-page {
  max-width: 800px;
  line-height: 1.75;
}
.utility-page .card {
  margin: 20px 0;
}
.utility-page h1 {
  font-size: 32px;
}
.utility-page summary {
  cursor: pointer;
  font-weight: 650;
}
.utility-page .privacy-page h2 {
  font-size: 20px;
  margin-top: 30px;
}
@media (max-width: 767px) {
  .drive-app .sidebar .sidefoot {
    display: block;
    flex-shrink: 0;
  }
  .drive-app .filetable th:last-child,
  .drive-app .filetable td:last-child {
    display: table-cell;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 800px), (pointer: coarse) {
  .folder-menu-button,
  .file-actions > button,
  .file-actions > a,
  .crumbs button,
  .tree-row button,
  .mobile-folders,
  .content .actions button,
  dialog button,
  dialog summary {
    min-height: 44px;
    min-width: 44px;
  }
}

.easy-upload {
  background: var(--surface);
  border: 1px solid var(--tone-ded6e1);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.easy-upload h2 {
  margin: 0 0 8px;
  font-size: 23px;
}
.easy-upload p {
  color: var(--tone-605565);
  margin: 8px 0 18px;
}
.easy-upload button {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 18px;
}
.easy-upload details {
  margin-top: 18px;
  font-size: 13px;
}
.easy-upload summary {
  cursor: pointer;
  color: var(--tone-71364e);
}
@media (max-width: 700px) {
  .easy-upload {
    padding: 20px;
  }
  .easy-upload button {
    width: 100%;
  }
}

/* Backstage visual system. Shared controls stay familiar across all surfaces. */
button,
.button,
summary,
.product-switch a {
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
button:not(.primary):hover,
.button:not(.primary):hover {
  background-color: var(--tone-f5f0fb);
}
input:focus,
select:focus {
  outline-color: var(--focus-ring);
}
label {
  color: var(--muted);
}
button,
.button,
summary {
  min-height: 44px;
}
summary {
  align-content: center;
}
.loading {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  min-height: 55dvh;
  text-align: center;
}
.loading img {
  animation: sparkle-pulse 1.4s ease-in-out infinite;
}
.loading p {
  color: var(--muted);
}
@keyframes sparkle-pulse {
  50% {
    opacity: 0.55;
    transform: scale(0.94);
  }
}
@keyframes toast-arrive {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
#notice {
  color: var(--white);
  border-radius: 28px;
  border-left: 4px solid var(--gold);
  animation: toast-arrive 0.18s ease-out;
}
#notice:empty {
  display: none;
}
.empty {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--surface-shadow);
}
.empty > img {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
}
.empty .button {
  margin-top: 22px;
}
.empty:not(:has(img, .icon))::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: url("/icon.svg") center / contain no-repeat;
}
.drive-app > .topbar,
body > header:has(.product-switch) {
  background: var(--night);
  border-bottom: 1px solid var(--tone-75);
  box-shadow: 0 1px 0 var(--tone-76);
}
.drive-app .topbar .brand,
body > header .app-brand,
.drive-app .profile > span {
  color: var(--white);
}
.drive-app .brand small {
  color: var(--tone-d6cde2);
}
.topbar #signout,
.drive-app .mobile-folders {
  color: var(--white);
}
.topbar #signout:hover,
.drive-app .mobile-folders:hover {
  background: var(--tone-ffffff14);
}
.avatar {
  background: var(--tone-3c284d);
  color: var(--gold);
  border: 1px solid var(--tone-f1c97755);
}
.avatar:hover {
  box-shadow: 0 0 0 3px var(--tone-f1c97733);
}
.product-switch {
  background: var(--tone-ffffff08);
  border-color: var(--tone-ffffff24);
  border-radius: 12px;
}
.product-switch a {
  color: var(--tone-d6cde2);
  min-height: 44px;
  border-bottom: 2px solid transparent;
}
.product-switch a:hover {
  color: var(--white);
  background: var(--tone-ffffff0d);
}
.product-switch a[aria-current="page"] {
  background: var(--tone-ffffff10);
  color: var(--white);
  border-bottom-color: var(--gold);
  box-shadow: none;
}
.sidebar nav button,
.sidebar nav a {
  min-height: 44px;
}
.sidebar nav button:hover,
.sidebar nav a:hover,
.sidebar .tree-line button:hover {
  background: var(--tone-ffffff0a);
  color: var(--white);
}
.sidebar nav .studio-nav {
  color: var(--tone-e0dbe9);
}
.sidebar nav .nav-label,
.sidebar .tree-caption {
  color: var(--tone-bcb0cc);
}
.sidebar .tree-line.selected button,
.sidebar .tree-folder .icon {
  color: var(--gold);
}
.sidebar .sidefoot,
.sidebar .sidefoot strong {
  color: var(--tone-c8bdd5);
}
.sidebar .tree-toggle {
  flex-basis: 44px;
  min-width: 44px;
}
.sidebar .tree-spacer {
  flex-basis: 44px;
}
.sidebar .tree-children {
  padding-left: 10px;
}
.sidebar .tree-folder span {
  max-width: 142px;
}
.sidebar .tree-folder {
  flex: 1;
}
.browser-search {
  border-radius: 999px;
  box-shadow: var(--surface-shadow);
}
.browser-search button {
  border-radius: 0 999px 999px 0;
  min-width: 66px;
  color: var(--accent);
}
.browser-search input {
  margin: 0;
}
.library-filter button {
  min-height: 44px;
  color: var(--muted);
}
.folder-tile {
  border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
}
.folder-tile:hover {
  border-color: var(--tone-d7a7bf);
  background: var(--tone-fffafd);
}
.folder-tile .folder-menu-button,
.file-actions .folder-menu-button,
.file-actions .download,
.file-actions .preview-action,
.crumbs button,
.account .small-button,
.folder-context button,
.sort-control select {
  min-height: 44px;
  min-width: 44px;
}
.folder-tile .folder-menu-button,
.file-actions .folder-menu-button,
.file-actions .download {
  border-radius: 50%;
}
.folder-tile .folder-menu-button:hover,
.file-actions .folder-menu-button:hover,
.file-actions .download:hover {
  background: var(--tone-91);
}
.filetable {
  border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
}
.filetable th {
  color: var(--muted);
  background: var(--tone-faf8fc);
}
.filetable tbody tr:hover > td:first-child {
  box-shadow: inset 3px 0 var(--accent);
}
.filetable .file-title {
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
}
.filetable .filename small {
  color: var(--muted);
  font-size: 12px;
}
.easy-upload {
  border-color: var(--tone-e1d8e9);
  box-shadow: var(--surface-shadow);
  position: relative;
  overflow: hidden;
}
.easy-upload h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 750;
}
.easy-upload p {
  color: var(--muted);
  line-height: 1.65;
}
.easy-upload:has(#upload-my-music) {
  background: linear-gradient(115deg, var(--surface) 60%, var(--tone-fbf2df));
  border-top: 3px solid var(--gold);
}
.easy-upload .actions {
  flex-wrap: wrap;
}
.easy-upload button {
  font-size: 16px;
  min-height: 54px;
}
.drive-app :is(#upload-my-music, #upload-button) {
  background: linear-gradient(135deg, var(--tone-f7da98), var(--gold));
  border-color: var(--tone-e3b562);
  color: var(--night);
}
.drive-app :is(#upload-my-music, #upload-button):hover {
  background: var(--tone-f7da98);
  box-shadow: 0 2px 8px var(--tone-d4a84d44);
}
.easy-upload summary {
  color: var(--accent);
}
.upload-drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px dashed var(--tone-98);
  border-radius: 14px;
  color: var(--muted);
  background: var(--tone-ffffff66);
}
.upload-drop label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: var(--accent);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.filepanel.dragover {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  background: var(--tone-100);
}
.filepanel.dragover .upload-drop {
  border-style: solid;
  border-color: var(--accent);
}
.uploadtray {
  border-top: 3px solid var(--gold);
}
/* Keep the existing navigation elements and handlers; pin the three workspace links on phones. */
@media (max-width: 767px) {
  .drive-app > .topbar {
    gap: 8px;
    padding-inline: 12px;
  }
  .drive-app > .topbar .brand strong {
    font-size: 16px;
  }
  .drive-app .mobile-folders {
    min-width: 44px;
    min-height: 44px;
  }
  .drive-app > .topbar .product-switch {
    display: none;
  }
  .drive-app .content {
    padding-bottom: calc(106px + env(safe-area-inset-bottom));
  }
  .drive-app .sidebar {
    transform: none;
    visibility: visible;
    background: transparent;
    width: min(320px, 88vw);
    pointer-events: none;
    overflow: visible;
    padding: 0;
  }
  .drive-app .sidebar > :not(nav),
  .drive-app .sidebar nav > * {
    display: none;
  }
  .drive-app .sidebar nav {
    pointer-events: none;
  }
  .drive-app .sidebar nav::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(72px + env(safe-area-inset-bottom));
    background: var(--shell-2);
    border-top: 1px solid var(--tone-ffffff16);
    box-shadow: 0 -4px 24px var(--tone-1a112b1a);
  }
  .drive-app
    .sidebar
    nav
    :is([data-view="files"], a[href="/shows"], a[href="/studio"]) {
    display: flex;
    position: fixed;
    bottom: env(safe-area-inset-bottom);
    width: 33.333333vw;
    height: 72px;
    margin: 0;
    border-radius: 0;
    padding: 10px 4px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    pointer-events: auto;
    color: var(--tone-e0dbe9);
  }
  .drive-app .sidebar nav [data-view="files"] {
    left: 0;
  }
  .drive-app .sidebar nav a[href="/shows"] {
    left: 33.333333vw;
  }
  .drive-app .sidebar nav a[href="/studio"] {
    left: 66.666667vw;
  }
  .drive-app .sidebar nav .selected {
    color: var(--gold);
    background: var(--tone-103);
    box-shadow: inset 0 3px var(--gold);
  }
  .drive-app .folders-open .sidebar {
    pointer-events: auto;
    background: var(--shell-2);
    /* One scrolling document: the full tree must push the footer down. */
    display: block;
    /* A transform would anchor the fixed bottom navigation to this drawer. */
    transform: none;
    overflow-y: auto;
    padding: 16px 12px;
    height: calc(100dvh - 134px - env(safe-area-inset-bottom));
  }
  .drive-app .folders-open .sidebar > :not(nav) {
    display: block;
  }
  .drive-app .folders-open .sidebar nav > * {
    display: flex;
    pointer-events: auto;
  }
  .drive-app .folders-open .sidebar nav .nav-label:first-child {
    display: none;
  }
  .drive-app .sidebar .explorer-tree {
    background: transparent;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .drive-app .folders-open .mobile-signout {
    display: flex;
  }
  .folder-overlay {
    bottom: calc(72px + env(safe-area-inset-bottom));
    height: auto;
  }
  .folder-grid {
    grid-template-columns: 1fr;
  }
  .folder-tile {
    padding: 12px;
  }
  .folder-tile .folder-link {
    font-size: 14px;
    align-items: center;
  }
  .folder-tile small {
    font-size: 12px;
  }
  .folder-tile .file-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .filetable th:first-child {
    width: 70%;
  }
  .filetable th:last-child {
    width: 30%;
  }
  .filetable .file-title {
    font-size: 14px;
  }
  .file-actions {
    flex-direction: column;
  }
  .file-actions .preview-action {
    display: none;
  }
  .uploadtray,
  #notice {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .privacy-footer {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading img,
  #notice {
    animation: none;
  }
}
.upload-drop button {
  border: 0;
  background: transparent;
  padding: 8px 4px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.empty > button {
  margin-top: 22px;
}
@media (max-width: 767px) {
  .drive-app .shell:not(.folders-open) .sidebar > :not(nav) {
    display: none;
  }
  .drive-app
    .shell:not(.folders-open)
    .sidebar
    nav
    > :not([data-view="files"]):not(a[href="/shows"]):not(a[href="/studio"]) {
    display: none;
  }
}
/* Drive keeps its persistent feedback region so errors and Undo remain available. */
.drive-app #message > .message:not(.error) {
  background: var(--night);
  color: var(--white);
  border: 0;
  border-left: 4px solid var(--gold);
  border-radius: 28px;
  box-shadow: var(--surface-shadow);
  animation: toast-arrive 0.18s ease-out;
}
.drive-app #message > .message button {
  color: var(--white);
  background: var(--tone-ffffff14);
  border-color: var(--tone-ffffff40);
}
@media (prefers-reduced-motion: reduce) {
  .drive-app #message > .message {
    animation: none;
  }
}
/* Accessible transient notices; persistent form errors keep their existing layout. */
#notice,
#toast {
  opacity: 0;
  pointer-events: none;
  translate: 0 16px;
  transition:
    opacity 0.2s ease,
    translate 0.25s ease;
  border-radius: var(--radius-pill);
  z-index: 9999;
}
#notice.visible,
#toast.visible {
  opacity: 1;
  pointer-events: auto;
  translate: 0 0;
}
#notice.error,
#toast.error {
  background: var(--tone-2a0d18);
  color: var(--white);
  border-left-color: var(--danger);
}
.sparkle-spin {
  animation: sparkle-pulse 1.4s ease-in-out infinite;
}
.sparkle-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: 16px;
}
.sparkle-loading p {
  color: var(--muted);
  font-size: 14px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  gap: 12px;
  color: var(--muted);
}
.empty-state img {
  opacity: 0.35;
}
.empty-state h2 {
  font-size: 20px;
  color: var(--ink);
  margin: 0;
}
.empty-state p {
  margin: 0;
  max-width: 360px;
}
.security-banner {
  background: var(--tone-fff0f1);
  border: 1px solid var(--tone-efcbd0);
  color: var(--tone-9f263b);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}
.previewable-row {
  cursor: pointer;
}
@media (max-width: 767px) {
  .drive-app .folders-open .sidebar {
    padding-bottom: 90px;
  }
  .drive-app .folders-open .sidebar .sidefoot {
    margin-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle-spin {
    animation: none;
  }
}
/* Authoritative button treatment and accessible exceptions for dark surfaces. */
button.primary,
.button.primary {
  background: var(--primary-gradient);
  border: none;
  color: var(--white);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent-2) 20%, transparent);
}
button.primary:hover,
.button.primary:hover {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 90%, white),
    color-mix(in srgb, var(--accent-2) 90%, white)
  );
  transform: translateY(-1px);
}
.folder-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px color-mix(in srgb, black 10%, transparent);
}
.badge.incomplete {
  background: var(--gold-bg);
  color: var(--tone-8a5800, #7a5200);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.avatar {
  background: var(--primary-gradient);
  color: white;
  font-weight: 700;
  border: 2px solid transparent;
}
.profile:hover .avatar {
  border-color: var(--gold);
}
.drive-app .brand small {
  color: var(--gold);
  letter-spacing: 0.16em;
}
.card,
.panel,
.folder-tile,
.easy-upload,
.filetable {
  border-radius: var(--radius);
}
.drive-app :is(#upload-my-music, #upload-button) {
  background: var(--primary-gradient);
  color: white;
}
@media (prefers-reduced-motion: reduce) {
  button.primary:hover,
  .button.primary:hover,
  .folder-tile:hover {
    transform: none;
  }
}
/* Touch targets include compact legacy controls. Timeline geometry stays time-proportional. */
body :is(button, .button, summary, select) {
  min-height: 44px !important;
}
body
  :is(button, .button, summary, select):not(.timeline-block):not(
    .scene-edge
  ):not(.track-edge) {
  min-width: 44px !important;
}
:is(button, a, input, select, summary, textarea):focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 3px;
}
body > header:has(.product-switch),
.drive-app > .topbar {
  box-shadow: 0 1px 8px color-mix(in srgb, black 30%, transparent);
}
.browser-table .search-group th {
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  padding: 14px;
}
@media (max-width: 767px) {
  .search-group {
    display: table-row !important;
  }
  .browser-table .search-group th {
    display: table-cell !important;
  }
}

/* Administrator file activity, phone and desktop. */
#activity-search {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
  margin: 20px 0;
}
#activity-search label {
  min-width: 0;
}
#activity-search input,
#activity-search select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#activity-search .actions {
  align-self: end;
  flex-wrap: wrap;
}
body:has(#activity-search) .deleted-card {
  overflow-wrap: anywhere;
}
#activity-search label {
  margin: 0;
}
@media (max-width: 600px) {
  #activity-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  #activity-search label:nth-child(-n + 2),
  #activity-search .actions {
    grid-column: 1 / -1;
  }
}

/* Keep the library and its files in view; one compact row for everyday uploads. */
.drive-quick-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #e1dbea;
  border-radius: 14px;
  background: #fff;
}
.drive-quick-actions button {
  min-height: 44px;
  padding: 9px 13px;
}
.drive-quick-actions .upload-help {
  margin-left: auto;
  max-width: 100%;
  font-size: 13px;
}
.upload-help summary {
  cursor: pointer;
  padding: 10px;
}
.upload-help[open] {
  flex-basis: 100%;
}
.upload-help p {
  margin: 4px 10px;
}
.attention-panel {
  border: 1px solid #dbbd77;
  border-radius: 12px;
  background: #fffaf0;
  margin: 0 0 16px;
  padding: 12px 16px;
}
.attention-panel summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}
.attention-panel .actions {
  margin-top: 12px;
}
.sync-readiness {
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #dbbd77;
  background: #fff7e5;
  color: #513c17;
  border-radius: 10px;
}
.sync-readiness strong {
  font-size: 18px;
}
.sync-readiness p {
  margin: 7px 0 0;
}
.sync-stale .sync-state {
  color: #805311;
}
.sync-stale progress {
  opacity: 0.45;
}
.recovery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 16px;
}
.recovery-card h2,
.recovery-card p {
  overflow-wrap: anywhere;
}
.recovery-card progress {
  width: 100%;
}
@media (max-width: 600px) {
  .drive-quick-actions {
    gap: 8px;
    padding: 10px;
  }
  .drive-quick-actions > button {
    flex: 1 1 calc(50% - 8px);
    font-size: 13px;
  }
  .drive-quick-actions > #upload-my-music {
    flex-basis: 100%;
  }
  .drive-quick-actions .upload-help {
    margin-left: 0;
  }
  .content .pagehead {
    margin-top: 8px;
  }
  .content .drive-summary {
    margin: 12px 0;
    gap: 12px;
  }
}
.add-artist > summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  padding: 4px 0;
}
.add-artist[open] > summary {
  margin-bottom: 18px;
}
.second-factor-dialog {
  max-width: 520px;
  width: calc(100% - 32px);
}
.second-factor-dialog input,
.second-factor-dialog textarea {
  max-width: 100%;
  box-sizing: border-box;
}
.second-factor-dialog textarea {
  width: 100%;
  font-family: monospace;
}
@media (max-width: 600px) {
  .drive-app .content {
    padding-top: 16px;
  }
  .drive-quick-actions .upload-help {
    flex: 1 1 auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .drive-quick-actions .upload-help summary {
    padding: 6px;
    font-size: 12px;
  }
  .drive-quick-actions > [data-open-uploads] {
    flex: 0 1 auto;
    min-height: 32px;
    padding: 6px;
    border: 0;
    font-size: 12px;
  }
  .drive-quick-actions {
    margin-bottom: 10px;
  }
  .content .attention-panel {
    padding: 9px 12px;
    margin-bottom: 12px;
  }
  .content .attention-panel summary {
    font-size: 12px;
  }
  .content .pagehead {
    gap: 8px;
    margin-bottom: 12px;
    padding: 0;
  }
  .content .pagehead .eyebrow {
    display: none;
  }
  .content .pagehead h1 {
    font-size: 25px;
    margin: 0;
  }
  .content .pagehead p {
    margin: 4px 0;
    font-size: 12px;
  }
  .content .pagehead .actions {
    margin: 0;
  }
  .content .drive-summary {
    margin: 8px 0 12px;
    padding-bottom: 10px;
  }
  .content .browser-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 7px;
    margin-bottom: 12px;
  }
  .content .browser-search {
    min-width: 0;
  }
  .content .browser-search input {
    width: 100%;
    min-width: 0;
    padding: 9px 6px;
    font-size: 14px;
  }
  .content .browser-search > .icon {
    display: none;
  }
  .content .browser-search button {
    font-size: 12px;
    padding: 8px;
  }
  .content .sort-control {
    min-width: 0;
    width: 100%;
  }
  .content .sort-control select {
    width: 100%;
    font-size: 12px;
    min-width: 0;
    padding: 8px;
  }
  .content .library-filter {
    margin-bottom: 10px;
  }
}
@media (max-width: 600px) {
  .content .browser-search {
    grid-column: 1;
    grid-row: 1;
  }
  .content .sort-control {
    grid-column: 2;
    grid-row: 1;
  }
  .content .upload-drop {
    display: none;
  }
  .content .crumbs {
    padding-bottom: 8px;
  }
  .content .attention-panel summary {
    padding: 0;
    min-height: 0;
  }
}

/* The same app switcher remains usable on narrow screens. */
nav[aria-label="Sparkles apps"]{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
@media(max-width:900px){body>header,.topbar{flex-wrap:wrap;height:auto;min-height:64px}nav[aria-label="Sparkles apps"]{order:3;flex-basis:100%;max-width:100%;padding:6px 0;gap:6px}.head-actions{flex-wrap:wrap}.head-actions button{white-space:normal}#draft-save-status{overflow-wrap:anywhere}}
