@font-face{font-family:"PT Sans";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/PTSans-Regular.ttf") format("truetype")}
@font-face{font-family:"PT Sans";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/PTSans-Bold.ttf") format("truetype")}
.crm-demo{--base_font_size:15px;--fields_font_size:15px;--fields_side_padding:30px;--base_button_active:#4c8bf7;--base_button_active_border:#4077d6;--base_active_color:#1579d2;--edit_border_color:#4c8bf7;--palette-background-primary:#fff;--palette-background-default:#f5f5f5;--palette-card-top-background:#243c48;--palette-text-primary:#363b44;--palette-text-secondary-light:#92989b;--palette-text-secondary-dark:#848c90;--palette-text-secondary-dark-green:#68818b;--palette-border-primary:#e8eaeb;--palette-border-default:#ccc;--form_top_text_color:#fff;--border-radius-default:3px;--feed-padding:10px;--feed-padding-bottom:15px;--feed-normal-font-size:15px;--feed-normal-line-height:20px;--feed-min-font-size:13px;--card-task-padding:10px;--card-task-padding-left:56px;box-sizing:border-box;padding:0;border:0;border-radius:0;width:calc(100vw - 40px);max-width:1280px;height:calc(100dvh - 40px);max-height:900px;background:#fff;color:var(--palette-text-primary);overflow:hidden;font-family:"PT Sans",Arial,sans-serif;font-size:15px;line-height:normal}
.crm-demo *{box-sizing:border-box}.crm-demo button,.crm-demo input,.crm-demo select,.crm-demo textarea{font:inherit;letter-spacing:normal}.crm-demo button{cursor:pointer}.crm-demo button:disabled{opacity:.5;cursor:default}.crm-demo button:focus-visible,.crm-demo input:focus-visible,.crm-demo textarea:focus-visible,.crm-demo select:focus-visible{outline:2px solid #4c8bf7;outline-offset:2px}.crm-demo h2,.crm-demo h3,.crm-demo h4,.crm-demo p{margin:0;font-family:inherit;letter-spacing:normal;line-height:inherit}.crm-demo [hidden]{display:none!important}.crm-demo .ui-icon{width:18px;height:18px;flex-shrink:0}.crm-demo::backdrop,.crm-document-preview::backdrop{background:rgba(0,0,0,.45)}

/* Component declarations from the supplied amoCRM and priority widget styles. */
.crm-demo .feed-note-wrapper{box-sizing: border-box;
    display: flex;
    flex-direction: row;
    font-size: var(--feed-normal-font-size);
    margin-bottom: 20px;
    margin-top: 20px;
    min-height: min-content}
.crm-demo .feed-note-wrapper:first-child{margin-top: 0}
.crm-demo .feed-note-wrapper:first-child:last-child{margin-bottom: 0}
.crm-demo .feed-note{background-color: var(--palette-background-default);
    border: 1px solid var(--palette-border-default);
    border-radius: var(--border-radius-default);
    box-sizing: border-box;
    color: var(--palette-text-secondary-dark);
    display: flex;
    padding: var(--feed-padding);
    padding-bottom: var(--feed-padding-bottom);
    position: relative;
    width: 100%}
.crm-demo .feed-note__icon{flex-shrink: 0;
    margin-right: 10px;
    margin-top: 2px}
.crm-demo .feed-note__icon,.crm-demo .feed-note__icon-inner{box-sizing: border-box;
    display: flex;
    width: 36px}
.crm-demo .feed-note__icon-inner{align-items: center;
    border: 1px solid var(--palette-text-secondary-dark);
    border-radius: 36px;
    height: 36px;
    justify-content: center;
    position: relative}
.crm-demo .feed-note__date,.crm-demo .feed-note__responsible{flex-shrink: 0;
    white-space: nowrap}
.crm-demo .feed-note__date{padding-right: .25em}
.crm-demo .feed-note__responsible{max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis}
.crm-demo .feed-note__header{color: var(--palette-text-secondary-dark);
    display: flex;
    font-size: var(--feed-min-font-size);
    line-height: var(--feed-normal-line-height);
    overflow: hidden}
.crm-demo .feed-note__content{color: var(--palette-text-primary);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: calc(100% - 46px - var(--feed-note-actions-reserve, 0px));
    position: relative;
    width: calc(100% - 46px - var(--feed-note-actions-reserve, 0px))}
.crm-demo .feed-note__body{flex: 1 1 auto;
    overflow: hidden;
    padding-right: 5px;
    word-break: break-word}
.crm-demo .card-tabs{display: flex;
    height: 29px;
    margin: 0 calc(var(--fields_side_padding) - 8px);
    position: relative;
    -webkit-user-select: none;
    user-select: none}
.crm-demo .card-tabs-wrapper{background: var(--palette-card-top-background);
    margin: 0 calc(var(--fields_side_padding)*-1) 13px}
.crm-demo .card-tabs__item{box-sizing: border-box;
    color: var(--palette-text-secondary-dark-green);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    height: 100%;
    padding: 0 8px;
    position: relative;
    transition: color .2s}
.crm-demo .card-tabs__item.selected{color: var(--form_top_text_color)}
.crm-demo .card-tabs__item-inner{max-width: 65px;
    overflow: hidden;
    white-space: nowrap}
.crm-demo .card-holder__content{display: flex;
    flex-direction: row;
    height: 100%;
    min-width: 800px;
    position: relative}
.crm-demo .card-holder__feed{background: var(--palette-background-default);
    box-sizing: border-box;
    flex-grow: 1;
    height: 100%;
    min-width: 400px;
    overflow: hidden;
    position: relative}
.crm-demo .card-holder__container{align-items: stretch;
    background: var(--palette-background-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
    width: 100%;
    z-index: 1}
.crm-demo .card-holder__fields{background: var(--palette-background-primary);
    box-sizing: border-box;
    flex-shrink: 0;
    font-size: var(--fields_font_size);
    height: 100%;
    max-width: 50%;
    min-width: 340px;
    overflow-y: hidden;
    position: relative;
    width: 34%}
.crm-demo .card-holder__fields .linked-form__field{display: flex;
    position: relative}
.crm-demo .card-holder__fields .linked-form__field__label{box-sizing: border-box;
    color: var(--palette-text-secondary-light);
    display: inline-block;
    font-size: var(--fields_font_size);
    height: 32px;
    margin-right: 15px;
    overflow-x: hidden;
    position: relative;
    vertical-align: top;
    white-space: nowrap;
    width: calc(38.37% - 15px)}
.crm-demo .card-holder__fields .linked-form__field__value{color: var(--palette-text-primary);
    display: inline-block;
    font-size: var(--fields_font_size);
    position: relative;
    width: 61.63%}
.crm-demo .card-holder__fields .card-fields__fields-block{box-sizing: border-box;
    flex: 0 0 auto;
    position: relative}
.crm-demo .card-holder__fields .card-fields__linked-block{background: var(--palette-background-primary);
    flex: 1 0 auto;
    position: relative}
.crm-demo .card-task{background: var(--palette-background-default);
    border: 1px solid transparent;
    border-radius: var(--border-radius-default);
    box-sizing: border-box;
    color: var(--palette-text-primary);
    padding: var(--card-task-padding) var(--card-task-padding) var(--card-task-padding) var(--card-task-padding-left);
    position: relative;
    transition: box-shadow .2s;
    width: 100%}
.crm-demo .card-task__icon{align-items: center;
    border: 1px solid transparent;
    border-radius: 136px;
    box-sizing: border-box;
    display: flex;
    height: 36px;
    justify-content: center;
    left: 10px;
    position: absolute;
    top: 10px;
    width: 36px}
.crm-demo .card-task__inner{overflow: hidden}
.crm-demo .card-task__inner-header{color: var(--palette-text-secondary-dark);
    display: flex;
    font-size: 13px;
    line-height: 20px}
.crm-demo .card-task__inner-header-left{min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap}
.crm-demo .card-task__result-wrapper{margin-top: 7px}
.crm-demo .card-task__result-wrapper__inner{display: flex}
.crm-demo .card-task__result-wrapper__inner__textarea{border: 1px solid var(--palette-border-default);
    border-radius: var(--border-radius-default);
    box-sizing: border-box;
    height: 38px;
    line-height: 20px;
    max-height: 180px;
    min-height: 38px;
    padding: 8px 10px;
    resize: none;
    width: 100%}
.crm-demo .ipt-task-create-priority{background: #f7f8fb;
  border: 1px solid #e1e4eb;
  border-radius: 10px;
  box-sizing: border-box;
  color: #343b4b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 10px 0;
  padding: 11px 12px;
  width: 100%;}
.crm-demo .ipt-card-task-priority{display: inline-flex;
  flex: 0 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin-left: auto;
  padding-left: 8px;
  position: relative;
  vertical-align: middle;}
.crm-demo .ipt-card-priority-trigger{align-items: center;
  background: var(--ipt-level-bg);
  border: 0;
  border-radius: 12px;
  color: var(--ipt-level-color);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  gap: 4px;
  line-height: 16px;
  padding: 3px 7px;
  white-space: nowrap;}
.crm-demo .ipt-card-priority-trigger:hover{box-shadow: inset 0 0 0 1px currentColor;}
.crm-demo .ipt-card-priority-trigger--empty{background: transparent;
  padding-left: 3px;
  padding-right: 3px;}
.crm-demo .ipt-card-priority-flag{font-size: 13px;
  line-height: 1;}
.crm-demo .ipt-card-priority-menu{background: #fff;
  border: 1px solid #dfe2e9;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(34, 42, 59, .18);
  display: none;
  min-width: 154px;
  overflow: hidden;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 1005;}
.crm-demo .ipt-card-task-priority--open .ipt-card-priority-menu{display: block;}
.crm-demo .card-task.ipt-card-priority-background{background-color: var(--ipt-card-priority-background) !important;}
.crm-demo .ipt-card-priority-menu--portal{display: block;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  position: fixed;
  right: auto;
  z-index: 100000;}
.crm-demo .ipt-card-priority-option{align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #4b5261;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 11px;
  gap: 7px;
  padding: 7px 8px;
  text-align: left;
  width: 100%;}
.crm-demo .ipt-card-priority-option:hover{background: #f3f4f7;}
.crm-demo .ipt-card-priority-option--clear{border-top: 1px solid #eceef2;
  color: #8a909c;
  margin-top: 3px;}
.crm-demo .ipt-card-priority-dot{border-radius: 50%;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;}
.crm-demo .ipt-editor-heading{align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;}
.crm-demo .ipt-editor-heading > span:first-child{color: #323949;
  font-size: 12px;
  font-weight: 700;}
.crm-demo .ipt-editor-hint{color: #9298a5;
  font-size: 10px;
  font-weight: 500;}
.crm-demo .ipt-editor-levels{align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;}
.crm-demo .ipt-editor-level{align-items: center;
  background: #fff;
  border: 1px solid #dfe2e9;
  border-radius: 8px;
  color: #5e6574;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  gap: 5px;
  line-height: 18px;
  padding: 6px 9px;}
.crm-demo .ipt-editor-level:hover{border-color: var(--ipt-level-color);
  color: var(--ipt-level-color);}
.crm-demo .ipt-editor-level--active{background: var(--ipt-level-bg);
  border-color: var(--ipt-level-color);
  color: var(--ipt-level-color);
  box-shadow: 0 0 0 2px var(--ipt-level-bg);}
.crm-demo .ipt-editor-flag{color: var(--ipt-level-color);
  font-size: 14px;
  line-height: 1;}
.crm-demo .ipt-editor-clear{align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #a0a5b0;
  cursor: pointer;
  display: inline-flex;
  font-size: 17px;
  height: 30px;
  justify-content: center;
  width: 30px;}
.crm-demo .ipt-editor-clear:hover{background: #e9ebf1;
  color: #626979;}
.crm-demo-head{height:44px;background:#fff;border-bottom:1px solid #e8eaeb;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.crm-demo .crm-demo-head h2{font-size:15px;font-weight:400;max-width:none;padding:0}.crm-head-actions{display:flex;gap:12px;align-items:center}.crm-reset,.crm-icon-button{border:0;background:transparent;color:#848c90;padding:0}.crm-reset{font-size:13px!important}.crm-icon-button{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center}.crm-demo .card-holder__content{height:calc(100% - 78px);min-width:0}.crm-demo .card-holder__fields{border-right:6px solid #d3d3d3}.crm-demo .card-holder__feed{min-width:0}.crm-demo .card-holder__container{overflow-x:hidden;overflow-y:auto}.card-entity-form__top{padding:20px 30px 16px;background:var(--palette-card-top-background);color:#fff}.crm-deal-name{font-size:24px;line-height:30px;font-weight:700}.crm-deal-id{color:#8ba0aa;font-size:13px;margin-top:4px}.crm-stage{display:flex;justify-content:space-between;font-size:15px;font-weight:700;margin-top:20px}.crm-stage-line{height:4px;background:#152d38;margin-top:8px}.crm-stage-line i{height:4px;width:25%;display:block;background:#b5d8f4}.crm-demo .card-tabs-wrapper{margin:0 0 13px;flex-shrink:0}.crm-demo .card-tabs{margin:0 22px}.crm-demo .card-tabs__item{border:0;background:transparent;font-size:15px;align-items:center}.crm-demo .card-tabs__item-inner{max-width:none}.crm-demo .card-tabs__item.selected{background:transparent;border-bottom:3px solid #fff}.crm-deal-scroll{padding:0 30px 30px;flex:1 0 auto}.crm-demo .linked-form__field__label{line-height:32px;text-overflow:ellipsis}.crm-demo .linked-form__field__value{min-width:0}.crm-static-value{padding:7px 0;overflow-wrap:anywhere}.crm-demo .text-input{width:100%;height:32px;color:#363b44;background:#fff;border:0;border-bottom:1px solid transparent;border-radius:0;padding:0;box-shadow:none}.crm-demo .text-input:focus{outline:0;border-bottom-color:#4c8bf7}.crm-demo .text-input[aria-invalid=true]{border-color:#ff7779}.crm-error{font-size:12px;color:#d84c50;display:block;margin-bottom:6px}.crm-demo .card-fields__linked-block{border-top:1px solid #e8eaeb;margin:28px -30px 0;padding:16px 30px}.crm-contact-name{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-size:16px}.crm-contact-name>.ui-icon{width:32px;height:32px;color:#92989b}.crm-feed-scroll{height:100%;padding:20px;overflow-y:auto}.crm-demo .feed-note{background:#fff}.crm-demo .feed-note__header{color:#92989b}.crm-demo .feed-note__body p{line-height:20px}.crm-demo .feed-note__icon-inner .ui-icon{width:20px;height:20px;color:#848c90}.crm-demo .feed-note__responsible{overflow:hidden;text-overflow:ellipsis;min-width:0}.crm-demo .feed-note__content{min-width:0}.crm-demo .feed-note__date{padding-right:8px}
.crm-primary,.crm-secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:3px;padding:8px 10px;font-weight:700!important;font-size:13px!important;line-height:18px!important;min-height:36px;box-shadow:none}.crm-primary{background:#4c8bf7;border:1px solid #4077d6;color:#fff}.crm-primary:hover{background:#4077d6}.crm-secondary{background:#fff;border:1px solid #ccc;color:#363b44}.crm-text-button{border:0;background:none;color:#1579d2;padding:0;text-align:left}.crm-widget-title{font-size:15px;font-weight:700;margin:6px 0 20px!important}.crm-composer{padding:7px 0 22px;border-bottom:1px solid #e8eaeb}.crm-template-label{display:block;color:#92989b;margin-bottom:8px}.crm-template-select{display:block;width:100%;height:36px;border:1px solid #ccc;border-radius:3px;background:#fff;color:#363b44;padding:0 8px;margin-bottom:10px}.crm-document-item{padding:18px 0;border-bottom:1px solid #e8eaeb}.crm-file-name{display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:#1579d2;padding:0;text-align:left}.crm-file-meta{color:#92989b;font-size:13px;margin-top:5px;margin-left:26px}.crm-file-status{margin:8px 0;color:#848c90;font-size:13px}.crm-file-status.is-signed{color:#41990b}.crm-file-status.is-rejected{color:#d43b32}.crm-file-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.crm-file-actions .crm-text-button{font-size:13px}.crm-field-hint{color:#92989b;font-size:13px;margin-top:12px!important}.crm-panel{border-top:1px solid #e8eaeb;margin-top:15px;padding-top:12px}.crm-panel h4{font-size:15px;font-weight:400;margin-bottom:8px}.crm-panel p{font-size:13px;line-height:19px}.crm-panel input{width:100%;border:1px solid #ccc;border-radius:3px;padding:7px;margin-bottom:10px;font-size:13px}.crm-panel>.crm-primary{margin-top:12px}.crm-panel-close{float:right}.crm-response-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.crm-demo-footer{height:34px;border-top:1px solid #e8eaeb;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#92989b}.crm-demo-footer button{background:none;border:0;color:#1579d2;padding:0;font-size:12px;white-space:nowrap}.crm-toast{position:absolute;bottom:45px;left:50%;transform:translateX(-50%);background:#363b44;color:#fff;padding:10px 14px;max-width:90%;font-size:13px;z-index:20;pointer-events:none}
.crm-demo .card-task-wrapper{width:100%}.crm-demo .card-task__inner{overflow:visible}.crm-demo .card-task__inner-content{margin-top:3px}.crm-demo .card-task__inner-content p{line-height:20px}.crm-demo .card-task__icon{color:#848c90}.crm-demo .card-task__button{margin-left:8px}.crm-demo .card-task__result-wrapper__inner{align-items:flex-start}.crm-demo .card-task.is-completed{opacity:.6}.crm-task-done{display:flex;align-items:center;gap:6px;font-size:13px;color:#41990b;margin-top:10px}.crm-task-form{background:#fff;border:1px solid #ccc;border-radius:3px;padding:10px}.feed-compose__header{display:flex;justify-content:space-between;gap:10px;color:#848c90;font-size:13px;margin-bottom:10px}.crm-task-form>textarea{width:100%;border:0;resize:vertical;min-height:45px;outline:none;color:#363b44}.feed-compose__actions{display:flex;align-items:center;gap:12px}.crm-task-compose{margin-top:20px}.crm-demo .ipt-card-priority-menu{z-index:10}
.crm-document-preview{padding:0;border:1px solid #ccc;border-radius:3px;max-width:760px;width:calc(100vw - 40px);height:calc(100dvh - 50px);max-height:900px;background:#fff;color:#363b44;font:15px/normal "PT Sans",Arial,sans-serif}.crm-preview-toolbar{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #e8eaeb}.crm-paper{padding:40px}.crm-paper-top{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #363b44;padding-bottom:20px}.crm-paper-top span{font-size:12px;color:#92989b}.crm-paper h4{font-size:24px;margin:35px 0 5px}.crm-paper-date{color:#92989b;font-size:13px}.crm-paper-parties{margin:30px 0;line-height:22px}.crm-paper table{width:100%;border-collapse:collapse}.crm-paper th,.crm-paper td{padding:10px 6px;text-align:right;border-bottom:1px solid #e8eaeb;font-size:13px}.crm-paper th:first-child,.crm-paper td:first-child{text-align:left}.crm-paper th{background:#f5f5f5;font-weight:400;color:#848c90}.crm-paper-total{display:flex;justify-content:flex-end;gap:25px;font-size:22px;margin:25px 0}.crm-paper-note{font-size:14px;line-height:21px}.crm-paper-signature{border:1px solid #749e42;color:#41990b;margin-top:30px;padding:15px;display:flex;gap:10px}
@media(max-width:760px){dialog.crm-demo{width:100vw;height:100dvh;max-height:none}.crm-demo .card-holder__content{overflow:auto;display:block}.crm-demo .card-holder__fields{width:100%;max-width:none;min-width:0;height:auto;border-right:0;border-bottom:6px solid #d3d3d3}.crm-demo .card-holder__container{height:auto;overflow:visible}.crm-demo .card-holder__feed{width:100%;height:auto;min-height:250px}.crm-feed-scroll{height:auto;overflow:visible}.crm-demo-head{padding:0 12px}.crm-demo .crm-demo-head h2{font-size:13px}.crm-head-actions{gap:8px}.crm-demo-footer{padding:0 12px;font-size:10px}.crm-demo-footer>span{max-width:65%}.crm-demo-footer button{font-size:11px}.card-entity-form__top{padding-top:15px}.crm-deal-name{font-size:21px}.crm-stage{margin-top:12px}.crm-paper{padding:25px 20px}.crm-demo .card-task__result-wrapper__inner{flex-wrap:wrap;gap:8px}.crm-demo .card-task__button{margin-left:0}.crm-demo .ipt-card-priority-menu{right:-8px}.crm-demo .card-task__inner-header{flex-wrap:wrap}.crm-demo .feed-note__header{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.crm-demo *{transition:none!important}}

/* The header and navigation use the site palette around the CRM workspace. */
.crm-demo {
    --crm-shell-border: #e2d2bf;
    --crm-shell-ink: #332c24;
    --crm-shell-accent: #984224;
    border: 1px solid var(--crm-shell-border);
    border-radius: 22px;
    box-shadow: 0 28px 100px #2115084d;
    background: #fffaf3;
}
dialog.crm-demo[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}
dialog.crm-demo::backdrop {
    background: #30251ed0;
    backdrop-filter: blur(4px);
}
.crm-demo[open] > :is(.card-holder__content, .crm-report-workspace) {
    height: auto;
    min-height: 0;
}
.crm-demo .crm-demo-head,
.crm-demo .crm-demo-footer {
    height: auto;
    padding: 12px clamp(12px, 2.3vw, 28px);
    border-color: var(--crm-shell-border);
    font-family: Manrope, "PT Sans", Arial, sans-serif;
}
.crm-demo .crm-demo-head {
    min-height: 64px;
    background: linear-gradient(100deg, #f6e6d4, #fffaf3 76%);
}
.crm-demo .crm-demo-head :is(h2,h3) {
    color: var(--crm-shell-ink);
    font-size: clamp(17px, 2vw, 24px);
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -.03em;
}
.crm-demo-head .crm-head-actions { flex-shrink: 0; }
.crm-demo-head .crm-reset {
    min-height: 44px;
    padding: 0 8px;
    color: #654d3d;
    font-weight: 650;
}
.crm-demo-head .crm-icon-button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--crm-shell-border);
    border-radius: 50%;
    background: #fffdf8;
    color: var(--crm-shell-ink);
}
.crm-demo-head .crm-icon-button:hover { background: #f0deca; }
.crm-demo .crm-demo-footer {
    background: #fffaf3;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.crm-widget-links { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-demo .crm-widget-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: 6px 14px;
    border: 1px solid #dac5af;
    border-radius: 999px;
    background: #f8ecde;
    color: #643923;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}
.crm-demo .crm-widget-link:hover { background: #efdeca; }
.crm-demo .crm-widget-link--primary {
    border-color: transparent;
    background: var(--crm-shell-accent);
    color: #fff;
}
.crm-demo .crm-widget-link--primary:hover { background: #793218; }
.crm-demo .crm-demo-footer > .crm-text-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    color: var(--crm-shell-accent);
    font-size: 13px;
    font-weight: 750;
}
.crm-demo .crm-demo-footer .ui-icon { width: 16px; height: 16px; }
.crm-demo :is(.crm-demo-head button, .crm-demo-footer a, .crm-demo-footer button):focus-visible {
    outline: 2px solid var(--crm-shell-accent);
    outline-offset: 2px;
}
.crm-demo .crm-toast { bottom: 78px; }

dialog.crm-demo:has(.crm-demo-workspace) {
    max-width: 1540px;
}
.crm-demo-workspace {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    min-height: 0;
}
.crm-demo .crm-demo-workspace > :is(.card-holder__content,.crm-report-workspace) {
    height: 100%;
    min-width: 0;
    min-height: 0;
}
.crm-demo .crm-demo-workspace .card-holder__fields {
    width: 46%;
    min-width: min(280px, 46%);
}
.crm-widget-video {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    padding: clamp(14px, 2vw, 26px);
    overflow: auto;
    border-inline-start: 1px solid var(--crm-shell-border);
    background: #fffaf3;
    color: var(--crm-shell-ink);
    font-family: Manrope, "PT Sans", Arial, sans-serif;
}
.crm-widget-video__label {
    margin: 0;
    color: var(--crm-shell-accent);
    font-size: 12px;
    font-weight: 750;
}
.crm-widget-video__media { display: grid; gap: 12px; }
.crm-widget-video h3 {
    margin: 0;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.3;
}
.crm-widget-video video {
    display: block;
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #101827;
    object-fit: contain;
}
.crm-widget-video .widget-video-value {
    padding-top: 12px;
    border-top: 1px solid var(--crm-shell-border);
    font-size: 13px;
    line-height: 1.45;
}
.crm-widget-video .widget-video-value h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
}
.crm-widget-video:not(:has(video)) .widget-video-value { padding-top: 0; border-top: 0; }
.crm-widget-video .widget-video-value p { margin: 0; }
.crm-widget-video .widget-video-value ul {
    display: grid;
    gap: 4px;
    margin: 8px 0 0;
    padding-inline-start: 18px;
    list-style: disc;
}
.crm-widget-video .widget-video-value li::marker { color: var(--crm-shell-accent); }

.widget-demo-section {
    scroll-margin-top: calc(var(--header-h, 76px) + 16px);
    padding: clamp(30px, 5vw, 68px) 0;
    background: #f7f1e8;
    color: #332c24;
}
.widget-demo-intro { margin-bottom: 20px; }
.widget-demo-intro h2 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 40px); }
.widget-demo-intro p { margin: 0; max-width: 66ch; }
.crm-demo.crm-demo-inline { width: 100%; height: auto; max-width: none; max-height: none; border-radius: 16px; position: relative; }
.crm-demo-inline > :is(.card-holder__content,.crm-report-workspace) { height: clamp(460px, 65vh, 720px); min-width: 0; }
.crm-demo-inline .crm-toast { bottom: 16px; }
.crm-document-inline-preview { max-height: 620px; overflow: auto; background: #f5f5f5; border-top: 1px solid var(--crm-shell-border); }
.widget-demo-section .widget-video-value {
    margin-top: 20px;
    padding: clamp(16px, 3vw, 30px);
    border: 1px solid #e2d2bf;
    border-radius: 14px;
    background: #fffaf3;
}
.widget-demo-section .widget-video-value h3 { margin: 0 0 8px; font-size: clamp(20px, 3vw, 28px); }
.widget-demo-section .widget-video-value ul { margin: 10px 0 0; padding-inline-start: 22px; list-style: disc; }
.widget-demo-section .widget-video-value li::marker { color: #984224; }
.widget-demo-contact { margin-top: 16px; }
.crm-flow-example { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 16px; }
.crm-flow-example > div { min-width: 0; padding: 14px; border: 1px solid #e2d2bf; border-radius: 10px; background: #fff; }
.crm-flow-example h4 { margin-bottom: 8px; font-weight: 700; }
.crm-flow-example p { margin-bottom: 8px; }
.crm-flow-example button { width: 100%; margin-top: 8px; }
.crm-flow-example label { display: grid; gap: 6px; }
.crm-flow-example select { width: 100%; padding: 6px; border: 1px solid #bbb; border-radius: 4px; }
@media (max-width: 760px) {
    .crm-flow-example { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
    .crm-demo-workspace {
        display: block;
        overflow: auto;
    }
    .crm-demo .crm-demo-workspace > .card-holder__content {
        height: clamp(340px, 66dvh, 640px);
    }
    .crm-widget-video {
        overflow: visible;
        border-inline-start: 0;
        border-block-start: 1px solid var(--crm-shell-border);
    }
    .crm-widget-video video { max-width: 640px; }
}
@media (max-width: 760px) {
    .crm-demo .crm-demo-workspace .card-holder__fields {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    dialog.crm-demo { border: 0; border-radius: 0; }
    .crm-demo .crm-demo-head, .crm-demo .crm-demo-footer { padding-block: 8px; }
    .crm-demo-head .crm-head-actions { gap: 4px; }
    .crm-demo .crm-widget-link { padding-inline: 11px; }
}
@media (max-width: 525px) {
    .crm-demo .crm-demo-footer { justify-content: center; }
    .crm-demo .crm-widget-links { flex: 1 1 100%; }
    .crm-demo .crm-widget-link { flex: 1 1 auto; }
    .crm-demo .crm-toast { bottom: 122px; }
}
