.tec-tab,
.tec-banner,
.tec-backdrop,
.tec-panel {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box;
}

.tec-tab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999999;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E7E5E4;
  box-shadow: 0 4px 24px rgba(41, 37, 36, 0.08), 0 1px 4px rgba(41, 37, 36, 0.04);
  color: #57534E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.tec-tab:hover { color: #D4522E; border-color: #D4522E; transform: translateY(-1px); }
.tec-tab:focus-visible { outline: 2px solid #D4522E; outline-offset: 2px; }

.tec-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: min(400px, calc(100vw - 40px));
  z-index: 999999;
  background: #FFFFFF;
  border: 1px solid #E7E5E4;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(41, 37, 36, 0.08), 0 1px 4px rgba(41, 37, 36, 0.04);
  padding: 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.tec-banner.tec-in { opacity: 1; transform: translateY(0); }

.tec-banner-title { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #292524; }
.tec-banner-body { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: #57534E; }
.tec-banner-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.tec-banner-manage {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #57534E;
  text-decoration: underline;
}
.tec-banner-manage:hover { color: #292524; }

.tec-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.tec-btn-primary { background: #D4522E; color: #FFFFFF; }
.tec-btn-primary:hover { background: #B14124; }
.tec-btn-primary:focus-visible { outline: 2px solid #292524; outline-offset: 2px; }

.tec-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tec-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(41, 37, 36, 0.35);
  padding: 32px;
}

.tec-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #57534E;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.tec-panel-close:hover { background: #F5F5F4; }
.tec-panel-close:focus-visible { outline: 2px solid #D4522E; outline-offset: 2px; }

.tec-panel-title { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #292524; }
.tec-panel-lede { margin: 0 0 8px; font-size: 14px; color: #57534E; line-height: 1.6; }

.tec-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #E7E5E4;
}
.tec-row-title { font-size: 14px; font-weight: 700; color: #292524; margin-bottom: 4px; }
.tec-row-desc { font-size: 13px; color: #57534E; line-height: 1.6; }

.tec-panel-note {
  font-size: 12.5px;
  color: #78716C;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #E7E5E4;
}

.tec-panel-link {
  display: inline-block;
  margin: 16px 0 24px;
  font-size: 13px;
  font-weight: 600;
  color: #D4522E;
  text-decoration: none;
}
.tec-panel-link:hover { text-decoration: underline; }

.tec-panel .tec-btn-primary { width: 100%; text-align: center; }

input[type='checkbox'][role='switch'] {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #E7E5E4;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  margin: 2px 0 0;
  transition: background 0.15s;
}
input[type='checkbox'][role='switch']::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}
input[type='checkbox'][role='switch']:checked { background: #D4522E; }
input[type='checkbox'][role='switch']:checked::before { transform: translateX(18px); }
input[type='checkbox'][role='switch']:disabled { opacity: 0.6; cursor: not-allowed; }
input[type='checkbox'][role='switch']:focus-visible { outline: 2px solid #D4522E; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .tec-banner,
  .tec-tab,
  input[type='checkbox'][role='switch'],
  input[type='checkbox'][role='switch']::before {
    transition: none;
  }
}

@media (max-width: 480px) {
  .tec-tab { width: 40px; height: 40px; bottom: 14px; left: 14px; }
  .tec-banner { left: 12px; right: 12px; max-width: none; bottom: 14px; padding: 18px; }
  .tec-panel { padding: 24px; border-radius: 16px; }
}
