* {
	box-sizing: border-box;
}

html,body {
	margin: 0;
	min-height: 100%;
	font-family: Inter,system-ui,'Segoe UI',Arial,sans-serif;
}

button,a {
	font: inherit;
}

button {
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
}

.top-demo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 22px;
	background: #17191d;
	color: #fff;
	font-size: 12px;
}

.top-demo a {
	color: white;
	text-decoration: none;
}

.top-demo b {
	font-weight: 700;
}

.pill {
	border: 1px solid #657080;
	border-radius: 30px;
	padding: 5px 9px;
	font-size: 11px;
}

.tabpanels>[data-page] {
	display: none;
}

.tabpanels>[data-page].active {
	display: block;
}

.nav button.active {
	font-weight: 750;
}

.soft {
	opacity: .68;
}

.layout {
	display: flex;
	min-height: calc(100vh - 38px);
}

.side {
	width: 232px;
	flex: 0 0 232px;
	padding: 20px 13px;
}

.side .brand {
	font-size: 20px;
	font-weight: 900;
	padding: 12px 10px 24px;
}

.side .brand small {
	font-size: 11px;
	font-weight: 400;
	display: block;
}

.side h5 {
	font-size: 10px;
	letter-spacing: 2px;
	padding: 15px 10px;
	opacity: .6;
}

.nav {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.nav button {
	width: 100%;
	text-align: left;
	border: 0;
	border-radius: 9px;
	padding: 12px 14px;
	background: transparent;
	color: inherit;
}

.content {
	flex: 1;
	min-width: 0;
	padding: 24px 34px 60px;
}

.headline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	gap: 12px;
}

.headline h1 {
	font-size: 30px;
	letter-spacing: -1px;
	margin: 8px 0;
}

.eyebrow {
	font-size: 10px;
	letter-spacing: 2px;
	font-weight: 800;
}

.cards {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 14px;
}

.card {
	border-radius: 14px;
	padding: 22px;
}

.card h2 {
	margin: 0 0 10px;
	font-size: 20px;
}

.card h3 {
	margin: 5px 0 10px;
}

.card p {
	font-size: 13px;
	line-height: 1.6;
}

.stat {
	font-size: 27px;
	font-weight: 850;
}

.tiny {
	font-size: 11px;
}

.grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.grid3 {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 15px;
}

.row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

.stack {
	display: grid;
	gap: 12px;
}

.btn {
	border: 0;
	border-radius: 9px;
	padding: 11px 15px;
	font-size: 13px;
	font-weight: 750;
}

.muted {
	opacity: .65;
}

.list {
	display: grid;
	gap: 10px;
}

.item {
	padding: 13px 14px;
	border-radius: 10px;
	border: 1px solid;
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
}

.chip {
	font-size: 11px;
	border-radius: 30px;
	padding: 6px 10px;
	display: inline-flex;
	align-items: center;
}

.notice {
	padding: 14px 18px;
	border-radius: 11px;
	font-size: 12px;
	line-height: 1.6;
}

.chart {
	height: 165px;
	display: flex;
	align-items: end;
	gap: 13px;
	padding: 18px 5px 0;
}

.chart i {
	flex: 1;
	border-radius: 5px 5px 0 0;
	background: linear-gradient(180deg,#38bdf8,#165da7);
	min-height: 10px;
}

.linkbtn {
	display: inline-block;
	text-decoration: none;
	border-radius: 9px;
	padding: 11px 15px;
}

.fake {
	font-size: 12px;
	opacity: .65;
}

.mobiletop {
	display: none;
}

@media (max-width:850px) {
	.side {
		width: 72px;
		flex-basis: 72px;
		padding: 15px 5px;
	}
	.side .brand {
		font-size: 11px;
		padding: 9px 4px;
	}
	.side .brand small,.side h5 {
		display: none;
	}
	.nav button {
		font-size: 0;
		padding: 13px;
		text-align: center;
	}
	.nav button::first-letter {
		font-size: 20px;
	}
	.content {
		padding: 20px 12px;
	}
	.cards,.grid3 {
		grid-template-columns: 1fr 1fr;
	}
	.grid2 {
		grid-template-columns: 1fr;
	}
	.headline h1 {
		font-size: 25px;
	}
}

@media (max-width:560px) {
	.side {
		display: none;
	}
	.mobiletop {
		display: flex;
		gap: 7px;
		overflow: auto;
		padding: 8px;
		position: sticky;
		top: 0;
		z-index: 3;
	}
	.mobiletop button {
		white-space: nowrap;
		border: 0;
		border-radius: 9px;
		padding: 9px;
	}
	.cards,.grid3 {
		grid-template-columns: 1fr;
	}
	.content {
		padding: 18px 12px;
	}
	.top-demo {
		padding: 10px;
	}
	.top-demo .pill {
		display: none;
	}
}

/*OBIADY*/

body.ob {
	background: #f7f8f6;
	color: #182c35;
}

.ob .side {
	background: white;
	border-right: 1px solid #e5e9e7;
}

.ob .nav button.active,.ob .mobiletop button.active {
	background: #fff0e4;
	color: #e6661d;
}

.ob .eyebrow {
	color: #ed6d21;
}

.ob .card {
	background: #fff;
	border: 1px solid #e8e9e5;
}

.ob .item {
	border-color: #e5e5e2;
}

.ob .btn.primary {
	background: #eb711f;
	color: white;
}

.ob .chip {
	background: #fff0e1;
	color: #cc5d0c;
}

.ob .notice {
	background: #fff1e6;
	border: 1px solid #ffd1ad;
}

.ob .meal {
	border: 1px solid #f69b5a;
	background: #fff8f3;
	border-radius: 10px;
	padding: 20px;
	margin: 12px 0;
}

.ob .price {
	font-size: 23px;
	color: #e46b1c;
	font-weight: 900;
}

.ob .mobiletop {
	background: white;
}

.ob .mobiletop button {
	background: #fafafa;
}

.ob .grid2 .card {
	min-height: 275px;
}

/*STUDIO*/

body.st {
	background: #0a0f19;
	color: #eaf0ff;
}

.st .side {
	background: #090e17;
	border-right: 1px solid #283449;
}

.st .nav button.active,.st .mobiletop button.active {
	background: #a6122a;
	color: white;
}

.st .card {
	background: #1a2638;
	border: 1px solid #43516a;
}

.st .item {
	border-color: #3b4a61;
	background: #131d2d;
}

.st .btn.primary {
	background: #be1738;
	color: white;
}

.st .eyebrow {
	color: #8ebeff;
}

.st .notice {
	background: #18293a;
	border: 1px solid #36546f;
}

.st .chip {
	background: #26344c;
	color: #aed0ff;
}

.st .mobiletop {
	background: #0a0f19;
}

.st .mobiletop button {
	background: #1a2638;
	color: white;
}

.st .file {
	font-size: 38px;
	color: #89bdfc;
}

.st .brand {
	color: #fff;
}

.st .brand strong {
	color: #fa254b;
}

/*ENERGY*/

body.en {
	background: #061322;
	color: #dfedff;
}

.en .side {
	background: #071627;
	border-right: 1px solid #21415d;
}

.en .nav button.active,.en .mobiletop button.active {
	background: #103d75;
	color: #9ed2ff;
	border: 1px solid #137ae4;
}

.en .card {
	background: #091b30;
	border: 1px solid #234662;
}

.en .item {
	border-color: #234662;
}

.en .btn.primary {
	background: #086fce;
	color: white;
}

.en .eyebrow {
	color: #66b4ff;
}

.en .notice {
	background: #0a2a40;
	border: 1px solid #227093;
}

.en .chip {
	background: #103957;
	color: #83d2ff;
}

.en .mobiletop {
	background: #071627;
}

.en .mobiletop button {
	background: #112c49;
	color: #cce9ff;
}

.en .energy-photo {
	background: linear-gradient(180deg,transparent,#071626),url('/assets/energy-scene.webp') center / cover;
	min-height: 280px;
	border: 1px solid #28506c;
	border-radius: 14px;
	position: relative;
	margin-bottom: 14px;
}

.en .energy-photo span {
	position: absolute;
	bottom: 13px;
	left: 20px;
	background: #081b31d9;
	border: 1px solid #24557a;
	border-radius: 8px;
	padding: 8px 13px;
	font-size: 12px;
}

.en .green {
	color: #22d9a0;
}

.en .blue {
	color: #42b3ff;
}

.en .red {
	color: #fa6577;
}

/*SONNENFELD*/

body.so {
	background: #061920;
	color: #eed39d;
	font-family: Georgia,'Times New Roman',serif;
}

.so .side {
	background: #061c25;
	border-right: 1px solid #765e2e;
}

.so .nav button {
	border: 1px solid #71582b;
	border-radius: 3px;
	margin-bottom: 6px;
	font-size: 15px;
}

.so .nav button.active,.so .mobiletop button.active {
	background: #183d46;
	color: #ffdc8b;
}

.so .card {
	background: #09252e;
	border: 1px solid #886c37;
	border-radius: 4px;
}

.so .item {
	border-color: #775f35;
}

.so .btn.primary {
	background: #b68a36;
	color: #101f24;
}

.so .eyebrow {
	color: #e9c478;
}

.so .notice {
	background: #132f36;
	border: 1px solid #99713b;
}

.so .chip {
	background: #24404b;
	color: #ecc780;
}

.so .mobiletop {
	background: #041820;
}

.so .mobiletop button {
	background: #122d34;
	color: #efce92;
}

.so .sea {
	position: relative;
	min-height: 410px;
	background: linear-gradient(0deg,#06232aa3,#06232a1a),url('/assets/sonnenfeld-scene.webp') center / cover;
	border: 2px solid #b28a45;
}

.so .sea .legend {
	position: absolute;
	left: 18px;
	top: 18px;
	background: #06202ccb;
	border: 1px solid #a88342;
	padding: 12px;
}

.so .sea .bottom {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	background: #071c27e8;
	padding: 14px 28px;
	border: 1px solid #b28a45;
	white-space: nowrap;
	font-size: 14px;
}

.so .heading {
	font-size: 28px;
	color: #efce8c;
}

/* Mobile demo navigation: horizontal compact tabs, never stacked giant initials */
@media (max-width:560px) {
 .mobiletop.nav {
   display:flex;
   flex-direction:row;
   align-items:center;
   flex-wrap:nowrap;
   width:100%;
   max-width:100%;
   min-height:0;
   gap:7px;
   padding:9px 12px;
   overflow-x:auto;
   overflow-y:hidden;
   overscroll-behavior-x:contain;
   -webkit-overflow-scrolling:touch;
   scrollbar-width:thin;
   position:sticky;
   top:0;
   z-index:4;
 }
 .mobiletop.nav button {
   flex:0 0 auto;
   width:auto;
   min-width:0;
   font-size:12px;
   line-height:1.3;
   white-space:nowrap;
   padding:10px 13px;
   text-align:center;
 }
 .mobiletop.nav button::first-letter {font-size:inherit}
 .layout {min-height:0}
}

/* All AdrWorks demos: compact one-line mobile view selector replaces screen-covering shortcuts. */
.aw-demo-mobile-switch{display:none}
@media(max-width:560px){
 .mobiletop.nav{display:none!important}
 .aw-demo-mobile-switch{
   display:flex!important;
   position:sticky;
   top:0;
   z-index:8;
   align-items:center;
   justify-content:space-between;
   gap:12px;
   min-height:56px;
   padding:9px 12px;
   background:#151c27;
   color:#eaf0f8;
   border-bottom:1px solid #465268;
   box-shadow:0 4px 15px rgba(0,0,0,.16);
 }
 .aw-demo-mobile-switch label{
   flex:0 0 auto;
   font-size:12px;
   font-weight:700;
   color:#d8e0eb;
 }
 .aw-demo-mobile-switch select{
   display:block;
   flex:1 1 auto;
   width:0;
   max-width:220px;
   min-width:0;
   height:37px;
   border:1px solid #64748b;
   border-radius:7px;
   background:#263344;
   color:#fff;
   padding:7px 27px 7px 10px;
   font:600 12px Inter,system-ui,sans-serif;
 }
 .ob .aw-demo-mobile-switch{background:#fff9f3;color:#27313b;border-color:#e9d1c0}
 .ob .aw-demo-mobile-switch label{color:#263442}
 .ob .aw-demo-mobile-switch select{background:#fff;color:#263442;border-color:#d0a98d}
 .so .aw-demo-mobile-switch{background:#092b34;border-color:#876d39}
 .so .aw-demo-mobile-switch select{background:#123a45;border-color:#a18343}
}

/* Embedded demos: navigation stays compact regardless of iframe viewport reporting. */
html.adrworks-embedded body{padding-top:0!important}
html.adrworks-embedded .side{display:none!important}
html.adrworks-embedded .mobiletop.nav{display:none!important}
html.adrworks-embedded .layout{display:block;width:100%;min-height:0}
html.adrworks-embedded .content{width:100%;padding:20px clamp(12px,3vw,34px) 40px}
html.adrworks-embedded .aw-demo-mobile-switch{
 display:flex!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:space-between!important;
 position:sticky;
 top:0;
 width:100%;
 min-height:52px;
 gap:12px;
 z-index:30;
 padding:8px 14px;
 background:#151c27;
 color:#eaf0f8;
 border-bottom:1px solid #465268;
 box-shadow:0 4px 15px rgba(0,0,0,.16);
}
html.adrworks-embedded .aw-demo-mobile-switch label{
 font-size:12px;
 font-weight:700;
 color:inherit;
 white-space:nowrap;
}
html.adrworks-embedded .aw-demo-mobile-switch select{
 display:block;
 flex:1 1 180px;
 width:auto;
 max-width:280px;
 min-width:0;
 height:37px;
 padding:7px 10px;
 border:1px solid #64748b;
 border-radius:7px;
 background:#263344;
 color:#fff;
 font:600 12px Inter,system-ui,sans-serif;
}
html.adrworks-embedded body.ob .aw-demo-mobile-switch{background:#fff9f3;color:#263442;border-color:#e9d1c0}
html.adrworks-embedded body.ob .aw-demo-mobile-switch select{background:white;color:#263442;border-color:#d0a98d}
html.adrworks-embedded body.so .aw-demo-mobile-switch{background:#092b34;border-color:#876d39;color:#f5e1b8}
html.adrworks-embedded body.so .aw-demo-mobile-switch select{background:#123a45;border-color:#a18343}
@media(max-width:560px){
 html.adrworks-embedded .content{padding:16px 12px 30px}
 html.adrworks-embedded .aw-demo-mobile-switch{min-height:50px;padding:7px 10px;gap:8px}
 html.adrworks-embedded .aw-demo-mobile-switch label{font-size:11px}
 html.adrworks-embedded .aw-demo-mobile-switch select{max-width:none;font-size:12px}
}
