/* Final, scoped home presentation; loaded after the existing workspace styles. */
body[data-sharn-service=home] main{padding-top:24px!important}
body[data-sharn-service=home] .workspace-toolbar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}
body[data-sharn-service=home] .workspace-filters{display:flex;flex-wrap:nowrap;flex:1;min-width:0;gap:4px;overflow:auto;scrollbar-width:none;padding:3px 2px}
body[data-sharn-service=home] .workspace-filters::-webkit-scrollbar{display:none}
body[data-sharn-service=home] .workspace-filters button{white-space:nowrap;flex:none;min-height:38px;border-radius:9px;padding:7px 12px;font-size:13px}
body[data-sharn-service=home] .tool-sort-panel{margin:0 0 0 auto!important;display:flex!important;flex:none;align-items:center;gap:8px;padding:0!important;border:0!important;white-space:nowrap;background:transparent!important}
body[data-sharn-service=home] .tool-sort-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#78869b}
body[data-sharn-service=home] #tool-sort{height:38px;min-height:38px;border:1px solid #dce4f0;background:white;color:#3a4f6c;border-radius:9px;padding:5px 26px 5px 11px;max-width:128px;font:12px system-ui}
body[data-sharn-service=home] #edit-order{display:grid;place-items:center;padding:7px;min-height:38px;width:38px;border:1px solid #dce4f0;border-radius:9px;background:white;color:#6b80a1}
body[data-sharn-service=home] #edit-order[aria-pressed=true]{color:#2563eb;border-color:#a6bff2;background:#edf3ff}
body[data-sharn-service=home] #edit-order svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-sharn-service=home] #tool-sort-help{display:block;font-size:11px;color:#7b8ba2;margin:-4px 0 16px;line-height:1.7}
body[data-sharn-service=home] #grid .group-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;grid-auto-rows:auto!important}
body[data-sharn-service=home] #grid .card{grid-template-columns:36px minmax(0,1fr) 30px!important;grid-template-rows:auto minmax(40px,auto) auto!important;align-content:start!important;align-items:center!important;column-gap:10px!important;row-gap:9px!important;padding:19px!important;min-height:150px!important;border-radius:14px!important}
body[data-sharn-service=home] #grid .tool-icon{grid-row:1!important;width:36px!important;height:36px!important;border:0!important;border-radius:11px!important;color:#4479d8;background:#edf3ff}
body[data-sharn-service=home].compact #grid .card .tool-icon{display:grid!important;visibility:visible!important}
body[data-sharn-service=home] #grid [data-tool-id=transfer] .tool-icon{color:#4376d4;background:#edf3ff}
body[data-sharn-service=home] #grid [data-tool-id=seller] .tool-icon{color:#49867f;background:#edf7f5}
body[data-sharn-service=home] #grid [data-tool-id=mail] .tool-icon{color:#6b72b9;background:#f1f0fb}
body[data-sharn-service=home] #grid [data-tool-id=sales] .tool-icon{color:#40866c;background:#eef7f2}
body[data-sharn-service=home] #grid .tool-name{grid-column:2!important;grid-row:1!important;font-size:15px!important;line-height:1.5!important;letter-spacing:-.45px;word-break:keep-all;overflow-wrap:normal}
body[data-sharn-service=home] #grid .tool-name a{color:#253951!important}
body[data-sharn-service=home] #grid .tool-description{grid-column:1/-1!important;grid-row:2!important;font-size:12px!important;line-height:1.8!important;color:#75849a!important;word-break:keep-all!important;overflow-wrap:break-word!important;text-wrap:pretty;min-height:40px!important}
body[data-sharn-service=home] #grid .tool-controls{grid-column:3!important;grid-row:1!important;align-self:center;gap:0!important}
body[data-sharn-service=home] #grid .favorite{width:30px!important;min-width:30px!important;font-size:21px!important;color:#a2afc0!important}
body[data-sharn-service=home] #grid .favorite[aria-pressed=true]{color:#3d70d1!important}
body[data-sharn-service=home] #grid .tool-usage{grid-column:1/-1!important;grid-row:3!important;font-size:10px!important;color:#8b98aa!important;line-height:1.6!important;padding:0!important;margin:0!important}
body[data-sharn-service=home] #grid .tool-order-controls{grid-column:1/-1!important;grid-row:4!important;position:relative;z-index:1;display:flex;gap:5px;align-items:center;border-top:1px solid #edf1f7;margin:2px 0 0;padding-top:9px}
body[data-sharn-service=home] #grid .tool-order-controls>span{color:#a6b4c6;font-size:14px;margin-right:auto}
body[data-sharn-service=home] #grid .tool-order-controls button{min-height:32px;padding:4px 9px;font-size:10px;border-radius:7px}
body[data-sharn-service=home] #grid .open-mac{position:absolute;right:0;top:35px;font-size:10px;background:#fff;border:1px solid #dce4f0;border-radius:5px;padding:3px 6px;white-space:nowrap}
body[data-sharn-service=home] #grid .card:focus-within{border-color:#98b7ed!important;box-shadow:0 0 0 3px #e8effc!important}
body[data-sharn-service=home] #grid .card.dragging{opacity:.45}
body[data-sharn-service=home] :is(.overview-heading h2,.seller-metrics span,.mail-overview-card h3){word-break:keep-all;overflow-wrap:break-word}
body[data-sharn-service=home] .sessions-panel .mode-note{word-break:keep-all;overflow-wrap:break-word;line-height:1.9}
body[data-sharn-service=home] .shell>footer{max-width:1240px;margin:0 auto;font-size:11px;letter-spacing:.2px}
body>.sharn-chrome[data-navigation] .sharn-brand svg{width:26px!important;height:26px!important;margin-right:9px;flex:none}
body>.sharn-chrome[data-navigation] .sharn-brand{font-size:19px!important;letter-spacing:-.6px!important}
@media(max-width:1270px){body[data-sharn-service=home] #grid .group-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:1000px){body[data-sharn-service=home] #grid .group-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}body[data-sharn-service=home] .workspace-toolbar{gap:12px}body[data-sharn-service=home] .workspace-filters button{padding:7px 10px;font-size:12px}}
@media(max-width:700px){body[data-sharn-service=home] main{padding:16px 16px 32px!important;gap:14px!important}body[data-sharn-service=home] .workspace-toolbar{gap:10px;margin-bottom:14px}body[data-sharn-service=home] .workspace-filters{gap:2px;mask-image:linear-gradient(to right,#000 90%,transparent)}body[data-sharn-service=home] .workspace-filters button{font-size:12px;padding:7px 10px}body[data-sharn-service=home] .tool-sort-label{font-size:0;gap:0}body[data-sharn-service=home] #tool-sort{max-width:110px;font-size:11px;padding-left:8px}body[data-sharn-service=home] #edit-order{width:32px;padding:5px}body[data-sharn-service=home] .tool-sort-panel{gap:5px}body[data-sharn-service=home] #grid .group-cards{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}body[data-sharn-service=home] #grid .card{min-height:126px!important;padding:16px 18px!important;grid-template-rows:auto minmax(22px,auto) auto!important;row-gap:5px!important}body[data-sharn-service=home] #grid .tool-description{min-height:22px!important;font-size:12px!important}body[data-sharn-service=home] #grid .tool-name{font-size:15px!important}body>.sharn-chrome[data-navigation] .sharn-global-tabs>a:not([data-space-tool=home]):not([data-space-tool=transfer]){display:none!important}body>.sharn-chrome[data-navigation] .sharn-brand{font-size:17px!important}body>.sharn-chrome[data-navigation] .sharn-brand svg{width:24px!important;height:24px!important}}
@media(max-width:700px){body[data-sharn-service=home] #grid .group-cards{grid-template-columns:minmax(0,1fr)!important}}

/* Tool names and actions share one row; usage is shown only for usage sorting. */
body[data-sharn-service=home] #grid .group-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:1fr!important;gap:10px!important}
body[data-sharn-service=home] #grid .card{grid-template-columns:28px minmax(0,1fr) auto!important;grid-template-rows:auto!important;gap:0 9px!important;min-height:64px!important;height:100%!important;padding:10px 12px!important;align-content:center!important;border-radius:10px!important}
body[data-sharn-service=home] #grid .tool-icon{grid-column:1!important;grid-row:1!important;display:grid!important;place-items:center;width:28px!important;height:28px!important;margin:0!important;border:0!important;border-radius:8px!important}
body[data-sharn-service=home] #grid .tool-icon svg{width:16px!important;height:16px!important}
body[data-sharn-service=home] #grid .tool-name{grid-column:2!important;grid-row:1!important;font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere}
body[data-sharn-service=home] #grid .tool-name a:after{border-radius:10px!important}
body[data-sharn-service=home] #grid .tool-controls{grid-column:3!important;grid-row:1!important;flex-wrap:nowrap!important;margin:0!important}
body[data-sharn-service=home] #grid .favorite{display:grid!important;place-items:center;min-width:32px!important;width:32px!important;min-height:36px!important;height:36px!important;padding:0!important;font-size:19px!important}
body[data-sharn-service=home] #grid .tool-usage{grid-column:2/-1!important;grid-row:2!important;margin:3px 0 0!important;font-size:11px!important}
body[data-sharn-service=home] #grid .tool-order-controls{grid-column:1/-1!important;grid-row:3!important;margin-top:8px!important;position:relative;z-index:1}
@media(max-width:1200px){body[data-sharn-service=home] #grid .group-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:960px){body[data-sharn-service=home] #grid .group-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){body[data-sharn-service=home] #grid .group-cards{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}body[data-sharn-service=home] #grid .card{min-height:60px!important}}

body[data-sharn-service=home] .workspace-toolbar{justify-content:flex-end!important;margin-bottom:12px!important}
body[data-sharn-service=home] .tool-name-panel{display:flex;gap:10px;margin-left:auto}
body[data-sharn-service=home] #edit-tool-names{font:inherit;font-size:12px;min-height:34px;border:1px solid #e1e6ee;border-radius:7px;padding:6px 10px;background:#fff;color:#526078;cursor:pointer;white-space:nowrap}
body[data-sharn-service=home] #edit-tool-names[aria-pressed=true]{color:#245cce;border-color:#b8cff9;background:#f0f5ff}
body[data-sharn-service=home] #grid .tool-controls{position:relative;z-index:3!important;pointer-events:auto;align-items:center}
body[data-sharn-service=home] #grid .favorite{position:relative;z-index:4!important;cursor:pointer;touch-action:manipulation;color:#8993a4;background:transparent}
body[data-sharn-service=home] #grid .favorite[aria-pressed=true]{color:#d59c24!important}
body[data-sharn-service=home] #grid .tool-rename{display:grid;place-items:center;position:relative;z-index:4;width:28px;height:36px;min-width:28px;border:0;background:transparent;color:#6b7890;cursor:pointer}
body[data-sharn-service=home] #grid .tool-rename svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
body[data-sharn-service=home] .home-shortcut>span:nth-child(2){overflow-wrap:anywhere;min-width:0}
body[data-sharn-service=home] .session-logout{display:none!important}
body[data-sharn-service=home] footer{justify-content:space-between!important;align-items:center}
body[data-sharn-service=home] footer .home-logout{margin:0}
body[data-sharn-service=home] footer .home-logout button{font:inherit;font-size:10px!important;line-height:1.4;min-height:24px!important;padding:3px 5px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#8a929e!important;text-transform:none;cursor:pointer}
body[data-sharn-service=home] footer .home-logout button:hover{color:#4b5a70!important}
body[data-sharn-service=home] footer .home-logout button:focus-visible{outline:2px solid #3168e8;outline-offset:2px}
#tool-name-dialog{width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #e1e6ee;border-radius:14px;box-shadow:0 20px 70px #17203320;color:#26344e;background:#fff;font-family:inherit}
#tool-name-dialog::backdrop{background:#17203355}
#tool-name-dialog h2{font-size:17px;margin:0 0 18px}
#tool-name-dialog label{display:block;font-size:12px;color:#65728a;margin-bottom:8px}
#tool-name-dialog input{box-sizing:border-box;width:100%;min-height:42px;padding:10px 12px;border:1px solid #cdd6e4;border-radius:7px;font:inherit;font-size:14px}
#tool-name-dialog .name-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}
#tool-name-dialog button{min-height:36px;padding:7px 12px;border:1px solid #dce3ed;border-radius:7px;background:#fff;color:#526078;font:inherit;font-size:12px;cursor:pointer}
#tool-name-dialog button[type=submit]{background:#3168e8;border-color:#3168e8;color:#fff}
#tool-name-dialog #reset-tool-name{margin-right:auto}
#tool-name-dialog [role=status]{font-size:12px;color:#a13b3b;min-height:16px;margin:8px 0 0}
@media(max-width:560px){body[data-sharn-service=home] .workspace-toolbar{gap:8px!important}body[data-sharn-service=home] .tool-name-panel{flex-wrap:wrap;justify-content:flex-end}#tool-name-dialog{padding:20px}}

/* desktop-tool-list-icons-20261119 */
@media(min-width:761px){body[data-sharn-service=home] #grid .card{grid-template-columns:40px minmax(0,1fr) auto!important}body[data-sharn-service=home] #grid .tool-icon{width:40px!important;height:40px!important;border-radius:11px!important}body[data-sharn-service=home] #grid .tool-icon svg{width:24px!important;height:24px!important}}
