.aanya-studio {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.aanya-studio__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #dcdcde;
  background: #f6f7f7;
}

.aanya-studio__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.aanya-studio__meta {
  margin: 4px 0 0;
  color: #646970;
  font-size: 12px;
}

.aanya-studio__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.aanya-studio__plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5fb;
  color: #1d2327;
  font-size: 12px;
  border: 1px solid #c5d9ed;
}

.aanya-studio__tabs {
  margin: 0;
  padding: 0 12px;
  border-bottom: 1px solid #c3c4c7;
  background: #fff;
}

.aanya-studio__status {
  padding: 14px 18px;
  color: #646970;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f1;
}

.aanya-studio__status.is-error {
  color: #b32d2e;
  background: #fcf0f1;
}

.aanya-studio__status.is-ok {
  display: none;
}

.aanya-studio__panel {
  padding: 18px;
}

.aanya-studio__panel[hidden] {
  display: none !important;
}

.aanya-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.aanya-stat {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  padding: 12px 14px;
}

.aanya-stat__label {
  display: block;
  color: #646970;
  font-size: 12px;
  margin-bottom: 4px;
}

.aanya-stat__value {
  font-size: 22px;
  font-weight: 600;
  color: #1d2327;
}

.aanya-card {
  border: 1px solid #dcdcde;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #fff;
}

.aanya-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.aanya-form-row {
  margin: 0 0 12px;
}

.aanya-form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.aanya-form-row input[type="text"],
.aanya-form-row input[type="email"],
.aanya-form-row input[type="url"],
.aanya-form-row input[type="color"],
.aanya-form-row select,
.aanya-form-row textarea {
  width: 100%;
  max-width: 520px;
}

.aanya-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
}

.aanya-table {
  width: 100%;
  border-collapse: collapse;
}

.aanya-table th,
.aanya-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #dcdcde;
  font-size: 13px;
  vertical-align: top;
}

.aanya-table th {
  background: #f6f7f7;
  font-weight: 600;
}

.aanya-muted {
  color: #646970;
  font-size: 13px;
}

.aanya-templates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.aanya-template {
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
}

.aanya-template.is-selected {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.aanya-template strong {
  display: block;
  margin-bottom: 4px;
}

.aanya-template span {
  color: #646970;
  font-size: 12px;
}

.aanya-modal[hidden] {
  display: none !important;
}

.aanya-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.aanya-modal__dialog {
  background: #fff;
  border-radius: 8px;
  width: min(720px, 100%);
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.aanya-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #dcdcde;
}

.aanya-modal__head h2 {
  margin: 0;
  font-size: 16px;
}

.aanya-modal__close {
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  color: #1d2327;
}

.aanya-modal__body {
  padding: 16px;
}

.aanya-msg {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f6f7f7;
  font-size: 13px;
}

.aanya-msg--user {
  background: #e7f2fb;
}

.aanya-msg--assistant {
  background: #f0f0f1;
}

@media screen and (max-width: 782px) {
  .aanya-studio__toolbar {
    align-items: flex-start;
  }
}
