html, body { overflow-x: clip; }
.tse-bar { position: sticky; top: 72px; z-index: 30; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 16px; padding: 7px 8px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line, #e4e9ee); border-radius: 14px; box-shadow: 0 6px 20px rgba(16, 24, 40, .07); }
.tse-bar *, .tse-side *, .tse-on *, .tse-dialog * { box-sizing: border-box; }
.tse-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f1f4f8; }
.tse-seg a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: #5b6b7c !important; text-decoration: none !important; white-space: nowrap; }
.tse-seg a:hover { color: #1a2330 !important; }
.tse-seg .tse-scinet { flex: none; justify-content: center; align-items: center; width: 28px; height: 28px; padding: 0; border-radius: 7px; background: #8224e3; color: #fff; font-size: 8.5px; font-weight: 800; line-height: 1.05; }
.tse-seg a[aria-current=page] .tse-scinet { background: #7a22d6; color: #fff; }
.tse-seg a[aria-current=page] { background: #fff; color: #8224e3 !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.tse-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #e8f6ee; color: #1d7a46; white-space: nowrap; }
.tse-state.is-busy { background: #f1f4f8; color: #5b6b7c; }
.tse-state.is-busy i { animation: tse-spin 1s linear infinite; }
.tse-state.is-error { background: #fdf3f0; color: #9f2d1b; }
@keyframes tse-spin { to { transform: rotate(360deg); } }
.tse-grow { flex: 1 1 10px; }
.tse-bar :focus-visible, .tse-side :focus-visible, .tse-on :focus-visible, .tse-dialog :focus-visible { outline: 2px solid #c79bf0; outline-offset: 2px; }

.tse-on .ts-profile-hero { border-radius: 6px; }
.tse-on .ts-profile-section { position: relative; border-radius: 6px; scroll-margin-top: 150px; transition: box-shadow .15s, border-color .15s; }
.tse-on .ts-profile-section.tse-off { border-style: dashed; background: #fbfcfd; }
.tse-on .ts-profile-section.tse-off > .ts-profile-section-body { opacity: .5; }
.tse-on .ts-profile-section.tse-flash { box-shadow: 0 0 0 2px #8224e3, 0 8px 26px rgba(16, 24, 40, .08); }
.tse-on.ts-public-main, .tse-on .ts-public-main, .tsl-main.tse-on { display: flex; flex-direction: column; }
.tse-on.ts-public-main > *, .tse-on .ts-public-main > *, .tsl-main.tse-on > * { min-width: 0; }
.tse-hidden-pill { display: none; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: #fff4e5; color: #8a4b08; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; vertical-align: middle; }
.tse-off .tse-hidden-pill { display: inline-flex; }

.tse-tools { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 3px; border-radius: 10px; background: #f4f6f9; opacity: 0; transition: opacity .12s; }
.ts-profile-section:hover .tse-tools, .tse-tools:focus-within, .tse-flash .tse-tools { opacity: 1; }
.tse-tool { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #5b6b7c; font-size: 14px; cursor: pointer; }
.tse-tool:hover { background: #fff; color: #1a2330; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.tse-tool.is-text { display: inline-flex; gap: 5px; width: auto; padding: 0 9px; font-size: 12px; font-weight: 600; }
.tse-tool.is-danger:hover { color: #b3402a; }
.tse-tool[disabled] { opacity: .3; cursor: default; box-shadow: none; background: transparent; }
.tse-adder { display: flex; align-items: center; gap: 10px; width: 100%; height: 22px; margin: -12px 0 2px; padding: 0; border: 0; background: transparent; color: #8224e3; font-size: 12px; font-weight: 600; opacity: 0; cursor: pointer; transition: opacity .12s; }
.tse-adder::before, .tse-adder::after { content: ''; flex: 1; border-top: 1px dashed #c79bf0; }
.tse-adder:hover, .tse-adder:focus-visible { opacity: 1; }

.tse-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 9px; border: 1px solid #8224e3; background: #8224e3; color: #fff !important; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none !important; }
.tse-btn:hover { background: #63189f; border-color: #63189f; }
.tse-btn.is-quiet { background: #fff; border-color: var(--line, #e4e9ee); color: #1a2330 !important; }
.tse-btn.is-quiet:hover { background: #f4f7fa; }
.tse-btn.is-danger { background: #fff; border-color: #f1c7be; color: #b3402a !important; }
.tse-btn.is-danger:hover { background: #fdf3f0; }
.tse-btn.is-dashed { background: transparent; border: 1px dashed #c4d0dc; color: #5b6b7c !important; }
.tse-btn.is-dashed:hover { border-color: #8224e3; color: #8224e3 !important; background: #fbf8fe; }
.tse-btn.is-small { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.tse-btn[disabled] { opacity: .5; cursor: default; }

.tse-side .tse-list { list-style: none; margin: 10px -8px 10px; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.tse-side .tse-fixed { margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line, #e4e9ee); }
.tse-list li { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 6px 4px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; }
.tse-list li:hover { background: #f6f8fb; }
.tse-list li.is-over { border-top-color: #8224e3; background: #f7effe; }
.tse-list li.is-dragging { opacity: .45; }
.tse-list li.is-off .tse-name { color: #8a98a8 !important; text-decoration: line-through; }
.tse-list li.is-locked { cursor: default; }
.tse-list li.is-locked .tse-name { color: #8a98a8 !important; }
.tse-fixed li { cursor: default; }
.tse-grip { color: #c0cad5; cursor: grab; font-size: 13px; width: 12px; flex: 0 0 12px; }
.tse-fixed .tse-grip { cursor: default; }
.tse-kind { color: #5b6b7c; font-size: 15px; width: 18px; flex: 0 0 18px; text-align: center; }
.tse-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 500; color: #1a2330 !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.tse-name:hover { color: #8224e3 !important; }
.tse-tag { flex: 0 0 auto; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: #eaf2fb; color: #185796; white-space: nowrap; }
.tse-dot { width: 8px; height: 8px; border-radius: 50%; background: #2e9e6a; flex: 0 0 8px; }
.tse-dot.is-empty { background: #fff; border: 1.5px solid #c9a24a; }
.tse-list button, .tse-go { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border: 0; border-radius: 7px; background: transparent; color: #8a98a8; font-size: 13.5px; cursor: pointer; text-decoration: none !important; }
.tse-list button:hover, a.tse-go:hover { background: #e9eef4; color: #1a2330; }
.tse-side > .tse-btn { width: 100%; }
.tse-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #8a98a8; }
.tse-note a { color: #63189f; }

.tse-items { display: flex; flex-direction: column; gap: 2px; }
.tse-items.is-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tse-item { position: relative; display: block; padding: 9px 12px 9px 28px; border-radius: 10px; text-align: left; }
.tse-items.is-time .tse-item::before { content: ''; position: absolute; left: 9px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: #8224e3; }
.tse-items.is-time .tse-item::after { content: ''; position: absolute; left: 13px; top: 28px; bottom: -6px; border-left: 2px solid #e3e8ee; }
.tse-items.is-time .tse-item:last-child::after { display: none; }
.tse-items.is-cards .tse-item { padding: 13px 15px; border: 1px solid var(--line, #e4e9ee); background: #fbfcfd; }
.tse-items.is-list .tse-item { padding: 10px 12px; border-radius: 0; border-bottom: 1px solid var(--line, #e4e9ee); }
.tse-items.is-list .tse-item:last-child { border-bottom: 0; }
.tse-item b { display: block; font-size: 14.5px; font-weight: 700; color: #1a2330; overflow-wrap: anywhere; }
.tse-item small { display: block; margin-top: 1px; font-size: 13px; color: #5b6b7c; overflow-wrap: anywhere; }
.tse-item p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.55; color: #33414f; white-space: pre-line; overflow-wrap: anywhere; }
.tse-item a.tse-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; font-weight: 600; color: #63189f; overflow-wrap: anywhere; }
.tse-item[data-tse-item] { cursor: pointer; padding-right: 34px; }
.tse-item[data-tse-item]:hover { background: #f6f8fb; }
.tse-pen { position: absolute; top: 10px; right: 10px; color: #8a98a8; font-size: 13px; opacity: 0; }
.tse-item:hover .tse-pen, .tse-item:focus-visible .tse-pen { opacity: 1; }
.tse-prose { font-size: 14.5px; line-height: 1.7; color: #1a2330; white-space: pre-line; overflow-wrap: anywhere; border-radius: 8px; }
.tse-prose[data-tse-text] { cursor: text; }
.tse-prose[data-tse-text]:hover { background: #f6f8fb; box-shadow: 0 0 0 6px #f6f8fb; }
.tse-ph { color: #8a98a8 !important; font-style: italic; }
.tse-empty { margin: 0 0 6px; font-size: 13.5px; color: #8a98a8; }
.tse-add-row { margin-top: 12px; }
.tse-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tse-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #f4f7fa; border: 1px solid var(--line, #e4e9ee); color: #33414f; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.tse-chip button { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: transparent; color: #8a98a8; font-size: 10px; cursor: pointer; }
.tse-chip button:hover { background: #fdf3f0; color: #b3402a; }
.tse-chip-add { min-width: 190px; padding: 5px 12px; border: 1px dashed #c4d0dc; border-radius: 999px; font-size: 13px; color: #1a2330; background: transparent; }
.tse-chip-add:focus { border-style: solid; border-color: #8224e3; outline: 0; }

.tse-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; margin: 0 0 12px; border: 1px solid #e3cdf8; border-radius: 12px; background: #fbf8fe; }
.tse-items.is-cards .tse-form { grid-column: 1 / -1; }
.tse-form .is-wide { grid-column: 1 / -1; }
.tse-form label { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; color: #5b6b7c; }
.tse-form input, .tse-form select, .tse-form textarea { width: 100%; padding: 8px 11px; border: 1px solid var(--line, #d7dee6); border-radius: 9px; background: #fff; font: inherit; font-size: 14px; color: #1a2330; }
.tse-form input:focus, .tse-form select:focus, .tse-form textarea:focus { outline: 2px solid #e3cdf8; border-color: #8224e3; }
.tse-form textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.tse-form small { display: block; margin-top: 3px; font-size: 11.5px; color: #8a98a8; }
.tse-form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tse-form-error { grid-column: 1 / -1; margin: 0; padding: 8px 12px; border-radius: 8px; background: #fdf3f0; color: #9f2d1b; font-size: 13px; font-weight: 600; }

.tse-dialog { width: min(760px, calc(100vw - 28px)); max-height: min(720px, calc(100dvh - 40px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(16, 24, 40, .3); color: #1a2330; overflow: hidden; }
.tse-dialog[open] { display: flex; flex-direction: column; }
.tse-dialog::backdrop { background: rgba(17, 24, 39, .45); }
.tse-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line, #e4e9ee); }
.tse-dialog-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.tse-dialog-body { padding: 6px 20px 20px; overflow-y: auto; }
form.tse-dialog-body { margin: 0; padding: 16px 20px 20px; border: 0; border-radius: 0; background: #fff; }
.tse-dialog-body h3 { margin: 14px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8a98a8; }
.tse-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tse-gallery button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 13px; border: 1px solid var(--line, #e4e9ee); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.tse-gallery button:hover { border-color: #8224e3; background: #fbf8fe; }
.tse-gallery button[disabled] { opacity: .45; cursor: default; background: #f7f8fb; border-color: var(--line, #e4e9ee); }
.tse-gallery button > i { font-size: 18px; color: #8224e3; }
.tse-gallery b { display: block; font-size: 13.5px; color: #1a2330; }
.tse-gallery span span { display: block; font-size: 12px; color: #8a98a8; }
.tse-works { margin: 0; padding: 0; list-style: none; }
.tse-work { position: relative; padding: 11px 2px; border-bottom: 1px solid var(--line, #e4e9ee); }
.tse-works > .tse-work:last-child { border-bottom: 0; }
.tse-work b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: #1a2330; overflow-wrap: anywhere; }
.tse-work small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #5b6b7c; overflow-wrap: anywhere; }
.tse-work a.tse-link { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #63189f; overflow-wrap: anywhere; }
.tse-typed { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #f4f7fa; border: 1px solid var(--line, #e4e9ee); font-size: 11.5px; font-weight: 600; color: #5b6b7c; }
.tse-editing .tse-work { padding-right: 104px; }
.tse-work-del { position: absolute; top: 11px; right: 2px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid #f1c7be; border-radius: 8px; background: #fff; color: #b3402a; font-size: 12px; font-weight: 600; cursor: pointer; }
.tse-work-del:hover { background: #fdf3f0; }
.tse-works-more { margin-top: 4px; border-top: 1px solid var(--line, #e4e9ee); }
.tse-works-more > summary { padding: 10px 2px; font-size: 13.5px; font-weight: 700; color: #63189f; cursor: pointer; }
.tse-works-more[open] > summary { color: #5b6b7c; font-weight: 600; }
.tse-works-tabs { display: flex; gap: 6px; margin: 12px 0 10px; }
.tse-works-tabs button { padding: 7px 14px; border: 1px solid var(--line, #e4e9ee); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 600; color: #33414f; cursor: pointer; }
.tse-works-tabs button[aria-selected="true"] { border-color: #8224e3; background: #fbf8fe; color: #63189f; }
.tse-works-filter { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.tse-works-filter > div { flex: 0 1 220px; min-width: 0; }
.tse-works-filter > div.is-grow { flex: 1 1 240px; }
.tse-works-filter label { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; color: #5b6b7c; }
.tse-works-filter select, .tse-works-filter input { width: 100%; padding: 8px 11px; border: 1px solid var(--line, #d7dee6); border-radius: 9px; background: #fff; font: inherit; font-size: 14px; color: #1a2330; }
.tse-works-filter select:focus, .tse-works-filter input:focus { outline: 2px solid #e3cdf8; border-color: #8224e3; }
.tse-works-note { margin: 10px 0 4px; font-size: 12.5px; line-height: 1.5; color: #5b6b7c; }
.tse-works-found { min-height: 120px; }
.tse-works-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line, #e4e9ee); }
.tse-works-row > div { flex: 1 1 auto; min-width: 0; }
.tse-works-row b { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; color: #1a2330; overflow-wrap: anywhere; }
.tse-works-row small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: #5b6b7c; overflow-wrap: anywhere; }
.tse-works-row small.is-from { color: #63189f; font-weight: 600; }
.tse-works-row > .tse-btn { flex: 0 0 auto; min-width: 104px; }
.tse-works-row.is-chosen { background: #fbf8fe; box-shadow: -8px 0 0 #fbf8fe, 8px 0 0 #fbf8fe; }
.tse-works-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: #5b6b7c; }
.tse-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.tse-toast { padding: 10px 18px; border-radius: 11px; background: #111827; color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 28px rgba(16, 24, 40, .3); max-width: min(480px, 92vw); text-align: center; }
.tse-toast.is-error { background: #9f2d1b; }

@media (hover: none) { .tse-tools { opacity: 1; } .tse-adder { opacity: .7; } }
@media (max-width: 900px) {
  .tse-bar { position: static; }
  .tse-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .tse-bar { padding: 7px; }
  .tse-seg { width: 100%; }
  .tse-seg a { flex: 1 1 0; min-width: 0; justify-content: center; padding: 8px 6px; overflow: hidden; }
  .tse-seg a > span { overflow: hidden; text-overflow: ellipsis; }
  .tsl-row-actions select { max-width: 100%; }
  .tsl-inline > div.is-narrow { flex: 1 1 100%; }
  .tse-seg a > span { font-size: 12px; }
  .tse-state, .tse-grow { display: none; }
  .tse-tools { opacity: 1; }
  .tse-form, .tse-gallery, .tse-items.is-cards { grid-template-columns: 1fr; }
  .tse-form input, .tse-form select, .tse-form textarea, .tse-chip-add { font-size: max(1rem, 1em); }
  .tse-works-filter select, .tse-works-filter input { font-size: max(1rem, 1em); }
  .tse-works-row { flex-direction: column; gap: 8px; }
  .tse-works-row > .tse-btn { align-self: flex-start; }
}

.tse-pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tse-pics:has(> .tse-pic:only-child) { grid-template-columns: minmax(0, 1fr); }
.tse-pics:has(> .tse-pic:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tse-pic { margin: 0; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line, #e4e9ee); border-radius: 8px; background: #fff; overflow: hidden; }
.tse-pic-open { display: block; background: #f4f6f9; line-height: 0; }
.tse-pic-open img { display: block; width: 100%; height: 210px; object-fit: contain; background: #f4f6f9; }
.tse-pics:has(> .tse-pic:only-child) .tse-pic-open img { height: auto; max-height: 460px; }
.tse-pics:has(> .tse-pic:nth-child(2):last-child) .tse-pic-open img { height: 280px; }
.tse-pic-open:hover img { opacity: .92; }
.tse-pic-open:focus-visible { outline: 2px solid #8224e3; outline-offset: -2px; }
.tse-pic figcaption { padding: 9px 12px 10px; font-size: 13px; line-height: 1.45; color: #3d4756; overflow-wrap: anywhere; border-top: 1px solid var(--line, #e4e9ee); }
.tse-pic-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; margin-top: auto; border-top: 1px dashed var(--line, #e4e9ee); background: #fbfcfd; }
.tse-pic-count { font-size: 12.5px; color: #8a98a8; }
.tse-pic-form { margin-top: 12px; }
.tse-pic-preview { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tse-pic-preview img { flex: 0 0 auto; width: 96px; height: 72px; object-fit: contain; border: 1px solid var(--line, #e4e9ee); border-radius: 6px; background: #fff; }
.tse-pic-preview small { min-width: 0; font-size: 12.5px; color: #5b6b7c; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .tse-pics, .tse-pics:has(> .tse-pic:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tse-pic-open img, .tse-pics:has(> .tse-pic:nth-child(2):last-child) .tse-pic-open img { height: 170px; }
}
@media (max-width: 520px) {
  .tse-pics, .tse-pics:has(> .tse-pic:nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); }
  .tse-pic-open img, .tse-pics:has(> .tse-pic:nth-child(2):last-child) .tse-pic-open img { height: auto; max-height: 340px; }
}
