[data-credit-entry][hidden], .credit-notice[hidden] { display: none !important; }
.header-actions, .credit-header { display: flex; align-items: center; gap: 14px; }
.header-actions { margin-left: auto; }
.credit-header { gap: 16px; }
.credit-balance-link { display: inline-flex; align-items: baseline; gap: 6px; color: #828980; font-size: 12px; white-space: nowrap; }
.credit-balance-link strong { color: #455742; font-size: 14px; font-weight: 550; }
.credit-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 9px 16px; border: 1px solid #dce6d7; border-radius: 11px;
  background: #edf4e8; color: #385535; font-size: 13px; line-height: 1.5; font-weight: 550;
  white-space: nowrap; text-decoration: none;
}
.credit-action:hover { background: #e1ecd9; border-color: #c6d7bd; }
.credit-action:focus-visible, .credit-balance-link:focus-visible { outline: 2px solid #71957c; outline-offset: 3px; }
.side-nav .credit-nav-link { margin-top: 5px; border: 1px solid #dfe8db; background: #f0f5ec; color: #42603c; font-weight: 500; }
.side-nav .credit-nav-link:hover { background: #e6efdf; }
.is-credit-empty .credit-balance-link strong { color: #9a6a2c; }
.credit-editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 3px 10px; }
.credit-editor-bar .credit-action { min-height: 34px; padding: 6px 12px; font-size: 12px; border-radius: 9px; }
.credit-editor-bar .credit-balance-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.credit-editor-bar .credit-balance-link strong { font-size: 12px; }
.credit-notice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 12px; padding: 13px 15px; border: 1px solid #ede2c7; border-radius: 13px;
  background: #fcf8ee; text-align: left;
}
.credit-notice strong { display: block; color: #805c2d; font-size: 13px; font-weight: 550; }
.credit-notice p { margin: 4px 0 0; color: #8b795f; font-size: 12px; line-height: 1.6; }
.credit-notice .credit-action { flex: none; min-height: 38px; padding: 8px 12px; background: #fffdf8; border-color: #e8d9b7; color: #805c2d; font-size: 12px; }
.credit-notice .credit-action:hover { background: #f4ebd7; }
.studio-compose-area .credit-notice { flex-wrap: wrap; gap: 10px; margin: 0 0 10px; padding: 12px; }
.studio-compose-area .credit-notice:not([hidden]) + .credit-editor-bar { display: none; }

@media (min-width: 768px) {
  .has-credit-entry[data-page=home] .app-header { display: flex; height: 64px; }
  .has-credit-entry[data-page=home] .header-leading { display: none; }
  .has-credit-entry[data-page=home] .workspace-main { padding-top: 32px; }
}
@media (max-width: 767px) {
  .header-actions { gap: 8px; }
  .credit-header .credit-balance-link { display: none; }
  .credit-header .credit-action { min-height: 40px; padding: 9px 12px; font-size: 12px; }
  .has-credit-entry .header-profile { width: 36px; height: 40px; }
  .has-credit-entry .header-create { width: 36px; }
}
@media (max-width: 420px) {
  .credit-notice { flex-wrap: wrap; gap: 10px; }
}
