/* Native Twenty-like chrome for INN fill — no brand purple overlays */

#takt-inn-root {
  display: none;
  align-items: center;
  gap: 6px;
  font: inherit;
  color: inherit;
  z-index: 2;
}

#takt-inn-root.takt-inn-visible {
  display: inline-flex;
}

#takt-inn-root.takt-inn-in-field {
  display: flex;
  width: 100%;
  margin-top: 6px;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

#takt-inn-root.takt-inn-in-header {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  margin-left: 4px;
}

.takt-inn-toggle,
.takt-inn-btn {
  appearance: none;
  box-sizing: border-box;
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
  background: #1961ed;
}

.takt-inn-toggle:hover,
.takt-inn-btn:hover {
  background: #1554d1;
}

.takt-inn-toggle.secondary,
.takt-inn-btn.secondary {
  background: transparent;
  color: inherit;
  border-color: var(--t-border-color-medium, rgba(0, 0, 0, 0.12));
}

html.dark .takt-inn-toggle.secondary,
html.dark .takt-inn-btn.secondary {
  border-color: var(--t-border-color-medium, rgba(255, 255, 255, 0.12));
}

.takt-inn-toggle.linkish {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1961ed;
  font-size: 12px;
  font-weight: 500;
}

.takt-inn-toggle.linkish:hover {
  background: transparent;
  text-decoration: underline;
}

.takt-inn-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.takt-inn-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--t-border-color-medium, rgba(0, 0, 0, 0.08));
  background: var(--t-background-secondary, #fff);
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#takt-inn-root.takt-inn-in-header .takt-inn-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 260px;
  z-index: 30;
}

#takt-inn-root.takt-inn-in-field .takt-inn-panel {
  position: static;
  width: 100%;
  box-shadow: none;
  background: var(--t-background-tertiary, rgba(0, 0, 0, 0.03));
}

.takt-inn-panel.open {
  display: flex;
}

html.dark .takt-inn-panel {
  border-color: var(--t-border-color-medium, rgba(255, 255, 255, 0.08));
  background: var(--t-background-secondary, #1d1d1d);
}

.takt-inn-panel label {
  font-size: 12px;
  color: var(--t-font-color-secondary, #666);
}

.takt-inn-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.takt-inn-panel input {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid var(--t-border-color-medium, rgba(0, 0, 0, 0.12));
  background: var(--t-background-primary, #fff);
  color: inherit;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}

.takt-inn-panel input:focus {
  outline: none;
  border-color: #1961ed;
  box-shadow: 0 0 0 1px #1961ed;
}

html.dark .takt-inn-panel input {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--t-background-primary, #141414);
}

.takt-inn-msg {
  min-height: 1em;
  font-size: 12px;
  color: var(--t-font-color-light, #999);
}

.takt-inn-msg.ok {
  color: #2a7a3a;
}

.takt-inn-msg.err {
  color: #b42318;
}

html.dark .takt-inn-msg.ok {
  color: #81c784;
}

html.dark .takt-inn-msg.err {
  color: #f2a4a0;
}
