/* The account page is also displayed inside the Android app. */
body>header {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px 24px;overflow:visible}
body>header nav {display:flex;align-items:center;justify-content:flex-end;gap:6px 16px;min-width:0}
.profile-nav-links {display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap}
body>header nav .language-menu {margin:0;margin-inline-start:8px;flex:none;width:auto}
body>header nav .language-menu summary {display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 12px;box-sizing:border-box;font:600 .85rem/1.2 system-ui;color:#e5e5e8;background:#202125;border:1px solid #47484f;border-radius:22px}
body>header nav .language-menu summary::before {content:"";width:14px;height:14px;border:1px solid currentColor;border-radius:50%;background:radial-gradient(ellipse 29% 56% at center,transparent 71%,currentColor 78% 89%,transparent 98%),linear-gradient(transparent 46%,currentColor 46% 54%,transparent 54%);flex:none}
body header nav details.language-menu[open]>div {position:absolute;inset:auto;inset-block-start:100%;inset-inline-end:0;margin:5px 0 0;width:min(17rem,calc(100vw - 32px));max-height:min(55dvh,26rem)}
.account-main {width:min(calc(100% - 32px),860px)}
.account-main:has(#library:not([hidden]))>#account-status {max-width:none;width:100%;margin:0 0 8px;padding-inline:2px}
.account-main #library>.panel-top {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;margin:0;padding:16px 0 22px;background:none;border:0;border-bottom:1px solid #3a3b42;border-radius:0;box-shadow:none}
#library .cb-monogram {width:46px;height:46px;border-radius:13px;font-size:21px}
#library .panel-top h2 {font-size:clamp(20px,3vw,29px);line-height:1.15;letter-spacing:-.025em;overflow-wrap:anywhere}
#library .panel-top>.actions {width:auto;margin:0;align-self:start}
#library #logout {min-height:40px;padding:5px 10px;margin:0;background:transparent;color:#c7c7cf;border:1px solid #45464d;border-radius:8px;font-size:.82rem;box-shadow:none}
#profile-name-editor {margin-top:5px}
#profile-name-editor summary {color:#c3c4cc;cursor:pointer;font-size:.9rem;line-height:1.5;padding:4px 0}
#profile-name-form {display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding-top:8px}
#profile-name-form label {min-width:0;flex:1 1 11rem}
#profile-name-form input {width:100%;box-sizing:border-box;font-size:16px}
#profile-name-save {margin:0;min-height:40px}
#my-projects {padding:clamp(16px,3vw,26px);margin:20px 0;border:1px solid #48494f;border-radius:16px;background:linear-gradient(145deg,#242529,#19191c 76%);scroll-margin-block-start:16px}
.projects-heading {display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.projects-heading h2 {font-size:clamp(22px,3.8vw,32px);line-height:1.15;letter-spacing:-.035em}
#project-count {display:inline-block;vertical-align:middle;min-width:1.65rem;box-sizing:border-box;padding:.2em .48em;border-radius:8px;text-align:center;background:#383940;color:#e7e7eb;font:600 .85rem/1.3 system-ui}
#project-count:empty {display:none}
.projects-heading>.primary,#project-list a.primary {display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:7px 14px;box-sizing:border-box;border-radius:9px;font-size:.92rem;text-decoration:none}
#project-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:10px;margin-top:16px}
#project-list .saved-project,#project-list .empty-projects {min-width:0;margin:0;padding:15px 16px;border:1px solid #414248;border-radius:10px;background:#1a1b1e;box-shadow:none}
#project-list .saved-project h3 {margin:0;font-size:1.07rem;line-height:1.35}
#project-list .saved-project .hint {margin:5px 0 12px;font-variant-numeric:tabular-nums}
#project-list .actions {display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0}
#project-list .actions button {min-height:40px;margin:0;padding:6px;font-size:.82rem;background:transparent;color:#d0d0d7;border:0;box-shadow:none}
#project-list .actions button:hover {background:#323338;color:white}
#project-list .empty-projects {color:#c3c4cc;border-style:dashed;font-size:.95rem;line-height:1.5}
#library .profile-settings {padding:clamp(16px,3vw,26px);margin:0;background:#18191c;border:1px solid #36373d;border-radius:14px;box-shadow:none}
#library .profile-settings h2 {font-size:clamp(18px,2.4vw,22px)}
#profile-identity .cb-identity-options {margin:12px 0;justify-items:start}
#profile-identity .cb-google {width:auto;min-height:42px;padding-inline:12px;background:#2c2d32;color:#f2f2f4;border-color:#51525a;font-size:.9rem}
#profile-identity .cb-google::before {color:#9ab7fa}
#library:not([hidden])~#account-deletion {display:none}
@media(max-width:720px) {
  body>header {position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px 16px;gap:4px 12px}
  body>header>.brand {grid-column:1;grid-row:1;justify-self:start;min-width:0}
  body>header nav {display:contents}
  body>header nav .language-menu {grid-column:2;grid-row:1;justify-self:end;margin:0}
  .profile-nav-links {grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:2px 12px}
  body>header>.brand {min-height:44px;align-content:center}
  body>header nav .language-menu summary {max-width:44vw}
  body header nav details.language-menu[open]>div {position:absolute;inset:auto;inset-block-start:100%;inset-inline-end:0}
  .account-main {width:calc(100% - 24px);margin:12px auto}
  .account-main #library>.panel-top {gap:8px;padding:10px 0 14px}
  #library .cb-monogram {width:38px;height:38px;font-size:18px}
  #my-projects {margin:14px 0}
}
@media(max-width:420px) {
  #library .panel-top:has(#profile-name-editor[open]) {grid-template-columns:auto minmax(0,1fr)}
  #library .panel-top:has(#profile-name-editor[open])>.actions {grid-column:2}
}
