:root {
  --bg: #000000;
  --surface: #101418;
  --surface-2: #182026;
  --surface-3: #22303a;
  --text: #ffffff;
  --muted: #b9c0c7;
  --dim: #7c8791;
  --cyan: #00d4ff;
  --green: #50f2a8;
  --gold: #ffd166;
  --red: #ff5c7a;
  --glow: rgba(0, 212, 255, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
}

#app {
  width: 600px;
  height: 600px;
  padding: 8px;
  position: relative;
}

.screen {
  position: absolute;
  inset: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.header {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 8px;
}

.header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.header-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.content {
  flex: 1;
  min-height: 0;
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.focusable {
  min-height: 88px;
  border: 2px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.focusable:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 22px var(--glow);
  transform: scale(0.97);
  opacity: 1;
}

.home-content {
  padding-top: 8px;
  justify-content: center;
  overflow: hidden;
}

.home-orbit {
  position: relative;
  width: 100%;
  height: 468px;
  flex: 0 0 468px;
}

.agent-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 252px;
  height: 252px;
  min-height: 252px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 36%, rgba(80, 242, 168, 0.28), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.4), transparent 58%),
    #111820;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.92;
  border: 2px solid rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 44px rgba(0, 212, 255, 0.2);
}

.agent-orb:focus {
  transform: translate(-50%, -50%) scale(0.97);
}

.agent-orb.listening {
  border-color: var(--green);
  box-shadow: 0 0 54px rgba(80, 242, 168, 0.28);
}

.orb-kicker {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.orb-title {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 800;
}

.orb-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.orbit-icon {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  opacity: 0.9;
}

.orbit-up {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.orbit-down {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.orbit-left {
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
}

.orbit-right {
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
}

.orbit-glyph {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.16);
  color: var(--cyan);
  font-size: 16px;
  font-weight: 900;
}

.orbit-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tile-icon,
.command-key,
.type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.16);
  color: var(--cyan);
  font-weight: 800;
}

.tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.section-hero {
  min-height: 186px;
  padding: 20px;
  border-radius: 8px;
  background: var(--surface);
}

.task-hero {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), transparent 48%),
    var(--surface);
}

.photo-hero {
  background:
    linear-gradient(135deg, rgba(255, 92, 122, 0.16), transparent 48%),
    var(--surface);
}

.section-hero-title {
  margin: 14px 0 0;
  max-width: 430px;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 800;
}

.back-btn {
  width: 88px;
  min-height: 52px;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  font-size: 28px;
}

.agent-panel {
  min-height: 124px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
}

.panel-label {
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.agent-preview {
  margin: 12px 0 0;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 800;
}

.command-list,
.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.command-row {
  width: 100%;
  min-height: 88px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.command-key {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.command-copy {
  font-size: 18px;
  font-weight: 700;
}

.input-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.text-input {
  width: 100%;
  min-height: 184px;
  padding: 16px;
  color: var(--text);
  background: var(--surface);
  border-radius: 8px;
  resize: none;
}

.nav-item {
  width: 100%;
  min-height: 88px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.nav-item.primary {
  background: var(--cyan);
  color: #071014;
}

.nav-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
}

.timeline {
  max-height: 390px;
  overflow-y: auto;
}

.center-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.center-summary div {
  min-height: 76px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
}

.center-summary span {
  display: block;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.center-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item {
  min-height: 100px;
  padding: 14px;
  background: var(--surface);
  border-radius: 8px;
  color: var(--text);
}

.timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.type-pill {
  min-width: 76px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  text-transform: uppercase;
}

.timeline-title {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.timeline-body {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.timeline-time {
  color: var(--dim);
  font-size: 12px;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.notes-content {
  padding-bottom: 0;
}

.notes-hero {
  min-height: 112px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(80, 242, 168, 0.13), transparent 48%),
    var(--surface);
  border-radius: 8px;
}

.notes-hero-title {
  margin: 10px 0 0;
  max-width: 420px;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 270px;
  overflow-y: auto;
}

.note-card {
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.note-number {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(80, 242, 168, 0.15);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

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

.note-title {
  font-size: 18px;
  font-weight: 800;
}

.note-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-time {
  color: var(--dim);
  font-size: 12px;
}

.note-detail-content {
  justify-content: stretch;
}

.note-detail-card {
  flex: 1;
  min-height: 360px;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.1), transparent 36%),
    var(--surface);
  overflow-y: auto;
}

.note-detail-title {
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.note-detail-body {
  margin: 16px 0 0;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 800;
  white-space: pre-wrap;
}

.tasks-content {
  padding-bottom: 0;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 270px;
  overflow-y: auto;
}

.task-card {
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.task-check {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.16);
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

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

.task-title {
  font-size: 18px;
  font-weight: 800;
}

.task-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-time {
  color: var(--dim);
  font-size: 12px;
}

.task-done {
  opacity: 0.62;
}

.task-done .task-check {
  background: rgba(80, 242, 168, 0.15);
  color: var(--green);
}

.task-detail-card {
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.1), transparent 36%),
    var(--surface);
}

.photos-content {
  padding-bottom: 0;
}

.photos-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 270px;
  overflow-y: auto;
}

.photo-card {
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.photo-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 92, 122, 0.45), transparent 38%),
    #211820;
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}

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

.photo-title {
  font-size: 18px;
  font-weight: 800;
}

.photo-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo-time {
  color: var(--dim);
  font-size: 12px;
}

.photo-detail-card {
  flex: 1;
  min-height: 360px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 92, 122, 0.12), transparent 42%),
    var(--surface);
  overflow-y: auto;
}

.photo-placeholder {
  height: 164px;
  margin-bottom: 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 92, 122, 0.28), transparent 34%),
    #171216;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 92, 122, 0.28);
}

.photo-placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 92, 122, 0.16);
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.photo-detail-body {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  white-space: pre-wrap;
}

.voice-content {
  justify-content: flex-start;
  overflow: hidden;
}

.voice-orb {
  width: 300px;
  height: 300px;
  min-height: 300px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(80, 242, 168, 0.28), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.42), transparent 58%),
    #111820;
  color: var(--text);
  border: 2px solid rgba(0, 212, 255, 0.65);
  box-shadow: 0 0 44px rgba(0, 212, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px;
}

.voice-transcript {
  margin-top: 12px;
  max-width: 238px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
}

.voice-content .text-input {
  min-height: 80px;
}

.voice-content .nav-bar {
  width: 100%;
  padding-top: 0;
}

.toast {
  position: fixed;
  left: 32px;
  right: 32px;
  top: 24px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text);
  border: 2px solid var(--cyan);
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: var(--red);
}
