:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-accent: radial-gradient(circle at top, rgba(255, 101, 0, 0.2), transparent 45%);
  --panel: rgba(11, 25, 44, 0.9);
  --panel-border: rgba(30, 62, 98, 0.9);
  --text: #ff6500;
  --muted: rgba(255, 101, 0, 0.72);
  --accent: #ff6500;
  --accent-strong: #1e3e62;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-accent), linear-gradient(180deg, var(--bg) 0%, #0b192c 100%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.fab-root {
  position: relative;
  z-index: 30;
}

.label,
.search-hint,
.date {
  color: var(--muted);
}

.label {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-header h2,
.clock {
  margin: 0;
}

.dashboard {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(260px, 320px) 1fr;
  grid-template-areas:
    "clock search"
    "links links";
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.clock-panel {
  grid-area: clock;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.clock {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  max-width: 100%;
  margin-top: 1rem;
  text-align: center;
  white-space: nowrap;
}

.date {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  text-align: center;
}

.search-panel {
  grid-area: search;
}

.links-panel {
  grid-area: links;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.panel-header h2 {
  font-size: 1.4rem;
}

.engine-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.engine-pill {
  border: 1px solid rgba(30, 62, 98, 0.95);
  background: rgba(30, 62, 98, 0.3);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  cursor: pointer;
  transition: 150ms ease;
}

.engine-pill:hover,
.engine-pill:focus-visible,
.engine-pill.is-active {
  color: var(--text);
  background: rgba(255, 101, 0, 0.18);
  border-color: var(--accent);
  outline: none;
}

.search-form {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(30, 62, 98, 0.95);
  background: rgba(0, 0, 0, 0.78);
  color: var(--text);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.search-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search-form button {
  border: none;
  border-radius: 16px;
  padding: 0 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #000000;
  font-weight: 700;
  cursor: pointer;
}

.search-hint {
  margin: 0.85rem 0 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.links-status {
  margin: 0;
  color: var(--muted);
}

.link-group {
  padding: 1.1rem;
  border-radius: 18px;
  background: rgba(30, 62, 98, 0.2);
  border: 1px solid rgba(30, 62, 98, 0.7);
}

.link-group h3 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.link-group a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem 0;
  transition: color 120ms ease, transform 120ms ease, background-color 120ms ease;
  border-radius: 14px;
}

.link-group a:hover,
.link-group a:focus-visible {
  color: var(--text);
  transform: translateX(2px);
  background: rgba(255, 101, 0, 0.12);
  outline: none;
}

.link-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  flex: 0 0 auto;
}

.link-text {
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fab-menu {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fab-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.fab-button {
  position: fixed;
  left: 0;
  top: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(30, 62, 98, 0.95);
  background: linear-gradient(180deg, rgba(11, 25, 44, 0.96) 0%, rgba(30, 62, 98, 0.92) 100%);
  color: var(--text);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  cursor: pointer;
  pointer-events: auto;
}

.fab-button:hover,
.fab-button:focus-visible,
.fab-button.is-active {
  background: linear-gradient(180deg, rgba(255, 101, 0, 0.94) 0%, rgba(30, 62, 98, 0.96) 100%);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.06);
  outline: none;
}

.fab-button::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(11, 25, 44, 0.96);
  border: 1px solid rgba(30, 62, 98, 0.95);
  color: var(--text);
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) translateX(0.35rem);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.fab-button:hover::after,
.fab-button:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.fab-button--root {
  left: auto;
  top: auto;
  right: 2rem;
  bottom: 2rem;
  width: 4.25rem;
  height: 4.25rem;
  border: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #000000;
  transform: none;
}

.fab-button--root:hover,
.fab-button--root:focus-visible,
.fab-button--root.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  transform: scale(1.06);
}

.fab-button--root::after {
  right: calc(100% + 1rem);
}

.fab-button__icon {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
}

.fab-button__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fab-button--root .fab-button__icon {
  width: 1.7rem;
  height: 1.7rem;
}

kbd {
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid rgba(30, 62, 98, 0.95);
  background: rgba(30, 62, 98, 0.3);
  padding: 0.08rem 0.42rem;
}

@media (max-width: 840px) {
  .page-shell {
    padding: 2rem 0 3rem;
  }

  .dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "clock"
      "search"
      "links";
  }

  .panel-header,
  .search-form {
    flex-direction: column;
  }

  .search-form button {
    min-height: 3.2rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .fab-button--root {
    right: 1.25rem;
    bottom: 1.25rem;
  }
}
