/* Identity's own rules (yotta-mono plan 288). Everything else is the Access
   Portal's stylesheet, portal.css, synced from login.yotta.bot's
   (make sync-identity), so Identity looks exactly like it. */

/* SHELL START: from here to SHELL END is the app's shell, which Boo · Admin
   draws too (owner, 2026-11-02: "i want the format to be like identity"):
   make sync-boo-admin copies it to Boo · Admin's shell.css. */
/* The app's shell (owner, 2026-11-01: "give me a left panel, panel like
   what we have in the app. and give me a header like it too"): Boo's left
   panel and page header (the desktop frontend's styles.css .sidebar,
   .sidebar-toggle, .session-row, .ws-header), in the Access Portal's
   colours. The panel is 300px and the page the rest, the footer under both;
   the page itself doesn't scroll, a list's rows do (lists.jsx). */
html:has(.id-app) { overflow:hidden; }
.id-app { --side-w:300px; --id-sidebar-bg:var(--lift); --id-hover:rgba(var(--chrome-rgb),0.04); --id-selected:rgba(var(--chrome-rgb),0.08);
  --id-nav-item:var(--text); position:relative; height:100vh; display:grid; grid-template-columns:var(--side-w) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto; background:var(--bg); }
[data-theme="dark"] .id-app { --id-sidebar-bg:var(--surface); --id-nav-item:rgba(var(--chrome-rgb),0.5); }
.id-app.sidebar-collapsed { grid-template-columns:minmax(0,1fr); }
.id-app > .portal-foot { grid-column:1 / -1; }
/* The panel's toggle, Back and Forward: window controls at the top left,
   centred on the 40px top rows, that stay put while the panel is closed. */
.id-window { position:absolute; z-index:30; top:5px; left:10px; display:flex; align-items:center; gap:2px; }
.id-icon-btn { display:inline-grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:6px;
  background:transparent; color:var(--text2); cursor:pointer; }
.id-icon-btn:hover:not(:disabled) { background:var(--id-hover); color:var(--text); }
.id-icon-btn:disabled { opacity:0.4; cursor:default; }
.id-sidebar { display:flex; flex-direction:column; min-height:0; background:var(--id-sidebar-bg); border-right:1px solid var(--border); user-select:none; }
.id-sidebar-head { height:40px; flex:none; }
.id-section-head { display:flex; align-items:center; height:34px; margin-top:6px; padding:0 10px 0 16px; flex:none; }
.id-section-label { margin:0; color:var(--sc-green); font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; }
.id-menu { list-style:none; margin:0; padding:0 8px 12px; flex:1; min-height:0; overflow-y:auto; }
/* The panel's sections scroll together (plan 299: IDENTITY, HUMAN, MACHINE,
   AGENT); each list is as tall as its pages. */
.id-menus { flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; }
.id-menus .id-menu { flex:none; overflow:visible; padding-bottom:4px; }
.id-menu-row { position:relative; display:flex; align-items:center; gap:10px; width:100%; padding:6px 10px; border:0; border-radius:6px;
  background:transparent; color:var(--id-nav-item); font-size:13.5px; text-align:left; cursor:pointer; }
.id-menu-row:hover { background:var(--id-hover); color:var(--htxt); }
/* The page shown: bold, with the green bar. */
.id-menu-row[aria-current="page"] { background:var(--id-selected); color:var(--htxt); font-weight:600; }
.id-menu-row[aria-current="page"]::before { content:''; position:absolute; left:0; top:7px; bottom:7px; width:3px; border-radius:2px; background:var(--sc-green); }
.id-menu-icon { flex:none; display:inline-grid; color:var(--text2); }
.id-menu-row[aria-current="page"] .id-menu-icon { color:var(--text); }
.id-menu-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* The logo on the left, the person's initials on the right, in one button;
   the account menu spans the foot, above it. */
/* A titled panel (the old web portal's Identity nav): the title over a rule,
   sections that fold, a rule between each. */
.id-sidebar-titled .id-nav-title { padding:0 16px 4px; color:var(--htxt); font-size:13px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; flex:none; }
.id-sidebar-titled .id-nav-rule { height:1px; margin:6px 14px 0; background:rgba(var(--chrome-rgb),0.10); flex:none; }
.id-sidebar-titled .id-section-fold { justify-content:space-between; width:100%; border:0; background:none; cursor:pointer; font:inherit; }
.id-sidebar-titled .id-section-fold:hover { background:var(--id-hover); }
.id-fold-marks { display:inline-flex; align-items:center; gap:6px; color:var(--sc-green); }
.id-fold-chev { transition:transform .15s; }
.id-fold-chev.shut { transform:rotate(-90deg); }
.id-fold-dot { width:5px; height:5px; border-radius:50%; background:var(--sc-green); }
.id-sidebar-foot { position:relative; display:flex; align-items:center; margin-top:auto; padding:6px; border-top:1px solid var(--border); flex:none; }
.id-profile { display:flex; flex:1; min-width:0; }
.id-profile-btn { display:flex; align-items:center; justify-content:space-between; gap:10px; flex:1; min-width:0; padding:6px 6px 6px 8px;
  border:0; border-radius:6px; background:transparent; cursor:pointer; }
.id-profile-btn:hover, .id-profile-btn[aria-expanded="true"] { background:var(--id-hover); }
.id-logo { display:block; height:19px; width:auto; }
.id-profile .avatar { width:26px; height:26px; font-size:10.5px; font-weight:600; letter-spacing:0.02em; }
.id-profile.account-menu .menu { top:auto; bottom:calc(100% + 6px); left:0; right:0; width:auto; }
/* Who is signed in, as the app's menu head (.profile-head): the name bold,
   the email quieter under it. */
.id-profile .menu-who { display:flex; flex-direction:column; gap:2px; }
.id-profile .menu-name { font-size:13px; font-weight:600; color:var(--text); }
.id-profile .menu-email { margin-top:0; font-size:12px; color:var(--text2); }
/* The organization and account, as the app's menu (.profile-facts): a divider
   after the email, the portal's .menu-facts rule (owner, 2026-11-05). */
.id-profile .menu-facts { gap:8px; padding:10px 14px; }
.id-profile .menu-facts dt { font-size:11.5px; font-weight:600; letter-spacing:0; }
.id-profile .menu-facts dd { display:flex; align-items:center; gap:6px; min-height:20px; font-size:12px; overflow-wrap:anywhere; }
.id-profile .menu-facts dd .copy-id { flex:none; }
.id-profile .menu-facts dd a.menu-fact-link { display:inline-flex; align-items:center; gap:6px; color:inherit; text-decoration:none; }
.menu-fact-link span { text-decoration:underline; text-underline-offset:2px; }
.id-profile .menu-facts dd a.menu-fact-link:hover { color:var(--text); }
/* A page: Home › its name over the stripe, then the page. */
.id-workspace { display:flex; flex-direction:column; min-width:0; min-height:0; background:var(--bg); }
.id-ws-header { display:flex; align-items:center; height:40px; padding:0 16px 0 22px; flex:none; user-select:none; }
.id-app.sidebar-collapsed .id-ws-header { padding-left:112px; }
.id-ws-path { display:flex; align-items:center; gap:6px; min-width:0; }
.id-ws-crumb { flex:none; color:var(--text2); font-size:15px; white-space:nowrap; }
.id-ws-crumb-sep { flex:none; display:inline-grid; color:var(--text3); }
.id-ws-path h1 { min-width:0; margin:0; overflow:hidden; color:var(--text); font-size:15px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.id-canvas { flex:1; min-height:0; display:flex; flex-direction:column; padding:24px 24px 20px; overflow-y:auto; scrollbar-width:none; }
.id-canvas::-webkit-scrollbar { display:none; }
/* SHELL END */
/* A list's card fits what's left of the page, so only its rows scroll;
   Settings' cards scroll with the page. */
.id-canvas > .panel { flex:0 1 auto; min-height:0; width:100%; max-width:1082px; margin:0 auto; }
/* Settings scrolls as a page, ending --scroll-end after its last card. */
.id-canvas > .panel-settings { flex:none; padding-bottom:calc(var(--scroll-end) - 20px); }
/* Identity Providers: two tabs (owner, 2026-11-03), pinned as a record's
   are; the list fits the page, and Microsoft Entra Tenants scrolls under
   the tabs' line, ending --scroll-end after its card. */
.id-canvas > .panel-identity-providers { display:flex; flex-direction:column; }
.user-tab-entra-tenants { overflow-y:auto; scrollbar-width:none; padding-bottom:calc(var(--scroll-end) - 20px); }
.user-tab-entra-tenants::-webkit-scrollbar { display:none; }
.user-tab-entra-tenants > .acct-card { flex:none; }
.id-canvas .list-card { max-height:none; flex:0 1 auto; }
/* A whole row of space after a list's last row (owner, 2026-11-01): the
   unseen copy of it (ui.jsx RecordTable), with no line of its own, then the
   foot's line, with no gap of the card's between. */
.line-table tr.row-space { visibility:hidden; }
.line-table tr.row-space td { border-bottom:0; }
.id-canvas .list-card > .acct-scroll + .pager-foot { margin-top:-12px; }

/* What an action can't take back (Disable, Delete) is bold as well as red
   (owner, 2026-11-01). */
.card-menu-item.is-danger { font-weight:600; }

/* A row that opens a page has a View button in a column with no heading,
   after the box's or first (owner, 2026-11-01: "if something has a click
   through then it needs a column with a view button", "the column after the
   select column"): white words on our purple, the stripe's magenta ("let me
   see the view button as purple too (our purple)"; it was blue). Every row
   lifts under the pointer and none for being picked: portal.css's rule,
   shared with the Access Portal. */
/* A row that opens or ticks from a click has the hand; one that does neither
   has none (owner, 2026-11-09: no View column). */
.id-canvas .line-table tr.device-row:not(.is-pickable):not(.is-openable) { cursor:default; }
tr.device-row.is-openable { cursor:pointer; }

/* A row that opens (Users'): the hand, as a link. */
/* A crumb that leads somewhere (Users, on a user's page). */
.id-ws-crumb-link { padding:0; border:0; background:transparent; font:inherit; cursor:pointer; }
.id-ws-crumb-link:hover { color:var(--text); text-decoration:underline; }
/* A user's page: the Access Portal's tabs under the header, then the tab. */
/* A user's Groups, Apps and Permission Sets fit the page as the other lists
   do: every box between the canvas and the card gives way. */
.id-canvas > .panel-user { display:flex; flex-direction:column; }
/* Filters in a card's toolbar (a user's lists: owner, 2026-11-01, "move
   filters to the right of the refresh button"): Actions' height, its menu
   opening leftward from the card's edge. */
.card-actions .filter-btn { height:28px; padding:0 12px; }
.card-actions .filter-menu { left:auto; right:0; }
/* A user: the tabs and the line under them stay put and only what is under
   them moves (owner, 2026-11-01: "lock the line below the tabs for the
   scrolling"). What scrolls goes out of sight at that line, not under a gap
   below it ("make sure the scroll disappear is the line"): the space under
   the tabs is the tab's own top padding. Details scrolls by itself and ends
   --scroll-end after MFA Devices, the canvas's own 20 px counted (the Access
   Portal's and Boo's space). */
.user-page { display:flex; flex-direction:column; flex:0 1 auto; min-height:0; }
.user-page > .tabs { flex:none; }
.user-tab { display:flex; flex-direction:column; gap:16px; flex:0 1 auto; min-height:0; padding-top:var(--tabs-gap); }
.user-tab-details { overflow-y:auto; scrollbar-width:none; padding-bottom:calc(var(--scroll-end) - 20px); }
.user-tab-details::-webkit-scrollbar { display:none; }
.user-tab-details > .acct-card { flex:none; }
/* A provider's Provisioning is cards too, and scrolls the same way (owner,
   2026-11-03: "it needs to scroll under the divider in the tabs"). */
.user-tab-provisioning { overflow-y:auto; scrollbar-width:none; padding-bottom:calc(var(--scroll-end) - 20px); }
.user-tab-provisioning::-webkit-scrollbar { display:none; }
.user-tab-provisioning > .acct-card { flex:none; }
/* Metadata's pencil at its right (owner, 2026-11-01), the Access Portal's
   profile's; its fields in their rows; Status's switch, Boo's (desktop
   styles.css .switch) in this page's green. */
.user-details .card-head { min-height:28px; }
.detail-facts .profile-input { width:100%; }
.switch { display:inline-flex; align-items:center; gap:7px; padding:0; border:0; background:none; color:var(--text2); font:inherit;
  font-size:12px; font-weight:600; cursor:pointer; }
.switch.is-on { color:var(--sc-green); }
.switch:disabled { cursor:default; opacity:0.6; }
.switch-track { position:relative; width:30px; height:16px; border-radius:8px; background:var(--border-strong); transition:background 0.15s; }
.switch.is-on .switch-track { background:var(--sc-green); }
.switch-knob { position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background:#fff; transition:transform 0.15s; }
.switch.is-on .switch-knob { transform:translateX(14px); }
.switch.is-off-red { color:var(--sc-red); }
.switch.is-off-red .switch-track { background:var(--sc-red); }
/* A user's list's Assigned (X) (owner, 2026-11-01): the Access Portal's
   yellow Your Plan pill (.plans-pill.is-yours), its words dark in either
   theme ("lets make that text always dark"). */
.acct-title .assigned-pill { display:inline-block; margin-left:10px; padding:1px 8px; border:1px solid var(--sc-yellow); border-radius:999px;
  background:var(--sc-yellow); color:#231a15; font-size:11px; font-weight:600; line-height:1.6; white-space:nowrap; vertical-align:2px; }
/* What else leaving a group removes, in the Remove dialog: a Settings box
   (.prefs-box, --well, rounded), its list inside. */
.remove-also ul { margin:0; padding-left:18px; font-size:12.5px; line-height:1.6; color:var(--text); }
/* MFA Devices' table scrolls sideways as the lists' do, with no bar shown. */
.user-devices .acct-scroll { scrollbar-width:none; }
.user-devices .acct-scroll::-webkit-scrollbar { display:none; }
/* Details: a label and its value a line each, a rule between. */
.detail-facts { margin:0; display:flex; flex-direction:column; }
.detail-facts > div { display:grid; grid-template-columns:160px minmax(0, 1fr); gap:16px; align-items:center; padding:10px 0;
  border-bottom:1px solid var(--border); font-size:13px; }
.detail-facts > div:last-child { border-bottom:0; }
.detail-facts dt { color:var(--text2); }
.detail-facts dd { margin:0; color:var(--text); overflow-wrap:anywhere; }
.user-gone { gap:12px; align-items:flex-start; }

/* A table card, as Home's cards are. */
.id-card { background:var(--card-lift); }


/* A dialog is as tall as it needs, and the page behind it scrolls, as the
   Access Portal's Access Keys does (owner, 2026-11-01): never a scroller
   inside the dialog. The auto margin centres a short one and starts a long
   one at the top. */
.modal-back { overflow-y:auto; }
.modal { max-height:none; overflow:visible; margin:auto; }

/* A dialog that belongs to a list says so first, Users › Settings: the
   list quieter, the › quieter still, as the page header's crumbs. */
.modal-head h3.modal-path { display:flex; align-items:center; gap:6px; }
.modal-crumb { color:var(--text2); font-weight:400; }
.modal-crumb-sep { display:inline-grid; color:var(--text3); }
/* A dialog's tools beside its ✕, as a card's pencil (the Access Portal's edit-btn). */
.modal-tools { display:flex; align-items:center; gap:8px; }

/* A list's gear, after its page buttons over the pager's thin divider
   (owner, 2026-11-01): no outline, a rounded background on hover. */
.list-gear { display:inline-grid; place-items:center; width:26px; height:24px; padding:0; border:0; border-radius:6px;
  background:transparent; color:var(--text2); cursor:pointer; }
.list-gear:hover { background:rgba(var(--chrome-rgb),0.08); color:var(--text); }
/* Its Settings: rounded boxes, Columns, Default Columns and Default Rows,
   each column a box to tick, the dialog as tall as it needs. Each box is a
   well (owner, 2026-11-01): darker than the dialog in dark, lighter in
   light. */
.prefs-box { display:flex; flex-direction:column; gap:10px; padding:14px 16px; border:1px solid var(--border); border-radius:10px;
  background:var(--well); }
.prefs-head { display:flex; align-items:center; gap:10px; }
.prefs-head .sub-title { margin:0; }
.prefs-head .hint { margin-left:auto; }
/* An active Reset is on the dialog's colour too, as Default Rows is; one
   with nothing to reset stays faded. */
.prefs-head .filter-reset:not(:disabled) { background:var(--dialog); color:var(--text); }
.prefs-picks { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:2px 8px; }
.prefs-picks .filter-option { padding:6px 8px; border-radius:6px; }
.prefs-rows { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12.5px; color:var(--text2); }
/* Default Rows and its list are on the dialog's own colour, against the
   box's well (owner, 2026-11-01). */
.prefs-rows .size-btn { height:32px; padding:0 10px; font-size:13px; letter-spacing:normal; background:var(--dialog); }
.prefs-rows .size-menu { background:var(--dialog); }
.prefs-rows .size-option { font-size:13px; letter-spacing:normal; }


/* Adding a member or an assignment in an opened row. */
.inline-add { display:flex; gap:8px; align-items:center; max-width:520px; }
.inline-add select.input { flex:1; height:32px; padding:0 10px; font-size:13px; }
/* A provider's Link and Read again rows: a picker or time and an ID, side by side. */
.link-row .input { flex:1 1 0; min-width:0; height:32px; padding:0 10px; font-size:13px; }
.link-row .btn { white-space:nowrap; }
.row-end { text-align:right; }
.hint { color:var(--text3); font-size:12px; }
/* A card's buttons (a domain's Verify, Metadata's Cancel and Save) are the
   dialogs' (portal.css .modal .btn): the page's IBM Plex Sans, their words
   as written, never capitals (owner, 2026-11-02: "change the style of the
   button for verify to match our button style"). */
.id-card .btn { font-family:'IBM Plex Sans',sans-serif; text-transform:none; letter-spacing:normal; font-size:12.5px; font-weight:500; }

/* Settings (plan 288): one card per area, stacked. */
.settings-stack { display:flex; flex-direction:column; gap:16px; }
.settings-form { max-width:640px; }
.card-intro { margin:0 0 10px; max-width:820px; }
.row-link { padding:0; border:0; background:none; color:var(--text); font:inherit; font-weight:600; text-align:left; cursor:pointer; }
.row-link:hover { text-decoration:underline; }
.mono-cell { font-family:'IBM Plex Mono',monospace; font-size:12px; word-break:break-all; }
.sub-section { display:flex; flex-direction:column; gap:8px; margin-top:16px; padding-top:12px; border-top:1px solid var(--border); }
.sub-title { margin:0; font-size:13px; font-weight:600; color:var(--text); }
.field-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
/* A group of fields under one label (Request account's billing address): a
   line around them, no fill of its own (owner, 2026-11-02). */
.field-box { display:flex; flex-direction:column; gap:10px; padding:14px 16px; border:1px solid var(--border); border-radius:10px; }
.dialog-split { justify-content:space-between; }
.facts { display:grid; gap:6px; margin:0; }
.facts > div { display:grid; grid-template-columns:140px minmax(0, 1fr); gap:12px; font-size:12.5px; }
.facts dt { color:var(--text3); }
.facts dd { margin:0; color:var(--text); word-break:break-word; }
@media (max-width:560px) { .field-pair { grid-template-columns:1fr; } .facts > div { grid-template-columns:1fr; gap:2px; } }

/* A checkbox with its explanation under its label. */
.check-hinted { align-items:flex-start; }
.check-hinted .pick-box { flex:none; margin-top:2px; }
.check-text { display:flex; flex-direction:column; gap:2px; }
/* A set from before sets held permissions: what it gives until it has some
   of its own (records.jsx SetPermissions). */
.set-before { margin:0 0 12px; font-size:12.5px; color:var(--text2); }

/* Tooltips: YottaBot Desktop's (its styles.css .tip), on hover or keyboard
   focus, never interactive. On a wrapper, so a greyed button shows one too. */
.tip { position:relative; display:inline-flex; flex-shrink:0; }
.tip-bubble { position:absolute; z-index:70; width:max-content; max-width:260px; padding:6px 9px; border-radius:6px; background:var(--text); color:var(--bg); font-size:12px; font-weight:400; line-height:1.4; text-align:left; text-transform:none; letter-spacing:normal; pointer-events:none; opacity:0; transition:opacity 0.12s ease 0.3s; }
.tip:hover > .tip-bubble { opacity:1; }
/* Keyboard focus only: a mouse click must not leave a tooltip pinned open. */
.tip > :focus-visible + .tip-bubble { opacity:1; }
.tip-top > .tip-bubble { bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); }
/* The Machine and Agent pages' account and role (plan 299): side by side
   above the search, each as wide as a name needs. */
.env-picker { display:grid; grid-template-columns:repeat(2, minmax(0, 300px)); gap:12px; margin-bottom:12px; }
.list-note { margin:0 0 10px; color:var(--text2); font-size:13px; }

/* Security > Networks (owner, 2026-11-15): a change that would shut out the
   address making it, said before login-auth refuses it. */
.network-warning { font-weight: 600; }
