:root{
  --home-blue:#2f6feb;
  --home-blue-soft:#eef4ff;
  --home-green:#15946f;
  --home-green-soft:#eaf8f2;
  --home-amber:#bd7d00;
  --home-amber-soft:#fff6df;
  --home-border:#dde3eb;
  --home-ink:#172033;
  --home-muted:#69768a;
}

html,body{background:#f7f8fa}
body{color:var(--home-ink)}
.brand-mark,.panel-head,.varbox,.result,.user-profile-card,.progress-track span,.media-preview{background-image:none}
.brand{cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.top{
  min-height:82px;
  padding:12px max(24px,calc((100vw - 1580px)/2));
  background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--home-border);
  box-shadow:0 1px 0 rgba(16,24,40,.02);
}
.brand{min-width:310px;gap:13px}
.brand-mark{width:42px;height:42px;border-radius:7px;background:var(--home-blue);box-shadow:0 5px 14px rgba(47,111,235,.2)}
.brand-mark .lucide{width:23px;height:23px;stroke-width:2.15}
.brand h1{font-size:20px;font-weight:800;color:#182132}
.brand-sub{display:none}
.top-actions{gap:12px}
.global-search{position:relative;width:min(600px,42vw);margin:0 auto}
.global-search>.lucide{left:14px;width:18px;height:18px;color:#7a8798}
.global-search input{height:44px;padding:0 64px 0 42px;border-color:#d5dce6;border-radius:7px;background:#fff;color:#273244;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.global-search input:focus{border-color:#83a8ef;outline:3px solid rgba(47,111,235,.1)}
.global-search-shortcut{position:absolute;right:10px;top:50%;transform:translateY(-50%);min-width:38px;height:28px;border:1px solid #d9dfe7;border-radius:6px;background:#f8fafc;color:#667085;display:grid;place-items:center;font:600 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 1px 1px rgba(16,24,40,.03)}
.account-entry{gap:9px}
.notification-trigger{width:42px;height:42px;flex-basis:42px;border:0;background:transparent;box-shadow:none}
.notification-trigger:hover,.notification-trigger.has-unread{border-color:transparent;background:#f2f4f7;color:var(--home-blue)}
.identity-chip{height:42px;border:0;background:transparent;color:#344054;padding:0 4px;display:flex;align-items:center;gap:8px;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.identity-chip>.lucide{width:15px;height:15px;color:#667085}
.identity-avatar{width:36px;height:36px;border-radius:50%;background:#eef1f5;color:#536174;display:grid;place-items:center}
.identity-avatar .lucide{width:18px;height:18px}
.user-chip{min-height:42px;border:0;background:transparent;padding:0 4px;color:#172033;font:inherit;font-size:13px;font-weight:750;cursor:pointer;box-shadow:none}
.user-chip-label-short{display:none}
.user-chip:hover{border-color:transparent;background:transparent;color:var(--home-blue)}
#logoutBtn{display:none!important}

body[data-active-module="home"] .module-strip{display:none}
.platform-home{
  width:100%;
  max-width:1580px;
  min-height:calc(100vh - 82px);
  margin:0 auto;
  padding:0 24px 40px 16px;
  display:grid;
  grid-template-columns:220px minmax(0,1fr) 300px;
  gap:24px;
  align-items:start;
}
.home-rail{
  position:sticky;
  top:82px;
  min-height:calc(100vh - 82px);
  padding:24px 16px 28px 0;
  border-right:1px solid var(--home-border);
  display:grid;
  grid-auto-rows:max-content;
  align-content:start;
  gap:6px;
}
.home-rail-title{padding:16px 14px 4px;color:#7a8798;font-size:11px;font-weight:750}
.home-rail button{position:relative;width:100%;min-height:46px;border:0;border-radius:6px;background:transparent;color:#425067;padding:0 14px;display:flex;align-items:center;gap:11px;text-align:left;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.home-rail button>.lucide{width:19px;height:19px;color:#738197;stroke-width:1.8}
.home-rail button:hover{background:#f0f3f8;color:#214d9d}
.home-rail button.active{background:var(--home-blue-soft);color:#225dc9}
.home-rail button.active>.lucide{color:#2f6feb}
.home-rail-primary{margin-bottom:4px}
#homeRailModules{display:grid;grid-auto-rows:max-content;gap:6px}
.home-rail-separator{height:1px;margin:14px 4px 8px;background:var(--home-border)}

.home-main{min-width:0;padding-top:18px;display:grid;gap:32px}
.home-heading{min-height:62px;padding:0;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border:0}
.home-heading h2{margin:0;color:#182132;font-size:25px;line-height:1.3;font-weight:800}
.home-heading p{margin:5px 0 0;color:var(--home-muted);font-size:13px}
.home-workspace-button{min-width:132px;min-height:44px;margin-top:6px;border-color:#d5dce6;color:#27364d}
.home-section{min-width:0}
.home-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.home-section-title{font-size:18px;font-weight:800;color:#20293a}
.home-section-sub{margin-top:3px;color:var(--home-muted);font-size:12px}

.home-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.home-tool{position:relative;min-width:0;min-height:288px;border:1px solid var(--home-border);border-left:4px solid var(--home-blue);border-radius:8px;background:#fff;padding:26px 20px 20px;display:grid;grid-template-rows:auto 1fr auto auto;gap:16px;box-shadow:0 3px 12px rgba(16,24,40,.035);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.home-tool.tone-green{border-left-color:var(--home-green)}
.home-tool.tone-amber{border-left-color:var(--home-amber)}
.home-tool:hover{transform:translateY(-2px);border-color:#b9c9e2;box-shadow:0 10px 26px rgba(16,24,40,.07)}
.home-tool.tone-green:hover{border-left-color:var(--home-green)}
.home-tool.tone-amber:hover{border-left-color:var(--home-amber)}
.home-tool-icon{width:54px;height:54px;color:var(--home-blue);display:grid;place-items:center}
.home-tool-icon .lucide{width:44px;height:44px;stroke-width:1.75}
.home-tool.tone-green .home-tool-icon{color:var(--home-green)}
.home-tool.tone-amber .home-tool-icon{color:var(--home-amber)}
.home-tool-copy{min-width:0}
.home-tool-copy h3{margin:0;color:#182132;font-size:22px;line-height:1.25;font-weight:800}
.home-tool-copy p{margin:7px 0 0;color:#55637a;font-size:13px;line-height:1.55}
.home-tool-copy small{display:none}
.home-tool-state{display:flex;align-items:center;gap:7px;color:var(--home-green);font-size:12px;font-weight:750}
.home-tool-state .lucide{width:15px;height:15px}
.home-tool.locked .home-tool-state{color:var(--home-amber)}
.home-tool-action{width:100%;min-height:42px}
.home-tool.tone-green .home-tool-action,.home-tool.tone-amber .home-tool-action{border-color:currentColor;background:#fff}
.home-tool.tone-green .home-tool-action{color:var(--home-green)}
.home-tool.tone-amber .home-tool-action{color:var(--home-amber)}
.home-tools-empty{grid-column:1/-1;padding:40px;text-align:center;color:var(--home-muted)}

.home-recent{min-height:220px}
.home-recent-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.home-recent-titlebar{min-width:0;display:flex;align-items:center;gap:24px}
.home-recent-tabs{display:flex;align-items:center;gap:4px}
.home-recent-tabs button{min-height:36px;border:0;border-radius:6px;background:transparent;color:#647186;padding:0 14px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.home-recent-tabs button:hover{background:#f0f3f7}
.home-recent-tabs button.active{background:var(--home-blue-soft);color:#245ecb;box-shadow:inset 0 0 0 1px #cfddfa}
.home-recent-actions{display:flex;align-items:center;gap:8px}
.home-recent-search{position:relative;width:78px;margin:0}
.home-recent-search .lucide{position:absolute;left:11px;top:50%;width:16px;height:16px;color:#7a8798;transform:translateY(-50%);pointer-events:none}
.home-recent-search input{min-height:38px;height:38px;padding:0 10px 0 35px;border-radius:6px;background:#fff;font-size:12px}
.home-recent-actions select{width:126px;min-height:38px;height:38px;padding:0 30px 0 10px;border-radius:6px;font-size:12px}
.home-recent-table-wrap{overflow:hidden;border:1px solid var(--home-border);border-radius:8px;background:#fff;box-shadow:0 3px 12px rgba(16,24,40,.025)}
.home-recent-table{width:100%;border-collapse:collapse;table-layout:fixed}
.home-recent-table th{height:42px;border-bottom:1px solid var(--home-border);background:#fbfcfd;color:#657287;padding:0 14px;text-align:left;font-size:11px;font-weight:750}
.home-recent-table th:nth-child(1){width:41%}.home-recent-table th:nth-child(2){width:11%}.home-recent-table th:nth-child(3){width:27%}.home-recent-table th:nth-child(4){width:15%}.home-recent-table th:nth-child(5){width:6%}
.home-recent-table td{height:60px;border-bottom:1px solid #e8ecf1;padding:8px 14px;color:#344054;font-size:12px;vertical-align:middle}
.home-recent-table tbody tr:last-child td{border-bottom:0}
.home-recent-table tbody tr:hover{background:#fafcff}
.home-record-name{min-width:0;display:flex;align-items:center;gap:11px}
.home-record-name>span:last-child{min-width:0}
.home-record-name strong,.home-record-name small,.home-record-project,.home-recent-table td>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-record-name strong{color:#243044;font-size:12px;font-weight:750}
.home-record-name small,.home-recent-table td>small{margin-top:2px;color:#8a95a6;font-size:10px;font-weight:500}
.home-record-icon{width:30px;height:30px;border-radius:6px;background:var(--home-blue-soft);color:var(--home-blue);display:grid;place-items:center;flex:0 0 auto}
.home-record-icon .lucide{width:16px;height:16px}
.home-record-icon.tone-green{background:var(--home-green-soft);color:var(--home-green)}
.home-record-icon.tone-amber{background:var(--home-amber-soft);color:var(--home-amber)}
.home-record-type{min-height:24px;border-radius:5px;background:var(--home-blue-soft);color:var(--home-blue);padding:3px 8px;display:inline-flex;align-items:center;font-size:10px;font-weight:750}
.home-record-type.tone-green{background:var(--home-green-soft);color:var(--home-green)}
.home-record-type.tone-amber{background:var(--home-amber-soft);color:var(--home-amber)}
.home-record-project{font-size:11px;font-weight:700}
.home-record-time{color:#657287;white-space:nowrap}
.home-record-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}
.home-record-actions button{width:30px;height:30px;border:0;border-radius:5px;background:transparent;color:#667085;display:grid;place-items:center;cursor:pointer}
.home-record-actions button:hover{background:#eef3fa;color:var(--home-blue)}
.home-record-actions .lucide{width:15px;height:15px}
.home-recent-all{width:100%;height:48px;border:0;border-top:1px solid var(--home-border);background:#fff;color:var(--home-blue);display:flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.home-recent-all:hover{background:#f8faff}.home-recent-all .lucide{width:15px;height:15px}
.home-recent-empty{min-height:168px;border:1px solid var(--home-border);border-radius:8px;background:#fff;padding:24px;display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:14px;align-items:center}
.home-recent-empty-icon{width:46px;height:46px;border-radius:8px;background:#f0f3f7;color:#69768a;display:grid;place-items:center}.home-recent-empty-icon .lucide{width:22px;height:22px}
.home-recent-empty strong,.home-recent-empty span{display:block}.home-recent-empty strong{font-size:14px}.home-recent-empty div>span{margin-top:4px;color:var(--home-muted);font-size:12px}

.home-aside{position:sticky;top:96px;width:300px;margin-left:12px;padding-top:24px;display:grid;gap:20px}
.home-status{min-width:0;overflow:hidden;border:1px solid var(--home-border);border-radius:8px;background:#fff;box-shadow:0 3px 12px rgba(16,24,40,.025)}
.home-status h3{min-height:48px;margin:0;padding:0 16px;border-bottom:1px solid #e8ecf1;color:#344054;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:800}
.home-status h3 .lucide{width:17px;height:17px;color:#667085}
.home-today-list{display:grid}
.home-today-list button{min-height:70px;border:0;border-bottom:1px solid #edf0f4;background:#fff;color:#344054;padding:11px 14px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;font:inherit;cursor:pointer}
.home-today-list button:last-child{border-bottom:0}
.home-today-list button:hover{background:#fafcff}
.home-today-list button>span:nth-child(2){min-width:0}
.home-today-list strong,.home-today-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-today-list strong{font-size:12px;font-weight:750}.home-today-list small{margin-top:3px;color:#8a95a6;font-size:10px}.home-today-list time{color:#657287;font-size:10px;white-space:nowrap}
.home-today-list.guest button>.lucide{width:15px;height:15px;color:#8a95a6}
.home-today-icon{width:32px;height:32px;border-radius:6px;background:var(--home-blue-soft);color:var(--home-blue);display:grid;place-items:center}.home-today-icon .lucide{width:16px;height:16px}.home-today-icon.tone-green{background:var(--home-green-soft);color:var(--home-green)}.home-today-icon.tone-amber{background:var(--home-amber-soft);color:var(--home-amber)}
.home-aside-link{width:100%;min-height:52px;border:0;border-top:1px solid var(--home-border);background:#fff;color:var(--home-blue);padding:0 16px;display:flex;align-items:center;justify-content:space-between;font:inherit;font-size:12px;font-weight:750;cursor:pointer}.home-aside-link:hover{background:#f8faff}.home-aside-link .lucide{width:16px;height:16px}
.home-sync-state{padding:20px 16px 0;display:flex;align-items:center;gap:8px;color:#8a95a6}.home-sync-state.ready{color:var(--home-green)}.home-sync-state .lucide{width:17px;height:17px}.home-sync-state strong{font-size:13px}
.home-status>p{margin:7px 16px 15px;color:var(--home-muted);font-size:11px;line-height:1.6}
.home-sync-action,.home-account-action{width:calc(100% - 32px);min-height:40px;margin:0 16px 16px}
.home-member-name{padding:20px 16px 0;color:#253047;font-size:15px;font-weight:800}

.formula-mobile-tabs{display:none}
.global-mobile-nav{display:none}

@media(max-width:1200px){
  .brand{min-width:250px}
  .global-search{width:min(470px,40vw)}
  .platform-home{grid-template-columns:190px minmax(0,1fr);gap:22px}
  .home-aside{position:static;grid-column:2;width:auto;margin-left:0;grid-template-columns:repeat(3,minmax(0,1fr));padding-top:0}
}

@media(max-width:1000px){
  .brand{min-width:220px}.brand h1{font-size:18px}
  .identity-chip{display:none}
  .home-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-tool-grid>.home-tool:last-child:nth-child(odd){grid-column:1/-1;min-height:220px}
  .home-aside{grid-template-columns:1fr 1fr}
  .home-today-panel{grid-column:1/-1}
}

@media(max-width:768px){
  html,body{width:100%;max-width:100%;overflow-x:clip}
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  body[data-active-module="photo_watermark"]{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  body[data-active-module="knowledge_base"],body[data-active-module="media_library"]{padding-bottom:18px}
  .top{position:sticky;min-height:64px;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;overflow:visible}
  .brand{min-width:0;max-width:100%;gap:9px}.brand-mark{width:36px;height:36px}.brand-mark .lucide{width:20px;height:20px}.brand h1{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-actions{display:contents}
  .account-entry{grid-column:2;grid-row:1;max-width:152px}
  .notification-trigger{width:44px;height:44px;flex-basis:44px}
  .identity-chip{display:none}
  .user-chip{max-width:106px;min-height:44px;padding:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
  .global-search{grid-column:1/-1;grid-row:2;width:100%;max-width:100%;margin:0}.global-search input{height:44px}.global-search-shortcut{display:none}
  body:not([data-active-module="home"]) .global-search{display:none}
  body:not([data-active-module="home"]) .top{min-height:58px;padding-top:max(9px,env(safe-area-inset-top));padding-bottom:9px}
  .platform-home{display:block;width:100%;max-width:100vw;min-height:auto;padding:20px 12px 30px;overflow:hidden}
  .home-rail{display:none}
  .home-main{width:100%;max-width:100%;gap:26px;padding:0}
  .home-heading{min-height:58px;align-items:flex-start}.home-heading h2{font-size:21px}.home-heading p{font-size:12px}.home-workspace-button{min-width:44px;width:44px;height:44px;padding:0;font-size:0}.home-workspace-button .lucide{width:18px;height:18px;margin:0}
  .home-tool-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .home-tool{min-height:218px;padding:18px 13px 13px;gap:11px;border-left-width:3px}
  .home-tool-icon{width:40px;height:40px}.home-tool-icon .lucide{width:33px;height:33px}
  .home-tool-copy h3{font-size:17px}.home-tool-copy p{margin-top:5px;font-size:11px;line-height:1.5}.home-tool-copy small{display:none}
  .home-tool-state{font-size:10px;white-space:nowrap}.home-tool-action{min-height:44px;padding:7px 6px;font-size:12px;white-space:normal}
  .home-tool-grid>.home-tool:last-child:nth-child(odd){grid-column:1/-1;min-height:168px;grid-template-columns:76px minmax(0,1fr);grid-template-rows:auto auto;gap:10px 14px;align-items:center;padding:17px}
  .home-tool-grid>.home-tool:last-child:nth-child(odd) .home-tool-icon{grid-column:1;grid-row:1}
  .home-tool-grid>.home-tool:last-child:nth-child(odd) .home-tool-copy{grid-column:2;grid-row:1}
  .home-tool-grid>.home-tool:last-child:nth-child(odd) .home-tool-state{grid-column:1;grid-row:2;align-self:center}
  .home-tool-grid>.home-tool:last-child:nth-child(odd) .home-tool-action{grid-column:2;grid-row:2}
  .home-recent-controls{align-items:stretch;display:grid;gap:10px}
  .home-recent-titlebar{display:grid;gap:10px}
  .home-recent-tabs{width:100%;overflow-x:auto;scrollbar-width:none}.home-recent-tabs::-webkit-scrollbar{display:none}.home-recent-tabs button{flex:1;min-width:64px;min-height:44px}
  .home-recent-actions{display:grid;grid-template-columns:minmax(0,1fr) 118px}.home-recent-search{width:100%}.home-recent-search input,.home-recent-actions select{width:100%;height:44px;min-height:44px}
  .home-recent-table-wrap{border:0;background:transparent;box-shadow:none;overflow:visible}
  .home-recent-table,.home-recent-table tbody{display:block;width:100%}.home-recent-table thead{display:none}.home-recent-table tbody{display:grid;gap:10px}
  .home-recent-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;border:1px solid var(--home-border);border-radius:8px;background:#fff;padding:13px;box-shadow:0 2px 8px rgba(16,24,40,.035)}
  .home-recent-table td{height:auto;border:0;padding:0;display:block}
  .home-recent-table td:nth-child(1){grid-column:1/-1;padding-bottom:10px;border-bottom:1px solid #edf0f4}.home-recent-table td:nth-child(2){grid-column:1;margin-top:10px}.home-recent-table td:nth-child(3){grid-column:1/-1;margin-top:9px}.home-recent-table td:nth-child(4){grid-column:1;margin-top:8px}.home-recent-table td:nth-child(5){grid-column:2;grid-row:2/5;align-self:end}
  .home-record-name strong{font-size:13px}.home-record-project{font-size:12px}.home-record-actions button{width:40px;height:40px}.home-record-actions button:last-child{display:none}
  .home-recent-all{height:46px;margin-top:10px;border:1px solid var(--home-border);border-radius:7px}
  .home-recent-empty{min-height:190px;grid-template-columns:44px minmax(0,1fr);padding:18px}.home-recent-empty .btn{grid-column:1/-1;width:100%;min-height:44px}
  .home-aside{position:static;display:grid;grid-template-columns:1fr;gap:12px;margin-top:26px;padding:0}
  .home-today-panel{grid-column:auto}
  .home-status h3{min-height:50px}
  .home-sync-action,.home-account-action{min-height:44px}
  .formula-mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px 12px 0}
  .formula-mobile-tabs button{min-height:44px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#43536a;font-weight:850}
  .formula-mobile-tabs button.active{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 3px 9px rgba(37,99,235,.16)}
  .mobile-nav{display:none!important}
  .global-mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:45;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 22px rgba(23,43,77,.08)}
  .global-mobile-nav button{height:48px;border:0;border-radius:6px;background:transparent;color:#5a6b82;font-size:12px;font-weight:850;display:grid;grid-template-rows:20px 16px;place-items:center;align-content:center;gap:2px;line-height:1}
  .global-mobile-nav button>.lucide{width:19px;height:19px}.global-mobile-nav button>span{display:block}
  .global-mobile-nav button.active{background:#e9f1fc;color:var(--brand)}
  body[data-active-module="photo_watermark"] .global-mobile-nav,
  body[data-active-module="knowledge_base"] .global-mobile-nav,
  body[data-active-module="media_library"] .global-mobile-nav{display:none}
}

@media(max-width:360px){
  .user-chip-label-full{display:none}
  .user-chip-label-short{display:inline}
  .account-entry{max-width:102px}
  .user-chip{max-width:44px}
  .platform-home{padding-left:10px;padding-right:10px}
  .home-tool-grid{gap:8px}
  .home-tool{padding-left:11px;padding-right:11px}
  .home-tool-copy h3{font-size:16px}
  .home-recent-actions{grid-template-columns:1fr}
}
