/* Content layout only; public chrome is the unchanged package copy of Shell 2.5.1. */
body .cell-elements-model-stage { display:block; position:relative; min-width:0; min-height:0; padding:0; overflow:hidden; }
body .cell-elements-model-stage .workspace { display:grid; grid-template-columns:minmax(0,1fr) 270px; grid-template-rows:minmax(0,1fr); gap:12px; padding:10px; margin:0; width:100%; height:100%; min-height:0; min-width:0; overflow:hidden; }
body .cell-elements-model-stage .table-card { display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; gap:0; position:relative; width:100%; height:100%; min-height:0; min-width:0; padding:0; margin:0; overflow:hidden; border-radius:12px; border:1px solid #d9e7e3; background:#fbfefd; }
body .table-card .section-heading { display:flex; flex-direction:row; align-items:center; justify-content:space-between; padding:8px 12px; margin:0; gap:6px; }
body .table-card .section-heading h2 { margin:0; font-size:15px; white-space:nowrap; }.table-card h2 small { color:#658477; font-size:11px; font-weight:400; margin-left:5px; }
body .table-card .section-heading button { font-size:12px; min-height:32px; padding:4px 8px; }
body .table-card .periodic-scroll { position:relative; overflow:hidden; padding:0; margin:0 8px; min-width:0; min-height:0; width:auto; height:100%; touch-action:none; }
body .elements-plane { position:absolute; top:0; left:0; width:1030px; height:540px; transform-origin:0 0; will-change:transform; }
body .elements-plane .periodic-grid { width:1030px; height:540px; min-width:0; grid-template-columns:repeat(18,minmax(0,1fr)); grid-template-rows:repeat(9,minmax(0,1fr)); gap:5px; }
body .elements-plane .element-cell { min-width:0; min-height:0; padding:5px 4px; transition:opacity .15s,background-color .15s; }
body .elements-plane .atomic-number { font-size:10px; }body .elements-plane .element-symbol { font-size:22px; }body .elements-plane .element-chinese-corner { font-size:12px; }
body .elements-plane .series-label { font-size:12px; }
body .elements-plane .element-cell:hover { transform:none; }
body .elements-plane .element-cell:focus-visible { outline:2px solid #b5821d; outline-offset:1px; transform:none; }
body .elements-summary { font-size:12px; line-height:1.4; color:#245f52; margin:4px 12px 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:center; }
body .elements-gesture-hint { font-size:10px; color:#738780; line-height:1.3; text-align:center; margin:2px 10px 6px; }
body .elements-info { display:flex; flex-direction:column; height:100%; min-height:0; min-width:0; overflow:auto; gap:12px; background:white; border:1px solid #d9e7e3; padding:12px; border-radius:12px; }
body .elements-info > * { flex:none; }
body .elements-info :is(.composition-card,.selection-panel,.model-footer) { position:static; display:block; padding:0; border:0; box-shadow:none; border-radius:0; margin:0; min-height:0; min-width:0; background:transparent; }
body .elements-info .section-heading { display:block; padding:0; margin:10px 0; }
body .elements-info h2 { font-size:15px; margin:6px 0; }.elements-info p { font-size:12px; line-height:1.7; }
body .elements-info .selection-kicker { margin:0; font-size:11px; }
body .elements-info .selection-copy p { margin:6px 0; font-size:12px; }
body .elements-info .composition-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
body .elements-info .composition-button { min-height:44px; padding:6px; }
body .elements-info .composition-button strong { font-size:12px; }
body .elements-info .composition-button span { font-size:10px; }
body .elements-info .scope-note,body .elements-info .model-footer p { font-size:11px; line-height:1.7; }
body .elements-info .element-chips { gap:5px; margin-top:8px; }
body .elements-info .element-chip { padding:4px 6px; font-size:11px; }
body .elements-info .element-chip span { font-size:10px; }
body .shell-dialog .elements-info { height:auto; padding:0; border:0; overflow:visible; }
body .model-area[data-immersive=true] .workspace { grid-template-columns:minmax(0,1fr); padding:0; gap:0; }
body .model-area[data-immersive=true] .workspace > .elements-info { display:none; }
body .model-area[data-immersive=true] .table-card { border:0; border-radius:0; }
body .model-area[data-immersive=true] .table-card { grid-template-rows:minmax(0,1fr); }
body .model-area[data-immersive=true] .table-card > :is(.section-heading,.elements-summary,.elements-gesture-hint) { display:none; }
@media(max-width:1100px) { body .cell-elements-model-stage .workspace { grid-template-columns:minmax(0,1fr); padding:0; gap:0; } body .workspace > .elements-info { display:none; } body .table-card .section-heading { padding:6px 10px; } }
body[data-shell-compact=true] .cell-elements-model-stage .workspace { grid-template-columns:minmax(0,1fr); padding:0; gap:0; }
body[data-shell-compact=true] .workspace > .elements-info { display:none; }
body[data-shell-compact=true] .table-card .section-heading { padding:3px 10px; }
body[data-shell-compact=true] .elements-summary { margin:2px 10px; font-size:10px; }
body[data-shell-compact=true] .elements-gesture-hint { display:none; }
