/* The app viewport excludes Android's status bar and keyboard. */
body[data-native-ui]{--native-bg:#fcfcfc;--native-ink:#101010;--native-muted:#666;--native-card:#fff;background:var(--native-bg);color:var(--native-ink);font-family:Arial,"Noto Sans",Roboto,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;overflow:hidden}
:root[data-theme=dark] body[data-native-ui]{--native-bg:#212121;--native-ink:#f4f4f4;--native-muted:#bbb;--native-card:#303030}
body[data-native-ui] button{font-family:inherit}
body[data-native-ui] .app{height:var(--native-vh,100dvh);min-height:0;overflow:hidden;background:var(--native-bg)}
body[data-native-ui] .main,body[data-native-ui] .chat-pane,body[data-native-ui] .main-body{background:transparent}
body[data-native-ui] .main{position:relative;min-height:0}
body[data-native-ui] .main:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 90% 48% at 50% 100%,#e5e5e5 0,rgba(240,240,240,.55) 60%,transparent 100%);pointer-events:none}
:root[data-theme=dark] body[data-native-ui] .main:before{background:radial-gradient(ellipse at 50% 100%,#151515 0,transparent 72%)}
body[data-native-ui] .topbar{height:80px;min-height:80px;padding:10px 16px 22px;background:transparent;position:relative;isolation:isolate;z-index:20;gap:0}
body[data-native-ui] .topbar-left{height:48px;z-index:2}
body[data-native-ui] .breadcrumb,body[data-native-ui] .topbar-right,body[data-native-ui] .chat-top{display:none!important}
body[data-native-ui] #sidebar-toggle,.native-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:0;min-width:0;padding:4px;border:0;background:transparent;border-radius:50%;box-shadow:none;color:var(--native-ink);flex-shrink:0}
body[data-native-ui] #sidebar-toggle{height:48px;width:48px;background:var(--native-card);box-shadow:0 0 50px #00000004;padding:10px;border:0}
.native-icon-button svg,body[data-native-ui] #sidebar-toggle svg{height:26px;width:26px;flex-shrink:0}
.native-header-center{position:absolute;top:10px;left:50%;transform:translateX(-50%);height:48px;display:flex;align-items:center;justify-content:center;z-index:3;white-space:nowrap}
.native-segments{width:188px;background:#e9e9e9;padding:4px;border-radius:30px;gap:2px}
.native-tab{height:40px;flex:1;border:0;border-radius:24px;background:transparent;color:var(--native-ink);font-size:17px;line-height:1;padding:0 18px;font-weight:400}
.native-tab[aria-selected=true]{background:var(--native-card)}
.native-workspace-title{display:flex;align-items:center;gap:4px;height:48px;border:0;background:transparent;font-size:21px;line-height:1;letter-spacing:-.35px;font-weight:500;padding:0 6px;color:var(--native-ink)}
.native-workspace-title svg{width:15px;height:15px;stroke-width:2}
#native-back,#native-search{position:absolute;top:10px;width:48px;height:48px;background:var(--native-card);padding:10px;box-shadow:0 0 50px #00000004;z-index:4}
#native-back{left:16px}#native-search{right:16px}
body[data-native-mode=codex] #sidebar-toggle{visibility:hidden}
body[data-native-ui] .chat-pane{position:relative;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body[data-native-ui] .chat-pane .chat-scroll{flex:1 1 auto!important;min-height:0;padding:0 18px 20px;overflow-y:auto;z-index:1}
body[data-native-ui] #welcome{display:none!important}
body[data-native-ui] .messages{max-width:760px;padding:14px 0;gap:24px}
body[data-native-ui][data-native-empty=true] .messages{padding:0}
body[data-native-ui] .composer-area{position:relative;z-index:10;flex:0 0 auto;width:calc(100% - 26px);max-width:760px;margin:0 auto!important;padding:0 0 calc(13px + env(safe-area-inset-bottom,0px));background:transparent}
body[data-native-ui] #composer{position:relative;display:flex;flex-direction:column;gap:10px;width:100%;min-height:105px;margin:0;padding:22px 18px 9px;border:0!important;border-radius:28px!important;background:var(--native-card)!important;box-shadow:none!important;overflow:visible!important;isolation:isolate}
body[data-native-ui] #prompt{display:block;width:100%;min-height:28px;max-height:180px;resize:none;padding:0;margin:0;border:0;outline:0;box-shadow:none;background:transparent;color:var(--native-ink);font:400 20px/28px Arial,"Noto Sans",Roboto,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:0}
body[data-native-ui] #prompt::placeholder{color:#929292;opacity:1}
body[data-native-ui] .composer-actions{height:36px;min-height:36px;display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:0;margin:0 -9px;width:calc(100% + 18px)}
body[data-native-ui] #attach-button{width:36px;height:36px;min-height:36px;border:0;border-radius:50%;background:transparent;padding:4px;color:var(--native-ink);box-shadow:none;flex:none}
body[data-native-ui] #attach-button svg{width:26px;height:26px;stroke-width:2.2}
.native-model{display:flex;align-items:center;justify-content:center;white-space:nowrap;margin-left:auto;padding:2px 4px;min-height:36px;height:36px;min-width:0;border:0;background:transparent;color:var(--native-ink);font-size:18px;line-height:28px;font-weight:400;letter-spacing:-.25px;flex-shrink:0}
#native-plan{color:#909090;margin-left:-4px;flex:none}
#native-plan[aria-pressed=true]{color:var(--native-ink);background:#eeeeee}
body[data-native-ui] #voice-button{display:flex!important;align-items:center;justify-content:center;background:transparent;width:36px;height:36px;min-width:36px;min-height:36px;padding:5px;margin:0;border:0;border-radius:50%;box-shadow:none;color:var(--native-ink);flex:none}
body[data-native-ui] #voice-button svg{width:24px;height:27px}
body[data-native-ui] #voice-button:before,body[data-native-ui] #voice-button:after{display:none!important}
body[data-native-ui] #voice-button[data-native-hidden=true]{display:none!important}
body[data-native-ui] #send-button,body[data-native-ui] #call-button{display:flex!important;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;min-width:36px;max-width:36px;padding:6px;border:0;border-radius:50%;background:#000!important;color:#fff!important;box-shadow:none;font-size:0;flex:none;margin:0}
body[data-native-ui] #send-button svg{width:26px;height:26px;stroke-width:2.1;display:block;fill:none}
body[data-native-ui] #call-button svg{width:21px;height:21px;stroke-width:2.2;display:block}
body[data-native-ui] #call-button:before,body[data-native-ui] #call-button:after,body[data-native-ui] #send-button:before,body[data-native-ui] #send-button:after{display:none!important}
body[data-native-ui] #send-button[hidden],body[data-native-ui] #call-button[hidden]{display:none!important}
body[data-native-ui] .composer-hint,body[data-native-ui] .composer-footnote,body[data-native-ui] .attachment-menu,body[data-native-ui] .composer-hints{display:none!important}
body[data-native-ui] #voice-note{font-size:12px;line-height:1.5;margin:0;text-align:center}
body[data-native-ui] #voice-note:empty{display:none}
body[data-native-ui] #voice-note:not(:empty){padding:8px 5px 0}
body[data-native-ui] .call-controls:not(:has(#call-panel:not([hidden]))){display:none!important}
body[data-native-ui] .active-task-bar:not([hidden]){margin-bottom:8px;background:var(--native-card);border-radius:15px}
.native-menu{position:absolute;min-width:210px;padding:10px 0;border:0;border-radius:26px;background:var(--native-card);color:var(--native-ink);box-shadow:0 12px 55px #00000014;z-index:60;overflow:hidden}
.native-menu[hidden]{display:none!important}
.native-menu-row{display:flex;align-items:center;gap:18px;width:100%;min-height:52px;padding:9px 28px;border:0;background:transparent;color:inherit;text-align:left;font-size:20px;line-height:28px;white-space:nowrap;font-weight:400}
.native-menu-row svg{width:25px;height:25px;flex:none}
.native-menu-row:hover,.native-menu-row:focus-visible{background:#00000005}
.native-menu-row[aria-checked=true]{background:#00000004}
.native-attachment-menu{left:2.5px;bottom:63px;width:218px;padding:10px 0;border-radius:26px}
.native-attachment-menu .native-menu-row{padding:9px 28px;gap:18px}
.native-attachment-menu .native-menu-row[aria-checked=false],.native-attachment-menu .native-menu-row[aria-checked=true]{background:transparent}
.native-attachment-menu .native-menu-row[aria-checked=true]:after{content:"✓";position:absolute;right:14px;font-size:16px}
.native-model-menu{right:8px;bottom:64px;min-width:225px}
.native-model-menu .native-menu-row{font-size:16px;min-height:44px;padding:8px 18px}
.native-model-menu .native-menu-row[aria-checked=true]:after{content:"✓";margin-left:auto}
#native-workspace-menu{left:50%;transform:translateX(-50%);top:54px;min-width:210px}
#native-workspace-menu .native-menu-row{font-size:16px;padding:10px 20px}
.native-environment{z-index:5;position:relative;flex:0 0 auto;width:calc(100% - 26px);max-width:760px;margin:0 auto 27px;padding:0}
.native-environment[hidden]{display:none!important}
.native-environment-row{position:relative;min-height:52px}
.native-environment-button{display:flex;align-items:center;gap:10px;min-height:52px;margin:0;padding:9px 14px;background:transparent;border:0;color:var(--native-muted);font-size:20px;line-height:30px;font-weight:400;white-space:nowrap}
.native-environment-button>svg:first-child{width:18px;height:21px;stroke-width:1.8}
.native-environment-button>svg:last-child{width:16px;height:18px;margin-left:0}
.native-environment-menu{left:10px;bottom:54px;min-width:240px}
.native-environment-menu .native-menu-row{font-size:15px;padding:10px 18px;gap:10px}
.native-environment-menu .native-menu-row svg{height:20px;width:20px}
.native-project-tools{display:grid;gap:1px;padding:0 0 6px}
.native-project-tool{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;text-align:left;color:var(--text);text-decoration:none;font-size:14px;min-height:40px;border-radius:9px;background:transparent;border:0}
.native-project-tool svg{width:19px;height:19px}
body[data-native-ui] .tool-dock{display:none!important}
body[data-native-ui] .app:not(.workspace-hidden) .tool-dock{display:flex!important}
body[data-native-ui] .app:not(.workspace-hidden) .native-environment{display:none!important}
body[data-native-ui] .workspace{z-index:11;background:var(--native-card);min-height:0}
body[data-native-ui] .toast{z-index:200}
:root[data-theme=dark] .native-segments{background:#353535}
:root[data-theme=dark] .native-menu-row:hover{background:#ffffff0a}
@media(min-width:761px){body[data-native-ui] .topbar{padding-left:20px;padding-right:20px}body[data-native-ui] #native-back{left:20px}body[data-native-ui] #native-search{right:24px}body[data-native-ui] .composer-area{padding-bottom:24px}body[data-native-ui] .native-environment{margin-bottom:27px}body[data-native-ui] #composer{padding-top:17px}body[data-native-ui] .sidebar{z-index:22}body[data-native-ui] .main-body{position:relative}}
@media(max-width:760px){body[data-native-ui] .main-body{flex:1;min-height:0}body[data-native-ui] .app.workspace-hidden .chat-pane{display:flex!important}body[data-native-ui] .app:not(.workspace-hidden) .chat-pane{display:none!important}body[data-native-ui] .app:not(.workspace-hidden) .workspace{display:flex!important;flex:1;width:100%;min-width:0}body[data-native-ui] .sidebar{z-index:100}body[data-native-ui] .backdrop{z-index:90}.native-menu{max-height:calc(var(--native-vh,100dvh) - 95px);overflow-y:auto}}
@media(max-width:360px){.native-model{font-size:16px}.native-environment-button{font-size:18px}.native-segments{width:176px}.native-menu-row{font-size:18px}body[data-native-ui] .composer-actions{gap:9px}}
/* Override older page-specific rules equally in blank and focused states. */
body[data-native-ui] #app .main{display:flex!important;flex-direction:column!important}
body[data-native-ui] #app #chat-pane{padding-bottom:0!important;margin-bottom:0!important}
body[data-native-ui] #app #chat-pane .composer-area{width:calc(100% - 26px)!important;max-width:760px!important;margin:0 auto!important;padding:0 0 calc(13px + env(safe-area-inset-bottom,0px))!important}
body[data-native-ui] #app #composer{padding:22px 18px 9px!important;gap:10px!important;border:0!important;border-radius:28px!important;background:var(--native-card)!important}
body[data-native-ui] #app #composer #prompt{padding:0!important;font:400 20px/28px Roboto,Arial,"Noto Sans CJK SC",sans-serif!important;min-height:28px!important}
body[data-native-ui] #app #composer .composer-actions{margin:0 -9px!important;padding:0!important;gap:12px!important;width:calc(100% + 18px)!important;min-height:36px!important}
body[data-native-ui] #app button{font-family:Roboto,Arial,"Noto Sans CJK SC",sans-serif!important}
body[data-native-ui] #app #composer .native-menu-row{justify-content:flex-start!important}
body[data-native-ui] #app:has(#workspace[hidden]) .tool-dock{display:none!important}
body[data-native-ui] #app:has(#workspace:not([hidden])) .tool-dock{display:flex!important}
body[data-native-ui] #app #native-plan svg{width:23px;height:23px}
body[data-native-ui] #app #composer #send-button,body[data-native-ui] #app #composer #call-button{height:35px!important;width:35px!important;min-height:35px!important;min-width:35px!important;max-width:35px!important}
body[data-native-ui] .sidebar{overflow-y:auto}
.native-project-tools:not([open])>.native-project-tool{display:none}
.native-project-tools>summary{padding:10px 12px;min-height:40px;font-size:14px;cursor:pointer;border-radius:9px}
body[data-native-ui][data-keyboard-open=true] #app #chat-pane .composer-area{padding-bottom:13px!important}
body[data-native-ui] #app #composer #prompt::placeholder{font:inherit!important;color:#929292;opacity:1}
