#g00-behavior-bar {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  background: #f7efe5;
  color: #312921;
  border-bottom: 1px solid #d8bba0;
  padding: 12px 16px;
}
.g00-behavior-row,
.g00-behavior-panel {
  max-width: 960px;
  margin: 0 auto;
}
.g00-behavior-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
}
#g00-behavior-bar p,
#g00-behavior-dialog p {
  margin: 0;
  flex: 1 1 240px;
  font-size: 14px;
  line-height: 1.45;
}
.g00-behavior-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#g00-behavior-prefs,
.g00-behavior-actions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #d7c1ad;
  border-radius: 9px;
  background: #fcf8f1;
  color: #312921;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
#g00-behavior-prefs { margin-top: 8px; }
button.g00-behavior-accept {
  background: #312921;
  border-color: #312921;
  color: #f7efe5;
}
#g00-behavior-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  justify-content: center;
  padding: 16px;
  background: rgba(49, 41, 33, 0.28);
}
#g00-behavior-dialog[hidden] { display: none; }
#g00-behavior-dialog { overflow: auto; }
#g00-behavior-prefs:focus-visible,
.g00-behavior-actions button:focus-visible {
  outline: 3px solid #1d4e89;
  outline-offset: 2px;
}
.g00-behavior-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  background: #f7efe5;
  color: #312921;
  border: 1px solid #d8bba0;
  border-radius: 12px;
  padding: 16px;
}
.g00-behavior-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}
.g00-behavior-panel p + p { margin-top: 8px; }
.g00-behavior-panel .g00-behavior-actions { margin-top: 14px; }
@media print {
  #g00-behavior-bar,
  #g00-behavior-prefs,
  #g00-behavior-dialog { display: none !important; }
}
