.jy-model-search {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  flex-shrink: 0;
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid #cdd8cf;
  border-radius: 10px;
  background: #fff;
  color: #24332f;
  font: inherit;
}
.jy-model-search:focus {
  outline: 2px solid #729c49;
  outline-offset: 1px;
}

.jy-model-toggle-v233 {
  position: absolute;
  z-index: 44;
  left: 150px;
  bottom: 18px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(22, 48, 42, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(17, 33, 29, 0.13);
  color: #24332f;
  font: 850 11px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.jy-model-library-v233 {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(19, 27, 24, 0.46);
  backdrop-filter: blur(8px);
}

.jy-model-library-v233[hidden] { display: none !important; }

.jy-model-dialog-v233 {
  width: min(760px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: #f7f9f5;
  box-shadow: 0 30px 80px rgba(9, 18, 15, 0.28);
  color: #25322e;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.jy-model-dialog-v233 > header,
.jy-model-list-title-v233 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jy-model-dialog-v233 > header { margin-bottom: 13px; }
.jy-model-dialog-v233 > header strong,
.jy-model-dialog-v233 > header span { display: block; }
.jy-model-dialog-v233 > header strong { font-size: 17px; }
.jy-model-dialog-v233 > header span { margin-top: 3px; color: #717c77; font-size: 9px; }
.jy-model-dialog-v233 > header button { width: 32px; height: 32px; border: 1px solid #d5dfd8; border-radius: 10px; background: #fff; color: #485650; font-size: 17px; cursor: pointer; }

.jy-model-account-v300 {
  min-height: 36px;
  margin: 0 0 9px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dce5da;
  border-radius: 10px;
  background: #fff;
  color: #52615b;
  font-size: 9px;
  font-weight: 750;
}
.jy-model-account-v300 span.is-cloud { color: #39703f; }
.jy-model-account-v300 span.is-login-needed { color: #a04c3e; }
.jy-model-account-v300 a { color: #4e7b35; font-weight: 850; }
.jy-model-account-v300 small { color: #7c8983; font-size: 8px; }

.jy-model-save-v233 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dce5da;
  border-radius: 12px;
  background: #edf4e7;
}

.jy-model-save-v233 input {
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #cfdacb;
  border-radius: 9px;
  background: #fff;
  color: #24322e;
  font: 750 11px/1 system-ui, sans-serif;
}

.jy-model-save-v233 button,
.jy-model-card-actions-v233 button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #ced9c7;
  border-radius: 9px;
  background: #fff;
  color: #506040;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.jy-model-save-v233 button[data-model-save-v233] { border-color: #6f9145; background: #6f9145; color: #fff; }

.jy-customer-share-v351{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:18px;background:rgba(18,31,28,.58);backdrop-filter:blur(8px)}
.jy-customer-share-dialog-v351{width:min(720px,100%);max-height:min(860px,94dvh);overflow:auto;border:1px solid #dfe5df;border-radius:16px;background:#f8f8f4;color:#17211f;box-shadow:0 28px 80px rgba(13,35,29,.24)}
.jy-customer-share-dialog-v351 header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px 17px;border-bottom:1px solid #e0e5df}
.jy-customer-share-dialog-v351 header div{display:grid;gap:3px}.jy-customer-share-dialog-v351 header small{color:#527267;font:700 10px/1.2 "IBM Plex Mono",monospace;letter-spacing:.16em}.jy-customer-share-dialog-v351 header strong{font-size:24px}.jy-customer-share-dialog-v351 header span{color:#718079;font-size:12px}.jy-customer-share-dialog-v351 header button{width:34px;height:34px;border:1px solid #d7ded8;border-radius:50%;background:#fff;font-size:22px}
.jy-customer-share-fields-v351{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:20px 24px}.jy-customer-share-fields-v351 label{display:grid;gap:7px}.jy-customer-share-fields-v351 span,.jy-customer-share-dialog-v351 legend{font-size:12px;font-weight:750}.jy-customer-share-fields-v351 input,.jy-customer-share-result-v351 input{min-width:0;height:44px;padding:0 12px;border:1px solid #ccd6cf;border-radius:10px;background:#fff;color:#17211f}
.jy-customer-share-dialog-v351 fieldset{margin:0;padding:0 24px 18px;border:0}.jy-customer-share-options-v351{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.jy-customer-share-options-v351 label{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border:1px solid #dce3dc;border-radius:10px;background:#fff}.jy-customer-share-options-v351 input{accent-color:#214c42}.jy-customer-share-lock-v351{margin:0 24px;padding:11px 13px;border-left:3px solid #214c42;background:#edf2ee;color:#53635d;font-size:11px}
.jy-customer-share-result-v351{display:grid;gap:9px;margin:16px 24px 0;padding:14px;border:1px solid #b7cabd;border-radius:12px;background:#edf5ef}.jy-customer-share-result-v351 div{display:flex;gap:8px}.jy-customer-share-result-v351 button,.jy-customer-share-result-v351 a{display:inline-grid;place-items:center;min-height:36px;padding:0 14px;border:0;border-radius:9px;background:#214c42;color:#fff;text-decoration:none;font-size:12px}
.jy-customer-share-dialog-v351 .jy-share-sets{margin-top:22px}
.jy-share-sets legend{margin-bottom:12px;color:#214c42}
.jy-share-set-primary,.jy-share-set-rename{display:grid;gap:8px;font-size:12px;font-weight:600}
.jy-share-set-primary>span{display:flex;align-items:center;justify-content:space-between}
.jy-share-set-primary small{padding:3px 8px;border-radius:12px;background:#e8efeb;color:#426458;font-size:10px;font-weight:500}
.jy-share-sets input:not([type="checkbox"]){box-sizing:border-box;width:100%;min-width:0;height:42px;padding:0 12px;border:1px solid #ccd6cf;border-radius:9px;background:#fff;color:#17211f;font:inherit;font-size:14px;font-weight:400}
.jy-share-set-heading{display:flex;justify-content:space-between;gap:12px;margin:20px 0 9px;color:#53635d;font-size:12px}
.jy-share-set-heading [data-set-count]{color:#214c42;font-weight:700;white-space:nowrap}
.jy-share-set-list{display:grid;gap:8px}
.jy-share-set-card{min-width:0;border:1px solid #dce3dc;border-radius:11px;background:#fff;overflow:hidden}
.jy-share-set-card.is-selected{border-color:#658b7d;background:#edf3ef}
.jy-share-set-choice{display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 13px;box-sizing:border-box;cursor:pointer}
.jy-share-set-choice input[type="checkbox"]{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:#214c42;cursor:pointer}
.jy-share-set-choice>span{min-width:0;flex:1;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.jy-share-set-choice small{flex-shrink:0;color:#65766e;font-size:11px}
.jy-share-set-card.is-selected .jy-share-set-choice small{color:#214c42;font-weight:600}
.jy-share-set-rename{margin:0 13px 13px;padding-top:10px;border-top:1px solid #d9e4dd;color:#53635d}
.jy-share-set-rename[hidden]{display:none}
.jy-share-sets input:focus-visible{outline:2px solid #214c42;outline-offset:3px}
.jy-share-set-choice:hover{background:#f0f5f1}
.jy-share-set-note{margin:10px 0 0;color:#718079;font-size:12px;line-height:1.6}
.jy-customer-share-dialog-v351 footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:9px;padding:16px 24px;border-top:1px solid #e0e5df;background:#f8f8f4}.jy-customer-share-dialog-v351 footer button{min-height:44px;padding:0 18px;border:1px solid #cfd8d1;border-radius:10px;background:#fff;color:#214c42;font-weight:750}.jy-customer-share-dialog-v351 footer button[type="submit"]{border-color:#214c42;background:#214c42;color:#fff}
@media(max-width:640px){.jy-customer-share-fields-v351{grid-template-columns:1fr}.jy-customer-share-options-v351{grid-template-columns:1fr 1fr}.jy-customer-share-dialog-v351 header,.jy-customer-share-fields-v351,.jy-customer-share-dialog-v351 fieldset,.jy-customer-share-dialog-v351 footer{padding-left:16px;padding-right:16px}.jy-customer-share-lock-v351,.jy-customer-share-result-v351{margin-left:16px;margin-right:16px}}
.jy-model-save-v233 button:disabled { opacity: 0.42; cursor: not-allowed; }

.jy-model-list-title-v233 { margin: 13px 2px 8px; }
.jy-model-list-title-v233 strong { font-size: 11px; }
.jy-model-list-title-v233 span { color: #77817d; font-size: 9px; }

.jy-model-list-v233 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: min(570px, calc(100vh - 205px));
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.jy-model-card-v233 {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  border: 1px solid #dae2dc;
  border-radius: 12px;
  background: #fff;
}

.jy-model-card-v233.is-active { border-color: #74984a; box-shadow: inset 0 0 0 1px rgba(116, 152, 74, 0.22); }
.jy-model-thumb-v233 { display: grid; place-items: center; min-height: 82px; overflow: hidden; border-radius: 8px; background: #e9ece8; color: #7c8781; font: 850 8px/1 monospace; }
.jy-model-thumb-v233 img { width: 100%; height: 82px; object-fit: cover; }
.jy-model-copy-v233 { min-width: 0; align-self: center; }
.jy-model-copy-v233 strong,
.jy-model-copy-v233 span,
.jy-model-copy-v233 small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jy-model-copy-v233 strong { font-size: 11px; }
.jy-model-copy-v233 span { margin-top: 5px; color: #5e6a65; font-size: 8px; }
.jy-model-copy-v233 small { margin-top: 4px; color: #8a928e; font-size: 7px; }
.jy-model-card-actions-v233 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.jy-model-card-actions-v233 button:first-child { border-color: #6f9145; background: #edf4e5; color: #405b25; }
.jy-model-card-actions-v233 button:last-child { color: #9a493d; }
.jy-model-empty-v233 { grid-column: 1 / -1; margin: 0; padding: 34px 18px; border: 1px dashed #ced8d1; border-radius: 12px; color: #7a8580; font-size: 10px; line-height: 1.6; text-align: center; }
.jy-model-toast-v233 { position: fixed; z-index: 240; left: 50%; bottom: 92px; padding: 9px 14px; border-radius: 10px; background: rgba(26, 35, 32, 0.94); color: #fff; font-size: 10px; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: .2s ease; }
.jy-model-toast-v233.is-show { opacity: 1; transform: translate(-50%, 0); }

body.jy-technical-mode .jy-model-toggle-v233 { display: none !important; }

@media (max-width: 980px) {
  .jy-model-toggle-v233 { left: 126px; bottom: 9px; min-height: 34px; padding: 0 10px; font-size: 9px; }
  .jy-model-library-v233 { padding: 8px; }
  .jy-model-dialog-v233 { width: calc(100vw - 16px); max-height: calc(100svh - 16px); padding: 11px; }
  .jy-model-save-v233 { grid-template-columns: 1fr 1fr; }
  .jy-model-save-v233 input { grid-column: 1 / -1; }
  .jy-model-list-v233 { grid-template-columns: 1fr; max-height: calc(100svh - 225px); }
}
