/* Display modes share live page state; switching never remounts the page. */
.mode-toggle{min-height:36px;padding:7px 11px;gap:7px;border-radius:9px;white-space:nowrap}
.mode-toggle svg{width:17px;height:17px;flex:none}
.mobile-topbar-brand,.mobile-bottom-nav{display:none}

html[data-display-mode=mobile]{--mobile-gutter:clamp(14px,4.5vw,24px);--mobile-inset-left:max(var(--mobile-gutter),env(safe-area-inset-left));--mobile-inset-right:max(var(--mobile-gutter),env(safe-area-inset-right));--mobile-nav-height:64px;background:var(--canvas);scroll-padding-top:76px}
html[data-display-mode=mobile] body{margin:0;min-width:0}
html[data-display-mode=mobile] #app{position:relative;width:100%;min-width:0;max-width:none;min-height:100dvh;margin:0;background:var(--canvas)}
html[data-display-mode=mobile] .workspace{margin-left:0;min-width:0;min-height:100dvh;padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom))}
html[data-display-mode=mobile] .topbar{position:sticky;top:0;z-index:20;flex-shrink:0;height:calc(60px + env(safe-area-inset-top));min-height:60px;padding:env(safe-area-inset-top) var(--mobile-inset-right) 0 var(--mobile-inset-left);background:#ffffffed;backdrop-filter:blur(16px);gap:8px}
html[data-display-mode=mobile] .topbar>.row{gap:9px;min-width:0}
html[data-display-mode=mobile] .topbar-greeting,html[data-display-mode=mobile] .topbar-create,html[data-display-mode=mobile] .server-status{display:none}
html[data-display-mode=mobile] .mobile-topbar-brand{display:block;color:var(--primary);font-size:20px;font-weight:650;letter-spacing:2px}
html[data-display-mode=mobile] .mode-toggle{min-height:36px;border-color:#dce5f4;background:#f6f8fd;color:#52678d}
html[data-display-mode=mobile] .mobile-only{display:inline-flex!important}
html[data-display-mode=mobile] .sidebar{position:fixed;inset:0 auto 0 0;z-index:60;width:min(320px,86vw);padding:26px 20px;max-height:100dvh;transform:translateX(-110%);visibility:hidden;pointer-events:none;transition:transform .2s ease}
html[data-display-mode=mobile] .nav-open .sidebar{transform:translateX(0);visibility:visible;pointer-events:auto}
html[data-display-mode=mobile] .nav-backdrop{position:fixed;inset:0;z-index:50;border:0;background:#162d5366;width:100%;height:100%;display:none}
html[data-display-mode=mobile] .nav-open .nav-backdrop{display:block}
html[data-display-mode=mobile] .sidebar .main-nav .nav-link{min-height:44px;}
html[data-display-mode=mobile] .sidebar-note{padding-top:20px;margin-top:auto}
html[data-display-mode=mobile] .main-content{width:100%;min-width:0;max-width:none;padding:22px var(--mobile-inset-right) 24px var(--mobile-inset-left)}
html[data-display-mode=mobile] .page-stack{gap:22px}
html[data-display-mode=mobile] .site-footer{margin:0 var(--mobile-inset-right) 0 var(--mobile-inset-left);padding:16px 0;gap:4px;flex-direction:column;align-items:flex-start;}
html[data-display-mode=mobile] .mobile-bottom-nav{position:fixed;z-index:30;bottom:0;left:0;right:0;width:100%;max-width:none;height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));padding:6px max(9px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);border-top:1px solid #e1e8f4;background:#ffffffef;backdrop-filter:blur(18px);box-shadow:0 -5px 22px #23436c05}
.mobile-nav-link{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;border-radius:12px;color:#8390a7}
.mobile-nav-link svg{width:21px;height:21px}
.mobile-nav-link.active{color:var(--primary);background:#f0f5ff;font-weight:600}
.mobile-notification-count{position:absolute;top:1px;left:calc(50% + 6px);padding:0 4px;min-width:16px;background:#d85d6f;color:white;border-radius:10px;border:2px solid white}
html[data-display-mode=mobile] .page-heading{align-items:flex-start;gap:14px;flex-wrap:wrap}
html[data-display-mode=mobile] .page-heading h1{letter-spacing:-.4px}
html[data-display-mode=mobile] .page-heading .eyebrow{letter-spacing:1.6px}
html[data-display-mode=mobile] .heading-description{line-height:1.8;margin-top:8px}
html[data-display-mode=mobile] .page-heading>.button{min-height:44px}
html[data-display-mode=mobile] .section-heading{gap:12px;margin-bottom:14px}
html[data-display-mode=mobile] .panel{padding:20px 17px;gap:17px;border-radius:17px}
html[data-display-mode=mobile] .notice{padding:12px 14px}
html[data-display-mode=mobile] .button{max-width:100%}
html[data-display-mode=mobile] .actions .button{min-height:38px;padding:8px 12px}
html[data-display-mode=mobile] input:not([type=range]):not([type=checkbox]):not([type=file]),html[data-display-mode=mobile] select,html[data-display-mode=mobile] textarea{min-width:0;max-width:100%}
html[data-display-mode=mobile] .field{min-width:0;gap:8px}
html[data-display-mode=mobile] .field input:not([type=range]):not([type=checkbox]):not([type=file]),html[data-display-mode=mobile] select{width:100%;min-height:48px;padding:12px 14px;border:1px solid #d8e2f1;border-radius:12px;background-color:white;color:var(--ink);line-height:1.5}
html[data-display-mode=mobile] select{appearance:none;-webkit-appearance:none;display:block;padding-right:42px;background-image:linear-gradient(45deg,transparent 50%,#7789a8 50%),linear-gradient(135deg,#7789a8 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;background-size:5px 5px;background-repeat:no-repeat;text-overflow:ellipsis;box-shadow:0 2px 5px #29467803}
html[data-display-mode=mobile] select:focus-visible,html[data-display-mode=mobile] .field input:focus-visible,html[data-display-mode=mobile] .field textarea:focus-visible{outline:3px solid #4f7de41a;outline-offset:1px;border-color:var(--primary)}
html[data-display-mode=mobile] select:disabled{background-color:#f0f3f8;color:var(--muted);opacity:.75}
html[data-display-mode=mobile] .field textarea{width:100%;padding:12px 14px;border-radius:12px;line-height:1.7}
html[data-display-mode=mobile] .check-field{align-items:flex-start;gap:10px;line-height:1.8}
html[data-display-mode=mobile] .check-field input{flex:0 0 auto;margin-top:4px}
html[data-display-mode=mobile] .form-grid,html[data-display-mode=mobile] .trait-grid,html[data-display-mode=mobile] .create-form,html[data-display-mode=mobile] .account-page,html[data-display-mode=mobile] .settings-grid,html[data-display-mode=mobile] .knowledge-grid,html[data-display-mode=mobile] .scenario-grid,html[data-display-mode=mobile] .guide-resource-grid,html[data-display-mode=mobile] .masonry-panels{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
html[data-display-mode=mobile] .masonry-grid{grid-auto-rows:auto;grid-auto-flow:row;row-gap:16px}
html[data-display-mode=mobile] .masonry-grid>*{grid-row:auto!important}
html[data-display-mode=mobile] .account-page>.panel:nth-child(2){grid-row:auto}
html[data-display-mode=mobile] .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html[data-display-mode=mobile] .stat-card{padding:17px 14px;border-radius:15px}
html[data-display-mode=mobile] .stat-card strong{overflow-wrap:anywhere}
html[data-display-mode=mobile] .hero{position:relative;display:block;min-height:295px;border-radius:22px;overflow:hidden;background:linear-gradient(120deg,#e8efff,#dce8ff)}
html[data-display-mode=mobile] .hero-copy{position:relative;z-index:2;width:100%;padding:27px 23px}
html[data-display-mode=mobile] .hero-copy h1{line-height:1.5;max-width:260px;letter-spacing:0;margin:17px 0 12px}
html[data-display-mode=mobile] .hero-copy>.eyebrow{letter-spacing:1.2px}
html[data-display-mode=mobile] .hero-copy>p:not(.eyebrow){max-width:245px;line-height:1.8}
html[data-display-mode=mobile] .hero-copy>p:not(.eyebrow) br{display:none}
html[data-display-mode=mobile] .hero-copy .actions{margin-top:22px;gap:13px;max-width:260px}
html[data-display-mode=mobile] .hero-art{position:absolute;right:0;bottom:0;width:130px;height:155px;min-height:0;opacity:.65;pointer-events:none;z-index:1}
html[data-display-mode=mobile] .hero-art .illustrated-panda{left:-35px;bottom:-56px;transform:rotate(-5deg) scale(.57)}
html[data-display-mode=mobile] .hero-art .sun-disc{width:135px;height:135px;left:0;top:12px;box-shadow:0 0 0 13px #b6ccfa}
html[data-display-mode=mobile] .hero-art .leaf,html[data-display-mode=mobile] .art-caption{display:none}
html[data-display-mode=mobile] .pet-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
html[data-display-mode=mobile] .pet-card{display:grid;grid-template-columns:clamp(88px,26vw,136px) minmax(0,1fr);grid-template-areas:'avatar content';border-radius:17px;min-height:172px;overflow:hidden;min-width:0}
html[data-display-mode=mobile] .pet-card-image{grid-area:avatar;position:relative;width:100%;max-width:100%;min-width:0;height:auto;min-height:0;aspect-ratio:auto;align-self:stretch;border-radius:0;overflow:hidden}
html[data-display-mode=mobile] .pet-card-image>.pet-avatar.card-avatar:not(.placeholder){position:absolute;inset:0;height:100%;width:100%;min-width:0;object-fit:cover;object-position:center}
html[data-display-mode=mobile] .pet-card-image>.placeholder{position:absolute;inset:0;width:100%;height:100%;max-width:100%;transform:rotate(-7deg) scale(.65)}
html[data-display-mode=mobile] .pet-card-body{grid-area:content;padding:14px 13px;min-width:0;max-width:100%;overflow-wrap:anywhere}
html[data-display-mode=mobile] .pet-card-body h3{min-width:0;max-width:100%}
html[data-display-mode=mobile] .pet-card-body>.row:first-child{display:flex;gap:5px;flex-wrap:wrap}
html[data-display-mode=mobile] .pet-card-body .badge{padding:2px 5px;margin:0}
html[data-display-mode=mobile] .pet-story{margin:8px 0 11px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html[data-display-mode=mobile] .scenario{padding:23px 21px;min-height:180px}
html[data-display-mode=mobile] .scenario-symbol{top:28px;right:20px;opacity:.5}
html[data-display-mode=mobile] .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html[data-display-mode=mobile] .asset-card>img{height:140px}
html[data-display-mode=mobile] .toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
html[data-display-mode=mobile] .toolbar input{width:100%;max-width:none;flex:1 1 100%}
html[data-display-mode=mobile] .toolbar select{width:100%;max-width:none}
html[data-display-mode=mobile] .toolbar>.tiny{line-height:1.8}
html[data-display-mode=mobile] .jobs-filters{display:block;padding:18px 16px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 3px 12px #29467803}
html[data-display-mode=mobile] .jobs-filters .field{width:100%;max-width:none}
html[data-display-mode=mobile] .jobs-filters .field label{color:var(--ink);font-weight:500}
html[data-display-mode=mobile] .jobs-filters select{background-color:#f8faff;box-shadow:none}
html[data-display-mode=mobile] .jobs-filter-hint{margin-top:10px;line-height:1.8;color:var(--muted)}
html[data-display-mode=mobile] .jobs-page>.page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
html[data-display-mode=mobile] .jobs-page>.page-heading .eyebrow{display:none}
html[data-display-mode=mobile] .jobs-page>.page-heading h1{margin-top:0}
html[data-display-mode=mobile] .jobs-page>.page-heading>.button{align-self:start}
html[data-display-mode=mobile] .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:22px;scrollbar-width:none;overscroll-behavior-x:contain;padding:0 1px}
html[data-display-mode=mobile] .tabs a{flex:none;padding-bottom:12px;white-space:nowrap}
/* Data stays in rows; only this region scrolls when columns exceed the screen. */
html[data-display-mode=mobile] .table-wrap{width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
html[data-display-mode=mobile] .table-wrap table{min-width:640px}
html[data-display-mode=mobile] .record-list{width:100%;min-width:0;max-width:100%;overscroll-behavior-x:contain}
html[data-display-mode=mobile] .json-view,html[data-display-mode=mobile] .guide-command pre{max-width:100%;overflow:auto}
html[data-display-mode=mobile] .guide-page{grid-template-columns:minmax(0,1fr)}
html[data-display-mode=mobile] .guide-intro{padding:22px 18px;align-items:flex-start}
html[data-display-mode=mobile] .guide-mascot{display:none}
html[data-display-mode=mobile] .guide-role-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html[data-display-mode=mobile] .guide-lesson{grid-template-columns:minmax(0,1fr);gap:22px}
html[data-display-mode=mobile] .guide-page>.guide-diagram .guide-flow{flex-direction:column}
html[data-display-mode=mobile] .guide-page>.guide-diagram .guide-flow li+li:before{content:'↓';top:-25px;left:calc(50% - 6px)}
html[data-display-mode=mobile] .guide-steps{display:flex;flex-direction:column;gap:20px}
html[data-display-mode=mobile] .auth-layout{grid-template-columns:minmax(0,1fr);min-height:0;gap:0;max-width:none}
html[data-display-mode=mobile] .auth-story{display:none}
html[data-display-mode=mobile] .auth-panel{padding:27px 21px;border-radius:20px}
html[data-display-mode=mobile] .organization-heading{align-items:center;gap:12px}
html[data-display-mode=mobile] .organization-logo{width:50px;height:50px;border-radius:12px}
html[data-display-mode=mobile] .organization-card{--organization-logo-size:clamp(160px,45vw,192px);grid-template-columns:var(--organization-logo-size) minmax(0,1fr);gap:0;padding:0}
html[data-display-mode=mobile] .organization-card-body{padding:12px;gap:10px}
html[data-display-mode=mobile] .organization-card-body>.eyebrow{display:none}
html[data-display-mode=mobile] .organization-card-body h2{font-size:18px}
html[data-display-mode=mobile] .organization-card-logo .organization-logo{width:100%;height:100%;border-radius:0;padding:0}
html[data-display-mode=mobile] .notification-row{grid-template-columns:minmax(0,1fr);gap:12px;padding:18px 0}
html[data-display-mode=mobile] .notification-row .actions{justify-content:flex-start}
html[data-display-mode=mobile] .modal{width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:23px 20px;border-radius:20px}
html[data-display-mode=mobile] .toasts{left:50%;right:auto;transform:translateX(-50%);bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 12px);width:min(440px,calc(100vw - 28px))}
html[data-display-mode=mobile] .toast{max-width:100%;}

/* Portrait chat keeps navigation and the composer visible while messages scroll. */
html[data-display-mode=mobile] .workspace:has(.chat-workspace){height:var(--mobile-viewport-height,100dvh);min-height:0}
html[data-display-mode=mobile] .chat-workspace{padding:15px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));min-height:0}
html[data-display-mode=mobile] .chat-workspace>.pet-page{min-height:0;gap:12px}
html[data-display-mode=mobile] .pet-heading{gap:10px;flex-wrap:wrap}
html[data-display-mode=mobile] .pet-heading .pet-avatar{width:42px;height:42px;border-radius:13px}
html[data-display-mode=mobile] .pet-heading .badge{padding:2px 5px}
html[data-display-mode=mobile] .chat-layout{display:flex;flex-direction:column;margin:0;min-height:220px;border-radius:18px}
html[data-display-mode=mobile] .chat-workspace .chat-history{flex-shrink:0;flex-direction:row;align-items:center;gap:8px;max-height:none;padding:6px 10px;border-right:0;border-bottom:1px solid var(--line)}
html[data-display-mode=mobile] .chat-history>.row{flex-shrink:0;gap:4px}
html[data-display-mode=mobile] .chat-history h3{white-space:nowrap}
html[data-display-mode=mobile] .chat-history>.row>.button{min-width:32px;min-height:32px;padding:4px}
html[data-display-mode=mobile] .chat-workspace .history-list{flex-direction:row;flex:1;min-width:0;max-height:38px;min-height:32px;margin:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
html[data-display-mode=mobile] .history-list>p{white-space:nowrap;align-self:center}
html[data-display-mode=mobile] .history-entry{max-width:210px}
html[data-display-mode=mobile] .history-entry .button.history-item{min-height:32px;padding:7px 9px;flex-shrink:1}
html[data-display-mode=mobile] .chat-main{flex:1;min-height:0}
html[data-display-mode=mobile] .chat-toolbar{display:flex;align-items:center;flex-shrink:0}
html[data-display-mode=mobile] .chat-toolbar:has(.reply-speech-bar button:not([hidden]),.reply-speech-bar [role=status]:not(:empty)){padding:4px 10px;border-bottom:1px solid var(--line)}
html[data-display-mode=mobile] .chat-toolbar>.companion-actions{display:none}
html[data-display-mode=mobile] .chat-toolbar>.reply-speech-bar{padding:0;gap:6px;min-width:0}
html[data-display-mode=mobile] .chat-toolbar .button{min-height:30px;padding:4px 6px}
html[data-display-mode=mobile] .chat-toolbar [role=status]:empty{display:none}
html[data-display-mode=mobile] .messages{flex:1;min-height:60px;height:0;gap:20px;padding:20px 12px}
html[data-display-mode=mobile] .message{max-width:97%;gap:7px}
html[data-display-mode=mobile] .message-bubble{padding:11px 13px}
html[data-display-mode=mobile] .message .pet-avatar.mini{width:27px;height:27px;border-radius:8px;}
html[data-display-mode=mobile] .message-meta{gap:7px;flex-wrap:wrap}
html[data-display-mode=mobile] .message-image{max-width:100%}
html[data-display-mode=mobile] .composer{padding:8px 10px;gap:6px}
html[data-display-mode=mobile] .composer>textarea{height:38px;min-height:38px;padding:4px 2px}
html[data-display-mode=mobile] .composer-bottom{gap:5px;flex-wrap:wrap}
html[data-display-mode=mobile] .composer-bottom>.actions{gap:3px}
html[data-display-mode=mobile] .composer-bottom .button{min-height:36px;padding:7px 8px}
html[data-display-mode=mobile] .composer-bottom .chat-speech-hold{min-width:calc(4em + 18px)}
html[data-display-mode=mobile] .composer .keyboard-hint{display:none}
html[data-display-mode=mobile] .composer .row.between{gap:4px}
html[data-display-mode=mobile] .composer .row.between>.tiny{max-width:100%}
html[data-display-mode=mobile] .composer .row.between>.button{min-height:22px}
html[data-display-mode=mobile] .workspace:has(.chat-workspace)>.site-footer{display:none}
html[data-display-mode=mobile][data-keyboard-open=true] .workspace:has(.chat-workspace){padding-bottom:0}
html[data-display-mode=mobile][data-keyboard-open=true] .mobile-bottom-nav{display:none}
html[data-display-mode=mobile][data-keyboard-open=true] .chat-workspace .pet-heading,html[data-display-mode=mobile][data-keyboard-open=true] .chat-workspace .tabs,html[data-display-mode=mobile][data-keyboard-open=true] .chat-history{display:none}
html[data-display-mode=mobile][data-keyboard-open=true] .chat-layout{min-height:0}
html[data-display-mode=mobile][data-keyboard-open=true] .messages{min-height:32px}

/* Wider phones, landscape and tablets use the available space without a shell cap. */
@media(min-width:640px){
  html[data-display-mode=mobile] .pet-grid,html[data-display-mode=mobile] .scenario-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
  html[data-display-mode=mobile] .asset-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
  html[data-display-mode=mobile] .hero-copy h1{max-width:none}
  html[data-display-mode=mobile] .hero-copy>p:not(.eyebrow){max-width:55ch}
  html[data-display-mode=mobile] .hero-art{right:24px;width:180px;height:200px}
  html[data-display-mode=mobile] .hero-art .illustrated-panda{left:-10px;bottom:-26px;transform:rotate(-5deg) scale(.7)}
  html[data-display-mode=mobile] .jobs-filters .field{max-width:420px}
}

/* An explicitly selected desktop mode remains a desktop canvas on a phone. */
@media(max-width:760px){
  html[data-display-mode=desktop][data-display-choice=manual] #app{min-width:1100px}
  html[data-display-mode=desktop][data-display-choice=manual] .sidebar{width:238px;inset:0 auto 0 0;padding:26px 24px;transform:none;visibility:visible}
  html[data-display-mode=desktop][data-display-choice=manual] .workspace{margin-left:238px;min-width:862px}
  html[data-display-mode=desktop][data-display-choice=manual] .topbar{height:76px;padding:0 28px}
  html[data-display-mode=desktop][data-display-choice=manual] .main-content{padding:24px 28px 32px}
  html[data-display-mode=desktop][data-display-choice=manual] .mobile-only,html[data-display-mode=desktop][data-display-choice=manual] .nav-backdrop{display:none!important}
  html[data-display-mode=desktop][data-display-choice=manual] .mode-toggle{position:fixed;top:14px;right:14px;z-index:40;background:white;box-shadow:0 2px 12px #213f6814}
  html[data-display-mode=desktop][data-display-choice=manual] .hero-copy{width:65%;padding:35px}
  html[data-display-mode=desktop][data-display-choice=manual] .hero-art{position:relative;width:35%;opacity:1}
  html[data-display-mode=desktop][data-display-choice=manual] .pet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  html[data-display-mode=desktop][data-display-choice=manual] .knowledge-grid,html[data-display-mode=desktop][data-display-choice=manual] .account-page,html[data-display-mode=desktop][data-display-choice=manual] .form-grid,html[data-display-mode=desktop][data-display-choice=manual] .trait-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-display-mode=desktop][data-display-choice=manual] .creation-sections{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-display-mode=desktop][data-display-choice=manual] .create-page .trait-grid{grid-template-columns:minmax(0,1fr)}
  html[data-display-mode=desktop][data-display-choice=manual] .chat-layout{display:grid;grid-template-columns:190px minmax(0,1fr)}
  html[data-display-mode=desktop][data-display-choice=manual] .chat-workspace .chat-history{max-height:none;border-right:1px solid var(--line);border-bottom:0}
  html[data-display-mode=desktop][data-display-choice=manual] .history-list{flex-direction:column;max-height:none}
}
@media(prefers-reduced-motion:reduce){html[data-display-mode=mobile] .sidebar{transition:none}}

/* Shared text size for the editor also avoids automatic input zoom on phones. */
.composer>textarea{font-size:16px}
.mobile-nav-link{font-size:15px}
.mobile-notification-count{font-size:12px}

html[data-display-mode=mobile] .profile-workspace,html[data-display-mode=mobile] .profile-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
html[data-display-mode=mobile] .profile-tools{grid-column:auto}
html[data-display-mode=mobile] .identity-panel{min-width:0;max-width:100%}
html[data-display-mode=mobile] .identity-panel .record-list{overflow:hidden}
html[data-display-mode=mobile] .profile-workspace .identity-panel .record-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;width:100%;max-width:100%;min-width:0;gap:8px}
html[data-display-mode=mobile] .profile-workspace .identity-panel .record-main{display:grid;grid-template-columns:max-content minmax(0,1fr);width:100%;min-width:0;gap:8px;align-items:center}
html[data-display-mode=mobile] .profile-workspace .identity-panel .record-preview{display:block;width:100%;min-width:0;max-width:100%}
html[data-display-mode=mobile] .identity-panel .record-preview span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html[data-display-mode=mobile] .identity-panel .record-row>.actions{gap:4px}
html[data-display-mode=mobile] .identity-panel .record-row>.actions .button{padding:6px 8px;min-height:36px}
