/* Simone/Sofia · Home Panoramica (linguaggio visuale William) */
#simone-home-workspace {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  background: transparent;
  font-family: "Gilroy", "DM Sans", sans-serif;
}

#simone-home-workspace.active {
  display: flex;
}

.chat-area.simone-home-mode.simone-home-panorama #chat-content {
  display: none !important;
}

.chat-area.simone-home-mode.simone-home-panorama #chat-empty {
  display: none !important;
}

.chat-area.simone-home-mode.simone-home-chat #sh-panel-panoramica {
  display: none !important;
}

.sh-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  border-bottom: 1px solid rgba(211, 255, 54, 0.14);
  overflow-x: auto;
}

.sh-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(239, 238, 244, 0.88);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.sh-tab.active {
  color: rgba(211, 255, 54, 0.88);
  border-bottom-color: #d3ff36;
}

.sh-panel {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 24px;
}

.sh-panel.active {
  display: block;
}

.chat-area.simone-home-mode.simone-home-panorama #simone-home-workspace {
  flex: 1;
  min-height: 0;
}

.chat-area.simone-home-mode.simone-home-panorama #sh-panel-panoramica.active {
  flex: 1;
}

.sh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.sh-card {
  background: #1a0838;
  border: 1px solid rgba(211, 255, 54, 0.14);
  border-radius: 12px;
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  min-height: 160px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.sh-card:hover {
  border-color: rgba(211, 255, 54, 0.35);
}

.sh-card-priority {
  cursor: default;
}

.sh-card-b {
  flex: 1;
  min-height: 0;
}

.sh-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sh-card-h h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #efeef4;
}

.sh-btn {
  appearance: none;
  border: 1px solid rgba(211, 255, 54, 0.35);
  background: rgba(211, 255, 54, 0.12);
  color: #d3ff36;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.sh-btn:hover {
  background: rgba(211, 255, 54, 0.2);
}

.sh-btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 8px;
}

.sh-task-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}

.sh-task-form[hidden] {
  display: none !important;
}

.sh-task-form #sh-task-input {
  grid-column: 1 / -1;
}

.sh-task-form input {
  min-width: 0;
  appearance: none;
  border: 1px solid rgba(211, 255, 54, 0.22);
  background: rgba(10, 6, 22, 0.45);
  color: #efeef4;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.84rem;
  color-scheme: dark;
}

.sh-task-form #sh-task-due {
  min-width: 0;
}

.sh-task-form input:focus {
  outline: none;
  border-color: rgba(211, 255, 54, 0.55);
  box-shadow: 0 0 0 2px rgba(211, 255, 54, 0.12);
}

html[data-theme="light"] .sh-task-form input {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(152, 51, 255, 0.28);
  color: #150c5d;
  color-scheme: light;
}

.sh-empty {
  color: rgba(239, 238, 244, 0.55);
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 6px 0;
}

.sh-loading {
  color: rgba(239, 238, 244, 0.7);
  font-size: 0.85rem;
  padding: 12px 4px;
}

.sh-list,
.sh-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sh-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: #efeef4;
  line-height: 1.35;
}

.sh-bullets li::before {
  content: none;
}

.sh-check {
  appearance: none;
  border: none;
  background: transparent;
  color: #d3ff36;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.sh-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.84rem;
  color: #efeef4;
}

.sh-when {
  font-size: 0.72rem;
  color: rgba(211, 255, 54, 0.75);
  font-weight: 600;
}

.sh-title {
  font-weight: 600;
}

.sh-meta {
  color: rgba(239, 238, 244, 0.55);
  font-size: 0.75rem;
  font-weight: 400;
}

.sh-k {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(211, 255, 54, 0.7);
  margin-bottom: 6px;
}

.sh-mail-block + .sh-mail-block {
  margin-top: 12px;
}

.sh-summary-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(239, 238, 244, 0.92);
  white-space: normal;
}

.sh-priority {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-priority li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(239, 238, 244, 0.92);
}

.sh-priority-n {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(211, 255, 54, 0.16);
  color: #d3ff36;
  border: 1px solid rgba(211, 255, 54, 0.35);
}

.sh-priority-t {
  flex: 1;
  min-width: 0;
}

html[data-theme="light"] .sh-priority li {
  color: #150c5d;
}

html[data-theme="light"] .sh-priority-n {
  background: rgba(152, 51, 255, 0.12);
  color: #150c5d;
  border-color: rgba(152, 51, 255, 0.35);
}

@media (max-width: 720px) {
  .sh-grid {
    grid-template-columns: 1fr;
  }
  .sh-card {
    min-height: 0;
  }
}

html[data-theme="light"] .sh-tabs {
  border-bottom-color: rgba(21, 12, 93, 0.12);
}

html[data-theme="light"] .sh-tab {
  color: rgba(21, 12, 93, 0.72);
}

html[data-theme="light"] .sh-tab.active {
  color: #150c5d;
  border-bottom-color: #9833ff;
}

html[data-theme="light"] .sh-card {
  background: #d4c2f2;
  border-color: rgba(152, 51, 255, 0.22);
  color: #150c5d;
}

html[data-theme="light"] .sh-card-h h3,
html[data-theme="light"] .sh-list li,
html[data-theme="light"] .sh-bullets li,
html[data-theme="light"] .sh-summary-text,
html[data-theme="light"] .sh-title {
  color: #150c5d;
}

html[data-theme="light"] .sh-empty,
html[data-theme="light"] .sh-meta {
  color: rgba(21, 12, 93, 0.55);
}

html[data-theme="light"] .sh-when,
html[data-theme="light"] .sh-k,
html[data-theme="light"] .sh-check {
  color: #6b21a8;
}

html[data-theme="light"] .sh-btn {
  border-color: rgba(152, 51, 255, 0.35);
  background: rgba(152, 51, 255, 0.12);
  color: #150c5d;
}

/* William mode: hide home */
.chat-area.william-mode #simone-home-workspace,
.chat-area.william-mode #simone-home-workspace.active,
.chat-area.william-mode #sh-panel-panoramica {
  display: none !important;
}
