.identity-bar{display:flex;align-items:center;gap:8px;margin-left:auto}.identity-profile{border-radius:30px}.identity-tasks{position:relative}.identity-tasks>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:10px 15px;border:1px solid var(--border);border-radius:10px}.identity-task-list{position:absolute;right:0;top:100%;margin-top:10px;z-index:100;width:min(400px,85vw);padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}.identity-task-list a{display:block;padding:14px 0;color:var(--text);border-bottom:1px solid var(--border);text-decoration:none}.identity-task-list a:hover{color:var(--accent)}header{gap:16px;flex-wrap:wrap;height:auto;min-height:88px;padding-top:12px;padding-bottom:12px}@media(max-width:800px){.identity-bar{flex-wrap:wrap;margin-left:0}.identity-profile span{max-width:120px;overflow:hidden;text-overflow:ellipsis}}
.identity-tasks{padding:0!important;margin:0!important;border:0!important}.identity-tasks>summary{font-size:15px}.identity-profile{display:flex;align-items:center;gap:8px}
header{padding-left:16px!important;padding-right:16px!important}header .brand{margin-left:0!important}.identity-profile{padding:4px 12px 4px 4px;border-radius:40px}.identity-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-size:18px;color:white;font-weight:700}.identity-task-list{width:min(620px,92vw);max-height:75vh;overflow:auto}.activity-tabs{display:flex;gap:6px;margin-bottom:12px}.activity-tabs button{text-transform:capitalize}.activity-row{padding:16px 0;border-bottom:1px solid var(--border)}.activity-row p{font-size:13px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.activity-row .actions{gap:5px}.activity-row .actions button{font-size:12px;text-transform:capitalize;min-height:32px;padding:6px 9px}.activity-body{margin-top:12px}.identity-bar{justify-content:flex-end}

.identity-tasks>summary svg{width:20px;height:20px}.identity-count{display:grid;place-items:center;min-width:21px;height:21px;border-radius:12px;background:#3867ff;color:white;font-size:11px}.identity-count[hidden]{display:none}.has-unread svg{color:#73cfff}.identity-task-list{width:min(480px,92vw);padding:16px;box-shadow:0 18px 60px #0007}.activity-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:5px 0 16px}.activity-heading strong{font-size:18px}.activity-heading small{color:var(--muted)}.activity-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.activity-tabs button[aria-pressed=true]{background:#002bfd;color:white}.activity-row{padding:14px;border:1px solid var(--border);border-radius:12px;margin:10px 0;background:var(--raised)}.activity-row.unread{border-left:3px solid #64caff}.activity-row>strong{display:block;font-size:14px}.activity-row .actions{flex-wrap:wrap}

.identity-avatar{overflow:hidden;flex:none}.identity-avatar img{width:100%;height:100%;object-fit:cover;display:block}.identity-avatar.large{width:48px;height:48px;font-size:22px}.identity-profile .identity-name{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-account-menu{min-width:270px}.hub-account-menu button{justify-content:flex-start}.identity-menu-head{display:flex;gap:12px;align-items:center;padding:8px 8px 12px;border-bottom:1px solid var(--border);margin-bottom:4px}.identity-menu-head strong{display:block}.identity-menu-head small{display:block;color:var(--muted);font-size:12px}
.identity-connection{display:flex;align-items:center;gap:8px;margin:2px 8px 6px;font-size:12px;color:var(--muted)}.identity-connection i{width:8px;height:8px;border-radius:50%;background:#81dfb3;flex:none}.identity-connection i.warn{background:#e9bf80}

/* 2.0.73: the corner as in TOP Platform - connection icon, three activity buttons, theme choice in the pill. */
header:has(.identity-bar) #theme{display:none!important}
.identity-bar{position:relative;gap:6px}
.identity-activity{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid var(--border);border-radius:12px;background:var(--raised);position:relative}
.identity-bar .ib-icon{position:relative;display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--text);cursor:pointer}
.identity-bar .ib-icon:hover,.identity-bar .ib-icon[aria-expanded=true]{background:color-mix(in srgb,var(--accent) 18%,transparent)}
.identity-bar .ib-icon svg{width:20px;height:20px}
.identity-bar .identity-count{position:absolute;top:2px;right:1px;min-width:18px;height:18px;padding:0 5px;font-size:10.5px;font-weight:700;box-shadow:0 0 0 2px var(--raised);pointer-events:none}
.identity-status-wrap{position:relative}
.identity-bar .identity-status{border:1px solid var(--border);background:var(--raised);border-radius:12px;width:42px;height:42px}
.identity-status .ib-dot{position:absolute;right:7px;bottom:7px;width:9px;height:9px;border-radius:50%;background:var(--muted);box-shadow:0 0 0 2px var(--raised)}
.identity-status[data-state=ok] .ib-dot{background:#81dfb3}.identity-status[data-state=offline] .ib-dot{background:#ff8f8f}
.identity-status-card,.identity-panel{position:absolute;top:calc(100% + 10px);right:0;z-index:300;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 60px #0006}
.identity-status-card{width:min(360px,92vw);padding:14px}.identity-panel{width:min(480px,94vw);max-height:78vh;overflow:auto;padding:16px}
.identity-status-card::before,.identity-panel::before{content:'';position:absolute;top:-12px;left:0;right:0;height:12px}
.ib-service{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px 4px;border-top:1px solid var(--border)}
.ib-service>i{width:9px;height:9px;border-radius:50%;margin-top:6px;background:var(--muted)}.ib-service[data-state=ok]>i{background:#81dfb3}.ib-service[data-state=offline]>i{background:#ff8f8f}
.ib-service strong{display:block;font-size:14px}.ib-service span{display:block;font-size:12.5px;color:var(--muted)}.ib-service b{font-size:11px;font-weight:500;color:var(--muted);white-space:nowrap}
.activity-empty{color:var(--muted);font-size:14px}
.hub-account-menu{position:absolute;top:calc(100% + 12px);right:0;z-index:300}
.identity-account{position:relative}
.identity-themes{padding:8px 6px 10px;border-bottom:1px solid var(--border);margin-bottom:4px}
.identity-menu-label{display:block;font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);margin:0 2px 8px}
.identity-theme-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.identity-theme-grid button{display:grid;justify-items:center;gap:5px;padding:6px 2px 5px;min-height:0;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted);font-size:10.5px;line-height:1.2;text-align:center;justify-content:center}
.identity-theme-grid button[aria-checked=true]{border-color:var(--accent);color:var(--text)}
.ib-swatch{width:30px;height:30px;border-radius:50%;border:1px solid rgba(127,127,127,.45)}
@media(max-width:800px){.identity-profile .identity-name{display:none}.identity-panel,.identity-status-card,.hub-account-menu{position:fixed;top:80px;left:8px;right:8px;width:auto;min-width:0;overflow:auto}}
/* Palettes shared with TOP Platform (data-tp-theme); the light/dark tone stays in data-theme for Node Forge pages. */
:root[data-theme=light][data-tp-theme=light]{--bg:#e8ebee;--surface:#f6f7f9;--raised:#e0e4e8;--text:#15191d;--muted:#454d55;--border:#c3cad1}
:root[data-tp-theme=dim][data-tp-theme]{--bg:#1c222b;--surface:#242b35;--raised:#2d3540;--text:#e8edf2;--muted:#b3bdc8;--border:#3a4452;--accent:#4d74ff}
:root[data-tp-theme=midnight][data-tp-theme]{--bg:#070b19;--surface:#0e1528;--raised:#16203a;--text:#eef2ff;--muted:#aeb9d6;--border:#24304f;--accent:#3f66ff}
:root[data-tp-theme=contrast][data-tp-theme]{--bg:#000;--surface:#0a0a0a;--raised:#161616;--text:#fff;--muted:#e6e6e6;--border:#8c8c8c;--accent:#2f5cff}
:root[data-theme=light][data-tp-theme=warm]{--bg:#ece5da;--surface:#f8f4ee;--raised:#e6ddd0;--text:#211b14;--muted:#4d4338;--border:#cfc3b3;--accent:#1f45d6}
:root[data-tp-theme=pearl]{--bg:#f1f4f9;--surface:#ffffff;--raised:#e7edf5;--sunken:#eaf0f7;--hover:#e2e9f4;--text:#202c40;--muted:#4c5e77;--subtle:#5d6e84;--border:#d0dae8;--border-strong:#a9b9cf;--accent:#4056bd;--accent-hover:#31469f;--accent-text:#31469f;--accent-soft:#e5eafb;--line:var(--border);}

:root[data-tp-theme=sage]{--bg:#edf3ef;--surface:#ffffff;--raised:#e0eae3;--sunken:#e7efe9;--hover:#d9e7dd;--text:#20372d;--muted:#476252;--subtle:#56705f;--border:#c8d8cd;--border-strong:#a4bcae;--accent:#247259;--accent-hover:#195b45;--accent-text:#195b45;--accent-soft:#dceddf;--line:var(--border);}

:root[data-tp-theme=ocean]{--bg:#0c1c27;--surface:#142d3b;--raised:#1d3a4a;--sunken:#102431;--hover:#274858;--text:#edf6fa;--muted:#b2cbd6;--subtle:#97b5c4;--border:#34515e;--border-strong:#577482;--accent:#227b91;--accent-hover:#2a90a8;--accent-text:#82d8e3;--accent-soft:#193d4b;--line:var(--border);}

.identity-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.identity-theme-grid button{display:grid;gap:7px;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:11px}.identity-theme-grid .ib-swatch{height:38px;width:100%;border-radius:6px;border:1px solid #78839755;position:relative}.ib-swatch:after{content:'';position:absolute;left:22%;right:10%;top:8px;height:16px;border:1px solid #8c9aaa55;background:#ffffff20;border-radius:3px}.identity-theme-grid button[aria-checked=true]{outline:2px solid var(--accent);outline-offset:1px}.identity-theme-grid button:hover{transform:translateY(-1px)}
:root[data-theme=light]{--bg:#f1f4f8;--surface:#ffffff;--raised:#e8edf4;--sunken:#edf1f6;--hover:#e4eaf2;--text:#1e2b3d;--muted:#4b5c72;--subtle:#5c6c81;--border:#ced8e5;--border-strong:#a6b7ca;--shadow:0 12px 32px #25364c12}
:root[data-tp-theme=pearl]{--bg:#f1f4f9;--surface:#ffffff;--raised:#e7edf5;--sunken:#eaf0f7;--hover:#e2e9f4;--text:#202c40;--muted:#4c5e77;--subtle:#5d6e84;--border:#d0dae8;--border-strong:#a9b9cf;--accent:#4056bd;--accent-hover:#31469f;--accent-text:#31469f;--accent-soft:#e5eafb}
:root[data-tp-theme=sage]{--bg:#edf3ef;--surface:#ffffff;--raised:#e0eae3;--sunken:#e7efe9;--hover:#d9e7dd;--text:#20372d;--muted:#476252;--subtle:#56705f;--border:#c8d8cd;--border-strong:#a4bcae;--accent:#247259;--accent-hover:#195b45;--accent-text:#195b45;--accent-soft:#dceddf}
:root[data-tp-theme=ocean]{--bg:#0c1c27;--surface:#142d3b;--raised:#1d3a4a;--sunken:#102431;--hover:#274858;--text:#edf6fa;--muted:#b2cbd6;--subtle:#97b5c4;--border:#34515e;--border-strong:#577482;--accent:#227b91;--accent-hover:#2a90a8;--accent-text:#82d8e3;--accent-soft:#193d4b}

:root[data-theme=light][data-tp-theme=light]{--bg:#f1f4f8;--surface:#fff;--raised:#e8edf4;--hover:#e4eaf2;--text:#1e2b3d;--muted:#4b5c72;--border:#ced8e5}

.identity-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2px!important}.identity-theme-grid button{display:flex!important;align-items:center!important;gap:8px!important;padding:6px 8px!important;min-height:0!important;border:0!important;font-size:11px!important}.identity-theme-grid .ib-swatch{width:19px!important;height:19px!important;border-radius:50%!important;flex:none}.identity-theme-grid button[aria-checked=true]{background:color-mix(in srgb,var(--accent,#4267ed) 16%,transparent)!important}.identity-status-wrap{display:none!important}

.nf-profile-dialog{width:min(1320px,96vw);max-width:96vw;max-height:94vh;padding:22px;overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:22px}.nf-profile-close{display:block;margin-left:auto}.nf-profile-dialog::backdrop{background:#060c18aa;backdrop-filter:blur(7px)}

.nf-version{font-size:11px;border-radius:20px;padding:4px 9px;min-height:0;color:var(--muted)}.nf-build-dialog{max-width:480px;border-radius:18px;padding:28px}.nf-build-dialog button{display:block;margin-top:20px}

header .app-bridge{display:none!important}

/* Account menus must have their own surface on every app, including the plotter. */
.identity-bar .hub-account-menu{box-sizing:border-box;background:var(--surface,#182131);color:var(--text,#edf2f8);border:1px solid var(--border,#344051);border-radius:14px;padding:12px;box-shadow:0 14px 40px #0003;opacity:1;backdrop-filter:none;min-width:290px}
.identity-bar .hub-account-menu .identity-theme-grid button{display:grid!important;grid-template-columns:19px minmax(0,1fr);justify-content:start!important;justify-items:start!important;text-align:left!important;align-items:center!important;width:100%;min-height:32px!important;box-sizing:border-box;gap:8px!important}
.identity-bar .identity-theme-grid button>span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:19px}
.identity-bar .identity-theme-grid .ib-swatch{box-sizing:border-box;margin:0}.identity-bar .identity-theme-grid .ib-swatch:after{display:none}
.identity-bar .hub-account-menu>button{display:flex;width:100%;justify-content:flex-start;text-align:left;gap:9px;margin-top:4px}
@media(max-width:800px){.identity-bar .hub-account-menu{min-width:0}}

body>header.nf-personal-header{position:relative;min-height:var(--tp-header-height,72px)!important;height:auto!important;padding:8px 24px!important;align-content:center;box-sizing:border-box}
body>header.nf-personal-header .brand img{width:46px!important;height:46px!important;object-fit:contain}
body>header .nf-corner-version{position:absolute!important;top:5px!important;left:6px!important;font-size:9px!important;line-height:1;padding:2px 4px!important;border:1px solid var(--border);border-radius:4px;opacity:.7}
.nf-header-resize{position:absolute;bottom:-3px;left:0;right:0;height:7px;z-index:25;cursor:ns-resize;touch-action:none}.nf-header-resize:after{content:'';position:absolute;left:calc(50% - 18px);top:3px;width:36px;height:2px;background:var(--border);border-radius:2px}.nf-header-resize:hover:after,.nf-header-resize:focus-visible:after{background:var(--accent)}
