/* Fixed palette preserves the reviewed service appearance during token migration. */
:root {
  --color-service-00000004: #00000004;
  --color-service-0000000a: #0000000a;
  --color-service-0000000d: #0000000d;
  --color-service-0000000f: #0000000f;
  --color-service-00000012: #00000012;
  --color-service-00000014: #00000014;
  --color-service-0759d6: #0759d6;
  --color-service-08080a: #08080a;
  --color-service-10182800: #10182800;
  --color-service-10182824: #10182824;
  --color-service-10182852: #10182852;
  --color-service-10182870: #10182870;
  --color-service-10367d: #10367d;
  --color-service-172033: #172033;
  --color-service-17212e33: #17212e33;
  --color-service-17212f26: #17212f26;
  --color-service-17212f30: #17212f30;
  --color-service-17233255: #17233255;
  --color-service-17243818: #17243818;
  --color-service-18181877: #18181877;
  --color-service-18273a12: #18273a12;
  --color-service-18284024: #18284024;
  --color-service-18293b20: #18293b20;
  --color-service-1d293b: #1d293b;
  --color-service-1e2530: #1e2530;
  --color-service-202632: #202632;
  --color-service-202738: #202738;
  --color-service-202b39: #202b39;
  --color-service-217048: #217048;
  --color-service-225ba8: #225ba8;
  --color-service-234f8e: #234f8e;
  --color-service-2368c0: #2368c0;
  --color-service-238064: #238064;
  --color-service-242428: #242428;
  --color-service-243447: #243447;
  --color-service-244c8a: #244c8a;
  --color-service-2473d4: #2473d4;
  --color-service-252525: #252525;
  --color-service-252529: #252529;
  --color-service-252a34: #252a34;
  --color-service-252b37: #252b37;
  --color-service-25303a: #25303a;
  --color-service-253044: #253044;
  --color-service-253144: #253144;
  --color-service-254ac9: #254ac9;
  --color-service-26313e: #26313e;
  --color-service-26313e08: #26313e08;
  --color-service-26313e0a: #26313e0a;
  --color-service-26313e0d: #26313e0d;
  --color-service-26313e12: #26313e12;
  --color-service-26313e16: #26313e16;
  --color-service-26313e26: #26313e26;
  --color-service-26313e30: #26313e30;
  --color-service-26313e40: #26313e40;
  --color-service-263142: #263142;
  --color-service-28664f: #28664f;
  --color-service-292929: #292929;
  --color-service-2c394b: #2c394b;
  --color-service-2c4f8b: #2c4f8b;
  --color-service-2c579c: #2c579c;
  --color-service-2c6472: #2c6472;
  --color-service-2e568f: #2e568f;
  --color-service-303030: #303030;
  --color-service-303844: #303844;
  --color-service-303847: #303847;
  --color-service-303a49: #303a49;
  --color-service-303b4b: #303b4b;
  --color-service-31465e: #31465e;
  --color-service-3154bb: #3154bb;
  --color-service-3154dd: #3154dd;
  --color-service-3155b4: #3155b4;
  --color-service-315786: #315786;
  --color-service-3157bd: #3157bd;
  --color-service-315da5: #315da5;
  --color-service-315fa3: #315fa3;
  --color-service-333333: #333333;
  --color-service-33435c: #33435c;
  --color-service-34435d: #34435d;
  --color-service-34518c: #34518c;
  --color-service-34577e: #34577e;
  --color-service-3458c5: #3458c5;
  --color-service-345c9f: #345c9f;
  --color-service-35445b: #35445b;
  --color-service-354b6e: #354b6e;
  --color-service-3566b7: #3566b7;
  --color-service-363636: #363636;
  --color-service-36414de8: #36414de8;
  --color-service-365db2: #365db2;
  --color-service-394150: #394150;
  --color-service-394b64: #394b64;
  --color-service-397660: #397660;
  --color-service-3978c4: #3978c4;
  --color-service-3d5de3: #3d5de3;
  --color-service-3e568b: #3e568b;
  --color-service-406d96: #406d96;
  --color-service-414b5b: #414b5b;
  --color-service-4174b7: #4174b7;
  --color-service-4263d9: #4263d9;
  --color-service-4263eb: #4263eb;
  --color-service-4263eb1a: #4263eb1a;
  --color-service-4263eb28: #4263eb28;
  --color-service-435b89: #435b89;
  --color-service-444444: #444444;
  --color-service-4556cb: #4556cb;
  --color-service-465568: #465568;
  --color-service-48916d: #48916d;
  --color-service-495465: #495465;
  --color-service-4a8deb: #4a8deb;
  --color-service-4ad39e40: #4ad39e40;
  --color-service-4c5668: #4c5668;
  --color-service-4e68ca: #4e68ca;
  --color-service-505969: #505969;
  --color-service-50715f: #50715f;
  --color-service-515e70: #515e70;
  --color-service-526174: #526174;
  --color-service-526177: #526177;
  --color-service-52637a: #52637a;
  --color-service-5264de: #5264de;
  --color-service-526b88: #526b88;
  --color-service-526ee3: #526ee3;
  --color-service-536074: #536074;
  --color-service-536479: #536479;
  --color-service-536da6: #536da6;
  --color-service-555555: #555555;
  --color-service-566274: #566274;
  --color-service-56677f: #56677f;
  --color-service-5675c8: #5675c8;
  --color-service-5872d8: #5872d8;
  --color-service-596474: #596474;
  --color-service-596879: #596879;
  --color-service-5b687a: #5b687a;
  --color-service-5c6673: #5c6673;
  --color-service-5f5f5f: #5f5f5f;
  --color-service-617083: #617083;
  --color-service-62438e: #62438e;
  --color-service-626262: #626262;
  --color-service-637184: #637184;
  --color-service-657185: #657185;
  --color-service-657385: #657385;
  --color-service-65748b: #65748b;
  --color-service-666666: #666666;
  --color-service-667085: #667085;
  --color-service-66717f: #66717f;
  --color-service-667487: #667487;
  --color-service-66748a: #66748a;
  --color-service-687282: #687282;
  --color-service-68758a: #68758a;
  --color-service-687689: #687689;
  --color-service-68778b: #68778b;
  --color-service-697384: #697384;
  --color-service-697485: #697485;
  --color-service-6b778a: #6b778a;
  --color-service-6c7889: #6c7889;
  --color-service-713e37: #713e37;
  --color-service-72959e: #72959e;
  --color-service-7297d2: #7297d2;
  --color-service-72ab96: #72ab96;
  --color-service-73549d: #73549d;
  --color-service-737373: #737373;
  --color-service-737780: #737780;
  --color-service-737b88: #737b88;
  --color-service-737c89: #737c89;
  --color-service-777777: #777777;
  --color-service-778295: #778295;
  --color-service-785e20: #785e20;
  --color-service-7890aa1a: #7890aa1a;
  --color-service-7986e3: #7986e3;
  --color-service-7a818d: #7a818d;
  --color-service-7a879b: #7a879b;
  --color-service-7b8490: #7b8490;
  --color-service-7b8494: #7b8494;
  --color-service-7c8998: #7c8998;
  --color-service-7d4141: #7d4141;
  --color-service-818a98: #818a98;
  --color-service-858d99: #858d99;
  --color-service-888888: #888888;
  --color-service-898989: #898989;
  --color-service-89919e: #89919e;
  --color-service-8a929d: #8a929d;
  --color-service-8a929e: #8a929e;
  --color-service-8b741d: #8b741d;
  --color-service-8b94a1: #8b94a1;
  --color-service-8c3d5b: #8c3d5b;
  --color-service-8d5a1f: #8d5a1f;
  --color-service-8d7140: #8d7140;
  --color-service-929292: #929292;
  --color-service-969696: #969696;
  --color-service-999999: #999999;
  --color-service-9a80c7: #9a80c7;
  --color-service-9aa1ac: #9aa1ac;
  --color-service-9ab8f2: #9ab8f2;
  --color-service-9b722e: #9b722e;
  --color-service-9b9b9b: #9b9b9b;
  --color-service-9d352b: #9d352b;
  --color-service-9e443b: #9e443b;
  --color-service-a23838: #a23838;
  --color-service-a24d44: #a24d44;
  --color-service-a3a3a3: #a3a3a3;
  --color-service-a56930: #a56930;
  --color-service-a92c26: #a92c26;
  --color-service-aaaaaa: #aaaaaa;
  --color-service-ad322a: #ad322a;
  --color-service-b1483f: #b1483f;
  --color-service-b1caff: #b1caff;
  --color-service-b34242: #b34242;
  --color-service-b42318: #b42318;
  --color-service-b43b3b: #b43b3b;
  --color-service-b4bfce: #b4bfce;
  --color-service-b54438: #b54438;
  --color-service-b5b5b5: #b5b5b5;
  --color-service-b5c0ce: #b5c0ce;
  --color-service-b7cce9: #b7cce9;
  --color-service-b88b45: #b88b45;
  --color-service-b9c8ff: #b9c8ff;
  --color-service-ba5147: #ba5147;
  --color-service-bcc2cb: #bcc2cb;
  --color-service-bd675c: #bd675c;
  --color-service-bdc8d6: #bdc8d6;
  --color-service-bea778: #bea778;
  --color-service-beccec: #beccec;
  --color-service-c4d3e7: #c4d3e7;
  --color-service-c5a448: #c5a448;
  --color-service-c7463d: #c7463d;
  --color-service-cbd4df: #cbd4df;
  --color-service-cbd7f4: #cbd7f4;
  --color-service-cc8ea6: #cc8ea6;
  --color-service-cdd5df: #cdd5df;
  --color-service-ced8e5: #ced8e5;
  --color-service-d0d8e4: #d0d8e4;
  --color-service-d4a13b: #d4a13b;
  --color-service-d4dae5: #d4dae5;
  --color-service-d4dce6: #d4dce6;
  --color-service-d4dce7: #d4dce7;
  --color-service-d5dde7: #d5dde7;
  --color-service-d5deeb: #d5deeb;
  --color-service-d7dbe5: #d7dbe5;
  --color-service-d7e0ee: #d7e0ee;
  --color-service-d8e1ed: #d8e1ed;
  --color-service-d9e3f2: #d9e3f2;
  --color-service-dce1e7: #dce1e7;
  --color-service-dce1e8: #dce1e8;
  --color-service-dce2e9: #dce2e9;
  --color-service-dce3eb: #dce3eb;
  --color-service-dce3ec: #dce3ec;
  --color-service-dce3ed: #dce3ed;
  --color-service-dce5ef: #dce5ef;
  --color-service-dddddd: #dddddd;
  --color-service-def1e9: #def1e9;
  --color-service-dfe3e8: #dfe3e8;
  --color-service-dfe3e9: #dfe3e9;
  --color-service-dfe4ed: #dfe4ed;
  --color-service-dfe5ed: #dfe5ed;
  --color-service-dfe5ee: #dfe5ee;
  --color-service-e0e5eb: #e0e5eb;
  --color-service-e0e5ed: #e0e5ed;
  --color-service-e1e6ed: #e1e6ed;
  --color-service-e2e7ee: #e2e7ee;
  --color-service-e3e3e3: #e3e3e3;
  --color-service-e3e8ef: #e3e8ef;
  --color-service-e3e9f1: #e3e9f1;
  --color-service-e43434: #e43434;
  --color-service-e4343414: #e4343414;
  --color-service-e4e4e4: #e4e4e4;
  --color-service-e4e5e9: #e4e5e9;
  --color-service-e4e8ee: #e4e8ee;
  --color-service-e4edfc: #e4edfc;
  --color-service-e5e5e8: #e5e5e8;
  --color-service-e5e8ee: #e5e8ee;
  --color-service-e6e6e6: #e6e6e6;
  --color-service-e6e9ee: #e6e9ee;
  --color-service-e6eaf0: #e6eaf0;
  --color-service-e7e7e7: #e7e7e7;
  --color-service-e7ebf0: #e7ebf0;
  --color-service-e7edf5: #e7edf5;
  --color-service-e8e8e8: #e8e8e8;
  --color-service-e8eaee: #e8eaee;
  --color-service-e9edf1: #e9edf1;
  --color-service-e9edf2: #e9edf2;
  --color-service-ededed: #ededed;
  --color-service-edf0f3: #edf0f3;
  --color-service-edf0f4: #edf0f4;
  --color-service-edf0f5: #edf0f5;
  --color-service-edf1f6: #edf1f6;
  --color-service-edf1ff: #edf1ff;
  --color-service-edf2f7: #edf2f7;
  --color-service-edf2f8: #edf2f8;
  --color-service-edf2fc: #edf2fc;
  --color-service-edf2ff: #edf2ff;
  --color-service-edf3fc: #edf3fc;
  --color-service-edf8f1: #edf8f1;
  --color-service-eee8fa: #eee8fa;
  --color-service-eeeeee: #eeeeee;
  --color-service-eef2fa: #eef2fa;
  --color-service-eef4fa: #eef4fa;
  --color-service-efc5be: #efc5be;
  --color-service-eff3f7: #eff3f7;
  --color-service-f0f2f5: #f0f2f5;
  --color-service-f0f2ff: #f0f2ff;
  --color-service-f0f3f7: #f0f3f7;
  --color-service-f0f3f8: #f0f3f8;
  --color-service-f0f3ff: #f0f3ff;
  --color-service-f0f6f7: #f0f6f7;
  --color-service-f1f1f1: #f1f1f1;
  --color-service-f1f3f6: #f1f3f6;
  --color-service-f1f4fa: #f1f4fa;
  --color-service-f1f5f9: #f1f5f9;
  --color-service-f2f2f3: #f2f2f3;
  --color-service-f2f5f9: #f2f5f9;
  --color-service-f2f5fb: #f2f5fb;
  --color-service-f3eff8: #f3eff8;
  --color-service-f3f3f3: #f3f3f3;
  --color-service-f3f5f7: #f3f5f7;
  --color-service-f4f4f4: #f4f4f4;
  --color-service-f4f6f8: #f4f6f8;
  --color-service-f4f6f9: #f4f6f9;
  --color-service-f4f6fa: #f4f6fa;
  --color-service-f4f6fc: #f4f6fc;
  --color-service-f5f5f5: #f5f5f5;
  --color-service-f5f7fa: #f5f7fa;
  --color-service-f6f7f9: #f6f7f9;
  --color-service-f7f9fc: #f7f9fc;
  --color-service-f8e4eb: #f8e4eb;
  --color-service-f9edea: #f9edea;
  --color-service-faf6e6: #faf6e6;
  --color-service-fafbfc: #fafbfc;
  --color-service-fbefcf: #fbefcf;
  --color-service-fdf0f0: #fdf0f0;
  --color-service-fdfaf4: #fdfaf4;
  --color-service-fff0ee: #fff0ee;
  --color-service-fff2f2: #fff2f2;
  --color-service-fff4f3: #fff4f3;
  --color-service-fff8e8: #fff8e8;
  --color-service-fff8f7: #fff8f7;
  --color-service-fffaf0: #fffaf0;
  --color-service-ffffff: #ffffff;
  --color-service-ffffffed: #ffffffed;
  --color-service-00000000: #00000000;
  --color-service-00000022: #00000022;
  --color-service-00000066: #00000066;
  --color-service-0756d0: #0756d0;
  --color-service-0759c9: #0759c9;
  --color-service-101822e8: #101822e8;
  --color-service-101f3410: #101f3410;
  --color-service-111111: #111111;
  --color-service-1259c6: #1259c6;
  --color-service-1266e8: #1266e8;
  --color-service-142336d9: #142336d9;
  --color-service-14251f66: #14251f66;
  --color-service-145bc1: #145bc1;
  --color-service-147250: #147250;
  --color-service-152b46: #152b46;
  --color-service-162d4e0a: #162d4e0a;
  --color-service-17203330: #17203330;
  --color-service-172535: #172535;
  --color-service-172a2633: #172a2633;
  --color-service-172f56: #172f56;
  --color-service-17334833: #17334833;
  --color-service-1769e0: #1769e0;
  --color-service-182330: #182330;
  --color-service-182534: #182534;
  --color-service-191f28: #191f28;
  --color-service-191f2826: #191f2826;
  --color-service-191f2866: #191f2866;
  --color-service-192433: #192433;
  --color-service-192433db: #192433db;
  --color-service-193e3010: #193e3010;
  --color-service-195ce3: #195ce3;
  --color-service-1b2637: #1b2637;
  --color-service-202630: #202630;
  --color-service-202734: #202734;
  --color-service-202832: #202832;
  --color-service-202932: #202932;
  --color-service-202b28: #202b28;
  --color-service-202f44: #202f44;
  --color-service-2167ec: #2167ec;
  --color-service-225f50: #225f50;
  --color-service-23303be8: #23303be8;
  --color-service-243349: #243349;
  --color-service-24483e: #24483e;
  --color-service-245846: #245846;
  --color-service-245bc3: #245bc3;
  --color-service-246bf5: #246bf5;
  --color-service-253746: #253746;
  --color-service-2563d7: #2563d7;
  --color-service-256bf3: #256bf3;
  --color-service-263747: #263747;
  --color-service-26374a: #26374a;
  --color-service-267765: #267765;
  --color-service-27364b: #27364b;
  --color-service-27384a: #27384a;
  --color-service-276148: #276148;
  --color-service-28335312: #28335312;
  --color-service-284bbd: #284bbd;
  --color-service-286f5c: #286f5c;
  --color-service-28734f: #28734f;
  --color-service-28795b: #28795b;
  --color-service-2d6746: #2d6746;
  --color-service-2f8064: #2f8064;
  --color-service-303845: #303845;
  --color-service-304965: #304965;
  --color-service-30527b12: #30527b12;
  --color-service-316c59: #316c59;
  --color-service-317458: #317458;
  --color-service-32765c: #32765c;
  --color-service-328067: #328067;
  --color-service-328565: #328565;
  --color-service-328d6c: #328d6c;
  --color-service-333d4b: #333d4b;
  --color-service-334b6a: #334b6a;
  --color-service-34463f: #34463f;
  --color-service-34465b: #34465b;
  --color-service-34465e: #34465e;
  --color-service-34594f: #34594f;
  --color-service-356448: #356448;
  --color-service-38609e: #38609e;
  --color-service-39765e: #39765e;
  --color-service-3c5046: #3c5046;
  --color-service-3c5270: #3c5270;
  --color-service-3c7c69: #3c7c69;
  --color-service-414b5d: #414b5d;
  --color-service-415361: #415361;
  --color-service-42526a: #42526a;
  --color-service-425670: #425670;
  --color-service-435162: #435162;
  --color-service-456080: #456080;
  --color-service-4594fa: #4594fa;
  --color-service-465668: #465668;
  --color-service-475669: #475669;
  --color-service-4c5b6b: #4c5b6b;
  --color-service-4e5968: #4e5968;
  --color-service-51739c: #51739c;
  --color-service-52606e: #52606e;
  --color-service-526d60: #526d60;
  --color-service-527c70: #527c70;
  --color-service-536780: #536780;
  --color-service-546178: #546178;
  --color-service-557467: #557467;
  --color-service-566172: #566172;
  --color-service-56697c: #56697c;
  --color-service-57677a: #57677a;
  --color-service-586576: #586576;
  --color-service-586675: #586675;
  --color-service-586677: #586677;
  --color-service-58667a: #58667a;
  --color-service-58677a: #58677a;
  --color-service-597166: #597166;
  --color-service-59716f: #59716f;
  --color-service-5a6572: #5a6572;
  --color-service-5b6e62: #5b6e62;
  --color-service-5c6573: #5c6573;
  --color-service-5e6c7a: #5e6c7a;
  --color-service-5e7067: #5e7067;
  --color-service-5fcf98: #5fcf98;
  --color-service-617067: #617067;
  --color-service-61736a: #61736a;
  --color-service-626e7e: #626e7e;
  --color-service-627184: #627184;
  --color-service-63726b: #63726b;
  --color-service-637282: #637282;
  --color-service-63736b: #63736b;
  --color-service-647184: #647184;
  --color-service-64746d: #64746d;
  --color-service-64746e: #64746e;
  --color-service-64748b: #64748b;
  --color-service-657386: #657386;
  --color-service-65766c: #65766c;
  --color-service-659988: #659988;
  --color-service-667383: #667383;
  --color-service-687582: #687582;
  --color-service-68768a: #68768a;
  --color-service-697585: #697585;
  --color-service-6a7771: #6a7771;
  --color-service-6a7772: #6a7772;
  --color-service-6a7a72: #6a7a72;
  --color-service-6b7684: #6b7684;
  --color-service-6b7a91: #6b7a91;
  --color-service-6c7b73: #6c7b73;
  --color-service-6c7c72: #6c7c72;
  --color-service-6c80a0: #6c80a0;
  --color-service-6c9a8c: #6c9a8c;
  --color-service-6d7779: #6d7779;
  --color-service-6d7973: #6d7973;
  --color-service-6d7a73: #6d7a73;
  --color-service-718198: #718198;
  --color-service-72817c: #72817c;
  --color-service-738078: #738078;
  --color-service-75847c: #75847c;
  --color-service-76808e: #76808e;
  --color-service-7699cf: #7699cf;
  --color-service-777f84: #777f84;
  --color-service-78817d: #78817d;
  --color-service-788492: #788492;
  --color-service-78867e: #78867e;
  --color-service-798496: #798496;
  --color-service-798594: #798594;
  --color-service-7a867f: #7a867f;
  --color-service-7a8680: #7a8680;
  --color-service-7a8796: #7a8796;
  --color-service-7b8592: #7b8592;
  --color-service-7b8593: #7b8593;
  --color-service-7b8981: #7b8981;
  --color-service-80652e: #80652e;
  --color-service-80908c: #80908c;
  --color-service-8190a1: #8190a1;
  --color-service-82909c: #82909c;
  --color-service-8290a1: #8290a1;
  --color-service-8490a0: #8490a0;
  --color-service-8496ad: #8496ad;
  --color-service-856d3b: #856d3b;
  --color-service-8792a1: #8792a1;
  --color-service-886766: #886766;
  --color-service-89631d: #89631d;
  --color-service-8a958e: #8a958e;
  --color-service-8a9590: #8a9590;
  --color-service-8a95a3: #8a95a3;
  --color-service-8a97a4: #8a97a4;
  --color-service-8b6d2e: #8b6d2e;
  --color-service-8b723d: #8b723d;
  --color-service-8b94a0: #8b94a0;
  --color-service-8b97a7: #8b97a7;
  --color-service-8c5260: #8c5260;
  --color-service-8da6fa: #8da6fa;
  --color-service-97baff: #97baff;
  --color-service-9a4033: #9a4033;
  --color-service-9b6d25: #9b6d25;
  --color-service-9daeba70: #9daeba70;
  --color-service-a06b26: #a06b26;
  --color-service-a43d40: #a43d40;
  --color-service-a63e34: #a63e34;
  --color-service-a73939: #a73939;
  --color-service-acbfd9: #acbfd9;
  --color-service-b42330: #b42330;
  --color-service-b48024: #b48024;
  --color-service-b6cdfd: #b6cdfd;
  --color-service-b83f32: #b83f32;
  --color-service-b8443c: #b8443c;
  --color-service-b9d3c1: #b9d3c1;
  --color-service-c4daf8: #c4daf8;
  --color-service-cbd6de: #cbd6de;
  --color-service-ccd3dc: #ccd3dc;
  --color-service-ccd7d1: #ccd7d1;
  --color-service-d43842: #d43842;
  --color-service-d5dddc: #d5dddc;
  --color-service-d6dfdb: #d6dfdb;
  --color-service-d6e0e8: #d6e0e8;
  --color-service-d7e0ea: #d7e0ea;
  --color-service-d8e2dd: #d8e2dd;
  --color-service-d94848: #d94848;
  --color-service-d9a231: #d9a231;
  --color-service-d9dee5: #d9dee5;
  --color-service-d9e5e0: #d9e5e0;
  --color-service-dce3df: #dce3df;
  --color-service-dce3e8: #dce3e8;
  --color-service-dce8e3: #dce8e3;
  --color-service-dde2e9: #dde2e9;
  --color-service-dde3ec: #dde3ec;
  --color-service-dde5e0: #dde5e0;
  --color-service-dee5e0: #dee5e0;
  --color-service-dfe6ee: #dfe6ee;
  --color-service-e0e5e3: #e0e5e3;
  --color-service-e0e6e3: #e0e6e3;
  --color-service-e0edff: #e0edff;
  --color-service-e1a32a: #e1a32a;
  --color-service-e1e7e4: #e1e7e4;
  --color-service-e2e7e4: #e2e7e4;
  --color-service-e2e8e4: #e2e8e4;
  --color-service-e3e6e9: #e3e6e9;
  --color-service-e3e7ec: #e3e7ec;
  --color-service-e3e8e5: #e3e8e5;
  --color-service-e4e9e6: #e4e9e6;
  --color-service-e5e8ed: #e5e8ed;
  --color-service-e5e9ef: #e5e9ef;
  --color-service-e5eaf0: #e5eaf0;
  --color-service-e6e9e9: #e6e9e9;
  --color-service-e6eae7: #e6eae7;
  --color-service-e7ebee: #e7ebee;
  --color-service-e7ebf1: #e7ebf1;
  --color-service-e8ece9: #e8ece9;
  --color-service-e8edf2: #e8edf2;
  --color-service-e8edf3: #e8edf3;
  --color-service-e8f4ed: #e8f4ed;
  --color-service-eaf1fc: #eaf1fc;
  --color-service-eaf2ff: #eaf2ff;
  --color-service-eaf5f1: #eaf5f1;
  --color-service-eaf7ef: #eaf7ef;
  --color-service-edf0ee: #edf0ee;
  --color-service-edf1f7: #edf1f7;
  --color-service-edf3f8: #edf3f8;
  --color-service-edf3fa: #edf3fa;
  --color-service-edf4fd: #edf4fd;
  --color-service-edf4ff: #edf4ff;
  --color-service-edf5ef: #edf5ef;
  --color-service-edf6ef: #edf6ef;
  --color-service-eef1f2: #eef1f2;
  --color-service-eef5ff: #eef5ff;
  --color-service-eff2f4: #eff2f4;
  --color-service-eff3f6: #eff3f6;
  --color-service-eff5f3: #eff5f3;
  --color-service-f0b060: #f0b060;
  --color-service-f0f2f8: #f0f2f8;
  --color-service-f0f3f2: #f0f3f2;
  --color-service-f0f6f3: #f0f6f3;
  --color-service-f1f3f2: #f1f3f2;
  --color-service-f1f3f5: #f1f3f5;
  --color-service-f1f4f8: #f1f4f8;
  --color-service-f1f5f3: #f1f5f3;
  --color-service-f1f6ff: #f1f6ff;
  --color-service-f2f4f6: #f2f4f6;
  --color-service-f2f7ff: #f2f7ff;
  --color-service-f3f4f6: #f3f4f6;
  --color-service-f4eeec: #f4eeec;
  --color-service-f4f7fa: #f4f7fa;
  --color-service-f5f8fa: #f5f8fa;
  --color-service-f5f8fadc: #f5f8fadc;
  --color-service-f5f8fae0: #f5f8fae0;
  --color-service-f6f8f7: #f6f8f7;
  --color-service-f6f8fc: #f6f8fc;
  --color-service-f7f9f8: #f7f9f8;
  --color-service-f8f9fb: #f8f9fb;
  --color-service-faf3df: #faf3df;
  --color-service-fca5a5: #fca5a5;
  --color-service-fee500: #fee500;
  --color-service-fff1f2: #fff1f2;
  --color-service-fff3f3: #fff3f3;
  --color-service-fff4f2: #fff4f2;
  --color-service-fff6f4: #fff6f4;
  --color-service-ffffff29: #ffffff29;
  --color-service-ffffffb8: #ffffffb8;
  --color-service-fffffff0: #fffffff0;
}
:root {
  /* =========================
     🎯 BRAND (공모전 기준 네이비)
  ========================= */
  --color-primary: #1d1d1f;
  --color-primary-hover: #353537;
  --color-primary-active: #09090b;

  /* soft / background */
  --color-primary-soft: #f4f4f5;
  --color-primary-soft-hover: #eaeaec;

  /* glow (헤더 그라데이션용) */
  --color-primary-glow: rgba(29, 29, 31, 0.06);

  /* =========================
     🎨 ACCENT (보라 포인트)
  ========================= */
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;

  --color-accent-soft: #eff5ff;
  --color-accent-soft-hover: #e2edff;

  /* =========================
     📝 TEXT (기본)
  ========================= */
  --color-text-main: #1d1d1f;
  --color-text-sub: #46464b;
  --color-text-muted: #6e6e73;
  --color-text-placeholder: #9ca3af;
  --color-text-inverse: #ffffff;

  /* =========================
     📦 BACKGROUND
  ========================= */
  --color-bg-white: #ffffff;
  --color-bg-soft: #f5f5f7;
  --color-bg-page: #ffffff;

  /* =========================
     🔲 BORDER
  ========================= */
  --color-border: #e5e5e7;
  --color-border-muted: #d1d5db;
  --color-border-strong: #cbd5e1;
  --color-border-focus: #8caef3;

  /* =========================
     🔷 BRAND (인디고 블루)
     --color-primary(#10367d)와 별개로, 여러 화면에 이미 반복 하드코딩돼
     있던 밝은 인디고 블루 계열. 6-B1(MyPage 파일럿)에서 처음 토큰화.
     brand-strong/deep/badge/icon/joined은 서로 다른 텍스트 용도로 쓰이던
     근접색(Δ13~35)을 값 변경 없이 각자 토큰화한 것 - 추후 통합 여지 있음.
  ========================= */
  --color-brand: #3158ff;
  --color-brand-strong: #4054dc;
  --color-brand-purple: #6b54ff;
  --color-brand-deep: #4d5dde;
  --color-brand-badge: #5368df;
  --color-brand-icon: #4965ff;
  --color-brand-joined: #4361c2;
  --color-brand-soft: #eef2ff;
  --color-brand-soft-hover: #cfd8ff;
  --color-brand-glow: rgba(69, 91, 255, 0.22);
  --color-brand-focus-ring: rgba(73, 101, 255, 0.1);
  --color-brand-badge-bg: rgba(87, 108, 255, 0.09);

  /* =========================
     🚨 STATUS
  ========================= */
  --color-success: #16a34a;
  --color-success-soft: #ecf7ef;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-danger-soft: #fff3f3;
  --color-danger-hover: #e05252;
  --color-status-pending: #a87000;
  --color-status-pending-soft: #fff8e6;
  --color-danger-strong: #b42318;
  --color-like: #ff4f75;

  /* 채도 높은 브랜드/상태 색 배경(버튼·배지 등) 위에 얹는 텍스트 -
     두 테마 모두에서 배경이 이미 충분히 짙거나 채도가 높아 흰 글자를
     그대로 유지해야 하는 경우 전용 (예: 삭제/종료 버튼, 그라디언트 CTA) */
  --color-text-on-brand: #ffffff;

  /* =========================
     🏷️ TYPE 배지 (My*Page 목록 계열 - 스터디/소모임 유형 라벨)
  ========================= */
  --color-type-study: #189b5b;
  --color-type-smallgroup: #b45309;
  --color-type-smallgroup-soft: #d97706;

  /* =========================
     🪟 오버레이 / 백드롭
  ========================= */
  --color-backdrop: rgba(10, 12, 30, 0.48);
  --color-backdrop-strong: rgba(4, 13, 30, 0.62);
  --color-overlay-white: rgba(255, 255, 255, 0.1);
  --color-brand-glow-fab: rgba(73, 101, 255, 0.28);
  --color-brand-glow-fab-hover: rgba(73, 101, 255, 0.34);
  --color-admin-highlight-bg: rgba(38, 91, 173, 0.28);
  --color-danger-glow: rgba(220, 38, 38, 0.22);

  /* =========================
     🌑 SHADOW BASE (색상만)
  ========================= */
  --color-shadow-base: rgba(15, 23, 42, 0.05);
  --color-shadow-strong: rgba(15, 23, 42, 0.08);

  --color-shadow-primary: rgba(16, 54, 125, 0.18);
  --color-shadow-primary-hover: rgba(16, 54, 125, 0.24);
  --color-shadow-primary-active: rgba(16, 54, 125, 0.22);
  --color-shadow-accent-glow: rgba(124, 58, 237, 0.1);

  /* =========================
     🎯 FOCUS
  ========================= */
  --color-focus-ring: rgba(37, 99, 235, 0.15);
}
/* 6-B2.1: dark.css는 순증가가 금지된 해체 대상 파일이라 이 다크 재정의는
   여기(토큰 정의 파일)에 둔다 - --color-danger-strong은 라이트에서
   재정의 없이 그대로 쓰였는데(#b42318), 다크에서는 어두운 배경 위 텍스트로
   쓰이는 지점(삭제/마감 등 상태 라벨)이 있어 --color-danger와 동일한
   다크 값으로 밝혀준다. */
[data-theme="dark"] {
  --color-danger-strong: #f87171;
  --color-shadow-accent-glow: rgba(79, 142, 247, 0.15);
}
:root {
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.08);

  --shadow-primary: 0 10px 22px rgba(16, 54, 125, 0.18);
  --shadow-primary-hover: 0 14px 28px rgba(16, 54, 125, 0.24);

  --focus-ring: 0 0 0 4px rgba(124, 58, 237, 0.1);
}
:root {
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 999px;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --mobile-nav-height: 76px;
}
/* 브라우저에게 이 화면이 밝은 화면임을 알린다.
 *
 * 이걸 안 적어 두면 태블릿·폰의 크로미움이 "자동 다크 모드"로 색을 제멋대로
 * 뒤집는다. 앱에서 밝은 모드를 골라 두어도 OS가 다크면 화면이 어두워져서,
 * 사용자 눈에는 설정이 먹지 않는 것으로 보인다.
 * 스크롤바·기본 폼 요소 같은 브라우저가 그리는 부분도 이 값을 따른다.
 * 다크 쪽은 dark.css가 이미 선언한다 — 여기 없던 건 밝은 쪽뿐이었다. */
:root { color-scheme: light; }
:root,
[data-theme="light"] {
  /* =========================
     🧱 BACKGROUND
  ========================= */
  --app-bg: var(--color-bg-white);
  --app-bg-page: var(--color-bg-page);
  --app-bg-card: var(--color-bg-white);
  --app-bg-soft: var(--color-bg-soft);

  /* =========================
     📝 TEXT
  ========================= */
  --app-text-main: var(--color-text-main);
  --app-text-sub: var(--color-text-sub);
  --app-text-muted: var(--color-text-muted);
  --app-text-placeholder: var(--color-text-placeholder);
  --app-text-inverse: var(--color-text-inverse);

  /* =========================
     🔲 BORDER
  ========================= */
  --app-border: var(--color-border);
  --app-border-muted: var(--color-border-muted);
  --app-border-strong: var(--color-border-strong);

  /* =========================
     🎯 PRIMARY (버튼, 강조)
  ========================= */
  --app-primary: var(--color-primary);
  --app-primary-hover: var(--color-primary-hover);
  --app-primary-active: var(--color-primary-active);

  --app-primary-soft: var(--color-primary-soft);

  /* =========================
     🎨 ACCENT
  ========================= */
  --app-accent: var(--color-accent);
  --app-accent-soft: var(--color-accent-soft);

  /* =========================
     🌑 SHADOW
  ========================= */
  --shadow-sm: 0 10px 28px var(--color-shadow-base);
  --shadow-md: 0 14px 40px var(--color-shadow-base);
  --shadow-lg: 0 20px 48px var(--color-shadow-strong);

  --shadow-primary: 0 10px 22px var(--color-shadow-primary);
  --shadow-primary-hover: 0 14px 28px var(--color-shadow-primary-hover);
  --shadow-primary-active: 0 8px 18px var(--color-shadow-primary-active);

  /* =========================
     🎯 FOCUS
  ========================= */
  --focus-ring: 0 0 0 4px var(--color-focus-ring);

  /* =========================
     🌈 DECORATION
  ========================= */
  --app-glow: var(--color-primary-glow);
}
/* ================================================
   DARK MODE — 컬러 토큰 재정의 + 컴포넌트 오버라이드
   ================================================ */
[data-theme="dark"] {
  /* === 컬러 토큰 재정의 === */
  --color-primary: #4f8ef7;
  --color-primary-hover: #3a7de8;
  --color-primary-active: #2563eb;
  --color-primary-soft: #1e2d4a;
  --color-primary-soft-hover: #1e3a5f;
  --color-primary-glow: rgba(79, 142, 247, 0.15);

  --color-accent: #a78bfa;
  --color-accent-hover: #8b5cf6;
  --color-accent-soft: #1e1a2e;
  --color-accent-soft-hover: #261e3f;

  --color-text-main: #f1f5f9;
  --color-text-sub: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-placeholder: #64748b;
  --color-text-inverse: #0f172a;

  --color-bg-white: #1e293b;
  --color-bg-soft: #0f172a;
  --color-bg-page: #0f172a;

  --color-border: #334155;
  --color-border-muted: #475569;
  --color-border-strong: #4b5563;
  --color-border-focus: #4f8ef7;

  /* 6-B1(MyPage)에서 흡수: 기존 dark.css의 .mypage-* 개별 규칙이 주던
     값을 그대로 토큰 재정의로 옮김. brand-strong/deep는 서로 다른
     mypage 규칙이 공통으로 요구하던 값(#7eb3ff)으로 수렴시킴. */
  --color-brand-badge: #a5b4fc;
  --color-brand-purple: #a5b4fc;
  --color-brand-strong: #7eb3ff;
  --color-brand-deep: #7eb3ff;
  --color-brand-soft: #1e2d4a;
  --color-brand-soft-hover: #4965ff;
  --color-brand-badge-bg: rgba(99, 102, 241, 0.15);
  --color-danger: #f87171;
  --color-danger-soft: #2d1420;
  --color-success: #4ade80;
  --color-success-soft: #0f2d1f;
  --color-status-pending: #fbbf24;
  --color-status-pending-soft: #2d1f00;

  /* 다크 전용(라이트 대응 없음) - 기존 토큰 어디에도 안 맞던 값만 최소로 추가 */
  --color-brand-soft-dark: #1a2640;
  --color-brand-purple-soft-dark: #1e1b4b;
  --color-bg-elevated-dark: #263347;
  --color-bg-sunken-dark: #162035;
  --color-border-sunken-dark: #2d3f5e;
  --color-danger-soft-alt-dark: #2d0f0f;
  --color-brand-shadow-dark: rgba(73, 101, 255, 0.12);
  --color-indigo-accent-dark: #6366f1;

  --color-shadow-base: rgba(0, 0, 0, 0.3);
  --color-shadow-strong: rgba(0, 0, 0, 0.4);
  --color-shadow-primary: rgba(79, 142, 247, 0.2);
  --color-shadow-primary-hover: rgba(79, 142, 247, 0.3);
  --color-shadow-primary-active: rgba(79, 142, 247, 0.25);

  --color-focus-ring: rgba(79, 142, 247, 0.15);

  /* === 앱 변수 재정의 === */
  --app-bg: #0b1120;
  --app-bg-page: #0f172a;
  --app-bg-card: #1e293b;
  --app-bg-soft: #0f172a;

  --app-text-main: #f1f5f9;
  --app-text-sub: #cbd5e1;
  --app-text-muted: #94a3b8;
  --app-text-placeholder: #64748b;
  --app-text-inverse: #0f172a;

  --app-border: #334155;
  --app-border-muted: #475569;
  --app-border-strong: #4b5563;

  --app-primary: #4f8ef7;
  --app-primary-hover: #3a7de8;
  --app-primary-active: #2563eb;
  --app-primary-soft: #1e2d4a;

  --app-accent: #a78bfa;
  --app-accent-soft: #1e1a2e;

  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.4);
  --shadow-primary: 0 10px 22px rgba(79, 142, 247, 0.2);
  --shadow-primary-hover: 0 14px 28px rgba(79, 142, 247, 0.3);
  --shadow-primary-active: 0 8px 18px rgba(79, 142, 247, 0.25);
  --focus-ring: 0 0 0 4px rgba(79, 142, 247, 0.15);
  --app-glow: rgba(79, 142, 247, 0.15);

  color-scheme: dark;
}
/* ------------------------------------------------
   헤더
   ------------------------------------------------ */
[data-theme="dark"] .header {
  background: rgba(23, 25, 30, 0.94);
  border-bottom-color: #303239;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .header-brand-title {
  color: #f1f5f9;
}
[data-theme="dark"] .nav-link {
  color: #b9bcc4;
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #f1f5f9;
}
[data-theme="dark"] .contest-split-item {
  color: #94a3b8;
}
[data-theme="dark"] .contest-split-item:hover,
[data-theme="dark"] .contest-split-item.selected {
  color: #f1f5f9;
}
[data-theme="dark"] .contest-split-divider {
  color: #475569;
}
[data-theme="dark"] .nav-icon-btn {
  background: transparent !important;
  color: #b9bcc4;
}
[data-theme="dark"] .nav-icon-btn:hover {
  background: #2b2e35 !important;
  color: #f0f0f2;
}
[data-theme="dark"] .nav-icon-btn.active {
  background: #30333a !important;
  box-shadow: inset 0 0 0 1px #444750;
}
[data-theme="dark"] .nav-icon {
  color: #b9bcc4;
}
/* ------------------------------------------------
   프로필 드롭다운
   ------------------------------------------------ */
[data-theme="dark"] .profile-dropdown-menu {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .profile-dropdown-user strong {
  color: #f1f5f9;
}
[data-theme="dark"] .profile-dropdown-item {
  color: #e2e8f0;
}
[data-theme="dark"] .profile-dropdown-item:hover {
  background: #334155;
}
[data-theme="dark"] .profile-dropdown-divider {
  background: #334155;
}
[data-theme="dark"] .profile-dropdown-setting-icon {
  color: #64748b;
}
[data-theme="dark"] .drop-logout-button:hover {
  background: rgba(220, 38, 38, 0.15);
}
/* ------------------------------------------------
   알림 / 채팅 드롭다운
   ------------------------------------------------ */
[data-theme="dark"] .notification-dropdown-menu,
[data-theme="dark"] .chat-dropdown-menu {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .notification-dropdown-header,
[data-theme="dark"] .chat-dropdown-header {
  background: #1e293b;
  border-bottom-color: #2d3f5e;
}
[data-theme="dark"] .notification-dropdown-title,
[data-theme="dark"] .chat-dropdown-title {
  color: #f1f5f9;
}
[data-theme="dark"] .notification-dropdown-action,
[data-theme="dark"] .chat-dropdown-action {
  color: #64748b;
}
[data-theme="dark"] .notification-dropdown-action:hover,
[data-theme="dark"] .chat-dropdown-action:hover {
  color: #94a3b8;
}
[data-theme="dark"] .chat-dropdown-filters {
  background: #1e293b;
  border-bottom-color: #2d3f5e;
}
[data-theme="dark"] .chat-dropdown-filter {
  color: #64748b;
}
[data-theme="dark"] .chat-dropdown-filter:hover {
  background: #25334b;
  color: #cbd5e1;
}
[data-theme="dark"] .chat-dropdown-filter.active {
  background: #263b62;
  color: #8eb9ff;
}
[data-theme="dark"] .chat-dropdown-filter-count {
  background: #345083;
  color: #b9d4ff;
}
[data-theme="dark"] .notification-dropdown-body,
[data-theme="dark"] .chat-dropdown-body {
  background: #162035;
}
[data-theme="dark"] .notification-dropdown-body::-webkit-scrollbar-thumb,
[data-theme="dark"] .chat-dropdown-body::-webkit-scrollbar-thumb {
  background: #334155;
}
/* 알림 아이템 */
[data-theme="dark"] .notification-item {
  background: #162035;
  border-bottom-color: #1e293b;
}
[data-theme="dark"] .notification-item:hover {
  background: #1a2640;
}
[data-theme="dark"] .notification-item.unread {
  background: #1a2640;
}
[data-theme="dark"] .notification-item.unread:hover {
  background: #1e2d4a;
}
[data-theme="dark"] .notification-title {
  color: #f1f5f9;
}
[data-theme="dark"] .notification-message {
  color: #94a3b8;
}
[data-theme="dark"] .notification-time {
  color: #475569;
}
[data-theme="dark"] .notification-action-text {
  color: #7eb3ff;
}
[data-theme="dark"] .notification-delete-btn:hover {
  background: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .notification-empty-title,
[data-theme="dark"] .chat-empty-title {
  color: #f1f5f9;
}
[data-theme="dark"] .notification-empty-text,
[data-theme="dark"] .chat-empty-text {
  color: #64748b;
}
/* 채팅 아이템 */
[data-theme="dark"] .chat-item {
  background: #162035;
  border-bottom-color: #1e293b;
}
[data-theme="dark"] .chat-item:hover {
  background: #1a2640;
}
[data-theme="dark"] .chat-item.unread {
  background: #1a2640;
}
[data-theme="dark"] .chat-item.unread:hover {
  background: #1e2d4a;
}
[data-theme="dark"] .chat-name {
  color: #f1f5f9;
}
[data-theme="dark"] .chat-preview {
  color: #94a3b8;
}
[data-theme="dark"] .chat-workspace-name {
  color: #475569;
}
[data-theme="dark"] .chat-time {
  color: #475569;
}
[data-theme="dark"] .chat-unread-count {
  background: #1e2d4a;
  color: #7eb3ff;
}
/* ------------------------------------------------
   글로벌 폼 요소
   ------------------------------------------------ */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748b;
}
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: #4f8ef7;
  outline-color: #4f8ef7;
}
/* ------------------------------------------------
   모바일 네비게이션
   ------------------------------------------------ */
[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: #1e293b;
}
[data-theme="dark"] .mobile-drawer {
  background: #0f172a;
}
[data-theme="dark"] .drawer-link {
  color: #e2e8f0;
}
[data-theme="dark"] .drawer-link:hover {
  background: #1e293b;
  color: #f1f5f9;
}
[data-theme="dark"] .drawer-link.active {
  background: #1e293b;
  color: #818cf8;
}
[data-theme="dark"] .drawer-link-muted {
  color: #94a3b8;
}
[data-theme="dark"] .drawer-divider {
  border-color: #1e293b;
}
[data-theme="dark"] .drawer-backdrop {
  background: rgba(0, 0, 0, 0.6);
}
/* ------------------------------------------------
   카드 / 패널 공통
   ------------------------------------------------ */
[data-theme="dark"] .card,
[data-theme="dark"] [class*="-card"],
[data-theme="dark"] [class*="-panel"],
[data-theme="dark"] [class*="-box"] {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
/* ------------------------------------------------
   모달 / 오버레이 — 최상위 컨테이너만 다크 적용
   (자식 요소는 transparent 초기화 후 필요한 것만 개별 지정)
   ------------------------------------------------ */
[data-theme="dark"] [class*="-modal"] {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
/* 모달 내부 자식 요소 — 박스 제거 (투명 초기화) */
[data-theme="dark"] [class*="-modal__"] {
  background: transparent !important;
  border-color: transparent !important;
}
[data-theme="dark"] [class*="-overlay"],
[data-theme="dark"] [class*="-popup"],
[data-theme="dark"] [class*="-dialog"] {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
/* chat-popup__ BEM 자식 요소 — 투명 초기화 (-popup 와일드카드가 전부 잡아버려서) */
[data-theme="dark"] [class*="chat-popup__"] {
  background: transparent !important;
  border-color: transparent !important;
}
/* ------------------------------------------------
   설정 페이지
   ------------------------------------------------ */
/* ------------------------------------------------
   알림 드롭다운 / 채팅 패널
   ------------------------------------------------ */
/* .notification-dropdown / .chat-dropdown 는 아이콘 버튼을 감싸는
   position:relative 래퍼일 뿐 라이트모드에서는 배경이 전혀 없는데,
   여기서만 배경(#1e293b)을 칠하고 있어서 둥근 버튼(border-radius)
   모서리 바깥으로 각진 래퍼 배경이 비치는 원인이었다. 실제 드롭다운
   패널 배경은 .notification-dropdown-menu/.chat-dropdown-menu에
   이미 별도로 정의되어 있어 이 규칙 자체가 불필요 - 제거함. */
/* ------------------------------------------------
   프로젝트 카드
   ------------------------------------------------ */
[data-theme="dark"] .project-card {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .project-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
/* ------------------------------------------------
   팀맵 / 오피스
   ------------------------------------------------ */
/* 팀맵 섹션 — 다크모드에서 .card 일반 규칙 오버라이드 (캔버스가 있으므로 어두운 배경 불필요) */
/* Pixi 캔버스 래퍼들 — 다크모드에서 배경 투과 방지 */
[data-theme="dark"] .office-canvas-wrap {
  background: #C8C4BC !important;
}
/* 야간 오버레이 — 다크모드에서는 비활성화 (이미 어두운 테마이므로) */
/* 팀맵 헤더 바 — 다크 */
/* office-map-overlay / office-zone-overlay / home-future-overlay — 와일드카드 -overlay 규칙 취소 */
@media (max-width: 640px) {
  [data-theme="dark"] .home-future-modal__btn-row {
    background: #1e293b !important;
    border-top-color: #334155;
  }
}
/* 존 메뉴 드롭다운 */
/* 채팅 입력 바 — 다크 */
/* 캐릭터 이름 레이블 */
/* 캐릭터 말풍선 */
/* 캐릭터 클릭 팝업 — 와일드카드 -popup 규칙 취소 */
/* 권한/자리 수 설정 패널 — 와일드카드 -panel 규칙 취소 */
/* 사무실 배치 관리 패널 */
[data-theme="dark"] .office-seat-mgmt {
  background: transparent;
  border-color: transparent;
  color: #1e2a3a;
}
/* 미배정 섹션 — 다크 */
/* online bar */
/* ------------------------------------------------
   프로필 페이지
   ------------------------------------------------ */
[data-theme="dark"] .profile-hero,
[data-theme="dark"] .profile-tabs,
[data-theme="dark"] .profile-section-card,
[data-theme="dark"] .profile-info-card,
[data-theme="dark"] .profile-trust-summary,
[data-theme="dark"] .profile-roadmap-hero,
[data-theme="dark"] .profile-roadmap-empty,
[data-theme="dark"] .profile-loading,
[data-theme="dark"] .profile-empty-state {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}
/* 와일드카드 -box 규칙으로 인한 intro-box 다크 박스 제거 */
[data-theme="dark"] .profile-intro-box {
  background: transparent !important;
  border-color: transparent !important;
}
[data-theme="dark"] .profile-skill-list button,
[data-theme="dark"] .profile-skill-list span {
  background: #1e1b4b;
  border-color: #312e81;
  color: #a5b4fc;
}
[data-theme="dark"] .profile-roadmap-info-grid article {
  background: #1e293b;
  border-color: #334155;
}
/* 10년 뒤 내 모습 섹션 */
/* 포트폴리오 / 프로젝트 / 경험 카드 */
[data-theme="dark"] .profile-experience-card h3 { color: #f1f5f9; }
[data-theme="dark"] .profile-experience-card strong { color: #cbd5e1; }
[data-theme="dark"] .profile-experience-card p { color: #94a3b8; }
/* 신뢰도 탭 */
[data-theme="dark"] .profile-trust-summary h2 { color: #f1f5f9; }
[data-theme="dark"] .profile-trust-item p { color: #64748b; }
[data-theme="dark"] .profile-trust-item i { background: #1e293b; }
[data-theme="dark"] .profile-thermo-bar { background: #1e293b !important; }
/* ------------------------------------------------
   프로필 편집 페이지
   ------------------------------------------------ */
/* 섹션 카드 (편집 페이지에서도 동일 클래스 공유) */
[data-theme="dark"] .edit-profile-form input,
[data-theme="dark"] .edit-profile-form textarea,
[data-theme="dark"] .edit-profile-form select {
  background: #162035;
  border-color: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .edit-profile-form input::placeholder,
[data-theme="dark"] .edit-profile-form textarea::placeholder {
  color: #475569;
}
[data-theme="dark"] .edit-profile-form input:focus,
[data-theme="dark"] .edit-profile-form textarea:focus,
[data-theme="dark"] .edit-profile-form select:focus {
  background: #1e293b;
  border-color: #6366f1;
}
[data-theme="dark"] .interest-chip-list button:hover,
[data-theme="dark"] .interest-chip-list button.is-selected {
  background: #1e1b4b;
  border-color: #312e81;
  color: #a5b4fc;
}
/* ------------------------------------------------
   공모전 상세 페이지
   ------------------------------------------------ */
/* 와일드카드 카드 규칙이 contest-detail-card 자식 요소에 적용되지 않도록 초기화 */
[data-theme="dark"] .contest-detail-hero__header,
[data-theme="dark"] .contest-detail-hero__badges,
[data-theme="dark"] .contest-detail-hero__actions,
[data-theme="dark"] .contest-detail-main,
[data-theme="dark"] .contest-detail-side,
[data-theme="dark"] .contest-detail-content,
[data-theme="dark"] .contest-detail-info {
  background: transparent;
  border-color: transparent;
}
/* ------------------------------------------------
   내 팀공간 페이지
   ------------------------------------------------ */
[data-theme="dark"] .type-badge {
  background: #1e1b4b;
  color: #818cf8;
}
[data-theme="dark"] .type-badge.study {
  background: #052e16;
  color: #4ade80;
}
/* ZoneSidePanel */
/* 설정 메뉴 — 라이트 그대로 */
/* 존 이름 인라인 편집 input — 존 header strip 위에 올라가므로 항상 흰색 계열 */
/* 캐릭터 클릭 팝업 내부 h/p 텍스트 명시 */
/* ------------------------------------------------
   폼 레이블 / 섹션 헤딩
   ------------------------------------------------ */
[data-theme="dark"] label {
  color: #cbd5e1;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f1f5f9;
}
[data-theme="dark"] p {
  color: #cbd5e1;
}
/* ------------------------------------------------
   구분선
   ------------------------------------------------ */
[data-theme="dark"] hr,
[data-theme="dark"] [class*="-divider"] {
  border-color: #334155;
  background: #334155;
}
/* ------------------------------------------------
   스크롤바
   ------------------------------------------------ */
[data-theme="dark"] * {
  scrollbar-color: #334155 transparent;
}
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: transparent;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
/* ------------------------------------------------
   홈페이지
   ------------------------------------------------ */
[data-theme="dark"] .home-reco__title-wrap h3 {
  color: #e2e8f0;
}
/* 로드맵 카드 내부 자식 요소 — 카드 와일드카드로 인한 다크 박스 제거 */
/* ================================================
   각 페이지 공통 히어로/배경 패턴 오버라이드
   (studies, contest, small-groups, recruit, community, onboarding)
   ================================================ */
/* --- 공모전 페이지 --- */
/* --- 소그룹 페이지 --- */
/* --- 팀원 모집 페이지 --- */
/* 검색/필터 카드 */
[data-theme="dark"] .recruit-suggest-tags button:hover,
[data-theme="dark"] .recruit-suggest-tags button.is-active {
  background: #1e2d4a;
  border-color: #4965ff;
  color: #7eb3ff;
}
[data-theme="dark"] .recruit-verified-filter:hover,
[data-theme="dark"] .recruit-verified-filter.is-active {
  background: #14382a;
  border-color: #34d399;
  color: #6ee7b7;
}
/* 통계 칩 */
/* 멤버 목록 헤더 */
/* 액션 버튼 */
/* 분야 뱃지 */
/* AI 추천 섹션 */
/* 인증 유저 스팟라이트 */
/* 빈 상태 / 에러 상태 */
/* 스켈레톤 */
/* --- 커뮤니티 페이지 --- */
[data-theme="dark"] .community-category-card,
[data-theme="dark"] .community-search-card,
[data-theme="dark"] .community-popular-card,
[data-theme="dark"] .community-board-card,
[data-theme="dark"] .community-side-card {
  background: #162035;
  border-color: rgba(79,142,247,0.1);
}
[data-theme="dark"] .community-category-button:hover,
[data-theme="dark"] .community-category-button.is-active { background: #1e293b; color: #7eb3ff; }
[data-theme="dark"] .community-section-head h2,
[data-theme="dark"] .community-board-head h2 { color: #f1f5f9; }
[data-theme="dark"] .community-section-head span,
[data-theme="dark"] .community-board-head span { color: #94a3b8; }
/* 카테고리 뱃지 (span = 자유/정보 등, b = 고정/공지) */
/* 인기글 목록 */
/* 헤더 구분선 */
[data-theme="dark"] .community-section-head,
[data-theme="dark"] .community-board-head { border-bottom-color: #2d3f5e; }
/* 섹션 헤드 버튼 */
/* 사이드 카드 */
/* 결과 행 */
/* 페이지네이션 */
/* 스켈레톤 */
/* 빈 상태 */
/* 모바일 탭 */
/* --- 로드맵/온보딩 페이지 --- */
[data-theme="dark"] .onboarding-dashboard-loading,
[data-theme="dark"] .onboarding-dashboard-empty {
  background: #162035;
  border-color: rgba(79,142,247,0.1);
}
/* 챕터 카드 */
/* 챕터 내 스텝 카드 */
/* 우측 현재 미션 카드 */
/* 스텝 목록 (구 스타일) */
/* AI 히스토리 / 어시스턴트 */
/* 팝업 */
/* AI 채팅 팝업 */
/* AI 조언 모달 */
/* 프로젝트 확인 모달 */
/* 환영 모달 */
/* 다음 단계 패널 */
/* AI 추천 섹션 */
/* ------------------------------------------------
   프로젝트 탐색 페이지
   ------------------------------------------------ */
[data-theme="dark"] .projects-page {
  background: #0b1120;
  color: #f1f5f9;
}
[data-theme="dark"] .projects-hero-wrap {
  background: #0f172a;
  border-bottom-color: #1e293b;
}
[data-theme="dark"] .projects-hero h1 {
  color: #f1f5f9;
}
[data-theme="dark"] .projects-hero h1 strong {
  color: #6b9fff;
}
[data-theme="dark"] .projects-hero p {
  color: #94a3b8;
}
[data-theme="dark"] .projects-hero-badge {
  background: rgba(107, 159, 255, 0.12);
  color: #7eb3ff;
}
[data-theme="dark"] .projects-stat-item {
  background: #162035;
  border-color: rgba(79, 142, 247, 0.1);
}
[data-theme="dark"] .projects-stat-label {
  color: #64748b;
}
[data-theme="dark"] .projects-stat-value {
  color: #f1f5f9;
}
[data-theme="dark"] .projects-search-card {
  background: #162035;
  border-color: rgba(79, 142, 247, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .projects-search-box {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .projects-search-box:focus-within {
  background: #1e293b;
  border-color: #4f8ef7;
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.12);
}
[data-theme="dark"] .projects-search-box input {
  color: #f1f5f9;
}
[data-theme="dark"] .projects-filter-group select {
  background-color: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
[data-theme="dark"] .projects-view-toggle {
  background: #1e293b;
}
[data-theme="dark"] .projects-view-toggle button.is-active {
  background: #334155;
  color: #7eb3ff;
}
[data-theme="dark"] .projects-tabs-wrap {
  border-top-color: #1e293b;
}
[data-theme="dark"] .projects-tab {
  color: #64748b;
}
[data-theme="dark"] .projects-tab.is-active {
  color: #7eb3ff;
}
[data-theme="dark"] .projects-tab.is-active::after {
  background: #4f8ef7;
}
[data-theme="dark"] .projects-tab:hover:not(.is-active) {
  color: #cbd5e1;
}
[data-theme="dark"] .projects-result-count {
  color: #64748b;
}
[data-theme="dark"] .project-card-new {
  background: #162035;
  border-color: rgba(79, 142, 247, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .project-card-new:hover {
  border-color: rgba(107, 159, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .pcard__status.is-open {
  background: #1e2d4a;
  color: #7eb3ff;
}
[data-theme="dark"] .pcard__status.is-closed {
  background: #1e293b;
  color: #64748b;
}
[data-theme="dark"] .pcard__category {
  background: #1e293b;
  color: #94a3b8;
}
[data-theme="dark"] .pcard__title {
  color: #f1f5f9;
}
[data-theme="dark"] .pcard__summary {
  color: #94a3b8;
}
[data-theme="dark"] .pcard__role-tag {
  background: #1e2d4a;
  color: #7eb3ff;
}
[data-theme="dark"] .pcard__footer {
  border-top-color: #1e293b;
}
[data-theme="dark"] .pcard__meta span {
  color: #64748b;
}
[data-theme="dark"] .pcard__like {
  background: #1e293b;
  border-color: #334155;
  color: #f472b6;
}
[data-theme="dark"] .project-card-skeleton {
  background: #162035;
  border-color: rgba(79, 142, 247, 0.08);
}
[data-theme="dark"] .pcs__badges,
[data-theme="dark"] .pcs__title,
[data-theme="dark"] .pcs__line,
[data-theme="dark"] .pcs__tags span {
  background: linear-gradient(90deg, #1e293b 0%, #263348 50%, #1e293b 100%);
}
[data-theme="dark"] .pagination-btn,
[data-theme="dark"] .pagination-num {
  background: #162035;
  border-color: #334155;
  color: #cbd5e1;
}
/* ------------------------------------------------
   팀원 추천 카드 (홈 + 팀원 모집 페이지 공통)
   ------------------------------------------------ */
/* 모바일 뷰 하드코딩 배경 오버라이드 */
@media (max-width: 768px) {
  [data-theme="dark"] .home-page {
    background: #0b1120;
  }

  [data-theme="dark"] .home-hero-wrap {
    background: #0d1428;
  }

  [data-theme="dark"] .home-notice {
    background: #162035;
  }

  [data-theme="dark"] .home-hero {
    background: transparent;
  }

  [data-theme="dark"] .home-account,
  [data-theme="dark"] .home-roadmap-card {
    background: #162035;
  }

  [data-theme="dark"] .home-section {
    background: #0b1120;
  }

  [data-theme="dark"] .home-feed-card,
  [data-theme="dark"] .home-card-skeleton {
    background: #162035;
  }
}
/* ------------------------------------------------
   언어 전환 버튼
   ------------------------------------------------ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  letter-spacing: 0;
}
.lang-toggle__flag {
  font-size: 18px;
  line-height: 1;
}
.lang-toggle__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.lang-toggle:hover {
  background: #f3f4f6;
  color: #1e293b;
  transform: translateY(-1px);
}
[data-theme="dark"] .lang-toggle {
  border-color: #383b43;
  background: #24262c;
  color: #d1d3d8;
}
[data-theme="dark"] .lang-toggle:hover {
  border-color: #4a4d56;
  background: #30333a;
  color: #f0f0f2;
}
/* ------------------------------------------------
   다크모드 토글 버튼
   ------------------------------------------------ */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  font-size: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.dark-mode-toggle:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}
[data-theme="dark"] .dark-mode-toggle:hover {
  background: #30333a;
}
[data-theme="dark"] .dark-mode-toggle {
  border-color: #383b43;
  background: #24262c;
  color: #d1d3d8;
}
/* ------------------------------------------------
   마이페이지
   ------------------------------------------------ */
/* ------------------------------------------------
   관리자 페이지
   ------------------------------------------------ */
[data-theme="dark"] .admin-toolbar input,
[data-theme="dark"] .admin-toolbar select {
  background: #162035;
  border-color: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .admin-toolbar input:focus,
[data-theme="dark"] .admin-toolbar select:focus {
  border-color: #6366f1;
}
[data-theme="dark"] .admin-toolbar button,
[data-theme="dark"] .primary-btn {
  background: #f1f5f9;
  color: #0f172a;
}
[data-theme="dark"] .ghost-btn:hover {
  background: #1e2d4a;
  color: #f1f5f9;
}
[data-theme="dark"] .danger-btn {
  background: #2d1420;
  color: #f87171;
}
[data-theme="dark"] .admin-table td {
  border-bottom-color: #1e293b;
  color: #cbd5e1;
}
[data-theme="dark"] .admin-pagination button:hover:not(:disabled) {
  background: #1e2d4a;
  color: #f1f5f9;
}
/* ================================================
   워크스페이스 팝업 공통 쉘 (cp / tp / tkp / vp / bp / fp / myt)
   ================================================ */
/* 닫기 버튼 — 모든 팝업 접두어 */
[data-theme="dark"] .tp-close,
[data-theme="dark"] .tkp-close,
[data-theme="dark"] .vp-close,
[data-theme="dark"] .bp-close {
  background: #263347;
  color: #94a3b8;
}
[data-theme="dark"] .tp-close:hover,
[data-theme="dark"] .tkp-close:hover,
[data-theme="dark"] .vp-close:hover,
[data-theme="dark"] .bp-close:hover {
  background: #334155;
  color: #f1f5f9;
}
/* 새로고침 버튼 */
/* 헤더 */
[data-theme="dark"] .tp-header,
[data-theme="dark"] .tkp-header,
[data-theme="dark"] .vp-header,
[data-theme="dark"] .bp-header {
  border-bottom-color: #334155;
}
[data-theme="dark"] .tp-title,
[data-theme="dark"] .tkp-title,
[data-theme="dark"] .vp-title,
[data-theme="dark"] .bp-title {
  color: #f1f5f9;
}
/* 요약 바 */
/* 추가 폼 */
/* 필터 */
/* 할 일 아이템 */
/* ================================================
   내 할 일 모달 (myt-*)
   ================================================ */
/* ------------------------------------------------
   크레딧 충전 페이지
   ------------------------------------------------ */
/* 크레딧 잔액 컴포넌트 (헤더 등 공용) */
[data-theme="dark"] .credit-balance {
  background: #162035;
  border-color: #2d3f5e;
  box-shadow: none;
}
[data-theme="dark"] .credit-balance strong {
  color: #f1f5f9;
}
[data-theme="dark"] .credit-balance__label {
  color: #64748b;
}
[data-theme="dark"] .credit-balance--large strong {
  color: #f1f5f9;
}
/* ------------------------------------------------
   워크스페이스 채팅 팝업 (ChatPopup)
   ------------------------------------------------ */
/* DM 팝업 — !important 로 투명 초기화 이후 재선언 */
/* ------------------------------------------------
   워크스페이스 채팅 본체 (WorkspaceChatPage)
   ------------------------------------------------ */
[data-theme="dark"] .workspace-chat__messages {
  background: #162035;
  border-color: rgba(51, 65, 85, 0.4);
  box-shadow: none;
}
/* 입력 폼 */
/* 멘션 목록 */
/* 링크 미리보기 (받은 메시지) */
/* 파일 링크 (받은 메시지) */
/* 점프 버튼 */
/* 채널 헤더 버튼들 */
/* 스와이프 리플라이 인디케이터 */
/* 리더 아바타 테두리 */
/* 모바일 배경 오버라이드 */
@media (max-width: 960px) {
  [data-theme="dark"] .workspace-chat {
    background: #162035;
  }

  [data-theme="dark"] .workspace-chat__messages {
    background: #162035;
  }
}
/* ================================================
   투표 팝업 내부 (vote-page-*)
   vote-page는 CSS 변수를 사용하므로 변수 재정의로 일괄 처리
   ================================================ */
[data-theme="dark"] .vote-page {
  --vp-border:       #334155;
  --vp-card:         #162035;
  --vp-text:         #f1f5f9;
  --vp-muted:        #94a3b8;
  --vp-primary:      #818cf8;
  --vp-primary-soft: #1e1b4b;
  --vp-green:        #4ade80;
  --vp-green-soft:   #0f2d1f;
  --vp-amber:        #fbbf24;
  --vp-amber-soft:   #2d1f00;
}
/* ================================================
   업무 팝업 내부 (workspace-task-page, task-*)
   ================================================ */
[data-theme="dark"] .workspace-task-page { color: #f1f5f9; }
/* 업무 모달 (task-modal — 팝업 안의 팝업) */
/* ================================================
   게시판 팝업 내부 (bp-*)
   ================================================ */
/* 검색 */
/* 게시글 아이템 */
/* 빈 상태 */
/* 뒤로가기 / 취소 버튼 */
/* 글쓰기 폼 */
/* 상세 뷰 */
/* 댓글 */
/* 화면 아래 탭바를 걷어냈다. 스무 곳 넘는 화면이 이 값만큼 아래를 비우는데,
   정의가 없으면 각자 68px 폴백을 써서 이제 아무것도 없는 자리를 비운다.
   탭바를 되살릴 때는 이 값만 그 높이로 되돌리면 된다. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/fonts/pretendard/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --mobile-bottom-nav-height: 0px;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
/* box sizing */
/* width = content + padding + border */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* 기본 margin 제거 */
* {
  margin: 0;
}
/* 기본 높이 */
html,
body,
#root {
  height: 100%;
}
/* 모달/팝업 열릴 때 스크롤바 사라지며 레이아웃이 밀리는 현상 방지 */
html {
  scrollbar-gutter: stable;
}
/* 전체 화면 캔버스에서는 페이지 스크롤바가 없으므로 오른쪽 거터를 비우지 않는다. */
html:has(.wh-naver-layout),
html:has(.networking-venue-page),
html:has(.onsite-visit--joined),
html:has(.onsite-visit--closed) {
  scrollbar-gutter: auto;
}
html:has(.onsite-visit--joined) { overflow: hidden; }
/* Hide mobile scroll indicators without disabling scrolling. */
@media (max-width: 760px) {
  html { scrollbar-gutter: auto; }

  html,
  body,
  body * {
    scrollbar-width: none !important;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  body *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}
/* 기본 폰트 */
body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: 0;
  background: var(--app-bg-page);
  color: var(--app-text-main);
  word-break: keep-all;
}
/* 이미지 */
/* img overflow 방지 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/* buttons reset */
button, input, select, textarea {
  font-family: inherit;
  letter-spacing: 0;
}
button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
/* 링크 */
a {
  text-decoration: none;
  color: inherit;
}
/* 리스트 */
ul,
ol {
  list-style: none;
  padding: 0;
}
.main-content {
  min-height: 100%;
  padding-top: var(--header-height); /*nav로 인한 가려짐 방지*/
  background: var(--app-bg-page);
}
.main-content.messages-layout {
  height: 100vh;
  min-height: 0;
  padding-top: var(--header-height);
  padding-bottom: 0;
  overflow: hidden;
}
.main-content.workspace-layout-page {
  padding-top: 0;
}
@media (max-width: 1024px) {
  .main-content.workspace-chat-layout {
    height: 100dvh;
    min-height: 0;
    padding-top: 0;
    padding-bottom: calc(
      var(--mobile-bottom-nav-height, 68px)
      + env(safe-area-inset-bottom)
    );
    overflow: hidden;
  }

  .main-content.messages-layout {
    height: 100dvh;
    padding-top: 0;
    padding-bottom: calc(
      var(--mobile-bottom-nav-height, 68px)
      + env(safe-area-inset-bottom)
    );
  }

  .touch-keyboard-open .main-content.workspace-chat-layout,
  .touch-keyboard-open .main-content.messages-layout {
    padding-bottom: 0;
  }

}
@media (max-width: 960px) {
  .main-content.workspace-layout-page {
    padding-top: 0;
  }

  .main-content.workspace-layout-page.workspace-chat-layout {
    padding-bottom: 0;
  }
}
:root {
  --real-vh: 100dvh;
}
html,
body,
#root {
  min-height: 100%;
}
body {
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}
.mobile-safe-bottom {
  padding-bottom: calc(
    var(--mobile-nav-height) + env(safe-area-inset-bottom)
  );
}
.mobile-fixed-safe {
  bottom: calc(
    var(--mobile-nav-height) + 16px + env(safe-area-inset-bottom)
  ) !important;
}
.mobile-screen-safe {
  min-height: calc(
    100dvh - var(--mobile-nav-height) - env(safe-area-inset-bottom)
  );
}
/* Shared product controls use the same typography and restrained surfaces as the home. */
:root {
  --product-ink: #1d1d1f;
  --product-muted: #6e6e73;
  --product-line: #e5e5e7;
  --product-soft: #f5f5f7;
  --product-action: #1d1d1f;
}
.main-content :is(.nk-page,.people-directory,.mentor-ui), .nk-portal, .member-profile-dialog {
  --nk-accent: var(--product-action);
  --nk-accent-text: var(--product-action);
  --nk-accent-soft: #f0f0f2;
  --nk-ai: #46464b;
  --nk-ai-soft: #f5f5f7;
  --people-action: var(--product-action);
  --people-action-hover: #353537;
  --member-ink: var(--product-ink);
  --member-muted: var(--product-muted);
  --member-line: var(--product-line);
}
.main-content .people-directory .people-filters button[aria-pressed=true] { background:var(--product-action);border-color:var(--product-action);color:#fff; }
.main-content .people-directory .people-filters button[aria-pressed=true]:hover { background:#353537;border-color:#353537; }
.main-content :is(.nk-btn--primary,.mentor-primary), .nk-portal .nk-btn--primary { background:var(--product-action);border-color:var(--product-action);color:#fff; }
.member-profile-dialog :is(.member-profile-coffee,.member-profile-error button) { color:var(--product-ink);border-color:var(--product-line); }
.member-profile-dialog .member-card-review button[type=submit], .profile-business-card .profile-business-card__footer>button { background:var(--product-action);border-color:var(--product-action);color:#fff; }
.main-content :is(.nk-btn,.mentor-primary,.mentor-secondary), .nk-portal .nk-btn { border-radius:6px;min-height:42px;font-weight:600;letter-spacing:0;transition:background-color .16s ease,border-color .16s ease; }
.main-content :is(.nk-page,.mentor-ui) :is(input,textarea,select), .nk-portal :is(input,textarea,select) { border-color:var(--product-line);box-shadow:none; }
.main-content :is(.nk-page,.mentor-ui,.people-directory) :is(button,a,input,textarea,select):focus-visible, .member-profile-dialog :is(button,a,input,textarea,select):focus-visible { outline:2px solid #4784ed;outline-offset:3px; }
.main-content .contacts-library-nav button[aria-pressed=true] { box-shadow:inset 3px 0 var(--product-ink); }
[data-theme=dark] { --product-ink:#f5f5f7;--product-muted:#b0b0b7;--product-line:#3b3b42;--product-soft:#252529;--product-action:#e6e6eb; }
[data-theme=dark] .main-content :is(.nk-btn--primary,.mentor-primary), [data-theme=dark] .nk-portal .nk-btn--primary, [data-theme=dark] .profile-business-card .profile-business-card__footer>button { color:#1d1d1f; }
@media(prefers-reduced-motion:reduce) { .main-content :is(.nk-btn,.mentor-primary,.mentor-secondary) { transition:none; } }
/* Independent scale preserves component positioning and existing transforms. */
@media (prefers-reduced-motion: no-preference) {
  :where(button, a[href], [role="button"], summary):not(:disabled):not([aria-disabled="true"]) {
    transition: scale 120ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  }
  :where(button, a[href], [role="button"], summary):not(:disabled):not([aria-disabled="true"]):active {
    scale: .97;
  }
}
:where(button, a[href], [role="button"], summary):focus-visible {
  outline: 2px solid var(--color-primary, #315da8);
  outline-offset: 3px;
}
  .server-unavailable {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    background: var(--color-bg-page, #ffffff);
    color: var(--color-text-main, #111827);
  }

  .server-unavailable__panel {
    width: min(100%, 360px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .server-unavailable__mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 50%;
    color: var(--color-primary, #10367d);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
  }

  .server-unavailable__mark svg {
    width: 22px;
    height: 22px;
  }

  .server-unavailable__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .server-unavailable__description {
    margin: 10px 0 0;
    color: var(--color-text-muted, #6b7280);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
  }

  .server-unavailable__button {
    min-width: 120px;
    height: 44px;
    margin-top: 24px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary, #10367d);
    color: var(--color-text-inverse, #ffffff);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
  }

  .server-unavailable__button:hover:not(:disabled) {
    background: var(--color-primary-hover, #0d2f70);
  }

  .server-unavailable__button:focus-visible {
    outline: 3px solid color-mix(
      in srgb,
      var(--color-primary, #10367d) 28%,
      transparent
    );
    outline-offset: 3px;
  }

  .server-unavailable__button:disabled {
    cursor: wait;
    opacity: 0.72;
  }

  @media (max-width: 480px) {
    .server-unavailable {
      padding: 20px;
    }

    .server-unavailable__title {
      font-size: 20px;
    }
  }
:root {
  --header-height: 64px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: color-mix(in srgb, var(--color-bg-white, #fff) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.025);
  z-index: 1100;
  transition:
    transform 0.35s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.header.show {
  transform: translateY(0);
}

.header.hide {
  transform: translateY(-100%);
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  position: relative;
  gap: 24px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: fit-content;
  justify-self: start;
  z-index: 2;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 36px;
  display: block;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.header-brand-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
}

.header-brand-subtitle {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9ca3af;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 0;
  color: var(--color-text-muted, #6b7280);
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.nav-link:hover {
  background: transparent;
  color: var(--color-text-main, #111827);
}

.nav-link.active {
  background: transparent;
  box-shadow: none;
  color: var(--color-primary, #4965ff);
  font-weight: 750;
}

.nav-link.active::after,
.nav-menu.active .nav-menu-trigger::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary, #4965ff);
}

.nav-menu {
  position: relative;
}

.nav-menu-trigger {
  border: 0;
  font: inherit;
  cursor: pointer;
  gap: 4px;
}

.nav-menu.active .nav-menu-trigger,
.nav-menu:focus-within .nav-menu-trigger,
.nav-menu:hover .nav-menu-trigger {
  background: transparent;
  color: var(--color-text-main, #111827);
}

.nav-menu.active .nav-menu-trigger {
  box-shadow: none;
  color: var(--color-primary, #4965ff);
  font-weight: 750;
}

.nav-menu-trigger svg {
  transition: transform 0.16s ease;
}

.nav-menu:focus-within .nav-menu-trigger svg,
.nav-menu:hover .nav-menu-trigger svg {
  transform: rotate(180deg);
}

.nav-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  padding: 8px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  background: var(--color-bg-white, #fff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-menu-popover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-menu:focus-within .nav-menu-popover,
.nav-menu:hover .nav-menu-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu-popover a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--color-text-main, #111827);
  text-decoration: none;
}

.nav-menu-popover a:hover,
.nav-menu-popover a.active {
  background: var(--color-bg-soft, #f5f6f8);
}

.nav-menu-popover strong {
  font-size: 14px;
}

.nav-menu-popover span {
  color: var(--color-text-muted, #6b7280);
  font-size: 12px;
  font-weight: 550;
}
.contest-split-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contest-split-item {
  position: relative;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.contest-split-item:hover {
  color: #111827;
}

.contest-split-item.selected {
  color: #111827;
  font-weight: 700;
}

.contest-split-nav:hover
  .contest-split-item:not(:hover):not(.selected) {
  opacity: 0.45;
}

.contest-split-divider {
  color: #6b7280;
  user-select: none;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  z-index: 2;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dark-mode-toggle {
  color: var(--color-text-muted);
}

.lang-toggle,
.dark-mode-toggle {
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8f9fb;
  color: #4b5563;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lang-toggle {
  gap: 7px;
  padding: 0 11px;
  letter-spacing: 0;
}

.lang-toggle__icon {
  width: 17px;
  height: 17px;
}

.lang-toggle__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.dark-mode-toggle {
  width: 38px;
}

.lang-toggle:hover,
.dark-mode-toggle:hover {
  border-color: #cfd4dc;
  background: #f1f3f6;
  color: #111827;
  transform: none;
}

.lang-toggle:focus-visible,
.dark-mode-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.theme-toggle__icon {
  width: 19px;
  height: 19px;
  transition: color 0.2s ease;
}

.dark-mode-toggle:hover .theme-toggle__icon {
  color: var(--color-text-main);
}

.dark-mode-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-icon-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.nav-icon {
  width: 23px;
  height: 23px;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    gap: 16px;
    padding-inline: 22px;
  }

  .desktop-nav {
    font-size: 13px;
  }

  .nav-link {
    padding-inline: 10px;
  }

  .header-brand-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 78px;
  }

  .header-inner {
    display: flex;
    gap: 6px;
    padding: 0 18px;
  }

  .header-brand {
    min-width: 0;
    margin-right: auto;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .logo img {
    height: 42px;
  }

  .header-brand-title {
    font-size: 1.2rem;
  }

  .header-brand-subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    gap: 3px;
    padding: 0 12px;
  }

  .header-brand {
    gap: 10px;
  }

  .logo img {
    width: auto;
    max-width: 118px;
    height: 34px;
  }

  .header-brand-title {
    font-size: 1.05rem;
  }

  .header-brand-subtitle {
    display: none;
  }

  .mobile-quick-actions .nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .mobile-quick-actions .nav-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }

  .mobile-quick-actions .nav-badge {
    top: 1px;
    right: 0;
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 1px;
    padding-inline: 10px;
  }

  .logo img {
    max-width: 104px;
    height: 30px;
  }

  .mobile-quick-actions .nav-icon-btn {
    width: 36px;
    height: 36px;
  }
}
.header-desktop-label, .header-desktop-avatar { display: none; }
.networking-header-search { display:flex; align-items:center; gap:6px; width:300px; min-width:0; height:38px; padding:0 9px; border:1px solid var(--color-border,#dce1e7); border-radius:6px; background:var(--color-bg-soft,#f3f5f7); }
.networking-header-search input { min-width:0; width:100%; border:0; outline:0; background:transparent; color:inherit; font:inherit; font-size:14px; }
.networking-header-search select { flex-shrink:0; width:58px; height:28px; padding:0 3px; border:0; border-right:1px solid var(--color-border,var(--color-service-dce1e7)); border-radius:0; background:transparent; color:inherit; font:inherit; font-size:13px; cursor:pointer; }
.networking-header-search:focus-within { outline:2px solid #315da8; outline-offset:2px; }
.networking-header-search button { display:grid; place-items:center; flex-shrink:0; width:28px; height:30px; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; }
.networking-header-search button[aria-pressed=true] { color:#245bb1; background:#e0eafb; border-radius:4px; }
@media(min-width:1025px) { .header.header-networking .header-brand { margin-right:20px; }.header-networking .networking-header-search { margin-right:auto; flex:0 1 300px; } }
@media(max-width:1024px) {
  :root:has(.header-networking) { --header-height:116px; }
  .header-networking .header-inner { display:flex; flex-wrap:wrap; align-content:center; gap:6px; padding-bottom:8px; }
  .header-networking .header-brand { margin-right:auto; }
  .header-networking .networking-header-search { order:10; width:100%; height:36px; }
}
.header .header-control[aria-current="page"] { color:var(--color-text-main,#171717); }
.header .header-control[aria-current="page"]::after { content:""; position:absolute; bottom:0; left:0; right:0; height:3px; background:currentColor; }
@media (min-width: 1025px) {
  .header .header-inner { display: flex; gap: 0; padding-inline: 24px; max-width: 1440px; box-sizing: border-box; }
  .header .header-brand { margin-right: auto; }
  .header .desktop-nav { margin-left: 20px; gap: 0; height: 100%; }
  .header .desktop-nav .nav-link, .header .header-actions .nav-icon-btn.header-control { position: relative; width: 78px; height: var(--header-height); min-height: var(--header-height); padding: 7px 4px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border: 0; border-radius: 0; background: transparent; color: var(--color-text-muted, #666); box-shadow: none; transform: none; }
  .header .desktop-nav .nav-link svg, .header .header-actions .nav-icon { width: 22px; height: 22px; flex-shrink: 0; }
  .header .desktop-nav .nav-link span, .header .header-desktop-label { display: block; font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; letter-spacing: 0; }
  .header .desktop-nav .nav-link.active, .header .header-actions .header-control[aria-expanded="true"] { color: var(--color-text-main, #171717); }
  .header .desktop-nav .nav-link.active::after, .header .header-actions .nav-icon-btn[aria-expanded="true"]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 0; background: currentColor; }
  .header .header-actions .nav-right { gap: 0; }
  .header .header-actions .header-preference { order: 5; margin-left: 8px; }
  .header .header-actions .header-preference .header-control { min-width: 32px; width: 32px; height: 34px; padding: 6px; }
  .header .header-actions .header-preference .header-control > span { display: none; }
  .header .header-actions .profile-dropdown { border-right: 1px solid var(--color-border, #e5e7eb); }
  .header .header-desktop-avatar { display: block; position: absolute; top: 10px; width: 24px; height: 24px; object-fit: cover; border-radius: 50%; background: var(--color-bg-white, #fff); }
  .header .nav-link:hover, .header .header-actions .nav-icon-btn:hover { color: var(--color-text-main, #171717); background: var(--color-bg-soft, #f5f6f8); }
}
.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  z-index: 1600;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mobile-menu-button:hover {
  background: #f8fafc;
}

.mobile-menu-line {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease,
    top 0.3s ease;
}

.mobile-menu-line:nth-child(1) {
  top: 14px;
}

.mobile-menu-line:nth-child(2) {
  top: 21px;
}

.mobile-menu-line:nth-child(3) {
  top: 28px;
}

.mobile-menu-button.open .mobile-menu-line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.mobile-menu-button.open .mobile-menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.open .mobile-menu-line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.drawer-backdrop {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
  z-index: 1400;
}

.drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: #fff;
  box-shadow: none;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  transform: translateX(104%);
  transition: transform 0.28s ease;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-section-label {
  padding: 10px 14px 2px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.drawer-nav::-webkit-scrollbar {
  width: 6px;
}

.drawer-nav::-webkit-scrollbar-thumb {
  background: #d9dee7;
  border-radius: 999px;
}

.drawer-link {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  color: #374151;
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 10px;

  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.drawer-link:hover {
  background: #f7f8fb;
  color: #111827;
}

.drawer-link.active {
  background: #f4f6fb;
  color: #111827;
}

.drawer-accordion {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-toggle {
  justify-content: space-between;
}

.drawer-chevron {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.drawer-toggle.is-open .drawer-chevron {
  transform: rotate(180deg);
}

.drawer-submenu {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.24s ease;
}

.drawer-submenu.is-open {
  grid-template-rows: 1fr;
}

.drawer-submenu-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 4px;
}

.drawer-submenu-link {
  min-height: 42px;
  padding: 0 14px 0 28px;
  border-radius: 12px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;

  display: flex;
  align-items: center;

  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.drawer-submenu-link:hover {
  background: #f7f8fb;
  color: #111827;
}

.drawer-submenu-link.active {
  background: #f4f6fb;
  color: #111827;
}

.drawer-divider {
  width: 100%;
  height: 1px;
  margin: 10px 0;
  background: #eef0f4;
  flex-shrink: 0;
}

.drawer-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.drawer-dark-toggle .drawer-link-icon {
  color: var(--color-text-muted);
}

.drawer-dark-toggle:hover .drawer-link-icon {
  color: var(--color-text-main);
}

.drawer-link-muted {
  color: #4b5563;
}

.drawer-link-muted .drawer-link-icon {
  color: #8a94a6;
}

.drawer-link-danger {
  color: #d93025;
}

.drawer-link-danger:hover {
  background: #fff1f0;
  color: #b42318;
}

.drawer-link-danger .drawer-link-icon {
  color: #d93025;
}

.drawer-login-guide {
  padding: 4px 14px 8px;
}

.drawer-login-guide-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.drawer-login-guide-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: #8a94a6;
  letter-spacing: -0.02em;
}

.drawer-login-button {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.drawer-login-button:hover {
  background: #0f172a;
}

.drawer-login-button:active {
  transform: scale(0.985);
}

.drawer-login-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .mobile-menu-button {
    display: flex;
  }
}

@media (max-width: 640px) {
  .mobile-menu-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .mobile-drawer {
    width: min(88vw, 340px);
  }
}

@media (max-width: 380px) {
  .mobile-menu-button {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-line { width: 20px; }
  .mobile-menu-line:nth-child(1) { top: 11px; }
  .mobile-menu-line:nth-child(2) { top: 17px; }
  .mobile-menu-line:nth-child(3) { top: 23px; }
  .mobile-menu-button.open .mobile-menu-line:nth-child(1),
  .mobile-menu-button.open .mobile-menu-line:nth-child(3) { top: 17px; }
}
.header-preference { position:relative; }
.header .header-control { position:relative; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; gap:7px; width:40px; height:40px; padding:0; border:1px solid var(--color-border,#e1e5ec); border-radius:8px; background:var(--color-bg-white,#fff); color:var(--color-text-main,#273445); cursor:pointer; transition:background 160ms ease,border-color 160ms ease,color 160ms ease; }
.header .header-control--language { width:auto; min-width:88px; padding:0 10px; font-size:12px; font-weight:650; }
.header .header-control .nav-icon { width:20px; height:20px; color:inherit; stroke-width:1.8; }
.header .header-control:hover { transform:none; background:var(--color-bg-soft,#f4f6f9); border-color:#b8c5d9; }
.header .header-control[aria-expanded="true"] { background:#edf3ff; border-color:#a6bcec; color:#2859b5; box-shadow:none; }
.header .header-control:focus-visible, .header-popover :is(button,a):focus-visible { outline:2px solid #3578e5; outline-offset:3px; }
.header-inbox-icon { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:0 0 24px; width:24px; height:24px; }
.header-control .header-inbox-icon > .nav-badge { top:-5px; right:-10px; min-width:18px; height:18px; padding:0 4px; box-sizing:border-box; border:2px solid var(--color-bg-white,var(--color-service-ffffff)); background:var(--color-service-d94848); color:var(--color-service-ffffff); font-size:10px; line-height:1; white-space:nowrap; pointer-events:none; }
.header:has([data-header-trigger][aria-expanded="true"]) { transform:translateY(0); }
.header-popover.header-language-panel, .header-popover.header-preference-panel, .header-popover.notification-dropdown-menu, .header-popover.chat-dropdown-menu, .header-popover.profile-dropdown-menu {
  --panel-bg:#fff; --panel-text:#202a38; --panel-muted:#647184; --panel-border:#e5e9ef; --panel-hover:#f5f7fa; --panel-unread:#f1f6ff;
  position:absolute; top:calc(100% + 12px); right:0; width:380px; max-width:calc(100vw - 24px); min-width:0; min-height:0; max-height:calc(100dvh - var(--header-height,76px) - 28px); padding:0; gap:0; display:flex; flex-direction:column; background:var(--panel-bg); color:var(--panel-text); border:1px solid var(--panel-border); border-radius:8px; box-shadow:0 12px 36px #16263b1a,0 2px 6px #16263b08; overflow:hidden; z-index:1200; letter-spacing:0; transform-origin:top right; animation:header-panel-enter 180ms ease-out;
}
.header-popover.header-preference-panel { width:232px; }
.header-popover.profile-dropdown-menu { width:288px; overflow-y:auto; }
.header-popover:focus { outline:none; }
.header-panel-heading, .header-popover .chat-dropdown-header, .header-popover .notification-dropdown-header { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; padding:10px 16px; border-bottom:1px solid var(--panel-border); background:var(--panel-bg); flex-shrink:0; }
.header-panel-heading h2, .header-popover .chat-dropdown-title, .header-popover .notification-dropdown-title { margin:0; font-size:16px; font-weight:700; color:var(--panel-text); line-height:1.5; letter-spacing:0; }
.header-panel-close { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; flex-shrink:0; padding:0; border:0; border-radius:6px; color:var(--panel-muted); background:transparent; cursor:pointer; }
.header-panel-close:hover { background:var(--panel-hover); color:var(--panel-text); }
.header-preference-options { padding:8px; display:grid; gap:4px; }
.header-preference-options button { width:100%; min-height:44px; display:flex; align-items:center; gap:10px; padding:10px 12px; background:transparent; color:var(--panel-text); border:0; border-radius:6px; font:inherit; font-size:14px; cursor:pointer; }
.header-preference-options button span { flex:1; text-align:left; }
.header-preference-options button:hover { background:var(--panel-hover); }
.header-preference-options button[aria-pressed="true"] { background:var(--panel-unread); color:#2860b8; font-weight:650; }
.header-panel-tools { display:flex; align-items:center; gap:4px; }
.header-panel-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 12px; border-bottom:1px solid var(--panel-border); flex-shrink:0; }
.header-popover .notification-dropdown-action, .header-popover .chat-dropdown-action, .header-panel-retry { border:0; background:transparent; color:#2860b8; cursor:pointer; font-size:12px; font-weight:600; padding:8px; margin:0; min-height:36px; border-radius:6px; white-space:normal; }
.header-popover button:disabled { opacity:.45; cursor:default; }
.header-popover .chat-dropdown-filters, .header-panel-filters { display:flex; gap:4px; padding:8px 12px; margin:0; border-bottom:1px solid var(--panel-border); background:var(--panel-bg); flex-shrink:0; }
.header-panel-filters button, .header-popover .chat-dropdown-filter { border:0; border-radius:6px; padding:7px 12px; min-height:34px; font:inherit; font-size:13px; background:transparent; color:var(--panel-muted); cursor:pointer; }
.header-panel-filters button[aria-pressed="true"], .header-popover .chat-dropdown-filter.active { background:var(--panel-unread); color:#2859b5; font-weight:650; }
.header-popover .notification-dropdown-body, .header-popover .chat-dropdown-body { background:var(--panel-bg); min-height:0; max-height:400px; overflow-y:auto; overscroll-behavior:contain; flex:1; }
.header-popover .notification-item, .header-popover .chat-item { padding:16px; background:var(--panel-bg); color:var(--panel-text); border-bottom:1px solid var(--panel-border); border-radius:0; min-height:0; }
.header-popover .notification-item.unread, .header-popover .chat-item.unread { background:var(--panel-unread); }
.header-popover .notification-item:hover, .header-popover .chat-item:hover { background:var(--panel-hover); }
.header-popover .notification-title, .header-popover .chat-name { font-size:14px; line-height:1.5; color:var(--panel-text); overflow-wrap:anywhere; min-width:0; }
.header-popover .chat-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.header-popover .notification-message, .header-popover .chat-preview { font-size:13px; line-height:1.65; color:var(--panel-muted); overflow-wrap:anywhere; }
.header-popover .notification-time, .header-popover .chat-time, .header-popover .chat-workspace-name { color:var(--panel-muted); font-size:11px; }
.header-popover .notification-delete-btn { opacity:1; pointer-events:auto; border:0; width:28px; height:28px; flex-basis:28px; border-radius:6px; background:transparent; color:var(--panel-muted); }
.header-popover .notif-invite-accept-btn { background:#2860b8; color:#fff; min-height:34px; border-radius:6px; font-size:12px; }
.header-popover .notification-empty, .header-popover .chat-empty { min-height:210px; padding:32px 24px; gap:8px; }
.header-popover .notification-empty > svg, .header-popover .chat-empty > svg { width:30px; height:30px; margin-bottom:8px; color:var(--panel-muted); stroke-width:1.5; }
.header-popover .notification-empty-title, .header-popover .chat-empty-title { font-size:14px; line-height:1.6; color:var(--panel-text); letter-spacing:0; }
.header-popover .notification-empty-text, .header-popover .chat-empty-text { font-size:12px; line-height:1.7; color:var(--panel-muted); margin:0; }
.header-panel-footer { border-top:1px solid var(--panel-border); padding:10px 16px; flex-shrink:0; }
.header-panel-footer a { display:flex; align-items:center; justify-content:space-between; min-height:32px; color:#2860b8; font-size:13px; font-weight:600; text-decoration:none; }
.header-panel-error { margin:0; padding:10px 16px; color:#b33434; background:#fff2f1; font-size:12px; line-height:1.6; }
.header-popover .profile-dropdown-user { padding:16px; display:block; }
.header-account-identity { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.header-account-avatar { display:grid; place-items:center; width:40px; height:40px; flex-shrink:0; background:var(--panel-unread); color:#2859b5; border-radius:50%; font-size:16px; font-weight:700; }
.header-account-identity > div { min-width:0; }
.header-popover .profile-dropdown-user strong { display:block; font-size:15px; font-weight:700; color:var(--panel-text); white-space:normal; overflow-wrap:anywhere; }
.header-account-identity small { display:block; margin-top:4px; font-size:12px; color:var(--panel-muted); overflow-wrap:anywhere; }
.header-popover .profile-dropdown-item { display:flex; justify-content:flex-start; gap:12px; padding:10px 16px; min-height:44px; border-radius:0; font-size:14px; color:var(--panel-text); }
.header-popover.profile-dropdown-menu > * { flex-shrink:0; }
.header-popover .profile-dropdown-item svg { width:18px; height:18px; flex-shrink:0; color:var(--panel-muted); }
.header-popover .profile-dropdown-item:hover { background:var(--panel-hover); }
.header-popover .profile-dropdown-divider { margin:4px 0; background:var(--panel-border); flex-shrink:0; }
.header-popover .drop-logout-button, .header-popover .drop-logout-button svg { color:#be4141; }
[data-theme="dark"] .header-popover { --panel-bg:#1b212b; --panel-text:#edf1f7; --panel-muted:#acb7c8; --panel-border:#343e4d; --panel-hover:#262f3b; --panel-unread:#24334c; }
[data-theme="dark"] .header .header-control[aria-expanded="true"] { color:#a9c7ff; background:#24334c; border-color:#526d99; }
[data-theme="dark"] .header-popover :is(.notification-dropdown-action,.chat-dropdown-action,.header-panel-retry,.header-panel-footer a), [data-theme="dark"] .header-preference-options button[aria-pressed="true"], [data-theme="dark"] .header-panel-filters button[aria-pressed="true"], [data-theme="dark"] .header-popover .chat-dropdown-filter.active { color:#a9c7ff; }
[data-theme="dark"] .header-panel-error { background:#43272b; color:#ffc2c2; }
[data-theme="dark"] .header-account-avatar { color:#a9c7ff; }
@keyframes header-panel-enter { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:1024px) {
  .header .header-control { width:40px; height:40px; }
  .mobile-quick-actions .header-popover.notification-dropdown-menu, .mobile-quick-actions .header-popover.chat-dropdown-menu { position:fixed; top:calc(var(--header-height) + 8px); left:12px; right:12px; width:auto; max-width:none; max-height:calc(100dvh - var(--header-height) - 24px); border-radius:8px; }
  .mobile-quick-actions .header-popover .notification-dropdown-header { display:flex; padding:10px 14px; }
  .mobile-quick-actions .header-popover :is(.notification-dropdown-body,.chat-dropdown-body) { min-height:0; max-height:none; }
  .mobile-quick-actions .header-popover .notification-dropdown-action--delete-read { display:block; }
}
@media(prefers-reduced-motion:reduce) { .header-popover { animation:none !important; } .header .header-control { transition:none; } }
.header .header-preference .header-control.header-language-trigger { width: 54px; min-width: 54px; display: flex; gap: 5px; border: 0; background: transparent; }
.header-popover.header-language-panel { width: 160px; min-width: 0; box-sizing: border-box; padding: 6px; border-radius: 6px; }
.header-language-panel > button { display: grid; grid-template-columns: 22px minmax(0, 1fr) 14px; align-items: center; gap: 8px; box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--panel-text); text-align: left; font: inherit; font-size: 14px; font-weight: 400; line-height: 20px; cursor: pointer; }
.header-language-panel > button > span { min-width: 0; white-space: nowrap; }
.header-language-flag { display: block; width: 22px; height: 16px; object-fit: contain; background: var(--color-service-ffffff); border-radius: 2px; box-shadow: 0 0 0 1px var(--color-service-0000000d); }
.header-language-panel > button[aria-pressed="true"] { font-weight: 600; }
.header-language-panel > button:hover { background: var(--panel-hover); }
/* ============================= */
/* profile dropdown */
/* ============================= */

.profile-dropdown{
  position: relative;
}

.profile-dropdown-menu{
  position: absolute;
  top: 46px;
  right: 0;

  min-width: 190px;
  padding: 8px;

  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.10);

  display: flex;
  flex-direction: column;
  gap: 4px;

  z-index: 1200;
}

.profile-dropdown-item{
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 42px;
  padding: 0 12px;

  border: none;
  border-radius: 10px;
  background: transparent;

  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  text-align: left;

  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.profile-dropdown-item:hover{
  background: #f5f5f5;
}

.profile-dropdown-divider{
  height: 1px;
  margin: 4px 2px;
  background: #ececec;
}

.drop-logout-button{
  color: #d93025;
}

.drop-logout-button:hover{
  background: #fff1f0;
}


/* ============================= */
/* icon button */
/* ============================= */

.nav-icon-btn{
  position: relative;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 12px;
  background: #ffffff;
  color: #222;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.nav-icon-btn:hover{
  background: #f6f7f9;
}

.nav-icon-btn.active{
  background: #f3f6ff;
  box-shadow: inset 0 0 0 1px #dfe7ff;
}

.nav-icon-btn:active{
  transform: translateY(1px);
}

.nav-icon{
  font-size: 20px;
  color: #222;
}


/* ============================= */
/* badge */
/* ============================= */

.nav-badge{
  position: absolute;
  top: 4px;
  right: 4px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a5f, #e53935);
  color: #fff;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}


/* ============================= */
/* notification / chat dropdown */
/* ============================= */

.notification-dropdown,
.chat-dropdown{
  position: relative;
}

.notification-dropdown-menu,
.chat-dropdown-menu{
  position: absolute;
  top: 48px;
  right: 0;

  width: 360px;
  min-height: 320px;

  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.10),
    0 4px 14px rgba(15, 23, 42, 0.06);

  display: flex;
  flex-direction: column;
  overflow: hidden;

  z-index: 1200;
}


/* ============================= */
/* dropdown header */
/* ============================= */

.notification-dropdown-header,
.chat-dropdown-header{
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 56px;
  padding: 0 16px;

  background: #fff;
  border-bottom: 1px solid #f1f3f5;
}

.notification-dropdown-title,
.chat-dropdown-title{
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.notification-dropdown-action,
.chat-dropdown-action{
  border: none;
  background: transparent;
  padding: 0;

  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #667085;

  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.notification-dropdown-action:hover,
.chat-dropdown-action:hover{
  color: #111827;
}

.notification-dropdown-action:disabled,
.chat-dropdown-action:disabled{
  opacity: 0.45;
  cursor: default;
}

.notification-dropdown-action--delete-read{
  margin-left: auto;
  margin-right: 12px;
  color: #8b95a1;
}

.chat-dropdown-filters{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #f1f3f5;
}

.chat-dropdown-filter{
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7b8494;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.chat-dropdown-filter:hover{
  background: #f6f8fc;
  color: #344054;
}

.chat-dropdown-filter.active{
  background: #edf3ff;
  color: #315efb;
}

.chat-dropdown-filter:focus-visible{
  outline: 2px solid #8eb0ff;
  outline-offset: 1px;
}

.chat-dropdown-filter-count{
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dce8ff;
  color: #315efb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}


/* ============================= */
/* dropdown body */
/* ============================= */

.notification-dropdown-body,
.chat-dropdown-body{
  flex: 1;
  min-height: 264px;
  max-height: 420px;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

.notification-dropdown-body::-webkit-scrollbar,
.chat-dropdown-body::-webkit-scrollbar{
  width: 8px;
}

.notification-dropdown-body::-webkit-scrollbar-thumb,
.chat-dropdown-body::-webkit-scrollbar-thumb{
  background: #d9dee7;
  border-radius: 999px;
}

.notification-dropdown-body::-webkit-scrollbar-track,
.chat-dropdown-body::-webkit-scrollbar-track{
  background: transparent;
}


/* ============================= */
/* empty state */
/* ============================= */

.notification-empty,
.chat-empty{
  min-height: 264px;
  padding: 28px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.notification-empty-title,
.chat-empty-title{
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.notification-empty-text,
.chat-empty-text{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}


/* ============================= */
/* notification item */
/* ============================= */

.notification-item{
  width: 100%;
  padding: 14px 16px;

  border: none;
  border-bottom: 1px solid #f1f3f5;
  background: #fff;

  display: block;
  text-align: left;

  cursor: pointer;
  transition: background-color 0.18s ease;
}

.notification-item:last-child{
  border-bottom: none;
}

.notification-item:hover{
  background: #f8fafc;
}

.notification-item.unread{
  background: #f8fbff;
}

.notification-item.unread:hover{
  background: #f2f7ff;
}

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

.notification-title{
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.notification-dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2563eb;
  flex-shrink: 0;
}

.notification-delete-btn{
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  color: #667085;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.notification-item:hover .notification-delete-btn,
.notification-item:focus-within .notification-delete-btn{
  opacity: 1;
  pointer-events: auto;
}

.notification-delete-btn:hover,
.notification-delete-btn:focus-visible{
  background: #f2f4f7;
  color: #101828;
  outline: none;
}

.notification-message{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.notification-item-bottom{
  margin-top: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notification-time{
  font-size: 12px;
  color: #9ca3af;
}

.notification-action-text{
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
}


/* ============================= */
/* chat item */
/* ============================= */

.chat-item{
  width: 100%;
  padding: 14px 16px;

  border: none;
  border-bottom: 1px solid #f1f3f5;
  background: #fff;

  display: block;
  text-align: left;

  cursor: pointer;
  transition: background-color 0.18s ease;
}

.chat-item:last-child{
  border-bottom: none;
}

.chat-item:hover{
  background: #f8fafc;
}

.chat-item.unread{
  background: #f8fbff;
}

.chat-item.unread:hover{
  background: #f2f7ff;
}

.chat-item-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-name{
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.chat-time{
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

.chat-preview{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-workspace-name{
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: #9ca3af;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-bottom{
  margin-top: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-meta{
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-unread-dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2563eb;
  flex-shrink: 0;
}

.chat-unread-count{
  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: #eef2ff;
  color: #315efb;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.profile-dropdown{
  position: relative;
}

.profile-dropdown-menu{
  position: absolute;
  top: 46px;
  right: 0;

  min-width: 190px;
  padding: 8px;

  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.10);

  display: flex;
  flex-direction: column;
  gap: 4px;

  z-index: 1200;
}

.profile-dropdown-item{
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 42px;
  padding: 0 12px;

  border: none;
  border-radius: 10px;
  background: transparent;

  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  text-align: left;

  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.profile-dropdown-item:hover{
  background: #f5f5f5;
}

.profile-dropdown-divider{
  height: 1px;
  margin: 4px 2px;
  background: #ececec;
}

.profile-dropdown-setting-icon{
  flex-shrink: 0;
  font-size: 17px;
  color: #8d96a8;
  transition: color 0.18s ease;
}

.profile-dropdown-item:hover .profile-dropdown-setting-icon{
  color: #4b5563;
}

.drop-logout-button{
  color: #d93025;
}

.drop-logout-button:hover{
  background: #fff1f0;
}

.profile-dropdown-logout-icon{
  flex-shrink: 0;
  font-size: 17px;
  color: #d93025;
}

.profile-dropdown-user {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-dropdown-user strong {
  display: inline-block;
  min-width: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================= */
/* responsive */
/* ============================= */

@media (max-width: 768px){
  .notification-dropdown-menu,
  .chat-dropdown-menu{
    right: -8px;
    width: min(360px, calc(100vw - 24px));
  }
}

.notif-invite-actions {
  margin: 8px 0 4px;
}

.notif-invite-accept-btn {
  display: inline-flex;
  align-items: center;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notif-invite-accept-btn:hover:not(:disabled) {
  background: #4338ca;
}

.notif-invite-accept-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notif-invite-accepted {
  margin: 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
}

/* ============================= */
/* login button */
/* ============================= */

.login-button{
  border:none;
  padding:12px 22px;
  border-radius:30px;
  background:#000;
  color:#fff;
  cursor:pointer;
}

/* ============================= */
/* logout button */
/* ============================= */

.logout-button{
  border:none;
  padding:12px 22px;
  border-radius:30px;
  background:#e53935;
  color:#fff;
  cursor:pointer;
}.mobile-header-actions, .mobile-bottom-nav { display:none; }
@media(max-width:1024px) {
  :root:has(.header-networking) { --header-height:56px; }
  body:has(.mobile-bottom-nav) { --mobile-tab-height:calc(62px + env(safe-area-inset-bottom, 0px)); padding-bottom:var(--mobile-tab-height); }
  .header.header-networking.show { transform:translateY(0); }
  .header.header-networking.hide { transform:translateY(-100%); }
  .header-networking .header-inner { flex-wrap:nowrap; height:var(--header-height); padding:0 14px; gap:8px; }
  .header-networking .header-inner > .networking-header-search { display:none; }
  .mobile-header-actions { display:flex; align-items:center; gap:6px; margin-left:auto; }
  .mobile-action { display:flex; align-items:center; justify-content:center; width:40px; min-height:44px; padding:0; border:0; background:transparent; color:var(--color-text-main,#17202a); text-decoration:none; cursor:pointer; }
  .mobile-me { flex-direction:column; font-size:11px; gap:2px; }
  .mobile-header-actions .header-desktop-label { display:block; font-size:11px; }
  .mobile-header-actions .profile-dropdown > button { display:flex; flex-direction:column; gap:2px; width:40px; height:48px; }
  .mobile-header-actions .header-preference > button { min-width:40px; }
  .mobile-search-panel { position:absolute; top:100%; left:0; right:0; display:flex; align-items:center; padding:10px 14px; background:var(--color-bg-white,#fff); border-bottom:1px solid #dfe3e8; box-shadow:0 6px 12px #0001; }
  .header-networking .mobile-search-panel .networking-header-search { display:flex; order:0; flex:1; width:auto; }
  .mobile-bottom-nav { position:fixed; z-index:1000; bottom:0; left:0; right:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); height:var(--mobile-tab-height); padding:4px 6px calc(4px + env(safe-area-inset-bottom,0px)); box-sizing:border-box; background:var(--color-bg-white,#fff); border-top:1px solid var(--color-border,#dfe3e8); }
  .mobile-bottom-nav a { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:3px; min-width:0; color:#727986; text-decoration:none; font-size:10px; letter-spacing:0; line-height:14px; transition:background .15s,color .15s,transform .15s; }
  .mobile-bottom-nav a[aria-current=page] { color:#193e82; font-weight:700; background:#f0f4fa; border-radius:6px; }
  .mobile-bottom-nav a:active { transform:scale(.94); }
  .mobile-tab-icon { position:relative; height:23px; }
  .mobile-tab-badge { position:absolute; top:-4px; left:15px; min-width:16px; height:16px; padding:0 3px; border-radius:10px; color:#fff; background:#b72739; font-size:10px; text-align:center; line-height:16px; }
  body:has(.mobile-bottom-nav) .main-content.messages-layout { position:fixed; inset:var(--header-height,64px) 0 var(--mobile-tab-height); height:auto; min-height:0; padding:0; }
  .main-content.messages-layout :is(.inbox-layout, .inbox-layout-inner, .messages-page) { height:100%; min-height:0; }
  .touch-keyboard-open .main-content.messages-layout { position:fixed; inset:var(--header-height,64px) 0 0; height:auto; padding:0; }
  body:has(.mobile-bottom-nav) .app-install-nudge { top:calc(var(--header-height) + 8px); border-radius:8px; }
}
.footer {
  background: #f7f8fa;
  color: #202733;
  border-top: 1px solid #e1e5eb;
  padding: 0 28px;
  letter-spacing: 0;
}
.footer-shell { max-width: 1240px; margin: 0 auto; padding: 36px 0 24px; }
.footer-top { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(440px, 1.25fr); align-items:start; gap: 48px; }
.footer-brand { min-width: 0; display:grid; justify-items:start; gap:12px; }
.footer-brand-link { display: block; color: #18202c; text-decoration: none; }
.footer-logo-wrap, .footer-logo-wrap .logo { width: 152px; height: 79px; flex: 0 0 auto; }
.footer-logo-wrap .logo { padding: 0; margin: 0; display: block; }
.footer-logo-wrap .logo-image { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.footer-brand-description { margin:0; color:#526171; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.footer-social { display: inline-flex; align-items: center; min-height: 36px; margin:0; font-size: 13px; color: #526171; text-decoration: none; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-column h2, .footer-business h2 { margin: 0 0 12px; color: #202733; font-size: 13px; font-weight: 700; line-height: 1.6; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column a { display: inline-flex; align-items: center; min-height: 40px; padding: 5px 0; font-size: 14px; line-height: 1.5; color: #526171; text-decoration: none; overflow-wrap: anywhere; }
.footer-column .footer-privacy-link { color: #202733; font-weight: 650; }
.footer a:hover { color: #245cbd; text-decoration: underline; text-underline-offset: 4px; }
.footer a:focus-visible { outline: 2px solid #245cbd; outline-offset: 4px; border-radius: 2px; }
.footer-business { margin-top: 36px; padding-top: 24px; border-top: 1px solid #dfe4eb; }
.footer-business dl { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; font-size: 13px; line-height: 1.7; }
.footer-business dl > div { display: flex; gap: 10px; min-width: 0; }
.footer-business .footer-business-address { flex-basis: 100%; }
.footer-business dt { color: #5a6574; flex-shrink: 0; }
.footer-business dd { margin: 0; color: #364250; overflow-wrap: anywhere; }
.footer-business dd a { color: inherit; text-decoration: none; }
.footer-business dd span { color: #5a6574; }
.footer-copyright { color: #5a6574; font-size: 12px; line-height: 1.7; margin: 24px 0 0; }
[data-theme="dark"] .footer { background: #171b22; color: #e7eaf0; border-color: #333b47; }
[data-theme="dark"] .footer :is(.footer-brand-link, .footer-column h2, .footer-business h2, .footer-privacy-link) { color: #f1f3f6; }
[data-theme="dark"] .footer :is(.footer-brand-description, .footer-social, .footer-column a, .footer-business dt, .footer-business dd span, .footer-copyright) { color: #adb8c8; }
[data-theme="dark"] .footer-business { border-color: #333b47; }
[data-theme="dark"] .footer-business dd { color: #e1e6ef; }
[data-theme="dark"] .footer a:hover { color: #96bcff; }
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-shell { padding-bottom: calc(26px + var(--mobile-bottom-nav-height, 68px)); }
}
@media (max-width: 600px) {
  .footer { padding: 0 20px; }
  .footer-shell { padding-top: 24px; }
  .footer-top { gap: 24px; }
  .footer-links { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-column:last-child { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #dfe4eb; }
  .footer-column:last-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .footer-business { margin-top: 20px; padding-top: 20px; }
  .footer-business dl { display: grid; gap: 8px; }
  .footer-business dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
  .footer-business dt, .footer-business dd { overflow-wrap: anywhere; }
  [data-theme="dark"] .footer-column:last-child { border-color: #333b47; }
}
.business-card-prompt-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
}

.business-card-prompt-modal {
  width: min(100%, 460px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-strong);
}

.business-card-prompt-modal h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.business-card-prompt-modal__description {
  margin: 0 0 16px;
  color: var(--color-text-sub);
  font-size: 14px;
}
.site-ad .site-ad__frame--campaign{aspect-ratio:auto;min-height:340px}
.site-ad__frame--campaign .site-ad__link{height:auto}
.site-campaign{position:relative;min-height:340px;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#f4f8ff 0%,#e8f1ff 65%,#d4e5ff 100%);color:#0d1939;letter-spacing:0}
.site-campaign__copy{position:relative;z-index:2;width:49%;min-height:340px;padding:25px 36px 30px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.site-campaign__brand{display:block;font-size:17px;font-weight:750;line-height:1.4;margin-bottom:18px}
.site-campaign__audience{display:inline-block;font-size:12px;font-weight:650;background:#d6e5ff;padding:4px 12px;border-radius:4px;margin-bottom:9px}
.site-campaign h2{font-size:30px;line-height:1.4;font-weight:760;letter-spacing:0;margin:0 0 12px;overflow-wrap:anywhere;word-break:keep-all}
.site-campaign h2 span{display:block}
.site-campaign p{font-size:13px;line-height:1.65;margin:0 0 20px;max-width:430px;word-break:keep-all;overflow-wrap:anywhere;color:#46536b}
.site-campaign__action{display:inline-flex;align-items:center;justify-content:center;gap:15px;background:#0755f9;color:white;border-radius:6px;padding:11px 19px;min-height:43px;font-size:14px;font-weight:700}
.site-campaign__visual{position:absolute;inset:0 0 0 auto;width:61%;z-index:1;display:flex;align-items:center;pointer-events:none;-webkit-mask-image:linear-gradient(to right,transparent,#000 13%);mask-image:linear-gradient(to right,transparent,#000 13%)}
.site-campaign__visual>div{position:relative;width:100%;flex:none;overflow:hidden}
.site-ad .site-campaign__visual img{position:absolute;max-width:none;height:auto;display:block;object-fit:unset}
.site-campaign--organizer{background:linear-gradient(110deg,#0d294b,#143d6e);color:white}
.site-campaign--organizer .site-campaign__audience{background:#366390;color:white}
.site-campaign--organizer p{color:#c6dff7}
.site-campaign--organizer .site-campaign__action{background:white;color:#0d1939}
.site-ad__frame--campaign .site-ad__badge{left:auto;right:12px;top:10px;font-size:9px;background:rgba(20,40,65,.6)}
.site-ad__frame--campaign .site-ad__controls{bottom:12px;right:16px;gap:5px;font-size:11px}
.site-ad__frame--campaign .site-ad__arrow{width:30px;height:30px}
.site-ad__frame--campaign .site-ad__arrow svg{width:16px;height:16px}
@media(max-width:1100px){.site-campaign__copy{width:52%;padding-inline:26px}.site-campaign h2{font-size:25px}.site-campaign p{font-size:12px}.site-campaign__brand{font-size:15px}.site-campaign__visual{width:58%}}
@media(max-width:760px){
  .site-ad .site-ad__frame--campaign,.site-campaign{min-height:0}
  .site-campaign__copy{width:100%;min-height:0;padding:22px 24px 15px}
  .site-campaign__brand{font-size:15px;margin-bottom:17px}
  .site-campaign__audience{font-size:11px;margin-bottom:9px}
  .site-campaign h2{font-size:24px;line-height:1.4;max-width:100%;margin-bottom:10px}
  .site-campaign p{font-size:12px;margin-bottom:16px;max-width:380px}
  .site-campaign__action{font-size:13px;min-height:42px;padding:10px 15px}
  .site-campaign__visual{position:relative;inset:auto;width:100%;display:block;-webkit-mask-image:none;mask-image:none;margin:0;padding-bottom:32px}
  .site-campaign__visual>div{width:100%}
  .site-campaign--organizer .site-campaign__visual{padding-inline:7px}
  .site-ad__frame--campaign .site-ad__controls{bottom:8px;right:10px}
  .site-ad__frame--campaign .site-ad__badge{right:10px;top:10px}
  .site-ad__frame--campaign .site-ad__arrow{width:27px;height:27px}
}
@media(max-width:360px){.site-campaign__copy{padding-inline:18px}.site-campaign h2{font-size:21px}.site-campaign__brand{font-size:14px}}
.site-ad { width: min(1440px, calc(100% - 64px)); margin: 28px auto 32px; letter-spacing: 0; }
.site-ad__frame { position: relative; overflow: hidden; isolation: isolate; border-radius: 8px; background: #edf1f3; aspect-ratio: 4 / 1; }
.site-ad__link, .site-ad picture, .site-ad img { display: block; width: 100%; height: 100%; }
.site-ad img { object-fit: cover; }
.site-ad picture { animation: ad-reveal .35s ease-out both; }
.site-ad__badge { position: absolute; top: 12px; left: 14px; padding: 3px 6px; background: rgb(0 0 0 / 48%); color: #fff; font-size: 10px; border-radius: 3px; pointer-events: none; }
.site-ad .site-ad__controls button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid rgb(255 255 255 / 75%); cursor: pointer; color: var(--color-service-303845); background: var(--color-service-ffffff); padding: 0; min-height: 0; border-radius: 50%; box-shadow: 0 2px 8px rgb(15 23 42 / 8%); transition: background .15s ease, box-shadow .15s ease; }
.site-ad .site-ad__controls button:hover { background: var(--color-service-edf1f7); box-shadow: 0 3px 12px rgb(15 23 42 / 16%); }
.site-ad button:focus-visible, .site-ad a:focus-visible { outline: 2px solid var(--color-service-245bc3); outline-offset: -4px; }
.site-ad .site-ad__arrow { width: 44px; height: 44px; }
.site-ad__controls { position: absolute; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 8px; color: var(--color-service-414b5d); font-size: 14px; font-weight: 500; }
.site-ad--preview { width: 100%; margin: 0; }
@keyframes ad-reveal { from { opacity: .6; } to { opacity: 1; } }
@media (max-width: 600px) {
  .site-ad { width: calc(100% - 32px); margin: 16px auto 20px; }
  .site-ad__frame { aspect-ratio: 2 / 1; }
  .site-ad .site-ad__arrow { width: 36px; height: 36px; }
  .site-ad__badge { top: 8px; left: 10px; }
  .site-ad__controls { bottom: 12px; right: 12px; gap: 6px; font-size: 12px; }
  .site-ad--preview { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .site-ad picture { animation: none; }.site-ad .site-ad__controls button { transition: none; } }
.auth-session-status { display:grid; justify-items:center; align-content:center; gap:16px; min-height:240px; padding:32px 20px; color:var(--app-text-sub,var(--color-service-697384)); font:inherit; text-align:center; }
.auth-session-status p { display:flex; align-items:center; justify-content:center; gap:8px; margin:0; font-size:14px; }
.auth-session-status button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:8px 14px; border:1px solid var(--app-border,var(--color-service-dce1e8)); border-radius:5px; background:var(--app-bg-card,var(--color-service-ffffff)); color:var(--app-text-main,var(--color-service-303b4b)); font:inherit; font-size:13px; cursor:pointer; }
.auth-session-status button:disabled { opacity:.5; cursor:wait; }
.auth-session-status button:focus-visible { outline:2px solid var(--color-service-3566b7); outline-offset:3px; }
.auth-session-status [role=status] svg { animation:auth-session-spin 1s linear infinite; }
@keyframes auth-session-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .auth-session-status [role=status] svg { animation:none; } }
:root {
  --color-sp-bg-2: rgb(253, 252, 255);
  --color-sp-bg-3: rgb(243, 239, 255);
  --color-sp-bg-4: rgb(236, 230, 255);
  --color-sp-bg-5: rgb(248, 246, 255);
  --color-sp-accent: rgb(124, 92, 255);
  --color-sp-heading: rgb(17, 17, 17);
  --color-sp-desc: rgb(102, 102, 102);
  --color-sp-banner-bg: rgba(255, 255, 255, 0.9);
  --color-sp-card-border: rgb(236, 233, 248);
  --color-sp-banner-shadow: rgba(75, 52, 173, 0.06);
  --color-sp-card-shadow: rgba(75, 52, 173, 0.05);
  --color-sp-avatar-grad-end: rgb(164, 139, 255);
  --color-sp-error-bg: rgb(255, 242, 241);
  --color-sp-error-border: rgb(255, 210, 204);
  --color-sp-success-text: rgb(15, 122, 66);
  --color-sp-success-bg: rgb(236, 253, 243);
  --color-sp-success-border: rgb(183, 235, 198);
  --color-sp-desc-2: rgb(119, 119, 119);
  --color-sp-label: rgb(34, 34, 34);
  --color-sp-input-border: rgb(221, 215, 247);
  --color-sp-input-focus-shadow: rgba(124, 92, 255, 0.12);
  --color-sp-input-error-border: rgb(240, 68, 56);
  --color-sp-input-error-shadow: rgba(240, 68, 56, 0.08);
  --color-sp-input-readonly-bg: rgb(248, 248, 252);
  --color-sp-error-text: rgb(217, 45, 32);
  --color-sp-row-border: rgb(240, 236, 251);
  --color-sp-toggle-off-bg: rgb(217, 214, 234);
  --color-sp-toggle-on-end: rgb(157, 132, 255);
  --color-sp-toggle-thumb-shadow: rgba(17, 17, 17, 0.15);
  --color-sp-toggle-thumb-disabled: rgb(247, 247, 251);
  --color-sp-disabled-text: rgb(154, 154, 154);
  --color-sp-btn-text: rgb(51, 51, 51);
  --color-sp-btn-hover-bg: rgb(247, 244, 255);
  --color-sp-btn-hover-border: rgb(203, 191, 255);
  --color-sp-save-shadow: rgba(124, 92, 255, 0.22);
  --color-sp-danger-border: rgb(255, 215, 220);
  --color-sp-danger-grad-1: rgb(255, 254, 254);
  --color-sp-danger-grad-2: rgb(255, 248, 249);
  --color-sp-danger-btn-bg: rgb(255, 92, 116);
  --color-sp-skeleton-bg: rgba(255, 255, 255, 0.94);
  --color-sp-skeleton-grad-1: rgb(242, 239, 255);
  --color-sp-skeleton-grad-2: rgb(235, 229, 255);
  --color-sp-card-bg: rgba(255, 255, 255, 0.95);
}

.settings-page {
  min-height: 100vh;
  padding: 48px 20px 80px;
  background:
    linear-gradient(
      180deg,
      var(--color-bg-white) 0%,
      var(--color-sp-bg-2) 8%,
      var(--color-sp-bg-3) 18%,
      var(--color-sp-bg-4) 28%,
      var(--color-sp-bg-5) 40%,
      var(--color-bg-white) 54%
    ),
    var(--color-bg-white);
}

.settings-container {
  max-width: 920px;
  margin: 0 auto;
}

.settings-header {
  margin-bottom: 24px;
}

.settings-kicker {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-sp-accent);
}

.settings-header h1 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 800;
  color: var(--color-sp-heading);
}

.settings-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-sp-desc);
}

.settings-profile-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
  background: var(--color-sp-banner-bg);
  border: 1px solid var(--color-sp-card-border);
  border-radius: 22px;
  box-shadow: 0 10px 30px var(--color-sp-banner-shadow);
  backdrop-filter: blur(8px);
}

.settings-profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sp-accent), var(--color-sp-avatar-grad-end));
  color: var(--color-bg-white);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-profile-meta h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-sp-heading);
}

.settings-profile-meta p {
  margin: 0;
  font-size: 14px;
  color: var(--color-sp-desc);
}

.settings-feedback {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.settings-section-feedback {
  margin-bottom: 18px;
}

.settings-feedback-error {
  color: var(--color-danger-strong);
  background: var(--color-sp-error-bg);
  border: 1px solid var(--color-sp-error-border);
}

.settings-feedback-success {
  color: var(--color-sp-success-text);
  background: var(--color-sp-success-bg);
  border: 1px solid var(--color-sp-success-border);
}

.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-card {
  padding: 24px;
  background: var(--color-sp-card-bg);
  border: 1px solid var(--color-sp-card-border);
  border-radius: 22px;
  box-shadow: 0 10px 30px var(--color-sp-card-shadow);
  backdrop-filter: blur(10px);
}

.settings-card-header {
  margin-bottom: 18px;
}

.settings-card-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-sp-heading);
}

.settings-card-header p {
  margin: 0;
  font-size: 14px;
  color: var(--color-sp-desc-2);
  line-height: 1.6;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-sp-label);
}

.settings-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-sp-input-border);
  border-radius: 14px;
  background: var(--color-bg-white);
  font-size: 15px;
  color: var(--color-sp-heading);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.settings-input:focus {
  border-color: var(--color-sp-accent);
  box-shadow: 0 0 0 4px var(--color-sp-input-focus-shadow);
}

.settings-input.is-error {
  border-color: var(--color-sp-input-error-border);
  box-shadow: 0 0 0 4px var(--color-sp-input-error-shadow);
}

.settings-input-readonly {
  background: var(--color-sp-input-readonly-bg);
  color: var(--color-sp-desc);
  cursor: not-allowed;
}

.settings-help {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-sp-desc-2);
}

.settings-error-text {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-sp-error-text);
}

.settings-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
}

.settings-row-content {
  flex: 1;
}

.settings-row-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-sp-heading);
}

.settings-row-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-sp-desc);
}

.settings-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-browser-push-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--color-sp-row-border);
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--color-sp-row-border);
}

.settings-toggle-row:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.settings-toggle-content {
  flex: 1;
  min-width: 0;
}

.settings-toggle-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-sp-heading);
}

.settings-toggle-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-sp-desc);
}

.settings-toggle-row.is-disabled .settings-toggle-content h3,
.settings-toggle-row.is-disabled .settings-toggle-content p {
  color: var(--color-sp-disabled-text);
}

.settings-toggle {
  position: relative;
  width: 56px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: var(--color-sp-toggle-off-bg);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
  flex-shrink: 0;
}

.settings-toggle:hover {
  transform: translateY(-1px);
}

.settings-toggle.is-on {
  background: linear-gradient(135deg, var(--color-sp-accent), var(--color-sp-toggle-on-end));
}

.settings-toggle.is-disabled,
.settings-toggle.is-disabled.is-on {
  background: var(--color-sp-toggle-off-bg);
}

.settings-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-white);
  box-shadow: 0 4px 10px var(--color-sp-toggle-thumb-shadow);
  transition: left 0.2s ease;
}

.settings-toggle.is-on .settings-toggle-thumb {
  left: 28px;
}

.settings-toggle.is-disabled .settings-toggle-thumb,
.settings-toggle.is-disabled.is-on .settings-toggle-thumb {
  left: 4px;
  background: var(--color-sp-toggle-thumb-disabled);
}

.settings-btn {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-sp-input-border);
  border-radius: 12px;
  background: var(--color-bg-white);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-sp-btn-text);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
  flex-shrink: 0;
}

.settings-btn:hover {
  background: var(--color-sp-btn-hover-bg);
  border-color: var(--color-sp-btn-hover-border);
  transform: translateY(-1px);
}

.settings-save-btn {
  min-width: 160px;
  height: 50px;
  padding: 0 22px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-sp-accent), var(--color-sp-toggle-on-end));
  color: var(--color-bg-white);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px var(--color-sp-save-shadow);
  transition:
    transform 0.15s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.settings-save-btn:hover:not(:disabled) {
  opacity: 0.96;
  transform: translateY(-1px);
}

.settings-save-btn:disabled,
.settings-btn:disabled,
.danger-btn:disabled,
.settings-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.danger-card {
  border-color: var(--color-sp-danger-border);
  background: linear-gradient(180deg, var(--color-sp-danger-grad-1) 0%, var(--color-sp-danger-grad-2) 100%);
}

.settings-link-button {
  text-decoration: none;
  flex-shrink: 0;
}

.danger-btn {
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: var(--color-sp-danger-btn-bg);
  color: var(--color-bg-white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.2s ease;
}

.danger-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.settings-skeleton-card {
  padding: 24px;
  background: var(--color-sp-skeleton-bg);
  border: 1px solid var(--color-sp-card-border);
  border-radius: 22px;
}

.settings-skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-sp-skeleton-grad-1) 25%, var(--color-sp-skeleton-grad-2) 50%, var(--color-sp-skeleton-grad-1) 75%);
  background-size: 200% 100%;
  animation: settingsShimmer 1.4s linear infinite;
}

.settings-skeleton-line + .settings-skeleton-line {
  margin-top: 12px;
}

.settings-skeleton-line-lg {
  width: 32%;
  height: 20px;
}

.settings-skeleton-line-sm {
  width: 54%;
}

@keyframes settingsShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 768px) {
  .settings-page {
    padding: 32px 16px 60px;
  }

  .settings-header h1 {
    font-size: 30px;
  }

  .settings-profile-banner {
    padding: 18px;
    border-radius: 18px;
  }

  .settings-profile-avatar {
    width: 54px;
    height: 54px;
    font-size: 20px;
  }

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

  .settings-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-toggle-row {
    align-items: flex-start;
  }

  .settings-browser-push-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-btn,
  .settings-save-btn,
  .danger-btn,
  .settings-link-button {
    width: 100%;
  }

  .settings-inline-actions {
    justify-content: stretch;
  }
}

[data-theme="dark"] {
  --color-sp-bg-2: rgb(15, 23, 42);
  --color-sp-bg-3: rgb(30, 27, 58);
  --color-sp-bg-4: rgb(36, 30, 66);
  --color-sp-bg-5: rgb(20, 22, 40);
  --color-sp-accent: rgb(157, 132, 255);
  --color-sp-heading: var(--color-text-main);
  --color-sp-desc: var(--color-text-muted);
  --color-sp-banner-bg: rgba(30, 41, 59, 0.85);
  --color-sp-card-border: rgb(51, 65, 85);
  --color-sp-banner-shadow: rgba(0, 0, 0, 0.3);
  --color-sp-card-shadow: rgba(0, 0, 0, 0.3);
  --color-sp-avatar-grad-end: rgb(196, 181, 253);
  --color-sp-error-bg: rgba(248, 113, 113, 0.12);
  --color-sp-error-border: rgba(248, 113, 113, 0.3);
  --color-sp-success-text: rgb(110, 231, 183);
  --color-sp-success-bg: rgba(52, 211, 153, 0.14);
  --color-sp-success-border: rgba(52, 211, 153, 0.3);
  --color-sp-desc-2: var(--color-text-muted);
  --color-sp-label: var(--color-text-sub);
  --color-sp-input-border: rgb(51, 65, 85);
  --color-sp-input-focus-shadow: rgba(157, 132, 255, 0.18);
  --color-sp-input-error-border: rgb(248, 113, 113);
  --color-sp-input-error-shadow: rgba(248, 113, 113, 0.15);
  --color-sp-input-readonly-bg: var(--color-bg-elevated-dark);
  --color-sp-error-text: rgb(248, 113, 113);
  --color-sp-row-border: rgb(51, 65, 85);
  --color-sp-toggle-off-bg: rgb(51, 65, 85);
  --color-sp-toggle-on-end: rgb(196, 181, 253);
  --color-sp-toggle-thumb-shadow: rgba(0, 0, 0, 0.35);
  --color-sp-toggle-thumb-disabled: var(--color-bg-elevated-dark);
  --color-sp-disabled-text: var(--color-text-placeholder);
  --color-sp-btn-text: var(--color-text-sub);
  --color-sp-btn-hover-bg: rgba(157, 132, 255, 0.12);
  --color-sp-btn-hover-border: rgba(157, 132, 255, 0.4);
  --color-sp-save-shadow: rgba(124, 92, 255, 0.35);
  --color-sp-danger-border: rgba(248, 113, 113, 0.3);
  --color-sp-danger-grad-1: rgba(248, 113, 113, 0.06);
  --color-sp-danger-grad-2: rgba(248, 113, 113, 0.1);
  --color-sp-danger-btn-bg: rgb(255, 92, 116);
  --color-sp-skeleton-bg: rgba(30, 41, 59, 0.9);
  --color-sp-skeleton-grad-1: rgb(51, 65, 85);
  --color-sp-skeleton-grad-2: rgb(71, 85, 105);
  --color-sp-card-bg: rgba(30, 41, 59, 0.92);
}

/* ── AI 사용량 ─────────────────────────────────────────────────────── */
.settings-plan-option__period {
  color: var(--color-text-muted, #647184);
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0;
}
.settings-ai-usage__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.settings-ai-usage__top strong { font-size: 15px; font-weight: 800; }
.settings-ai-usage__top span {
  color: var(--color-text-muted, #7b7e87);
  font-size: 13px;
  /* 숫자가 자리에서 흔들리지 않게 — 쓸 때마다 폭이 변하면 눈에 거슬린다. */
  font-variant-numeric: tabular-nums;
}
.settings-ai-usage__bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-bg-soft, #f1f2f4);
}
.settings-ai-usage__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary, #4f46e5);
  transition: width .3s ease;
}
/* 다 쓴 상태는 색으로도 알려 준다 — 숫자만으로는 눈에 안 들어온다. */
.settings-ai-usage__bar i[data-full] { background: #c0453c; }
.settings-ai-usage__note {
  margin: 10px 0 0;
  color: var(--color-text-muted, #7b7e87);
  font-size: 12.5px;
}

/* Settings workspace */
.settings-page {
  min-height: 100dvh;
  padding: 24px;
  background: var(--color-bg-soft, #f5f6f8);
}

.settings-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  width: min(1440px, 100%);
  height: min(900px, calc(100dvh - 48px));
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-bg-white, #fff);
  border: 1px solid var(--color-sp-card-border);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(24, 30, 42, 0.12);
}

.settings-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 18px;
  overflow-y: auto;
  background: var(--color-sp-input-readonly-bg, #f7f7f8);
  border-right: 1px solid var(--color-sp-card-border);
}

.settings-sidebar .settings-profile-banner {
  gap: 12px;
  margin: 0 0 28px;
  padding: 4px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.settings-sidebar .settings-profile-avatar {
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.settings-sidebar .settings-profile-meta {
  min-width: 0;
}

.settings-sidebar .settings-profile-meta h2,
.settings-sidebar .settings-profile-meta p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-sidebar .settings-profile-meta h2 {
  font-size: 15px;
}

.settings-sidebar__label {
  margin: 0 8px 8px;
  color: var(--color-sp-desc);
  font-size: 12px;
  font-weight: 700;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-nav button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--color-sp-desc);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.settings-nav button:hover {
  color: var(--color-sp-heading);
  background: rgba(124, 92, 255, 0.08);
}

.settings-nav button.is-active {
  color: var(--color-sp-heading);
  background: rgba(124, 92, 255, 0.13);
}

.settings-nav button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.settings-sidebar__security {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: auto;
  padding: 18px 8px 2px;
  color: var(--color-sp-desc);
  font-size: 12px;
  line-height: 1.5;
}

.settings-sidebar__security svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.settings-main {
  position: relative;
  min-width: 0;
  padding: 46px 52px 64px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.settings-close {
  position: absolute;
  top: 20px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--color-sp-desc);
  cursor: pointer;
}

.settings-close:hover {
  color: var(--color-sp-heading);
  background: var(--color-sp-input-readonly-bg);
}

.settings-close svg {
  width: 21px;
  height: 21px;
}

.settings-main .settings-header {
  max-width: 760px;
  margin-bottom: 28px;
  padding-right: 48px;
}

.settings-main .settings-kicker {
  margin-bottom: 6px;
  color: var(--color-sp-desc);
  font-size: 12px;
}

.settings-main .settings-header h1 {
  margin-bottom: 6px;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: 0;
}

.settings-main .settings-desc {
  font-size: 14px;
  line-height: 1.55;
}

.settings-card[hidden] {
  display: none;
}

.settings-main .settings-sections {
  gap: 16px;
}

.settings-main .settings-card {
  padding: 24px 26px;
  border-radius: 8px;
  background: var(--color-sp-card-bg);
  box-shadow: none;
  backdrop-filter: none;
}

.settings-main .settings-card-header {
  margin-bottom: 20px;
}

.settings-main .settings-card-header h2 {
  font-size: 18px;
}

.settings-main .settings-input {
  height: 44px;
  border-radius: 7px;
}

.settings-main .settings-btn,
.settings-main .settings-save-btn,
.settings-main .danger-btn {
  min-width: 0;
  height: 42px;
  border-radius: 7px;
  box-shadow: none;
}

.settings-main .settings-save-btn {
  padding: 0 20px;
}

.settings-main .settings-feedback {
  border-radius: 7px;
}

.settings-plan-panel {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--color-sp-card-border);
  border-radius: 8px;
}

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

.settings-ai-meter-note {
  margin: 12px 2px 0;
  color: var(--color-sp-desc);
  font-size: 11px;
  line-height: 1.55;
}

.settings-plan-option {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 19px 17px 16px;
  border: 1px solid var(--color-sp-card-border);
  border-radius: 8px;
  background: var(--color-bg-white, #fff);
}

.settings-plan-option.is-recommended {
  border-color: color-mix(in srgb, var(--color-sp-accent) 58%, var(--color-sp-card-border));
}

.settings-plan-option.is-current {
  border-color: var(--color-sp-accent);
  background: color-mix(in srgb, var(--color-sp-accent) 5%, var(--color-bg-white, #fff));
}

.settings-plan-option__head {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settings-plan-option__head h3 {
  margin: 0;
  color: var(--color-sp-heading);
  font-size: 17px;
  font-weight: 800;
}

.settings-plan-option__head span {
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-sp-accent) 12%, transparent);
  color: var(--color-sp-accent);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.settings-plan-option__price {
  min-height: 34px;
  margin: 11px 0 10px;
  color: var(--color-sp-heading);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.settings-plan-option__price small {
  margin-left: 3px;
  color: var(--color-sp-desc);
  font-size: 11px;
  font-weight: 650;
}

.settings-plan-option__limit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--color-sp-heading);
  font-size: 12px;
  font-weight: 700;
}

.settings-plan-option__limit svg {
  flex: 0 0 auto;
  color: var(--color-sp-accent);
}

.settings-plan-option__description {
  flex: 1;
  min-height: 42px;
  margin: 0 0 16px;
  color: var(--color-sp-desc);
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
}

.settings-plan-option > button {
  width: 100%;
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid var(--color-sp-input-border);
  border-radius: 7px;
  background: var(--color-bg-white, #fff);
  color: var(--color-sp-heading);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.settings-plan-option.is-recommended > button:not(:disabled) {
  border-color: var(--color-sp-accent);
  background: var(--color-sp-accent);
  color: #fff;
}

.settings-plan-option > button:disabled {
  cursor: default;
  opacity: 0.62;
}

.settings-ai-status {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 14px;
  padding: 22px;
}

.settings-ai-status > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--color-sp-accent);
}

.settings-ai-status strong {
  color: var(--color-sp-heading);
  font-size: 14px;
}

.settings-ai-status p {
  margin: 5px 0 0;
  color: var(--color-sp-desc);
  font-size: 12px;
  line-height: 1.5;
}

.settings-plan-row,
.settings-plan-usage {
  padding: 22px;
}

.settings-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.settings-plan-copy,
.settings-ai-usage__top > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.settings-plan-copy > span {
  color: var(--color-sp-desc);
  font-size: 12px;
  font-weight: 700;
}

.settings-plan-copy > strong {
  color: var(--color-sp-heading);
  font-size: 18px;
}

.settings-plan-copy > small,
.settings-ai-usage__top small {
  color: var(--color-sp-desc);
  font-size: 12px;
  line-height: 1.45;
}

.settings-plan-usage {
  border-top: 0;
}

.settings-plan-usage .settings-ai-usage__top {
  align-items: flex-end;
  margin-bottom: 14px;
}

.settings-plan-usage .settings-ai-usage__top strong {
  color: var(--color-sp-heading);
  font-size: 14px;
}

.settings-plan-usage .settings-ai-usage__bar {
  height: 7px;
}

.settings-plan-usage .settings-ai-usage__note {
  margin-top: 9px;
  line-height: 1.5;
}

.settings-ai-usage__numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.settings-ai-usage__numbers > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border-radius: 7px;
  background: var(--color-sp-input-readonly-bg);
  color: var(--color-sp-desc);
  font-size: 11px;
}

.settings-ai-usage__numbers strong {
  overflow-wrap: anywhere;
  color: var(--color-sp-heading);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.settings-ai-usage__sync-warning {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--color-sp-card-border);
  color: var(--color-sp-desc);
  font-size: 11px;
  line-height: 1.5;
}

[data-theme="dark"] .settings-page {
  background: var(--color-bg-main, #111827);
}

[data-theme="dark"] .settings-shell {
  background: var(--color-bg-card, #1e293b);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .settings-nav button:hover,
[data-theme="dark"] .settings-nav button.is-active {
  background: rgba(157, 132, 255, 0.16);
}

[data-theme="dark"] .settings-plan-option,
[data-theme="dark"] .settings-plan-option > button {
  background: var(--color-sp-card-bg);
}

[data-theme="dark"] .settings-plan-option.is-current {
  background: rgba(157, 132, 255, 0.1);
}

@media (max-width: 900px) {
  .settings-page {
    padding: 12px;
  }

  .settings-shell {
    display: block;
    height: calc(100dvh - 24px);
    min-height: 560px;
  }

  .settings-sidebar {
    display: block;
    padding: 14px 14px 10px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--color-sp-card-border);
  }

  .settings-sidebar .settings-profile-banner,
  .settings-sidebar__label,
  .settings-sidebar__security {
    display: none;
  }

  .settings-nav {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
  }

  .settings-nav button {
    width: auto;
    min-width: max-content;
    padding: 0 13px;
  }

  .settings-main {
    height: calc(100% - 69px);
    padding: 32px 22px 48px;
  }

  .settings-plan-grid {
    grid-template-columns: 1fr;
  }

  .settings-plan-option__description {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .settings-page {
    padding: 0;
  }

  .settings-shell {
    height: 100dvh;
    min-height: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .settings-main {
    padding: 28px 16px 40px;
  }

  .settings-main .settings-header h1 {
    font-size: 23px;
  }

  .settings-main .settings-card {
    padding: 20px 16px;
  }

  .settings-plan-row {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-plan-row .settings-btn {
    width: 100%;
  }

  .settings-ai-usage__numbers {
    grid-template-columns: 1fr;
  }
}
.settings-mobile-appearance { display: none; }
@media (max-width: 1024px), (display-mode: standalone) {
  .settings-mobile-appearance { display: block; }
}
.settings-appearance-options { display: inline-flex; border: 1px solid var(--color-border, #dce1e7); border-radius: 6px; overflow: hidden; }
.settings-appearance-options button { min-width: 100px; min-height: 44px; border: 0; background: var(--color-bg-white, #fff); color: var(--color-text-main, #222); font: inherit; cursor: pointer; }
.settings-appearance-options button[aria-pressed="true"] { background: var(--color-primary, #3156b3); color: #fff; }
/* Match the profile editor frame without changing password/account-removal pages. */
.settings-overlay-root { position: fixed; inset: 0; z-index: 3000; outline: none; }
body:has(.settings-overlay-root) { overflow: hidden; }
.settings-page.settings-page--panel {
  --color-sp-accent: #5969df;
  --color-sp-card-border: var(--color-border, #e3e7ef);
  --color-sp-input-border: var(--color-border, #dce1e9);
  --color-sp-heading: var(--color-text-main, #182235);
  --color-sp-desc: var(--color-text-muted, #778195);
  height: 100dvh;
  min-height: 0;
  padding: clamp(24px, 5vh, 56px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(15, 23, 42, .56);
}
.settings-page--panel .settings-shell {
  width: min(980px, 100%);
  height: min(700px, calc(100dvh - 80px));
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid var(--color-border, #e3e7ef);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
  background: var(--color-bg-white, #fff);
  letter-spacing: 0;
}
.settings-page--panel .settings-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 14px 18px;
  background: var(--color-bg-soft, #f7f8fb);
  border-right: 1px solid var(--color-border, #e5e7eb);
  border-bottom: 0;
}
.settings-page--panel .settings-profile-banner { display: flex; margin: 0 0 24px; padding: 0 8px; gap: 12px; }
.settings-page--panel .settings-profile-avatar { flex: 0 0 42px; background: #e4e9f7; color: #3456b0; font-size: 16px; }
.settings-page--panel .settings-profile-avatar img { display: block; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.settings-page--panel .settings-profile-meta h2 { font-size: 16px; }
.settings-page--panel .settings-profile-meta p { font-size: 12px; margin-top: 3px; }
.settings-page--panel .settings-nav { flex-direction: column; gap: 4px; overflow: visible; }
.settings-page--panel .settings-nav button { width: 100%; min-width: 0; height: auto; min-height: 42px; padding: 10px 11px; gap: 10px; font-size: 13px; font-weight: 700; color: var(--color-text-secondary, #536074); }
.settings-page--panel .settings-nav button.is-active { background: rgba(91, 105, 223, .12); color: #4f5fd2; }
.settings-page--panel .settings-sidebar__security { display: flex; font-size: 11px; padding: 18px 8px 0; }
.settings-page--panel .settings-main { display: grid; grid-template-rows: auto minmax(0, 1fr); height: auto; min-height: 0; padding: 0; overflow: hidden; scrollbar-gutter: auto; }
.settings-panel-header { min-height: 74px; padding: 14px 18px 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.settings-panel-header h1 { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: 0; overflow-wrap: anywhere; color: var(--color-sp-heading); }
.settings-panel-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.settings-page--panel .settings-close { position: static; width: 36px; height: 36px; border-radius: 50%; }
.settings-page--panel .settings-panel-actions .settings-save-btn { min-width: 76px; height: 40px; padding: 0 16px; margin: 0; border-radius: 6px; background: #3456b0; color: #fff; }
.settings-panel-scroll { min-width: 0; min-height: 0; overflow: auto; padding: 24px; scrollbar-width: thin; overscroll-behavior: contain; }
.settings-page--panel .settings-main .settings-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.settings-page--panel .settings-card:not([hidden]) ~ .settings-card:not([hidden]) { border-top: 1px solid var(--color-border, #e5e7eb); padding-top: 24px; }
@media (min-width:761px) {
  .settings-page--panel .settings-sections > .settings-mobile-appearance + .settings-card:not([hidden]) { border-top:0; padding-top:0; }
}
.settings-page--panel .settings-main .settings-card-header h2 { font-size: 16px; }
.settings-page--panel .settings-main .settings-card-header p { font-size: 13px; line-height: 1.6; }
.settings-page--panel .settings-plan-option { padding: 16px 12px; }
.settings-page--panel .settings-plan-option__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; }
.settings-page--panel .settings-plan-option__limit { align-items: flex-start; font-weight: 600; line-height: 1.6; }
.settings-page--panel .settings-plan-option__limit svg { margin-top: 3px; }
.settings-page--panel .settings-plan-option__period { font-size: 11px; }
.settings-page--panel .settings-plan-panel { margin-top: 24px; border: 0; border-top: 1px solid var(--color-border, #e5e7eb); border-radius: 0; }
.settings-page--panel .settings-plan-usage { padding: 20px 0 0; }
.settings-page--panel :is(button,a,input):focus-visible { outline: 2px solid #4b6ccc; outline-offset: 3px; }
[data-theme="dark"] .settings-page--panel .settings-nav button.is-active { color: #bbc7ff; }
@media (min-width: 761px) { .settings-page--panel .settings-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  html:has(.settings-page--panel) { scrollbar-gutter: auto; }
  .settings-page.settings-page--panel { padding: 0; }
  .settings-page--panel .settings-shell { height: 100dvh; border: 0; border-radius: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .settings-page--panel .settings-sidebar { padding: 12px 12px 10px; border-right: 0; border-bottom: 1px solid var(--color-border, #e5e7eb); }
  .settings-page--panel .settings-profile-banner, .settings-page--panel .settings-sidebar__security { display: none; }
  .settings-page--panel .settings-nav { flex-direction: row; overflow-x: auto; scrollbar-width: thin; }
  .settings-page--panel .settings-nav button { width: auto; flex: 0 0 auto; min-height: 44px; padding: 0 12px; white-space: nowrap; }
  .settings-panel-header { min-height: 72px; padding: 12px 14px 10px 18px; }
  .settings-panel-scroll { padding: 20px 16px 40px; }
  .settings-page--panel .settings-plan-grid { grid-template-columns: minmax(0, 1fr); }
}
.privacy-help { padding-block: 20px; border-block: 1px solid var(--border-color, #dce1e7); color: var(--text-primary, #263042); min-width: 0; }
.privacy-help h2 { font-size: 20px; margin: 0 0 16px; letter-spacing: 0; }
.privacy-help dl { margin: 0; display: grid; gap: 16px; }
.privacy-help dt { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.privacy-help dd, .privacy-help p { margin: 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.privacy-help > p { margin-top: 16px; }
.privacy-help a, .card-sharing-notice a { color: var(--text-primary, #263042); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.card-sharing-notice { margin-block: 12px; padding: 12px 0; border-block: 1px solid var(--border-color, #dce1e7); font-size: 13px; line-height: 1.65; color: var(--text-primary, #263042); overflow-wrap: anywhere; }
.card-sharing-notice strong { font-size: 14px; }
.card-sharing-notice p { margin: 6px 0 0; }
.card-sharing-notice > p { margin:0; }
.card-sharing-notice summary { cursor:pointer; margin-top:6px; font-size:12px; color:var(--color-text-muted,#687181); }
.card-sharing-notice.card-sharing-notice--compact { position:relative; margin:0; padding:0; border:0; font-size:12px; line-height:1.6; }
.card-sharing-notice--compact > p { min-height:28px; padding:4px 32px 0 0; }
.card-sharing-notice--compact strong { font-size:inherit; font-weight:600; }
.card-sharing-notice--compact summary { position:absolute; top:0; right:0; display:grid; place-items:center; width:28px; height:28px; margin:0; border-radius:4px; list-style:none; }
.card-sharing-notice--compact summary::-webkit-details-marker { display:none; }
.card-sharing-notice--compact summary:hover { background:var(--color-bg-secondary,var(--color-service-f2f5f9)); }
.card-sharing-notice--compact summary:focus-visible { outline:2px solid var(--color-service-4174b7); outline-offset:2px; }
.card-sharing-notice--compact details[open] { margin-top:6px; max-height:160px; overflow-y:auto; }
.card-sharing-notice--compact details p { font-size:12px; }
.profile-business-card .card-sharing-notice.card-sharing-notice--compact { margin:0; padding:0; }
.pricing-page { max-width:1120px; margin:0 auto; padding:64px 24px; background:#fff; color:#182235; letter-spacing:0; }
.pricing-heading { margin-bottom:36px; }
.pricing-heading > span { color:#4256ac; font-size:14px; font-weight:700; }
.pricing-heading h1 { margin:14px 0; font-size:36px; line-height:1.3; letter-spacing:0; overflow-wrap:anywhere; }
.pricing-heading p { color:#626c7d; line-height:1.7; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.pricing-card { display:flex; flex-direction:column; padding:26px 22px 20px; border:1px solid #dde1e9; border-radius:8px; }
.pricing-card.is-plus { border:2px solid #465bc0; padding:25px 21px 19px; }
.pricing-card-title { display:flex; justify-content:space-between; align-items:center; min-height:34px; }
.pricing-card h2 { margin:0; font-size:23px; }
.pricing-card-title span { color:#4054ad; font-size:12px; font-weight:700; }
.pricing-price { font-size:34px; font-weight:750; margin:24px 0 10px; }
.pricing-price small { font-size:14px; color:#697182; font-weight:400; margin-left:6px; }
.pricing-caption { color:#697182; font-size:12px; line-height:1.7; }
.pricing-card ul { flex:1; list-style:none; padding:18px 0; margin:0 0 24px; }
.pricing-card li { display:flex; align-items:flex-start; gap:8px; margin:12px 0; font-size:14px; line-height:1.5; }
.pricing-card li svg { color:#438569; flex-shrink:0; margin-top:2px; }
.pricing-button { display:flex; min-height:46px; padding:10px 16px; align-items:center; justify-content:center; gap:10px; border:1px solid #cdd3e0; border-radius:6px; background:#fff; color:#263754; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; }
.is-plus .pricing-button,.pricing-checkout > .pricing-button { background:#4055b4; border-color:#4055b4; color:#fff; }
.pricing-button:disabled { opacity:.5; cursor:not-allowed; }
.pricing-card > small { text-align:center; margin-top:10px; }
.pricing-comparison { margin-top:60px; }
.pricing-comparison h2,.pricing-policy-section h2 { font-size:22px; }
.pricing-table-scroll { overflow-x:auto; }
.pricing-comparison table { border-collapse:collapse; width:100%; min-width:500px; font-size:14px; }
.pricing-comparison th,.pricing-comparison td { padding:17px 12px; border-bottom:1px solid #e2e6ec; text-align:left; }
.pricing-comparison thead { background:#f6f7fa; }
.pricing-comparison caption { text-align:left; padding-bottom:12px; }
.pricing-policy { display:flex; flex-wrap:wrap; gap:20px; margin:28px 0; font-size:13px; }
.pricing-policy a,.pricing-page > a,.pricing-policy-section a { color:#4055a6; }
.pricing-narrow { max-width:680px; }
.pricing-checkout dl { margin:0; }
.pricing-checkout dl > div { display:flex; justify-content:space-between; gap:24px; padding:18px 0; border-bottom:1px solid #e2e6ec; }
.pricing-checkout dt { color:#697182; flex-shrink:0; }
.pricing-checkout dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.pricing-consent { display:flex; align-items:flex-start; gap:10px; margin:24px 0; line-height:1.5; }
.pricing-consent input { width:18px; height:18px; flex:0 0 auto; accent-color:#4055b4; margin-top:3px; }
.pricing-checkout > .pricing-button { width:100%; }
.pricing-error { color:#ac3949; }
.pricing-order-id,.pricing-support,.pricing-policy-section p { overflow-wrap:anywhere; }
.pricing-policy-section { border-bottom:1px solid #e2e6ec; padding:12px 0 20px; line-height:1.8; }
@media(max-width:760px) { .pricing-page { padding:36px 18px; } .pricing-heading h1 { font-size:28px; } .pricing-grid { grid-template-columns:1fr; } .pricing-checkout dl > div { flex-direction:column; gap:8px; } .pricing-checkout dd { text-align:left; } }
.venue-person-avatar { position:relative; display:grid; place-items:center; width:100%; height:100%; min-width:0; min-height:0; flex:none; overflow:hidden; border-radius:inherit; color:var(--color-service-ffffff); }
.venue-person-avatar > svg { width:58%; height:58%; }
.venue-person-avatar > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.venue-person-avatar > img[hidden] { display:none; }
.incoming-card-request {
  position:fixed;
  z-index:2500;
  top:calc(var(--header-height,76px) + 16px + env(safe-area-inset-top));
  right:24px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 86px 28px;
  align-items:center;
  gap:6px 8px;
  box-sizing:border-box;
  width:384px;
  max-width:calc(100vw - 32px);
  min-height:72px;
  padding:10px 10px 10px 12px;
  border:1px solid var(--color-service-dce3ed);
  border-left:3px solid var(--color-service-315da5);
  border-radius:8px;
  background:var(--color-bg-primary,var(--color-service-ffffff));
  color:var(--text-primary,var(--color-service-253044));
  box-shadow:0 6px 24px rgb(20 35 60 / 12%),0 1px 3px rgb(20 35 60 / 5%);
  font:inherit;
  letter-spacing:0;
  animation:incoming-request-arrive .18s cubic-bezier(.2,.7,.2,1) both;
}
.incoming-card-request * { box-sizing:border-box; }
.incoming-card-request__avatar { position:relative; width:40px; height:40px; border-radius:50%; }
.incoming-card-request__badge { position:absolute; right:-2px; bottom:-1px; display:grid; place-items:center; width:17px; height:17px; border:2px solid var(--color-service-ffffff); border-radius:5px; background:var(--color-service-315da5); color:var(--color-service-ffffff); }
.incoming-card-request__copy { display:grid; gap:2px; min-width:0; }
.incoming-card-request__copy strong { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:14px; font-weight:650; line-height:1.4; overflow-wrap:anywhere; }
.incoming-card-request__copy > span { font-size:12px; line-height:1.45; color:var(--color-text-muted,var(--color-service-68758a)); }
.incoming-card-request__copy > p { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; margin:0; font-size:13px; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.incoming-card-request__close { display:grid; place-items:center; width:28px; min-height:44px; padding:0; border:0; border-radius:4px; background:transparent; color:var(--color-text-muted,var(--color-service-68758a)); cursor:pointer; }
.incoming-card-request__close:hover { background:var(--color-bg-secondary,var(--color-service-f2f5f9)); }
.incoming-card-request__all { grid-column:2 / 4; display:flex; align-items:center; justify-self:start; gap:5px; min-height:28px; padding:2px 0; border:0; background:transparent; color:var(--color-text-muted,var(--color-service-68758a)); font:inherit; font-size:12px; cursor:pointer; }
.incoming-card-request__all:hover { color:var(--color-service-315da5); text-decoration:underline; text-underline-offset:3px; }
.incoming-card-request__open { display:flex; align-items:center; justify-content:center; gap:2px; width:100%; min-width:0; min-height:44px; padding:6px 0; border:0; border-radius:4px; background:transparent; color:var(--color-service-315da5); font:inherit; font-size:12px; font-weight:650; white-space:nowrap; cursor:pointer; }
.incoming-card-request__open > svg { flex:none; }
.incoming-card-request__open:hover:not(:disabled) { background:var(--color-service-edf3fc); }
.incoming-card-request__open:disabled { opacity:.7; cursor:wait; }
.incoming-card-request button:focus-visible { outline:2px solid var(--color-service-4174b7); outline-offset:2px; }
.incoming-card-request__error { grid-column:2 / -1; margin:0; color:var(--color-service-a23838); font-size:12px; line-height:1.5; }
.incoming-card-request__spinner { animation:incoming-request-spin 1s linear infinite; }
[data-theme="dark"] .incoming-card-request { background:var(--color-service-1e2530); color:var(--color-service-e7edf5); border-color:var(--color-service-414b5b); border-left-color:var(--color-service-9ab8f2); }
[data-theme="dark"] .incoming-card-request__badge { border-color:var(--color-service-1e2530); }
[data-theme="dark"] .incoming-card-request__open { color:var(--color-service-b1caff); }
[data-theme="dark"] .incoming-card-request__copy > span,
[data-theme="dark"] .incoming-card-request__all,
[data-theme="dark"] .incoming-card-request__close { color:var(--color-service-b4bfce); }
[data-theme="dark"] .incoming-card-request__close:hover,
[data-theme="dark"] .incoming-card-request__open:hover:not(:disabled) { background:var(--color-service-303a49); }
@keyframes incoming-request-arrive { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes incoming-request-spin { to { transform:rotate(360deg); } }
@media (max-width:600px) {
  .incoming-card-request { inset:calc(var(--header-height,64px) + 12px + env(safe-area-inset-top)) 12px auto; grid-template-columns:36px minmax(0,1fr) 78px 24px; width:auto; max-width:none; min-height:68px; padding:10px 8px 10px 10px; }
  .incoming-card-request__avatar { width:36px; height:36px; }
  .incoming-card-request__badge { width:16px; height:16px; }
  .incoming-card-request__close { width:24px; }
}
@media (prefers-reduced-motion:reduce) {
  .incoming-card-request,
  .incoming-card-request__spinner { animation:none; }
}
.profile-view-notice {
  position:fixed;
  z-index:2490;
  top:calc(var(--header-height,76px) + 12px + env(safe-area-inset-top));
  left:50%;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 32px;
  align-items:center;
  gap:10px;
  box-sizing:border-box;
  width:400px;
  max-width:calc(100vw - 24px);
  padding:10px 8px 10px 12px;
  border:1px solid var(--color-border,#dce3ed);
  border-radius:8px;
  background:var(--color-bg-primary,#fff);
  color:var(--text-primary,#253044);
  box-shadow:0 6px 24px rgb(20 35 60 / 12%);
  transform:translateX(-50%);
  letter-spacing:0;
  animation:profile-notice-arrive .18s ease-out;
}
.profile-view-notice__icon { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#eaf3ee; color:#3d7861; }
.profile-view-notice button { font:inherit; color:inherit; cursor:pointer; border:0; background:transparent; }
.profile-view-notice__open { min-width:0; min-height:44px; padding:0; text-align:left; }
.profile-view-notice__open > span { display:grid; gap:4px; }
.profile-view-notice__open strong { font-size:14px; line-height:1.5; font-weight:650; overflow-wrap:anywhere; }
.profile-view-notice__open span > span { display:flex; align-items:center; gap:5px; color:var(--color-text-muted,#68758a); font-size:12px; line-height:1.4; }
.profile-view-notice__open b { color:var(--text-primary,#253044); font-weight:650; }
.profile-view-notice__close { display:grid; place-items:center; width:32px; height:44px; padding:0; }
.profile-view-notice button:focus-visible { outline:2px solid #4174b7; outline-offset:3px; border-radius:4px; }
@keyframes profile-notice-arrive { from { opacity:0; transform:translate(-50%,-6px); } to { opacity:1; transform:translate(-50%,0); } }
@media (max-width:600px) {
  .profile-view-notice { top:calc(var(--header-height,56px) + 8px + env(safe-area-inset-top)); grid-template-columns:36px minmax(0,1fr) 28px; gap:8px; padding:8px; }
  .profile-view-notice__icon { width:36px; height:36px; }
  .profile-view-notice__close { width:28px; }
}
@media (prefers-reduced-motion:reduce) { .profile-view-notice { animation:none; } }
.product-analytics-choice { display: flex; align-items: center; gap: 20px; width: min(900px, calc(100% - 40px)); margin: 24px auto; padding: 20px 0; color: var(--color-text-main, #242424); border-top: 1px solid var(--color-border, #ddd); font-size: 13px; }
.product-analytics-choice p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; }
.product-analytics-choice a { color: inherit; text-decoration: underline; }
.product-analytics-choice__buttons { display: flex; flex: none; gap: 8px; }
.product-analytics-choice button { border: 1px solid #ccc; border-radius: 6px; padding: 8px 12px; background: transparent; color: inherit; cursor: pointer; white-space: nowrap; }
.product-analytics-choice button:last-child { background: #252525; color: white; }
.product-analytics-choice button[aria-pressed="true"] { outline: 2px solid #377c6c; outline-offset: 2px; }
@media (max-width: 600px) { .product-analytics-choice { flex-wrap: wrap; gap: 12px; }.product-analytics-choice__buttons { margin-left: auto; } }
.easytask-demo,
.easytask-demo-setup {
  --color-et-blue: rgb(45, 166, 244);
  --color-et-blue-strong: rgb(20, 143, 224);
  --color-et-blue-soft: rgb(234, 247, 255);
  --color-et-ink: rgb(21, 40, 58);
  --color-et-muted: rgb(126, 142, 158);
  --color-et-line: rgb(226, 232, 239);
  --color-et-surface: rgb(255, 255, 255);
  --color-et-canvas: rgb(247, 249, 252);
  --color-et-gather: rgb(108, 99, 255);
  --color-et-shadow: rgba(20, 42, 67, 0.12);
  --color-et-blue-shadow: rgba(45, 166, 244, 0.2);
  --color-et-surface-glass: rgba(255, 255, 255, 0.9);
}

.easytask-demo {
  --easytask-rail-width: 92px;
  --easytask-chat-list-width: clamp(330px, 19vw, 390px);
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  color: var(--color-et-ink);
  background: var(--color-et-canvas);
  font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
}

.easytask-demo__header {
  position: relative;
  z-index: 1200;
  height: 72px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 24px 0 22px;
  border-bottom: 1px solid var(--color-et-line);
  background: var(--color-et-surface);
}

.easytask-demo__brand-group,
.easytask-demo__header-actions,
.easytask-demo__location {
  display: flex;
  align-items: center;
}

.easytask-demo__brand-group {
  gap: 26px;
}

.easytask-demo__brand {
  color: var(--color-et-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 29px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1.8px;
}

.easytask-demo__icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--color-et-ink);
  background: transparent;
  cursor: pointer;
}

.easytask-demo__icon-button:hover {
  background: var(--color-et-canvas);
}

.easytask-demo__icon-button:focus-visible,
.easytask-demo__request-button:focus-visible,
.easytask-demo__rail-button:focus-visible,
.easytask-demo__leave-button:focus-visible,
.easytask-demo-setup button:focus-visible,
.easytask-demo-setup input:focus-visible {
  outline: 3px solid var(--color-et-blue-soft);
  outline-offset: 2px;
}

.easytask-demo__header-actions {
  justify-content: flex-end;
  gap: 16px;
}

.easytask-demo__notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--color-et-surface);
  border-radius: 50%;
  background: var(--color-et-blue);
}

.easytask-demo__request-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: var(--color-et-surface);
  background: var(--color-et-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 5px 14px var(--color-et-blue-shadow);
  transition: transform 160ms ease, background 160ms ease;
}

.easytask-demo__request-button:hover {
  background: var(--color-et-blue-strong);
  transform: translateY(-1px);
}

.easytask-demo__body {
  height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: var(--easytask-rail-width) minmax(0, 1fr);
  min-height: 0;
  transition: grid-template-columns 220ms ease;
}

.easytask-demo__rail {
  position: relative;
  z-index: 110;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 10px 16px;
  border-right: 1px solid var(--color-et-line);
  background: var(--color-et-surface);
  overflow-y: auto;
  scrollbar-width: none;
}

.easytask-demo__rail::-webkit-scrollbar {
  display: none;
}

.easytask-demo__rail-content,
.easytask-demo__rail-section,
.easytask-demo__rail-footer,
.easytask-demo__rail-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.easytask-demo__rail-content {
  gap: 24px;
}

.easytask-demo__rail-items {
  gap: 9px;
}

.easytask-demo__rail-section {
  gap: 10px;
}

.easytask-demo__rail-heading {
  width: 100%;
  padding-left: 6px;
  color: rgb(119, 137, 154);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
}

.easytask-demo__rail-footer {
  gap: 7px;
}

.easytask-demo__rail-button,
.easytask-demo__leave-button {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--color-et-muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.easytask-demo__rail-label {
  display: none;
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.easytask-demo__rail-badge {
  display: none;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--color-et-surface);
  background: var(--color-et-blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.easytask-demo__rail-button:hover,
.easytask-demo__leave-button:hover {
  color: var(--color-et-ink);
  background: var(--color-et-canvas);
}

.easytask-demo__rail-button.is-active {
  color: var(--color-et-blue-strong);
  background: transparent;
}

.easytask-demo__rail-button.is-profile {
  color: rgb(145, 158, 174);
  background: rgb(246, 248, 251);
}

.easytask-demo.is-rail-expanded {
  --easytask-rail-width: 360px;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail {
  align-items: stretch;
  justify-content: flex-start;
  padding: 22px 24px 16px;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-content,
.easytask-demo.is-rail-expanded .easytask-demo__rail-section,
.easytask-demo.is-rail-expanded .easytask-demo__rail-footer,
.easytask-demo.is-rail-expanded .easytask-demo__rail-items {
  align-items: stretch;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-content {
  gap: 28px;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-items {
  gap: 5px;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-heading {
  padding-left: 16px;
  font-size: 14px;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-footer {
  flex: 0 0 auto;
  margin-top: 28px;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-button,
.easytask-demo.is-rail-expanded .easytask-demo__leave-button {
  width: 100%;
  height: 52px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 16px;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-button.is-profile {
  height: 68px;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-label {
  display: block;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-badge {
  display: inline-flex;
}

.easytask-demo.is-rail-expanded .easytask-demo__rail-button.is-active {
  background: var(--color-et-blue-soft);
}

.easytask-demo__workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--color-et-canvas);
}

.easytask-demo__integration-badge {
  position: absolute;
  z-index: 500;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--color-et-line);
  border-radius: 999px;
  color: var(--color-et-muted);
  background: var(--color-et-surface-glass);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 5px 18px var(--color-et-shadow);
  pointer-events: none;
}

.easytask-demo__integration-badge svg {
  color: var(--color-et-gather);
}

/* 기존 팀공간 런타임은 그대로 두고, 이지태스크가 제공하는 화면 크기만 채운다. */
.easytask-demo__workspace .workspace-layout,
.easytask-demo__workspace .workspace-layout:has(.wh-naver-layout) {
  position: relative;
  height: 100%;
  min-height: 0;
}

.easytask-demo__workspace .workspace-mobile-header {
  display: none;
}

.easytask-demo__workspace .wh-sidebar {
  top: 68px;
  bottom: 18px;
  border-color: var(--color-et-line);
  box-shadow: 0 10px 35px var(--color-et-shadow);
}

.workspace-home--partner-easytask .wh-vote-banner,
.workspace-home--partner-easytask .wh-contest-entry,
.workspace-home--partner-easytask .wh-chips-scroll > * {
  display: none;
}

.workspace-home--partner-easytask .wh-chips-scroll > [data-partner-feature="board"],
.workspace-home--partner-easytask .wh-chips-scroll > [data-partner-feature="chat"],
.workspace-home--partner-easytask .wh-chips-scroll > [data-partner-feature="todo"],
.workspace-home--partner-easytask .wh-chips-scroll > [data-partner-feature="calendar"],
.workspace-home--partner-easytask .wh-chips-scroll > [data-partner-feature="meeting"] {
  display: inline-flex;
}

.workspace-home--partner-easytask .wh-chips-bar {
  min-height: 62px;
  background: var(--color-et-surface);
  border-color: var(--color-et-line);
}

.workspace-home--partner-easytask .wh-chips-scroll {
  gap: 10px;
  padding-block: 11px;
}

.workspace-home--partner-easytask .wh-chip {
  min-height: 38px;
  padding-inline: 14px;
  border-color: transparent;
  color: var(--color-et-muted);
  background: transparent;
  box-shadow: none;
}

.workspace-home--partner-easytask .wh-chip:hover {
  color: var(--color-et-blue-strong);
  border-color: var(--color-et-blue-soft);
  background: var(--color-et-blue-soft);
}

.workspace-home--partner-easytask .wh-chip--partner-chat-icon {
  width: 38px;
  min-width: 38px;
  padding: 0;
  justify-content: center;
}

.workspace-home--partner-easytask .wh-chips-scroll > .wh-chip--partner-chat-icon {
  display: none;
}

.workspace-home--partner-easytask .wh-chip--partner-chat-icon[aria-pressed="true"] {
  color: var(--color-et-blue-strong);
  border-color: var(--color-et-blue-soft);
  background: var(--color-et-blue-soft);
}

@media (min-width: 961px) {
  .easytask-demo .workspace-home--partner-easytask .wh-sidebar.is-partner-chat-hidden {
    display: none;
  }
}

@media (max-width: 960px) {
  .workspace-home--partner-easytask .wh-chips-scroll > .wh-chip--partner-chat-icon {
    display: inline-flex;
  }
}

.easytask-demo-setup {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--color-et-ink);
  background:
    linear-gradient(90deg, var(--color-et-line) 1px, transparent 1px),
    linear-gradient(var(--color-et-line) 1px, transparent 1px),
    var(--color-et-canvas);
  background-size: 36px 36px;
}

.easytask-demo-setup__card {
  width: min(520px, 100%);
  padding: 42px;
  border: 1px solid var(--color-et-line);
  border-radius: 24px;
  background: var(--color-et-surface);
  box-shadow: 0 24px 70px var(--color-et-shadow);
}

.easytask-demo-setup__brand {
  margin-bottom: 34px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1.8px;
}

.easytask-demo-setup__eyebrow {
  color: var(--color-et-blue-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.easytask-demo-setup h1 {
  margin: 9px 0 10px;
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -0.04em;
}

.easytask-demo-setup p {
  margin: 0 0 28px;
  color: var(--color-et-muted);
  line-height: 1.65;
}

.easytask-demo-setup label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 750;
}

.easytask-demo-setup__field {
  display: flex;
  gap: 9px;
}

.easytask-demo-setup input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--color-et-line);
  border-radius: 12px;
  color: var(--color-et-ink);
  background: var(--color-et-surface);
  font: inherit;
}

.easytask-demo-setup button {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: var(--color-et-surface);
  background: var(--color-et-blue);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.easytask-demo-setup button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.easytask-demo-setup small {
  display: block;
  margin-top: 14px;
  color: var(--color-et-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .easytask-demo {
    --easytask-rail-width: 64px;
  }

  .easytask-demo.is-rail-expanded {
    --easytask-rail-width: min(300px, calc(100vw - 64px));
  }
  .easytask-demo__header {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .easytask-demo__location {
    display: none;
  }

  .easytask-demo__brand-group {
    gap: 12px;
  }

  .easytask-demo__rail {
    padding-inline: 6px;
  }

  .easytask-demo__rail-heading,
  .easytask-demo__rail-section.is-payment {
    display: none;
  }

  .easytask-demo__rail-button,
  .easytask-demo__leave-button {
    height: 44px;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .easytask-demo__rail {
    padding-block: 10px;
  }

  .easytask-demo__rail-content {
    gap: 12px;
  }

  .easytask-demo__rail-section,
  .easytask-demo__rail-footer {
    gap: 5px;
  }

  .easytask-demo__rail-items {
    gap: 3px;
  }

  .easytask-demo__rail-button,
  .easytask-demo__leave-button {
    width: 44px;
    height: 44px;
  }

  .easytask-demo__rail-section .easytask-demo__rail-button {
    height: 38px;
  }
}

@media (max-width: 640px) {
  .easytask-demo {
    --easytask-rail-width: 52px;
    min-height: 0;
  }

  .easytask-demo.is-rail-expanded {
    --easytask-rail-width: min(280px, calc(100vw - 44px));
  }

  .easytask-demo__header {
    height: 60px;
  }

  .easytask-demo__brand {
    font-size: 23px;
  }

  .easytask-demo__request-button {
    width: auto;
    height: 34px;
    justify-content: center;
    padding: 0 10px;
    font-size: 11px;
  }

  .easytask-demo__body {
    height: calc(100dvh - 60px);
  }

  .easytask-demo__rail {
    padding-top: 10px;
  }

  .easytask-demo__rail-items {
    gap: 1px;
  }

  .easytask-demo__rail-button {
    height: 40px;
  }

  .easytask-demo__rail-button.is-mobile-secondary {
    display: none;
  }

  .easytask-demo__integration-badge {
    display: none;
  }

  .easytask-demo-setup__card {
    padding: 30px 22px;
  }

  .easytask-demo-setup__field {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .easytask-demo__request-button {
    transition: none;
  }
}
:root {
  --organizer-motion-fast: 160ms;
  --organizer-motion-base: 240ms;
  --organizer-motion-enter: 480ms;
  --organizer-motion-stagger: 70ms;
  --organizer-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --organizer-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --organizer-hover-lift: -2px;
}

@keyframes organizer-motion-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes organizer-motion-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .organizer-landing *,
  .organizer-apply *,
  .competition-admin-page *,
  .competition-code-page *,
  .contest-admin-v2 *,
  .organizer-dashboard * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* Keep native form and keyboard behavior while styling the browser's picker. */
@supports (appearance: base-select) {
  select:not([multiple]):not([size]),
  select:not([multiple]):not([size])::picker(select) {
    appearance: base-select;
  }

  select:not([multiple]):not([size]) {
    align-items: center;
    gap: 12px;
    background-image: none;
    cursor: pointer;
  }

  select:not([multiple]):not([size]):focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary, #10367d) 40%, transparent);
    outline-offset: 2px;
  }

  select:not([multiple]):not([size])::picker-icon {
    margin-inline-start: auto;
    color: var(--color-text-muted, #737780);
    font-size: 12px;
    transition: rotate .15s ease;
  }

  select:not([multiple]):not([size]):open::picker-icon { rotate: 180deg; }

  select:not([multiple]):not([size])::picker(select) {
    box-sizing: border-box;
    min-width: max(180px, anchor-size(width));
    max-width: calc(100vw - 24px);
    max-height: min(320px, 60dvh);
    margin-block: 6px;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border, #d5d9e0) transparent;
    border: 1px solid var(--color-border, #e4e5e9);
    border-radius: 8px;
    background: var(--color-bg-white, #fff);
    color: var(--color-text-main, #1b1c20);
    box-shadow: 0 8px 28px #1018281a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  select:not([multiple]):not([size]) option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 9px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  select:not([multiple]):not([size]) option:is(:hover, :focus) {
    outline: none;
    background: var(--color-bg-soft, #f3f4f6);
  }

  select:not([multiple]):not([size]) option:checked {
    background: color-mix(in srgb, var(--color-primary, #10367d) 8%, var(--color-bg-white, #fff));
    color: var(--nk-accent-text, var(--color-text-main, #1b1c20));
    font-weight: 650;
  }

  select:not([multiple]):not([size]) option::checkmark {
    order: 1;
    margin-inline-start: auto;
    font-size: 14px;
  }

  select:not([multiple]):not([size]) option:disabled { opacity: .45; cursor: default; }
  select:not([multiple]):not([size]):disabled { cursor: default; }

  @media (max-width: 600px) {
    select:not([multiple]):not([size]) option { min-height: 44px; }
  }

  @media (prefers-reduced-motion: reduce) {
    select:not([multiple]):not([size])::picker-icon { transition: none; }
  }
}
.app-screen-error { display: grid; place-items: center; min-height: 100dvh; padding: 24px; box-sizing: border-box; background: #fafafa; color: #242830; }
.app-screen-error section { width: 100%; max-width: 440px; }
.app-screen-error h1 { margin: 20px 0 12px; font-size: 22px; line-height: 1.4; }
.app-screen-error p { margin: 0 0 24px; color: #626975; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.app-screen-error section > div { display: flex; gap: 10px; flex-wrap: wrap; }
.app-screen-error button, .app-screen-error a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #d9dce2; border-radius: 6px; background: #fff; color: inherit; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.app-screen-error button { border-color: #292d35; background: #292d35; color: #fff; }
.app-screen-error button:focus-visible, .app-screen-error a:focus-visible { outline: 2px solid #5268ce; outline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  .app-screen-error { background: #1c1d20; color: #f2f3f5; }
  .app-screen-error p { color: #b5bac3; }
  .app-screen-error a { background: #282a2f; border-color: #4a4d55; }
}
