.panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
}

.panel-body {
  padding: 20px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
}

.field input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed #c7c9d1;
  border-radius: 8px;
  background: #fafafe;
}

.btn-solid {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.btn-solid:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-soft {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #eef0fb;
  color: #4f46e5;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.btn-soft:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-soft.recording {
  background: #fde8e8;
  color: #9b1c1c;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  margin: 18px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.divider span {
  padding: 0 10px;
}

.result {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #e9eaf0;
  color: #1f2937;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  min-height: 48px;
}

.result-error {
  background: #fde8e8;
  color: #9b1c1c;
}

.hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.guest-page {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(ellipse at top, #232045 0%, #1b1833 45%, #161328 100%);
}

.guest-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.auth-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: #4f46e5;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.auth-title {
  margin: 0 0 4px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.auth-subtitle {
  margin: 0 0 24px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
}

.auth-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: #4f46e5;
}

.auth-input-invalid {
  border-color: #dc2626;
}

.auth-error {
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
}

.auth-status {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6b7280;
}

.auth-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
}

.auth-row a {
  color: #4f46e5;
  text-decoration: none;
}

.auth-row a:hover {
  text-decoration: underline;
}

.auth-note {
  margin: 18px 0 0;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: #8b87a8;
}

.auth-note a {
  color: #4f46e5;
  text-decoration: none;
}

.auth-note a:hover {
  text-decoration: underline;
}

.console-page {
  margin: 0;
  display: flex;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5fa;
}

.console-sidebar {
  width: 232px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  background: #17142b;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 22px;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.sidebar-brand-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b87a8;
}

.sidebar-heading {
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6f6b8f;
}

.sidebar-nav {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #b5b1d8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.sidebar-link.active {
  background: #4f46e5;
  color: #fff;
}

.sidebar-link svg {
  flex-shrink: 0;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sidebar-user-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 11px;
  color: #8b87a8;
}

.sidebar-logout {
  margin-left: auto;
  color: #b5b1d8;
  font-size: 13px;
  text-decoration: none;
}

.sidebar-logout:hover {
  color: #fff;
}

.console-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.console-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.console-user-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef0fb;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 600;
}

.console-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.console-content {
  flex: 1;
  padding: 28px;
}
