* {
  box-sizing: border-box;
}

:root {
  --ink: #111;
  --dark: rgba(7, 10, 11, 0.88);
  --gold: #d99a21;
  --green: #0c9f55;
  --blue: #2184ff;
  --shadow: 0 14px 32px rgba(33, 21, 0, 0.24);
  --radius: 18px;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--ink);
}

body {
  background:
    linear-gradient(rgba(255, 248, 232, 0.88), rgba(255, 248, 232, 0.88)),
    url("./assets/background/leather-bg.png");
  background-size: cover;
  background-position: center;
}

.dash {
  width: min(1600px, calc(100vw - 72px));
  height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr 0.95fr 1.05fr;
  grid-template-rows: 92px 1fr 1fr;
  gap: 16px 60px;
}

.dash-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 26px;
  min-height: 0;
}

.brand-stamp {
  font-family: "Courier New", monospace;
  font-size: clamp(3.6rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.13em;
  color: rgba(95, 61, 4, 0.34);
  text-shadow:
    1px 1px 1px rgba(255, 205, 80, 0.5),
    -2px -2px 3px rgba(63, 37, 0, 0.45);
  user-select: none;
}

.header-widget {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid rgba(0, 0, 0, 0.22);
}

.header-widget strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.header-widget small {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.weather-icon,
.header-icon {
  font-size: 2.35rem;
  line-height: 1;
}

.countdown {
  display: block;
  text-align: center;
  min-width: 260px;
}

.small-label {
  font-weight: 800;
  margin-bottom: 4px;
}

.countdown-time {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.countdown-time strong {
  font-size: 1.75rem;
}

.countdown-time small {
  font-size: 0.65rem;
}

.panel,
.system,
.apps {
  min-height: 0;
  border-radius: var(--radius);
}

.panel {
  padding: 24px;
}

.panel-dark {
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.mail,
.search,
.projects,
.calendar,
.system,
.apps {
  height: 100%;
  overflow: hidden;
}

.search,
.projects,
.system,
.apps {
  padding: 24px;
}

.panel-title,
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.panel-title img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.panel-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.panel-title a {
  margin-left: auto;
  color: inherit;
  text-decoration: none;
  font-size: 1.25rem;
}

.mail-list {
  display: grid;
}

.mail-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.unread-dot {
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-radius: 50%;
  background: #1685ff;
}

.mail-item strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.mail-item span,
.mail-time {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}

.stamped {
  color: rgba(40, 29, 5, 0.62);
  text-shadow:
    1px 1px 1px rgba(255, 217, 103, 0.55),
    -1px -1px 2px rgba(80, 52, 2, 0.36);
}

.search-box {
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: rgba(255,255,255,0.94);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(65, 42, 0, 0.18);
}

.search-box span {
  font-size: 1.75rem;
}

.search-box input {
  border: 0;
  outline: none;
  background: none;
  font-size: 1rem;
}

.search-box kbd {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.08);
}

.suggestions {
  margin-top: 22px;
  display: grid;
  gap: 13px;
}

.suggestion {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
}

.suggestion img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.suggestion strong {
  display: block;
  font-size: 0.96rem;
}

.suggestion span {
  font-size: 0.82rem;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-card {
  position: relative;
  width: 92%;
  aspect-ratio: 4 / 1;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.text-action {
  margin-top: 14px;
  border: 0;
  background: none;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.82);
  text-align: center;
  font-size: 0.82rem;
}

.week-grid strong {
  display: block;
  font-size: 1.25rem;
  margin-top: 2px;
}

.week-grid .today strong {
  width: 36px;
  height: 36px;
  margin: 2px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
}

.calendar-board {
  height: 150px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.11);
  border-bottom: 1px solid rgba(255,255,255,0.11);
  background:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 100% 50px, 14.28% 100%;
}

.event {
  position: absolute;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 0.76rem;
  color: #fff;
}

.yellow { background: rgba(180, 121, 0, 0.8); left: 2%; top: 14px; }
.blue { background: rgba(0, 112, 190, 0.75); left: 25%; top: 52px; }
.green { background: rgba(20, 125, 59, 0.76); left: 38%; top: 72px; }
.orange { background: rgba(190, 88, 0, 0.75); left: 64%; top: 98px; }

.next-up {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
  font-size: 0.9rem;
}

.next-up span {
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 900;
}

.next-up em {
  color: var(--gold);
  font-style: normal;
}

.system-list {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.system-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.system-row span:last-child {
  color: #047a3d;
}

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

.app-tile {
  height: 88px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 18px;
  box-shadow: none;
}

.app-tile img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.chatgpt-tile {
  grid-column: 1 / -1;
  height: 88px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 22px;
  box-shadow: none;
}
.chatgpt-tile img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  html,
  body {
    overflow: auto;
  }

  .dash {
    width: calc(100vw - 28px);
    height: auto;
    grid-template-columns: 1fr;
  }

  .dash-header {
    height: auto;
    grid-template-columns: 1fr;
  }

  .header-widget {
    padding-left: 0;
    border-left: 0;
  }
}
