.custom-timeline-tools{display:flex;align-items:center;gap:14px;margin:0 0 13px;padding:8px 10px;border:1px solid rgba(108,113,181,.12);border-radius:17px;background:linear-gradient(120deg,rgba(255,255,255,.94),rgba(245,244,255,.9));box-shadow:0 10px 30px rgba(68,71,130,.06)}
.custom-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;min-width:350px;padding:4px;border-radius:13px;background:#ebeef8}.custom-mode-switch button{min-height:36px;padding:6px 18px;border:0;border-radius:10px;background:transparent;color:#85899d;font-weight:750;cursor:pointer}.custom-mode-switch button.active{background:#fff;color:#5963cb;box-shadow:0 5px 15px rgba(73,77,145,.13)}
.custom-timeline-note{margin-left:auto;color:#9497aa;font-size:9px}.custom-edit-button{display:flex;align-items:center;gap:7px;min-height:40px;padding:0 16px;border:0;border-radius:12px;background:linear-gradient(120deg,#5968d8,#876bd8);color:#fff;font-weight:750;cursor:pointer;box-shadow:0 8px 22px rgba(91,94,198,.24)}.custom-edit-button[hidden]{display:none!important}.matrix-page.customized .matrix-shell{box-shadow:0 18px 50px rgba(105,91,202,.13),inset 0 0 0 1px rgba(125,104,219,.13)}.matrix-page.customized .matrix-era{display:none}.matrix-page.customized .matrix-grid{grid-template-columns:80px repeat(var(--customcols),minmax(0,1fr))!important}
.modal:has(.timeline-editor){position:relative;width:min(1040px,calc(100vw - 42px));max-width:none;height:min(820px,calc(100vh - 38px));padding:0;overflow:hidden;border:1px solid rgba(109,113,181,.13);border-radius:25px;background:#f5f6fc}.modal:has(.timeline-editor)>.modal-close{position:absolute;z-index:4;right:20px;top:19px;width:38px;height:38px;background:#fff;color:#60657b;box-shadow:0 5px 16px rgba(54,58,108,.1)}
.timeline-editor{display:flex;flex-direction:column;height:100%;min-width:0}.timeline-editor-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:0 0 auto;padding:22px 76px 18px 25px;border-bottom:1px solid rgba(105,110,177,.1);background:linear-gradient(120deg,#fff,#f5f3ff)}.timeline-editor-head>div{display:flex;align-items:center;gap:13px}.timeline-editor-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:linear-gradient(135deg,#626cdb,#8a6cda);color:#fff;font-size:18px;box-shadow:0 8px 19px rgba(98,100,203,.22)}.timeline-editor-head h2{margin:2px 0 4px;font-size:22px}.timeline-editor-head p{margin:0}.timeline-count{padding:7px 12px;border:1px solid #e1e3f2;border-radius:18px;background:#fff;color:#85899e;font-size:10px;white-space:nowrap}.timeline-count b{color:#646bd0;font-size:13px}
.timeline-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:17px 20px 105px}.timeline-edit-card{position:relative;min-width:0;padding:13px;border:1px solid rgba(106,111,180,.12);border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(68,72,128,.055);transition:.18s}.timeline-edit-card:hover{border-color:rgba(101,106,205,.24);box-shadow:0 11px 28px rgba(68,72,128,.09)}.timeline-edit-card-head{display:flex;align-items:center;gap:9px;margin-bottom:10px}.timeline-edit-card-head>i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf0ff;color:#626bd0;font-style:normal;font-size:9px;font-weight:900}.timeline-edit-card-head>strong{min-width:0;overflow:hidden;color:#303550;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.timeline-edit-card-head>button{display:grid;place-items:center;width:27px;height:27px;margin-left:auto;border:1px solid #f2dadd;border-radius:9px;background:#fff5f6;color:#c45d6a;font-size:18px;line-height:1;cursor:pointer;transition:.16s}.timeline-edit-card-head>button:hover{background:#d95f6d;color:#fff;transform:scale(1.05)}
.timeline-edit-fields{display:grid;grid-template-columns:145px minmax(0,1fr);gap:10px}.timeline-edit-fields label{display:flex;min-width:0;flex-direction:column;gap:6px;color:#73778d;font-size:9px;font-weight:750}.timeline-edit-fields label>span{display:flex;justify-content:space-between}.timeline-edit-fields label small{color:#a1a4b4;font-size:8px}.timeline-edit-fields input,.timeline-edit-fields textarea{width:100%;border:1px solid #e2e4f1;border-radius:11px;background:#f9faff;color:#282d48;padding:9px 10px;font:650 11px/1.45 inherit;outline:none}.timeline-edit-fields textarea{height:74px;resize:vertical}.timeline-edit-fields input:focus,.timeline-edit-fields textarea:focus{border-color:#9298e3;background:#fff;box-shadow:0 0 0 3px rgba(108,113,211,.08)}
.timeline-editor-actions{position:absolute;z-index:3;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;min-height:82px;padding:14px 20px;border-top:1px solid rgba(105,110,177,.12);background:rgba(255,255,255,.96);box-shadow:0 -12px 32px rgba(59,63,118,.08);backdrop-filter:blur(18px)}.timeline-editor-actions>span{color:#999cad;font-size:9px}.timeline-editor-actions>div{display:flex;gap:9px;margin-left:auto}.timeline-editor-actions .btn{min-height:45px;padding:0 18px}.timeline-editor-actions .primary{min-width:190px;background:linear-gradient(120deg,#5969dc,#896cdb);box-shadow:0 9px 23px rgba(91,96,205,.27);font-size:13px}.custom-reset{color:#b65462!important;background:#fff2f4!important}
.custom-learning{gap:4px!important;padding:5px!important;overflow:hidden!important}.custom-learning p{margin:0!important;padding:5px!important;font-size:8px!important;line-height:1.3!important;overflow-wrap:anywhere}
@media(max-width:1100px) and (min-width:721px){.matrix-page.customized .matrix-grid{grid-template-columns:65px repeat(var(--customcols),minmax(0,1fr))!important}.timeline-editor-grid{grid-template-columns:1fr 1fr}.timeline-edit-fields{grid-template-columns:125px minmax(0,1fr)}}
@media(max-width:720px){.custom-timeline-tools{align-items:stretch;gap:7px;padding:7px}.custom-mode-switch{min-width:0;flex:1}.custom-mode-switch button{padding:6px 8px;font-size:10px}.custom-timeline-note{display:none}.custom-edit-button{padding:0 11px;font-size:0}.custom-edit-button span{font-size:16px}.matrix-page.customized .matrix-grid{min-width:max(700px,calc(var(--customcols) * 125px + 80px));grid-template-columns:80px repeat(var(--customcols),minmax(120px,1fr))!important}.modal:has(.timeline-editor){width:100%;height:94vh;border-radius:22px 22px 0 0}.timeline-editor-head{padding:17px 58px 14px 16px}.timeline-editor-icon{width:36px;height:36px}.timeline-editor-head h2{font-size:18px}.timeline-count{display:none}.timeline-editor-grid{grid-template-columns:1fr;padding:12px 12px 105px}.timeline-edit-fields{grid-template-columns:1fr}.timeline-edit-fields textarea{height:82px}.timeline-editor-actions{padding:11px 12px;min-height:76px}.timeline-editor-actions>span,.timeline-editor-actions>div .outline{display:none}.timeline-editor-actions>div{flex:1}.timeline-editor-actions .primary{flex:1;min-width:0}.custom-reset{padding:0 10px!important;font-size:10px!important}}
