* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --ink: #fff7df;
  --muted: rgba(255, 247, 223, 0.72);
  --gold: #d9b15f;
  --gold-2: #f0d890;
  --teal: #0c7478;
  --deep: #032d3a;
  --panel: rgba(4, 38, 47, 0.82);
  --panel-strong: rgba(3, 31, 39, 0.94);
  --line: rgba(217, 177, 95, 0.34);
  --white-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.36);
  --agent-accent: #d9b15f;
  --agent-glow: rgba(217, 177, 95, 0.22);
  --display-serif: Georgia, "Times New Roman", serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 8%, rgba(52, 191, 181, 0.24), transparent 26%),
    linear-gradient(135deg, #042632 0%, #0a6570 52%, #032b38 100%);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.app-shell[data-active-agent="malkia"] {
  --agent-accent: #c49af2;
  --agent-glow: rgba(196, 154, 242, 0.22);
}

.app-shell[data-active-agent="kwamu"] {
  --agent-accent: #8fc3ff;
  --agent-glow: rgba(143, 195, 255, 0.22);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.app-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(3, 28, 37, 0.9);
  backdrop-filter: blur(18px);
}

.brand-lockup,
.nav-link,
.mobile-menu,
.gold-button,
.ghost-button,
.reply-toggle button {
  border: 1px solid transparent;
  border-radius: 12px;
  color: inherit;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(135deg, #e8cc7a, #91692e);
  color: #113139;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.brand-lockup strong,
.nav-brand {
  display: block;
  color: var(--gold-2);
  font-family: var(--display-serif);
  font-size: 24px;
  font-weight: 500;
}

.brand-lockup small,
.nav-footer span,
.eyebrow,
.time-card small,
.villa-pin span,
.overview-card span,
.agent-welcome p,
.voice-panel p,
.agent-tools p,
.activity-list p,
.section-heading p,
.window-list p,
.status-card small {
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-link {
  width: 100%;
  padding: 13px 14px;
  background: transparent;
  text-align: left;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: var(--line);
  background: rgba(217, 177, 95, 0.13);
}

.nav-footer {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--white-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.nav-footer strong {
  display: block;
  margin-top: 4px;
  color: var(--gold-2);
  font-size: 13px;
}

.app-main {
  min-width: 0;
  padding: 24px;
}

.app-shell[data-view="dashboard"] {
  grid-template-columns: 1fr;
}

.app-shell[data-view="dashboard"] .app-nav,
.app-shell[data-view="dashboard"] .topbar {
  display: none;
}

.app-shell[data-view="dashboard"] .app-main {
  padding: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  margin-bottom: 20px;
}

.topbar h1,
.section-heading h2,
.agent-header h2,
.agent-welcome h3,
.pin-gate h2 {
  margin: 2px 0 0;
  color: var(--gold-2);
  font-family: var(--display-serif);
  font-weight: 500;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(28px, 4vw, 48px);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.time-card {
  min-width: 230px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: right;
}

.time-card span,
.time-card small {
  display: block;
  font-size: 13px;
}

.time-card strong {
  display: block;
  color: var(--gold-2);
  font-size: 28px;
}

.mobile-menu {
  display: none;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.dashboard-view {
  position: relative;
  width: 100%;
  min-height: 100vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 48% 58%, rgba(255, 232, 153, 0.24), transparent 8%),
    radial-gradient(circle at 52% 56%, rgba(44, 151, 132, 0.55), transparent 28%),
    radial-gradient(circle at 46% 68%, rgba(2, 35, 43, 0.65), transparent 31%),
    linear-gradient(155deg, #042832 0%, #0b777c 48%, #04313d 100%);
}

.island-reference {
  position: absolute;
  top: 18%;
  left: 22%;
  width: 58%;
  height: 78%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.72;
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.48);
  transform-origin: center center;
  mask-image: radial-gradient(ellipse at center, #000 0 47%, rgba(0, 0, 0, 0.7) 58%, transparent 72%);
  pointer-events: none;
}

.dashboard-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(2, 22, 28, 0.42), transparent 23%, transparent 76%, rgba(2, 22, 28, 0.36)),
    linear-gradient(180deg, rgba(3, 48, 57, 0.82), rgba(3, 48, 57, 0.56) 22%, transparent 42%, rgba(2, 28, 35, 0.38));
  pointer-events: none;
}

.dashboard-view.is-locked::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(1, 20, 27, 0.56);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.pin-gate,
.dash-title,
.dash-menu,
.dash-clock,
.dash-agent-card,
.dash-overview {
  position: absolute;
}

.dash-title,
.dash-menu,
.dash-clock,
.dash-agent-card,
.dash-overview {
  z-index: 1;
}

.dash-title {
  top: 4%;
  left: 3.6%;
  right: 24%;
  display: grid;
  grid-template-columns: minmax(230px, 23%) minmax(0, 1fr);
  column-gap: 8%;
  align-items: start;
  color: var(--gold-2);
  text-transform: uppercase;
}

.dash-title::before {
  content: "";
  position: absolute;
  inset: -34px -62px -50px -28px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 45, 52, 0.98), rgba(3, 45, 52, 0.74) 62%, transparent);
  filter: blur(12px);
}

.dash-title p,
.dash-title span,
.dash-title h1,
.dash-title strong {
  margin: 0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

.dash-title p {
  grid-column: 1;
  font-family: var(--display-serif);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.1em;
  transform: scaleY(0.88);
}

.dash-title span {
  grid-column: 1;
  color: rgba(240, 216, 144, 0.78);
  font-size: clamp(10px, 0.95vw, 14px);
  font-weight: 800;
  letter-spacing: 0.34em;
}

.dash-title h1 {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--display-serif);
  font-size: clamp(70px, 9.2vw, 132px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0.16em;
}

.dash-title strong {
  grid-column: 2;
  color: rgba(240, 216, 144, 0.82);
  font-family: var(--display-serif);
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: 0.45em;
  text-align: center;
}

.dash-menu,
.dash-clock,
.dash-agent-card,
.dash-overview {
  border: 1px solid rgba(240, 216, 144, 0.5);
  background: rgba(3, 52, 61, 0.78);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.dash-menu {
  left: 2.4%;
  top: 31%;
  width: min(210px, 16%);
  min-width: 168px;
  padding: 28px 20px;
  border-radius: 24px;
}

.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--gold-2);
  font-family: var(--display-serif);
  font-size: clamp(15px, 1.25vw, 19px);
  text-align: left;
}

.dash-menu-item:hover,
.dash-menu-item:focus-visible,
.dash-menu-item.is-active {
  border-color: rgba(240, 216, 144, 0.42);
  background: rgba(240, 216, 144, 0.1);
}

.dash-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--gold-2);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
}

.dash-clock {
  top: 5.5%;
  right: 3.8%;
  width: min(260px, 22%);
  min-width: 220px;
  padding: 22px 26px;
  border-radius: 24px;
  text-align: right;
}

.dash-clock span,
.dash-clock small {
  display: block;
  color: rgba(255, 247, 223, 0.88);
  font-size: 14px;
}

.dash-clock strong {
  display: block;
  margin: 8px 0 2px;
  color: var(--gold-2);
  font-size: clamp(31px, 3.8vw, 48px);
  line-height: 1;
}

.dash-agent-card {
  min-width: 205px;
  padding: 18px 24px 16px;
  border-radius: 14px;
  color: var(--gold-2);
  text-align: left;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.dash-agent-card:hover,
.dash-agent-card:focus-visible {
  border-color: rgba(255, 234, 157, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 234, 157, 0.22), 0 24px 68px rgba(0, 0, 0, 0.36);
  transform: translateY(-2px);
}

.dash-agent-card strong,
.dash-agent-card span {
  display: block;
}

.dash-agent-card strong {
  font-family: var(--display-serif);
  font-size: clamp(32px, 3.3vw, 50px);
  line-height: 0.92;
  letter-spacing: 0.08em;
}

.dash-agent-card span {
  margin-top: 8px;
  color: rgba(255, 247, 223, 0.88);
  font-family: var(--display-serif);
  font-size: clamp(15px, 1.2vw, 20px);
  text-transform: none;
}

.dash-agent-card.gancino {
  left: 20.5%;
  top: 33.2%;
  background: rgba(45, 28, 15, 0.86);
}

.dash-agent-card.malkia {
  right: 21%;
  top: 33.2%;
  background: rgba(97, 25, 82, 0.88);
}

.dash-agent-card.kwamu {
  left: 58.5%;
  top: 74%;
  background: rgba(6, 57, 92, 0.88);
}

.dash-overview {
  right: 2.7%;
  top: 34.5%;
  width: min(260px, 17%);
  min-width: 215px;
  padding: 28px 26px;
  border-radius: 22px;
  color: var(--gold-2);
}

.dash-overview h2 {
  margin: 0 0 24px;
  font-family: var(--display-serif);
  font-size: clamp(18px, 1.7vw, 24px);
  text-transform: uppercase;
}

.dash-overview p {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.dash-overview strong {
  font-size: clamp(25px, 2.3vw, 34px);
}

.dash-overview span {
  color: rgba(255, 247, 223, 0.86);
  font-size: clamp(14px, 1.05vw, 17px);
}

.dashboard-view.is-locked .dash-title,
.dashboard-view.is-locked .dash-menu,
.dashboard-view.is-locked .dash-clock,
.dashboard-view.is-locked .dash-agent-card,
.dashboard-view.is-locked .dash-overview,
.dashboard-view.is-locked .island-reference {
  pointer-events: none;
}

.pin-gate {
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(390px, calc(100% - 48px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(3, 39, 48, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.pin-gate p,
.pin-gate h2 {
  margin: 0;
}

.pin-gate h2 {
  margin-top: 7px;
  font-size: 34px;
}

.pin-form {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 18px;
}

.pin-form input {
  width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--gold-2);
  border-radius: 14px;
  background: rgba(255, 247, 223, 0.1);
  color: var(--gold-2);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-align: center;
  -webkit-text-security: disc;
}

.pin-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}

.pin-status.is-error {
  color: #ffd5cd;
}

.gold-button,
.ghost-button,
.mobile-menu {
  padding: 12px 16px;
}

.gold-button {
  border-color: rgba(240, 216, 144, 0.58);
  background: linear-gradient(135deg, #eed27d, #9c7130);
  color: #102d32;
  font-weight: 800;
}

.ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.dashboard-view:not(.is-locked) .pin-gate {
  display: none;
}

.villas-view,
.page-view {
  min-height: calc(100vh - 130px);
}

.villa-grid,
.status-grid,
.clock-grid,
.calendar-grid {
  display: grid;
  gap: 16px;
}

.villa-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.villa-card,
.status-card,
.clock-tile,
.window-list article,
.day-note,
.agent-sidebar,
.agent-chat,
.agent-tools,
.page-view {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.villa-card {
  min-height: 290px;
  padding: 22px;
  color: var(--ink);
  text-align: left;
}

.villa-card {
  position: relative;
  overflow: hidden;
}

.villa-card::after,
.agent-chat::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 20%;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 216, 144, 0.15), transparent 68%);
  pointer-events: none;
}

.villa-mini-emblem,
.villa-emblem {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(240, 216, 144, 0.96), rgba(145, 105, 46, 0.96));
  color: #102d32;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.villa-mini-emblem {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  font-size: 22px;
}

.villa-emblem {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  font-size: 28px;
}

.villa-card h2,
.status-card h3,
.clock-tile h3 {
  margin: 0;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.villa-card p {
  color: var(--muted);
}

.villa-card .tone-line {
  min-height: 0;
  margin: -6px 0 14px;
  color: var(--gold-2);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.villa-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.agent-view.is-active {
  display: grid;
  grid-template-columns: 250px minmax(430px, 1fr) 280px;
  gap: 16px;
  min-height: calc(100vh - 130px);
}

.agent-sidebar,
.agent-chat,
.agent-tools,
.page-view {
  padding: 18px;
}

.agent-sidebar,
.agent-tools {
  align-self: stretch;
}

.new-project {
  width: 100%;
  margin-bottom: 18px;
}

.agent-sidebar h2,
.agent-sidebar h3,
.agent-tools h3 {
  margin-bottom: 10px;
  color: var(--gold-2);
}

.sidebar-list,
.activity-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.sidebar-list button,
.activity-list article {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--white-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  text-align: left;
}

.sidebar-list button strong,
.sidebar-list button span {
  display: block;
}

.sidebar-list button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.agent-chat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 610px;
  background:
    radial-gradient(circle at 78% 0%, var(--agent-glow), transparent 34%),
    var(--panel);
}

.agent-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--white-line);
}

.reply-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.reply-toggle button {
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
}

.reply-toggle button.is-selected {
  background: rgba(240, 216, 144, 0.18);
  color: var(--gold-2);
}

.agent-welcome {
  padding: 18px 0;
}

.chat-feed {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.chat-message {
  max-width: 82%;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.chat-message.user {
  justify-self: end;
  background: rgba(217, 177, 95, 0.18);
}

.chat-message.assistant strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-2);
}

.voice-panel,
.composer,
.agent-tools label,
.calendar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-panel {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--white-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.voice-panel p {
  margin: 4px 0 0;
}

.composer {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

input,
textarea {
  min-width: 0;
  border: 1px solid var(--white-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
  outline: none;
}

.composer input,
.agent-tools input {
  width: 100%;
  padding: 13px 14px;
}

.agent-tools label {
  align-items: stretch;
  flex-direction: column;
  margin: 14px 0 20px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 40px;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card {
  min-height: 210px;
  padding: 20px;
}

.status-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  margin: 14px 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
}

.window-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.window-list article {
  display: grid;
  grid-template-columns: 180px 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.window-list p {
  margin: 0;
}

.clock-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clock-tile {
  padding: 18px;
  text-align: center;
}

.clock-tile strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--gold-2);
  font-size: 30px;
}

.calendar-tools,
.calendar-view-tabs {
  justify-content: center;
  margin-bottom: 16px;
}

.calendar-tools {
  flex-wrap: wrap;
}

.calendar-tools strong {
  min-width: 220px;
  color: var(--gold-2);
  font-family: var(--display-serif);
  font-size: 24px;
  text-align: center;
}

.calendar-view-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.calendar-view-tabs button {
  min-width: 78px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.calendar-view-tabs button.is-selected {
  border-color: var(--line);
  background: rgba(217, 177, 95, 0.18);
  color: var(--gold-2);
}

.calendar-grid.year {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-month,
.calendar-day,
.calendar-hour-row,
.day-schedule {
  border: 1px solid var(--white-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.mini-month {
  min-height: 190px;
  padding: 13px;
}

.mini-month h3,
.calendar-day strong,
.day-schedule h3 {
  margin: 0;
  color: var(--gold-2);
  font-family: var(--display-serif);
}

.mini-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 12px;
  color: rgba(255, 247, 223, 0.78);
  font-size: 11px;
  text-align: center;
}

.mini-month-grid span {
  min-height: 18px;
}

.mini-month-grid .has-event {
  border-radius: 999px;
  background: rgba(217, 177, 95, 0.22);
  color: var(--gold-2);
  font-weight: 900;
}

.calendar-grid.month {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 112px;
  padding: 10px;
}

.calendar-day.is-muted {
  opacity: 0.42;
}

.calendar-day strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.calendar-event {
  display: block;
  margin-top: 6px;
  padding: 6px 7px;
  border: 1px solid rgba(240, 216, 144, 0.32);
  border-radius: 9px;
  background: rgba(217, 177, 95, 0.16);
  color: var(--ink);
  font-size: 12px;
}

.calendar-event.gancino {
  border-color: rgba(240, 216, 144, 0.42);
  background: rgba(217, 177, 95, 0.2);
}

.calendar-event.malkia {
  border-color: rgba(196, 154, 242, 0.45);
  background: rgba(196, 154, 242, 0.18);
}

.calendar-event.kwamu {
  border-color: rgba(143, 195, 255, 0.42);
  background: rgba(143, 195, 255, 0.16);
}

.calendar-grid.week,
.calendar-grid.day {
  display: grid;
  gap: 10px;
}

.calendar-hour-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  min-height: 58px;
  overflow: hidden;
}

.calendar-hour-row time {
  padding: 14px 12px;
  border-right: 1px solid var(--white-line);
  color: var(--muted);
  font-size: 13px;
}

.calendar-hour-row div {
  padding: 10px 12px;
}

.day-schedule {
  padding: 18px;
}

.day-schedule h3 {
  font-size: 28px;
}

.day-schedule p {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(300px, 86vw);
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .app-shell.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.45);
  }

  .app-shell.nav-open .app-nav {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.08);
  }

  .agent-view.is-active {
    grid-template-columns: 1fr;
  }

  .agent-sidebar,
  .agent-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .agent-sidebar h2,
  .agent-sidebar h3,
  .agent-tools h3,
  .agent-tools p,
  .agent-tools label,
  .new-project,
  .sidebar-list,
  .activity-list {
    grid-column: 1 / -1;
  }

  .villa-grid,
  .status-grid,
  .clock-grid,
  .calendar-grid.year,
  .calendar-grid.month {
    grid-template-columns: 1fr;
  }

  .window-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-main {
    padding: 14px;
  }

  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .time-card {
    width: 100%;
    text-align: left;
  }

  .dashboard-view {
    min-height: 100svh;
    border-radius: 20px;
  }

  .island-reference {
    object-position: center top;
  }

  .pin-gate {
    padding: 20px;
  }

  .pin-gate h2 {
    font-size: 28px;
  }

  .agent-sidebar,
  .agent-tools {
    grid-template-columns: 1fr;
  }

  .agent-header,
  .voice-panel,
  .composer,
  .calendar-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .reply-toggle {
    width: 100%;
  }

  .reply-toggle button,
  .composer button,
  .voice-panel button {
    flex: 1;
  }

  .chat-message {
    max-width: 100%;
  }

  .calendar-view-tabs {
    width: 100%;
  }

  .calendar-view-tabs button {
    min-width: 0;
    flex: 1;
  }

  .calendar-hour-row {
    grid-template-columns: 1fr;
  }
}
