* { box-sizing: border-box; }
body {
  font-family: -apple-system, Segoe UI, Arial, sans-serif;
  margin: 0;
  background: #f4f2ee;
  color: #2c2c2a;
}
.hidden { display: none !important; }

.view.signin-view, #signin-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.signin-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 360px;
}
.signin-card h1 { font-size: 20px; margin-bottom: 8px; }
.signin-card p { color: #666; margin-bottom: 20px; }

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #5B3A29;
  color: #fff;
}
.app-header h1 { font-size: 18px; margin: 0; }
.header-right { display: flex; align-items: center; gap: 12px; font-size: 14px; }

main {
  max-width: 720px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card h2 { font-size: 16px; margin: 0 0 14px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.field input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8d5cf;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
textarea { font-family: ui-monospace, monospace; font-size: 12.5px; line-height: 1.5; }

.hint { font-size: 12.5px; color: #888; margin: -6px 0 14px; }

.btn-primary {
  background: #5B3A29;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 20px;
}
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-secondary {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}
.btn-link {
  background: none;
  border: none;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
}

.error { color: #a32d2d; font-size: 13.5px; margin: 10px 0; }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c2c2a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  z-index: 10;
}
.toast-error { background: #a32d2d; }

.secret-row {
  display: grid;
  grid-template-columns: 140px 90px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.secret-name { font-size: 13px; font-weight: 600; }
.secret-status { font-size: 12px; padding: 2px 8px; border-radius: 10px; text-align: center; }
.status-set { background: #eaf3de; color: #27500a; }
.status-unset { background: #f1efe8; color: #5f5e5a; }
.secret-input { padding: 6px 8px; font-size: 13px; }
