/* One tab language: page tabs carry a short baseline; view/date controls do not. */
.plane-shell.plane-refresh :is(.tabs,.p1-tabs,.engine-tabs,.plane-settings-tabs,.vr-nav){display:flex;align-items:center;gap:8px;min-height:47px;height:auto;padding:8px 24px;margin:0;border-bottom:1px solid #e8e9eb;background:white;overflow-x:auto;scrollbar-width:none}
.plane-shell.plane-refresh :is(.tabs,.p1-tabs,.engine-tabs,.plane-settings-tabs,.vr-nav)>button,
.plane-shell.plane-refresh .gd-cycle-tabs>.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:30px!important;height:30px!important;padding:0 10px!important;margin:0;border:0!important;border-radius:6px;background:transparent;box-shadow:none;font-size:13px!important;font-weight:400!important;line-height:20px;color:#252729;text-decoration:none;white-space:nowrap}
.plane-shell.plane-refresh :is(.tabs,.p1-tabs,.engine-tabs,.plane-settings-tabs,.vr-nav)>button:is(.active,[aria-selected=true],[aria-pressed=true],[aria-current=page]),
.plane-shell.plane-refresh .gd-cycle-tabs>.btn[aria-pressed=true]{background:#f4f4f5;color:#252729}
.plane-shell.plane-refresh :is(.tabs,.p1-tabs,.engine-tabs,.plane-settings-tabs,.vr-nav)>button::after,
.plane-shell.plane-refresh .gd-cycle-tabs>.btn::after{content:none}
.plane-shell.plane-refresh :is(.tabs,.p1-tabs,.engine-tabs,.plane-settings-tabs,.vr-nav)>button:is(.active,[aria-selected=true],[aria-pressed=true],[aria-current=page])::after,
.plane-shell.plane-refresh .gd-cycle-tabs>.btn[aria-pressed=true]::after{content:'';position:absolute;left:10px;right:10px;bottom:-8px;height:2px;background:#252729;border-radius:1px}
.plane-shell.plane-refresh :is(.tabs,.p1-tabs,.engine-tabs,.plane-settings-tabs,.vr-nav)>button:hover,
.plane-shell.plane-refresh .gd-cycle-tabs>.btn:hover{background:#f4f4f5}
.plane-shell.plane-refresh :is(.tabs,.p1-tabs,.engine-tabs,.plane-settings-tabs,.vr-nav)>button:focus-visible,
.plane-shell.plane-refresh :is(.pa-segment,.segmented,.gd-view-switch)>button:focus-visible{outline:2px solid #006f9e;outline-offset:2px}
.plane-shell.plane-refresh[data-pa-route=scenes] .training-browser-bar{padding:8px 24px;min-height:46px;gap:8px}
.plane-shell.plane-refresh[data-pa-route=scenes] .training-tabs.engine-tabs{padding:0;min-height:30px;border:0;gap:8px;overflow:visible}
.plane-shell.plane-refresh .gd-cycle-tabs{padding:8px 24px;gap:8px;min-height:46px}
.plane-shell.plane-refresh :is(.pa-segment,.segmented,.gd-view-switch,.training-view-switch,.av-segment,.vv-chart-tabs,.bo-metric-tabs){display:inline-flex;align-items:center;gap:2px;padding:2px;border:0;border-radius:6px;background:#f4f4f5}
.plane-shell.plane-refresh :is(.pa-segment,.segmented,.gd-view-switch,.training-view-switch,.av-segment,.vv-chart-tabs,.bo-metric-tabs)>button{position:relative;border:1px solid transparent;min-height:26px;height:26px;padding:0 10px!important;background:transparent;border-radius:5px;box-shadow:none;font-size:13px!important;font-weight:400;line-height:20px;color:#252729}
.plane-shell.plane-refresh :is(.pa-segment,.segmented,.gd-view-switch,.training-view-switch,.av-segment,.vv-chart-tabs,.bo-metric-tabs)>button:is(.active,[aria-pressed=true],[aria-selected=true]){background:white;border-color:#e8e9eb;box-shadow:0 1px 2px #0000000a}
.plane-shell.plane-refresh :is(.pa-segment,.segmented,.gd-view-switch,.training-view-switch,.av-segment,.vv-chart-tabs,.bo-metric-tabs)>button::after,
.plane-shell.plane-refresh :is(.pa-calendar-toolbar,.gd-cycle-date) button::after,
.plane-shell.plane-refresh button:has(input[type=date])::after{content:none!important;display:none!important}
.plane-shell.plane-refresh .pa-segment[aria-label="排期视图"] .icon{display:none}

/* Shared drawer frame, independent of each form's content layout. */
body:has(.plane-shell){--drawer-top:46px;--drawer-right:8px;--drawer-bottom:8px;--drawer-width:min(780px,calc(100vw - 70px));--drawer-padding:24px;--drawer-border:#e8e9eb}
body:has(.plane-shell) :is(dialog#dialog[open],dialog.scene-dialog[open]),
.plane-shell.plane-refresh .gi-workspace .gd-task-drawer{position:fixed;inset:var(--drawer-top) var(--drawer-right) var(--drawer-bottom) auto!important;left:auto!important;right:var(--drawer-right)!important;width:var(--drawer-width)!important;max-width:none!important;min-width:0;height:calc(100dvh - var(--drawer-top) - var(--drawer-bottom));max-height:calc(100dvh - var(--drawer-top) - var(--drawer-bottom));margin:0;padding:0;border:1px solid var(--drawer-border);border-radius:0 7px 7px 0;background:white;color:#252729;box-shadow:-12px 0 36px #00000012;font-family:GeoApprovedLatin,GeoApprovedCJK,sans-serif;overflow:hidden;animation:pa-drawer .2s ease-out}
body:has(.plane-shell) :is(dialog#dialog,dialog.scene-dialog)::backdrop{background:#1b22331a;backdrop-filter:none}
body:has(.plane-shell) dialog#dialog>form,
body:has(.plane-shell) .scene-dialog-shell{display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;min-height:0;margin:0}
body:has(.plane-shell) :is(.dialog-head,.scene-dialog-shell>header),
.plane-shell.plane-refresh .gd-task-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;height:56px;min-height:56px;padding:0 var(--drawer-padding);margin:0;border-bottom:1px solid var(--drawer-border);background:white}
body:has(.plane-shell) :is(.dialog-head,.scene-dialog-shell>header) h2{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:500;line-height:22px}
body:has(.plane-shell) dialog :is(.dialog-body,.scene-dialog-content){flex:1;min-height:0;width:100%;padding:32px var(--drawer-padding);overflow:auto;scrollbar-width:none}
body:has(.plane-shell) dialog :is(.dialog-body,.scene-dialog-content)::-webkit-scrollbar{display:none}
body:has(.plane-shell) :is(.dialog-footer,.scene-dialog-shell>footer),
.plane-shell.plane-refresh .gd-task-drawer>footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex:none;padding:16px var(--drawer-padding);margin:0;border-top:1px solid var(--drawer-border);background:white}
body:has(.plane-shell) dialog :is(.field,.scene-field){display:flex;flex-direction:column;gap:8px;margin:0 0 24px;font-size:13px;line-height:1.6}
body:has(.plane-shell) dialog :is(input,textarea,select){min-width:0;max-width:100%;border:1px solid #e0e2e5;border-radius:6px;background:white;color:#252729;font-family:inherit;font-size:13px;line-height:1.6}
body:has(.plane-shell) dialog :is(input:not([type=checkbox]):not([type=radio]),select){min-height:36px;padding:6px 10px}
body:has(.plane-shell) dialog textarea{padding:10px}
body:has(.plane-shell) dialog .btn{height:30px;min-height:30px;padding:0 10px;border-radius:6px;font-size:13px;line-height:20px}
body:has(.plane-shell) dialog .btn.primary{background:#006f9e;border-color:#006f9e;color:white}
.plane-shell.plane-refresh .gd-task-drawer{z-index:110;display:flex;flex-direction:column}
.plane-shell.plane-refresh .gd-task-drawer .gd-drawer-body{flex:1;min-height:0;overflow:auto;grid-template-columns:minmax(0,1fr) 250px}
.plane-shell.plane-refresh .gd-task-drawer :is(.gd-drawer-main,.gd-drawer-properties){padding:32px var(--drawer-padding)}
.workspace-drawer-backdrop{pointer-events:none;position:fixed;inset:0;z-index:109;background:#1b22331a}
body:has(.plane-shell) dialog#dialog.plane-settings-modal>.dialog-body{padding:0;height:100%}
body:has(.plane-shell) .plane-personal-modal{height:100%;min-height:0}
@media(max-width:700px){body:has(.plane-shell){--drawer-right:5px;--drawer-bottom:5px;--drawer-width:calc(100vw - 53px);--drawer-padding:16px}.plane-shell.plane-refresh :is(.tabs,.p1-tabs,.engine-tabs,.plane-settings-tabs,.vr-nav),.plane-shell.plane-refresh .gd-cycle-tabs,.plane-shell.plane-refresh[data-pa-route=scenes] .training-browser-bar{padding-inline:16px}.plane-shell.plane-refresh[data-pa-route=scenes] .training-tabs.engine-tabs{padding:0;overflow-x:auto;max-width:100%;min-height:40px}.plane-shell.plane-refresh .gd-task-drawer .gd-drawer-body{display:block}.plane-shell.plane-refresh .gd-task-drawer :is(.gd-drawer-main,.gd-drawer-properties){padding:24px var(--drawer-padding)}body:has(.plane-shell) dialog :is(.dialog-body,.scene-dialog-content){padding-top:24px;padding-bottom:24px}}

body:has(.plane-shell) dialog#dialog .field:first-child{margin-top:0}
body:has(.plane-shell) dialog#dialog .dialog-head{padding:0 var(--drawer-padding)}
body:has(.plane-shell) dialog#dialog .dialog-body{padding:32px var(--drawer-padding)}
body:has(.plane-shell) dialog#dialog .dialog-footer{padding:16px var(--drawer-padding)}
body:has(.plane-shell) dialog#dialog.plane-settings-modal>.dialog-body{padding:0}
@media(max-width:700px){body:has(.plane-shell) dialog#dialog .dialog-body{padding-block:24px}}
