/* HOVRRN chat shell; dictation and transcription logic remain in the original styles.css */
body {
  margin: 0;
  overflow: hidden;
  background: #edf4fb;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #18304d;
}

body #amyRoot {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.92), transparent 38%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fc 44%, #e9f1fa 100%);
}

.hov-workspace {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: transparent;
}

.hov-header {
  height: 72px;
  flex: none;
  background: linear-gradient(180deg, #16345a 0%, #102744 100%);
  color: #f7fbff;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(97, 136, 180, .32);
  user-select: none;
  box-shadow: 0 10px 30px rgba(10, 31, 57, .12);
}

.hov-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 21px;
  min-width: 250px;
  letter-spacing: -.02em;
}

.hov-logo img,
.hov-chathead img,
.hov-empty img,
.hov-leftfoot img {
  object-fit: contain;
}

.hov-logo img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.hov-mark {
  color: #d4e4f8;
  font-weight: 500;
}

.hov-logo small {
  font-size: 11px;
  color: #b1c6de;
  align-self: flex-end;
  margin-bottom: 8px;
}

.hov-search {
  margin: auto;
  width: min(560px, 46%);
  height: 42px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(147, 180, 219, .26);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  font-size: 21px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.hov-search input {
  width: 100%;
  background: transparent;
  color: white;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
}

.hov-search input::placeholder { color: #b6c8de; }

.hov-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hov-status {
  color: #d2eee2;
  font-size: 12px;
  white-space: nowrap;
  padding-right: 4px;
}

.hov-winbtn,
.hov-asidehead button {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(152, 181, 216, .2);
  background: rgba(255,255,255,.07);
  color: #eef6ff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.hov-winbtn:hover,
.hov-asidehead button:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(182, 205, 232, .42);
  transform: translateY(-1px);
}

.hov-winbtn.close:hover {
  background: rgba(170, 44, 70, .26);
  border-color: rgba(206, 113, 132, .55);
}

.hov-columns {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 250px minmax(390px, 1fr) 338px;
}

.hov-columns > * {
  min-height: 0;
  box-sizing: border-box;
}

.hov-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  background: linear-gradient(180deg, #14304f 0%, #173756 100%);
  color: #e8f1fb;
  border-right: 1px solid rgba(117, 149, 186, .24);
  padding: 18px 14px 14px;
}

.hov-navlinks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.hov-navitem {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #dfeafb;
  font-size: 15px;
  text-align: left;
  padding: 15px 16px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.hov-navitem:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(124, 154, 190, .16);
}

.hov-navitem.chosen {
  background: linear-gradient(180deg, #2f5d8e 0%, #274f79 100%);
  border-color: rgba(185, 212, 243, .28);
  color: white;
  box-shadow: 0 10px 22px rgba(9, 24, 45, .22);
}

.hov-leftfoot {
  border: 1px solid rgba(119, 152, 188, .26);
  border-radius: 18px;
  padding: 14px 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: #deecfb;
  background: rgba(255,255,255,.05);
  flex: none;
  min-height: 94px;
  margin-top: auto;
  box-sizing: border-box;
}

.hov-leftfoot img {
  width: 58px;
  height: 58px;
  border-radius: 0;
  flex: none;
}

.hov-leftfoot span {
  display: block;
  overflow: visible;
}

.hov-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,.68), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.64), rgba(255,255,255,.38));
}

.hov-chathead {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  min-height: 78px;
  border-bottom: 1px solid #d8e5f2;
  display: flex;
  align-items: center;
  padding: 10px 24px;
  gap: 14px;
  font-size: 21px;
}

.hov-chathead img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(32, 71, 112, .18);
}

.hov-chathead .hov-icon { margin-left: auto; }

.hov-icon {
  font-size: 22px;
  border: 1px solid #c9d8ea;
  background: linear-gradient(180deg, #ffffff 0%, #edf4fc 100%);
  color: #214464;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(29, 69, 106, .10);
}

.hov-icon:disabled { opacity: .48; cursor: not-allowed; }

.hov-messages {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 26px 26px 16px;
}

.hov-empty {
  margin: 7vh auto;
  max-width: 520px;
  text-align: center;
  color: #6b8099;
  line-height: 1.65;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(201, 216, 234, .72);
  border-radius: 28px;
  padding: 34px 28px;
  box-shadow: 0 18px 36px rgba(28, 71, 112, .08);
}

.hov-empty img {
  width: 100px;
  height: 100px;
  border-radius: 26px;
  box-shadow: 0 12px 26px rgba(30, 76, 118, .14);
}

.hov-empty h2 {
  color: #233e5e;
  font-size: 24px;
  margin: 18px 0 10px;
}

.hov-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: rgba(255,255,255,.9);
  border: 1px solid #c8d8ea;
  border-radius: 22px;
  padding: 12px;
  margin: 0 22px 8px;
  min-height: 64px;
  box-sizing: border-box;
  flex: none;
  box-shadow: 0 12px 28px rgba(37, 61, 92, .09);
}

.hov-composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 24px;
  line-height: 1.45;
  padding: 6px 0 4px;
  border: 0;
  outline: 0;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  max-height: 120px;
  background: transparent;
  color: #203c5d;
  box-sizing: border-box;
}

.hov-send {
  border: 1px solid #255b8f;
  background: linear-gradient(180deg, #4f83b9 0%, #315e8c 100%);
  color: white;
  border-radius: 15px;
  height: 44px;
  width: 50px;
  font-size: 20px;
  box-shadow: 0 10px 20px rgba(26, 60, 93, .18);
}

.hov-send:disabled { opacity: .5; }

.hov-notice {
  font-size: 11px;
  margin: 0 26px 18px;
  color: #66809b;
  flex: none;
  min-height: 14px;
}

.hov-context {
  border-left: 1px solid #d8e4f1;
  background: linear-gradient(180deg, rgba(251,253,255,.98) 0%, rgba(244,249,254,.98) 100%);
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.hov-asidehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 19px;
  color: #203f63;
  flex: none;
}

.hov-titlecard {
  margin: 0;
  border: 1px solid #d7e4f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  padding: 12px;
  box-shadow: 0 8px 24px rgba(30, 75, 116, .06);
}

.hov-titleedit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
}

.hov-titleedit label {
  font-size: 12px;
  color: #446888;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.hov-titleedit input {
  padding: 12px 14px;
  border: 1px solid #c3d6e9;
  border-radius: 12px;
  background: #eef5fc;
  width: 100%;
  color: #234568;
  box-sizing: border-box;
  font-size: 14px;
  outline: none;
}

.hov-titleedit input:focus {
  border-color: #90afd0;
  background: white;
  box-shadow: 0 0 0 3px rgba(96, 140, 188, .14);
}

.hov-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: none;
}

.hov-meta-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 96px;
  text-align: left;
  border: 1px solid #d7e4f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  color: #24476c;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(36,71,108,.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hov-meta-card:hover {
  border-color: #b7cee4;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(36,71,108,.08);
}

.hov-meta-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(180deg, #e9f3fb 0%, #dceaf8 100%);
  color: #2d5785;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: none;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.hov-meta-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.hov-meta-copy strong {
  font-size: 13px;
  color: #24476c;
}

.hov-meta-copy small {
  font-size: 12px;
  color: #647b94;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hov-asideactions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
  margin-top: 2px;
}

.hov-asideactions button {
  padding: 13px 14px;
  text-align: left;
  border: 1px solid #c0d4e7;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7fd 100%);
  color: #23496d;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(35,73,109,.05);
  transition: transform .18s ease, border-color .18s ease;
}

.hov-asideactions button:hover {
  border-color: #9fbdd9;
  transform: translateY(-1px);
}

body #expandedView { display: none; }
body #compactView { display: none; }
body.hov-dictation #hovrrnWorkspace { display: none; }
body.hov-dictation #expandedView {
  display: flex;
  width: 430px;
  height: 640px;
  margin: auto;
  max-height: 100vh;
  box-shadow: 0 12px 50px #17345230;
  background: white;
  overflow: hidden;
}
body.compact #hovrrnWorkspace { display: none; }
body.compact #expandedView { display: none; }
body.compact #amyRoot { background: transparent; }

@media (max-width: 1180px) {
  .hov-columns { grid-template-columns: 210px minmax(350px, 1fr) 310px; }
  .hov-logo { min-width: 195px; }
  .hov-navitem { font-size: 13px; }
  .hov-context { padding: 12px; }
  .hov-meta-card { min-height: 90px; padding: 10px; }
}

@media (max-width: 900px) {
  .hov-columns { grid-template-columns: 70px minmax(300px, 1fr); }
  .hov-navitem span,
  .hov-leftfoot,
  .hov-context { display: none; }
  .hov-logo { min-width: 0; }
  .hov-search { width: 40%; }
}

body.compact #compactView { display: flex !important; }
body.compact #expandedView { display: none !important; }
body #modalBackdrop:not([hidden]) { z-index: 9999; }

/* Window controls must receive pointer events, not Chromium's draggable title region. */
.hov-header button,.hov-header input,.hov-account,.hov-account *,.hov-search,.hov-search * {-webkit-app-region:no-drag !important;}
.hov-header .hov-winbtn {position:relative;z-index:12;pointer-events:auto;}
/* Amy is the silhouette itself; no tile, frame, disc, or background. */
.hov-logo img,.hov-chathead img,.hov-empty img,.hov-leftfoot img {background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 4px 9px rgba(37,105,154,.15));}
.hov-logo img{width:48px;height:48px;}
.hov-context{gap:12px;}
.hov-titlecard{order:0;}
.hov-meta-grid{order:1;}
.hov-asideactions{order:2;}
.hov-asidehead{display:none;}

/* Native Windows resizing remains enabled; header controls remain clickable. */
.hov-header{-webkit-app-region:drag;}
.hov-account,.hov-account button,.hov-search,.hov-search input{-webkit-app-region:no-drag!important;}
