.baseos-assistant-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #c8d4e4;
  border-radius: 12px;
  background: #fff;
  color: #26384d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.baseos-assistant-panel[hidden],
.baseos-assistant-notice[hidden],
.baseos-assistant-toast[hidden] {
  display: none;
}

.baseos-assistant-toast {
  position: fixed;
  z-index: 10001;
  right: 16px;
  bottom: 16px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 12px;
  background: #26384d;
  color: #fff;
  box-shadow: 0 10px 30px rgba(10, 20, 40, .25);
}

.baseos-assistant-panel {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  background: rgba(15, 25, 40, .4);
}

.baseos-assistant-card {
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(10, 20, 40, .25);
  color: #26384d;
}

.baseos-assistant-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.baseos-assistant-heading h2 { margin: 0; }
.baseos-assistant-heading button {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.baseos-assistant-card h3 { margin: 22px 0 8px; }
.baseos-assistant-card p { line-height: 1.5; }
.baseos-assistant-card textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 6px 0 10px;
  padding: 10px;
  border: 1px solid #c8d4e4;
  border-radius: 10px;
  color: #26384d;
  font: inherit;
  resize: vertical;
}
.baseos-assistant-answer {
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.5;
}
.baseos-assistant-notice {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff3d4;
  font-weight: 700;
}

.baseos-assistant-task {
  display: block;
  width: 100%;
  margin: 7px 0;
  padding: 12px;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #26384d;
  text-align: left;
  cursor: pointer;
}

.baseos-assistant-task:hover { background: #eef4fc; }
.baseos-assistant-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.baseos-assistant-actions button {
  padding: 9px 12px;
  border: 1px solid #c8d4e4;
  border-radius: 9px;
  background: #fff;
  color: #26384d;
  cursor: pointer;
}

.baseos-assistant-actions input,
.baseos-assistant-actions select {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #c8d4e4;
  border-radius: 9px;
  color: #26384d;
  font: inherit;
}
.baseos-assistant-actions input[type="text"] { flex: 1 1 180px; }
.baseos-personal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #dce4ee;
}
.baseos-personal-item button {
  padding: 6px 10px;
  border: 1px solid #c8d4e4;
  border-radius: 9px;
  background: #fff;
  color: #26384d;
  cursor: pointer;
}

.baseos-assistant-footnote { color: #68788b; font-size: 12px; }

@media (max-width: 600px) {
  .baseos-assistant-panel { padding: 0; }
  .baseos-assistant-card { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .baseos-assistant-button { width: 40px; padding: 0; font-size: 0; }
  .baseos-assistant-button::after { content: "☀"; font-size: 18px; }
}
