/* Signed-in workspace: a glass sidebar beside the library and every tool, an
   instant tool launcher and a phone tab bar. Guests never see any of it.
   The header script adds html.la-shell from the remembered account before the
   first paint, so the sidebar's space is reserved without a layout jump. */
.la-shell-side,.la-shell-tabs{display:none}
@media (min-width:1100px){
  html.la-shell body{box-sizing:border-box;padding-left:304px}
  html.la-shell .la-site-header{margin-left:-304px}
  html.la-shell .la-shell-side{display:flex}
}
@media (max-width:1099px){
  html.la-shell body{padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))}
  html.la-shell .la-shell-tabs{display:grid}
}

.la-shell-glass{background:linear-gradient(155deg,rgba(255,255,255,.62),rgba(255,255,255,.34) 55%,rgba(255,255,255,.56));border:1px solid rgba(255,255,255,.82);box-shadow:0 18px 40px -14px rgba(39,38,66,.22),0 5px 12px -5px rgba(0,0,0,.1),inset 0 1px 1px rgba(255,255,255,.95),inset 0 -1px 1px rgba(255,255,255,.6);backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3)}
.la-shell-sheet{background:rgba(255,255,255,.9);border:1px solid rgba(229,227,216,.9);box-shadow:0 30px 70px -40px rgba(39,38,66,.28);backdrop-filter:blur(30px) saturate(1.15);-webkit-backdrop-filter:blur(30px) saturate(1.15)}

/* Sidebar */
.la-shell-side{position:fixed;z-index:30;left:16px;top:var(--la-shell-top,80px);bottom:16px;width:272px;box-sizing:border-box;flex-direction:column;gap:18px;padding:14px;border-radius:24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;color:#000000}
.la-shell-side::-webkit-scrollbar{display:none}
/* The header's tools menu always opens above the sidebar, whatever layer the page puts the header in. */
html.la-shell:has(.la-ref-tools[open]) .la-shell-side{z-index:0}
.la-shell-side svg{flex:0 0 auto}
.la-shell-find{box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:46px;margin:0;padding:0 10px 0 14px;border-radius:14px;background:rgba(255,255,255,.78);border:1px solid rgba(229,227,216,.9);color:#000000;font-size:15px;font-weight:400;line-height:1.2;text-align:left;cursor:pointer}
.la-shell-find span{flex:1}
.la-shell-kbd{font-size:11.5px;line-height:1.2;padding:3px 7px;border-radius:7px;background:#f5f4ef;border:1px solid #e5e3d8;color:#000000;white-space:nowrap}
.la-shell-all{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin:0;padding:0 14px;border:0;border-radius:14px;background:#000000;color:#ffffff;font-size:15px;font-weight:600;line-height:1.2;text-align:left;cursor:pointer}
.la-shell-all span{flex:1}
.la-shell-all output{font-size:12px;color:#ffffff}
.la-shell-nav{display:flex;flex-direction:column;gap:2px}
.la-shell-label{margin:0 0 6px 14px;font-size:12px;font-weight:600;letter-spacing:.08em;line-height:1.4;text-transform:uppercase;color:#000000}
.la-shell-item{box-sizing:border-box;display:flex;align-items:center;gap:12px;min-height:44px;padding:0 13px 0 15px;border:1px solid transparent;border-radius:12px;color:#000000;font-size:15px;font-weight:500;line-height:1.25;text-decoration:none}
.la-shell-item:hover{background:rgba(255,255,255,.55)}
.la-shell-item[aria-current]{padding:0 12px 0 14px;border-color:#e5e3d8;background:rgba(255,255,255,.92);font-weight:600}
.la-shell-item>span:not(.la-shell-tile){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.la-shell-count{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#000000}
.la-shell-live{width:7px;height:7px;border-radius:99px;background:#ff4b1f}
.la-shell-live[hidden]{display:none}
.la-shell-recent{padding:0 12px}
.la-shell-recent[aria-current]{padding:0 11px}
.la-shell-tile{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:#fff1ec;color:#ff4b1f}
/* The plan card is highlighted so the upgrade is easy to find. */
.la-shell-plan{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:16px;background:linear-gradient(150deg,#fff1ea 0%,#f4f0ff 100%);border:1px solid #f1ddd3}
.la-shell-plan-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.la-shell-plan-row strong{font-size:14px;font-weight:600}
.la-shell-plan-row output{font-size:12px;color:#000000;white-space:nowrap}
.la-shell-meter{height:6px;border-radius:99px;background:rgba(255,255,255,.85);overflow:hidden}
.la-shell-meter span{display:block;height:6px;width:0;border-radius:99px;background:#000000}
.la-shell-upgrade{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:12px;background:#ff4b1f;color:#ffffff;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;box-shadow:0 6px 16px -8px rgba(255,75,31,.6)}
.la-shell-upgrade:hover{color:#ffffff}
.la-shell-plan p{margin:0;font-size:12.5px;line-height:1.4;color:#000000}
/* The plan and account stay at the bottom; only the recent tools scroll. */
.la-shell-side>*{flex:0 0 auto}
.la-shell-recent-box{flex:0 1 auto;min-height:0;display:flex;flex-direction:column}
.la-shell-recent-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.la-shell-recent-box:empty{display:none}
.la-shell-bottom{display:flex;flex-direction:column;gap:18px;margin-top:auto}
.la-shell-account{display:flex;align-items:center;gap:10px;padding:0 4px}
.la-shell-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:99px;background:#000000;color:#ffffff;font-size:13px;font-weight:600}
.la-shell-account>a:first-of-type{flex:1;min-width:0;overflow:hidden;color:#000000;font-size:14px;font-weight:600;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}
.la-shell-settings{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:99px;color:#000000}
.la-shell-settings:hover{background:rgba(255,255,255,.6)}

/* Phone tab bar */
.la-shell-tabs{position:fixed;z-index:30;left:14px;right:14px;bottom:calc(18px + env(safe-area-inset-bottom,0px));height:72px;box-sizing:border-box;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;padding:0 6px;border-radius:26px;background:linear-gradient(160deg,rgba(255,255,255,.72),rgba(255,255,255,.5) 60%,rgba(255,255,255,.68));border:1px solid rgba(255,255,255,.9);box-shadow:0 20px 40px -16px rgba(0,0,0,.35),0 4px 10px -4px rgba(0,0,0,.12),inset 0 1px 1px #ffffff,inset 0 -1px 1px rgba(255,255,255,.7);backdrop-filter:blur(22px) saturate(1.4);-webkit-backdrop-filter:blur(22px) saturate(1.4)}
.la-shell-tab{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:60px;margin:0;padding:0;border:0;border-radius:20px;background:transparent;color:#000000;font-size:11.5px;font-weight:500;line-height:1.1;text-decoration:none;cursor:pointer}
.la-shell-tab[aria-current]{margin:0 4px;background:#000000;color:#ffffff;font-weight:600}
.la-shell-badge{position:absolute;top:6px;left:calc(50% + 6px);box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#ff4b1f;color:#ffffff;font-size:11px;font-weight:600}
.la-shell-badge[hidden]{display:none}

/* Instant tool launcher */
.la-launcher{box-sizing:border-box;width:calc(100% - 48px);max-width:760px;max-height:calc(100% - 120px);margin:96px auto auto;padding:0;border-radius:28px;overflow:hidden;color:#000000;background:linear-gradient(160deg,rgba(255,255,255,.9),rgba(255,255,255,.8) 60%,rgba(255,255,255,.88));border:1px solid rgba(255,255,255,.9);box-shadow:0 40px 90px -30px rgba(0,0,0,.45),0 10px 24px -12px rgba(0,0,0,.2),inset 0 1px 1px #ffffff,inset 0 -1px 1px rgba(255,255,255,.7);backdrop-filter:blur(28px) saturate(1.4);-webkit-backdrop-filter:blur(28px) saturate(1.4)}
.la-launcher[open]{display:flex;flex-direction:column}
.la-launcher::backdrop{background:rgba(0,0,0,.22);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.la-launcher-search{display:flex;align-items:center;gap:12px;padding:18px 18px 14px 22px;border-bottom:1px solid rgba(0,0,0,.07)}
.la-launcher-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.la-launcher-search input{flex:1;min-width:0;height:44px;margin:0;padding:0;border:0;background:transparent;color:#000000;font-size:19px;outline:none;-webkit-appearance:none;appearance:none}
.la-launcher-search input::placeholder{color:#6b6a63}
.la-launcher-search input::-webkit-search-cancel-button{display:none}
.la-launcher-close{display:inline-flex;align-items:center;min-height:36px;margin:0;padding:0 10px;border-radius:9px;background:#f5f4ef;border:1px solid #e5e3d8;color:#000000;font-size:12px;cursor:pointer}
.la-launcher-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:14px 18px 4px}
.la-launcher-tab{display:inline-flex;align-items:center;gap:8px;min-height:38px;margin:0;padding:0 14px;border-radius:99px;background:rgba(255,255,255,.85);border:1px solid #e5e3d8;color:#000000;font-size:14px;font-weight:500;cursor:pointer}
.la-launcher-tab[aria-selected="true"]{background:#000000;border-color:#000000;color:#ffffff;font-weight:600}
.la-launcher-tab output{font-size:11.5px;opacity:.75;color:inherit}
.la-launcher-body{flex:1;min-height:0;max-height:600px;overflow-y:auto;overscroll-behavior:contain;padding:8px 10px 12px}
.la-launcher-group{padding:12px 10px 2px}
.la-launcher-heading{margin:0 0 8px;font-size:12px;font-weight:600;letter-spacing:.08em;line-height:1.4;text-transform:uppercase;color:#000000}
.la-launcher-chips{display:flex;flex-wrap:wrap;gap:8px}
.la-launcher-chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px 0 6px;border-radius:99px;background:#ffffff;border:1px solid #e5e3d8;color:#000000;font-size:14px;font-weight:500;text-decoration:none}
.la-launcher-chip .la-shell-tile{flex-basis:28px;border-radius:99px}
.la-launcher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;gap:4px}
.la-launcher-row{box-sizing:border-box;display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 12px;border:1px solid transparent;border-radius:14px;color:#000000;text-decoration:none}
.la-launcher-row[aria-selected="true"]{background:#ffffff;border-color:#e5e3d8;box-shadow:0 6px 16px -10px rgba(0,0,0,.25)}
.la-launcher-row .la-shell-tile{flex-basis:36px;width:36px;height:36px;border-radius:10px}
.la-launcher-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.la-launcher-text strong{font-size:15px;font-weight:600;line-height:1.3}
.la-launcher-text span{overflow:hidden;color:#000000;font-size:13px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.la-launcher-enter{display:none;font-size:11px;padding:3px 7px;border-radius:7px;background:#000000;color:#ffffff}
.la-launcher-row[aria-selected="true"] .la-launcher-enter{display:inline}
.la-launcher-empty{margin:0;padding:40px 16px;text-align:center;font-size:15px}
.la-launcher-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:12px 22px;border-top:1px solid rgba(0,0,0,.07);color:#000000;font-size:12.5px}
.la-launcher-foot a{color:#000000;font-weight:600;text-underline-offset:3px}
@media (max-width:1099px){
  .la-launcher{width:100%;max-width:none;height:100%;max-height:none;margin:0;border-radius:0}
  .la-launcher-body{max-height:none}
  .la-launcher-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none!important;grid-auto-flow:row}
  .la-launcher-foot span{display:none}
  .la-launcher-row[aria-selected="true"] .la-launcher-enter{display:none}
}
@media (prefers-reduced-motion:reduce){.la-shell-side *,.la-launcher *{transition:none!important}}
