/* Automated Control Systems — autocontrol-sys.com */
:root {
  --ink: #111318;
  --ink-2: #2b2f36;
  --muted: #5d6470;
  --line: #e6e2ec;
  --bg: #ffffff;
  --soft: #f6f4f9;
  --purple: #662d91;
  --purple-2: #8346b5;
  --purple-soft: #efe6f7;
  --dark: #0e1014;
  --dark-2: #171a21;
  --green: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 19, 24, .08);
  --wrap: 1180px;
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
html[lang="en"] { --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16.5px; }
html[lang="en"] body { line-height: 1.65; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-2); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.2em; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.4em; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-2); color: #fff; }
.btn-wa { background: var(--green); color: #06301a; }
.btn-wa:hover { background: #1fbf5b; color: #06301a; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn.sm { padding: .55em 1em; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand img { width: 54px; height: 54px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.02rem; }
.brand-text small { font-size: .74rem; color: var(--purple); font-weight: 600; letter-spacing: .02em; font-family: "Inter", sans-serif; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .97rem; }
.nav a:hover { background: var(--soft); color: var(--purple); }
.nav a[aria-current="page"] { color: var(--purple); background: var(--purple-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { font-weight: 700; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: .9rem; }
.lang:hover { border-color: var(--purple); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .nav a { padding: 12px 14px; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn-wa span { display: none; }
}
@media (max-width: 480px) {
  .brand { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .brand-text { min-width: 0; }
  .brand-text strong { font-size: .92rem; }
  [lang="en"] .brand-text strong { font-size: .86rem; }
  .brand-text small { font-size: .68rem; }
  .brand img { width: 46px; height: 46px; flex: none; }
  .nav-actions .btn-wa { display: none; }
}

/* Hero */
.hero { position: relative; background: var(--dark); color: #e9e7ee; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(700px 400px at 85% 10%, rgba(131,70,181,.45), transparent 60%),
  radial-gradient(500px 300px at 10% 100%, rgba(102,45,145,.35), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image:
  linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #c79bf0; }
.hero p.lead { font-size: 1.15rem; color: #c9c5d3; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: #c79bf0; background: rgba(131,70,181,.16); border: 1px solid rgba(199,155,240,.25); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-art figcaption { text-align: center; font-size: .85rem; color: #9d98aa; margin-top: 10px; }
.page-hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; } }

.crumbs { font-size: .88rem; color: #9d98aa; margin-bottom: 12px; }
.crumbs a { color: #c9c5d3; }
.crumbs span { margin: 0 6px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.stat { background: rgba(14,16,20,.75); padding: 18px 16px; }
.stat b { display: block; font-size: 1.8rem; color: #fff; font-family: "Inter", sans-serif; line-height: 1.1; }
.stat span { font-size: .88rem; color: #aaa5b6; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark-2); color: #d9d6e0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; color: var(--purple); font-weight: 700; font-size: .9rem; letter-spacing: .04em; margin-bottom: 8px; }
.section-dark .kicker { color: #c79bf0; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.section-dark .section-head p { color: #aaa5b6; }
@media (max-width: 640px) { section { padding: 60px 0; } }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #d9cde6; }
.card h3 { margin-top: 4px; }
.card p { color: var(--muted); margin-bottom: 0; }
.icon { width: 50px; height: 50px; border-radius: 12px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .card p { color: #aaa5b6; }
.section-dark .icon { background: rgba(199,155,240,.14); color: #c79bf0; }

/* PLC product cards */
.plc-card { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
.plc-card .plc-art { background: linear-gradient(160deg, #1b1e25, #2a2340); padding: 28px 34px; }
.plc-card .plc-body { padding: 26px; }
.plc-card ul { margin: 12px 0 18px; color: var(--ink-2); }
.plc-card li { margin-bottom: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tag { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-family: "Inter", var(--font); }
.section-dark .tag { background: rgba(199,155,240,.14); color: #d6b6f5; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.chip svg { width: 22px; height: 22px; color: var(--purple); }
.chip.hl { border-color: var(--purple); background: var(--purple-soft); }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 54px; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 18px; inset-inline-start: 26px; font-family: "Inter", sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--purple); }

/* Projects */
.project { display: flex; flex-direction: column; }
.project .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.project .meta b { color: var(--purple); font-weight: 600; }
.project ul { color: var(--muted); margin: 8px 0 0; }
.project .tag-row { margin-top: auto; padding-top: 16px; }
.project.featured { border: 2px solid var(--purple); background: linear-gradient(180deg, #fbf8fe, #fff); }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; color: #fff; background: var(--purple); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start; }
.big-num { font-family: "Inter", sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--purple); line-height: 1; }
.note { font-size: .9rem; color: var(--muted); border-inline-start: 3px solid var(--purple); padding: 8px 14px; background: var(--soft); border-radius: 0 10px 10px 0; }
html[dir="rtl"] .note { border-radius: 10px 0 0 10px; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink-2); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--purple); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Team */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; text-align: center; position: sticky; top: 100px; }
.avatar { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--purple), #2a1640); color: #fff; display: grid; place-items: center; font-size: 3rem; font-weight: 700; border: 5px solid var(--purple-soft); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .role { color: var(--purple); font-weight: 600; margin-bottom: 14px; }
.profile-card .links { display: grid; gap: 8px; margin-top: 18px; }
.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px; padding-inline-start: 26px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); }
.timeline h3 { margin-bottom: 2px; font-size: 1.08rem; }
.timeline .when { font-size: .88rem; color: var(--purple); font-weight: 600; }
.timeline p { color: var(--muted); margin: 6px 0 0; }
.skills { display: grid; gap: 10px; }
.skills div { background: var(--soft); border-radius: 12px; padding: 14px 16px; }
.skills b { display: block; color: var(--ink); }
.skills span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } .profile-card { position: static; } }

/* Contact */
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--ink); }
.contact-item:hover { border-color: var(--purple); color: var(--ink); }
.contact-item .icon { margin: 0; flex: none; }
.contact-item small { display: block; color: var(--muted); }
.contact-item b { font-weight: 600; word-break: break-word; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); background: var(--soft); }
form.wa-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.wa-form label { font-weight: 600; font-size: .95rem; display: grid; gap: 6px; }
.wa-form input, .wa-form select, .wa-form textarea { font: inherit; padding: 12px 14px; border: 1px solid #d6d1de; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.wa-form textarea { min-height: 120px; resize: vertical; }
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--purple), #3d1a5a); color: #fff; border-radius: 22px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #e3d6f0; margin: 0; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); }
@media (max-width: 640px) { .cta-band { padding: 30px 22px; } }

/* Footer */
.site-footer { background: var(--dark); color: #aaa5b6; padding: 60px 0 0; font-size: .95rem; }
.site-footer a { color: #d9d6e0; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.foot-logo { width: 84px; height: 84px; background: #fff; border-radius: 16px; padding: 6px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* WhatsApp floating */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 150; width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::after { animation: none; }
}
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 30px; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--purple-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23662d91' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.section-dark .check-list li::before { background-color: rgba(199,155,240,.18); }

/* ---------- photos */
.page-hero.has-bg::before { background: linear-gradient(90deg, rgba(14,10,22,.94) 0%, rgba(14,10,22,.78) 55%, rgba(40,18,62,.55) 100%), var(--bg) center/cover no-repeat; }
[dir="rtl"] .page-hero.has-bg::before { background: linear-gradient(270deg, rgba(14,10,22,.94) 0%, rgba(14,10,22,.78) 55%, rgba(40,18,62,.55) 100%), var(--bg) center/cover no-repeat; }
.page-hero.has-bg::after { opacity: .08; }
.page-hero.has-bg .wrap { padding-top: 80px; padding-bottom: 80px; }
.hero-art img { width: 100%; height: auto; border-radius: 14px; background: #fff; }
.plc-card .plc-art { padding: 0; background: #fff; }
.plc-card .plc-art img { width: 100%; height: 260px; object-fit: cover; display: block; }
.project-img { margin: -26px -26px 18px; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; aspect-ratio: 16/9; background: var(--dark); }
.project-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.project:hover .project-img img { transform: scale(1.04); }
.project.featured .project-img { margin: -26px -26px 18px; }
.photo { display: block; width: 100%; height: auto; border-radius: 16px; margin-top: 18px; border: 1px solid rgba(255,255,255,.1); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- GPS / telemetry page */
.tele-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.tele-status > div { background: #fff; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.tele-status span { font-size: .85rem; color: var(--muted); }
.tele-status b { font-weight: 600; align-self: flex-start; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; padding: 3px 12px; border-radius: 999px; background: var(--soft); }
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-badge.ok { color: #138a4b; background: #e5f6ec; }
.status-badge.bad { color: #c0392b; background: #fbe9e7; }
.status-badge.wait { color: #9a6a00; background: #fff4d6; }
.status-badge.ok::before { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.reading { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.reading .icon { grid-row: span 2; margin: 0; width: 56px; height: 56px; }
.reading > span { color: var(--muted); font-weight: 600; }
.reading b { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; font-family: "Inter", sans-serif; direction: ltr; text-align: start; }
html[dir="rtl"] .reading b { text-align: right; }
.reading b small { font-size: .45em; color: var(--muted); margin-inline-start: 4px; }
.reading.temp .icon { background: #fdece6; color: #e4572e; }
.reading.temp b { color: #e4572e; }
.reading.hum b { color: var(--purple); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.chart-head h2 { font-size: 1.25rem; margin: 0; }
.range-group { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.range-btn { background: #fff; border: 0; border-inline-end: 1px solid var(--line); padding: 7px 12px; font: inherit; font-size: .88rem; cursor: pointer; color: var(--ink); }
.range-btn:last-child { border-inline-end: 0; }
.range-btn.active { background: var(--purple); color: #fff; }
.chart-box { position: relative; height: 360px; }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.chart-foot .btn { margin-inline-start: 6px; }
.btn-ghost-dark { border-color: var(--line); color: var(--muted); }
.btn-ghost-dark:hover { border-color: #c0392b; color: #c0392b; }
.gps-soon { border-style: dashed; }
.gps-soon .badge { vertical-align: middle; margin: 0 6px; }
.cfg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; width: 100%; }
.cfg-list li { display: flex; flex-direction: column; gap: 2px; }
.cfg-list span { font-size: .8rem; color: var(--muted); }
.cfg-list code { font-size: .85rem; background: var(--soft); padding: 4px 8px; border-radius: 6px; word-break: break-all; }
@media (max-width: 700px) { .tele-status { grid-template-columns: 1fr; } .chart-box { height: 280px; } }
.gps-map { height: 420px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.gps-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.gps-facts > div { background: #fff; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.gps-facts span { font-size: .8rem; color: var(--muted); }
.gps-facts b { font-family: "Inter", sans-serif; font-size: 1.05rem; direction: ltr; unicode-bidi: embed; }
html[dir="rtl"] .gps-facts b { text-align: right; }
.gps-facts small { color: var(--muted); font-weight: 400; }
@media (max-width: 700px) { .gps-map { height: 320px; } .gps-facts { grid-template-columns: repeat(2, 1fr); } }
