:root {
  --yt-topbar: #182433;
  --yt-surface: #fff;
  --yt-border: #d8dee8;
  --yt-canvas: #f5f7fb;
}

body { background: var(--yt-canvas); color: #1f2937; }
[x-cloak] { display: none !important; }
.yt-topbar { min-height: 3.5rem; background: var(--yt-topbar); color: #fff; }
.yt-brand { color: #fff; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.yt-brand:hover { color: #fff; }
.yt-brand-mark { display: block; width: 2rem; height: 2rem; flex: 0 0 2rem; }
.yt-project-switcher { display: inline-flex; max-width: min(280px, 35vw); align-items: center; gap: .7rem; }
.yt-topbar-project-avatar { width: 1.75rem; height: 1.75rem; flex: 0 0 1.75rem; object-fit: cover; }
.yt-profile-link { display: inline-flex; max-width: 220px; align-items: center; gap: .45rem; padding: 0; border: 0; background: transparent; color: #fff; text-decoration: none; }
.yt-profile-link:hover { color: #fff; opacity: .9; }
.yt-profile-link:focus-visible { border-radius: .25rem; outline: 2px solid #fff; outline-offset: 3px; }
.yt-main { width: 100%; padding: 1rem; }
.yt-shell { max-width: 1500px; margin: 0 auto; }
.yt-shell--profile { max-width: 760px; }
.yt-project-header { background: var(--yt-surface); border: 1px solid var(--yt-border); }
.yt-project-title { font-size: 1rem; font-weight: 700; margin: 0; }
.yt-project-tabs { border-top: 1px solid var(--yt-border); background: #f8f9fb; }
.yt-project-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #53657a; padding: .7rem 1rem; }
.yt-project-tabs .nav-link.active { background: transparent; border-color: #206bc4; color: #182433; font-weight: 600; }
.yt-panel { background: var(--yt-surface); border: 1px solid var(--yt-border); }
.yt-command-bar { min-height: 3.5rem; border-bottom: 1px solid var(--yt-border); background: var(--yt-surface); color: #182433; padding: .65rem .85rem; }
.yt-command-title { font-size: 1rem; font-weight: 650; margin: 0; }
.yt-command-title > i { color: #206bc4; }
.yt-filters { background: #f8f9fb; border-bottom: 1px solid var(--yt-border); padding: .75rem; }
.yt-filter-clear { display: inline-flex; height: 2.25rem; min-height: 2.25rem; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
.yt-backlog { margin: 0; padding: 0; list-style: none; }
.yt-backlog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding: .75rem; border-bottom: 1px solid var(--yt-border); }
.yt-backlog-row:last-child { border-bottom: 0; }
.yt-backlog-row:hover { background: #f8faff; }
.yt-ticket-title { color: #172b4d; font-weight: 650; text-decoration: none; }
.yt-ticket-title:hover { color: #206bc4; }
.yt-ticket-meta { display: flex; flex-wrap: wrap; gap: .4rem .7rem; margin-top: .35rem; color: #66788a; font-size: .78rem; }
.yt-label { display: inline-flex; align-items: center; border-radius: 999px; padding: .12rem .45rem; font-size: .72rem; font-weight: 600; color: #fff; }
.yt-state { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 600; }
.yt-state::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #6c7a91; }
.yt-state--pending::before { background: #f59f00; }
.yt-state--in_progress::before { background: #206bc4; }
.yt-state--blocked::before { background: #d63939; }
.yt-state--closed::before { background: #2fb344; }
.yt-internal { color: #9c36b5; font-size: .75rem; font-weight: 700; }
.yt-priority--urgent { color: #d63939; font-weight: 700; }
.yt-priority--high { color: #e8590c; font-weight: 650; }
.yt-avatars { display: flex; justify-content: flex-end; }
.yt-avatars .avatar { margin-left: -.35rem; border: 2px solid #fff; }
.yt-quick-menu { position: relative; }
.yt-quick-menu > summary { list-style: none; white-space: nowrap; }
.yt-quick-menu > summary::-webkit-details-marker { display: none; }
.yt-quick-popover { position: absolute; z-index: 20; right: 0; top: calc(100% + .3rem); width: 260px; max-height: 70vh; overflow: auto; padding: .75rem; background: #fff; border: 1px solid var(--yt-border); box-shadow: 0 .5rem 1.5rem rgba(24, 36, 51, .16); }
.yt-quick-popover fieldset { margin: 0 0 .75rem; padding: 0; border: 0; }
.yt-quick-popover legend { margin-bottom: .3rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #66788a; }
.yt-quick-popover label { display: block; padding: .2rem 0; font-size: .85rem; }
.yt-multi-select { position: relative; }
.yt-multi-select-trigger { display: flex; width: 100%; min-height: 2.25rem; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem .65rem; border: 1px solid #b8c2ce; border-radius: .375rem; background: #fff; color: #243447; text-align: left; }
.yt-multi-select-trigger:hover { border-color: #8f9dab; }
.yt-multi-select-trigger:focus-visible { border-color: #206bc4; box-shadow: 0 0 0 .2rem rgba(32, 107, 196, .1); outline: 0; }
.yt-multi-select-menu { position: absolute; z-index: 40; top: calc(100% + .3rem); left: 0; width: max(100%, 280px); overflow: hidden; border: 1px solid var(--yt-border); border-radius: .4rem; background: #fff; box-shadow: 0 .75rem 2rem rgba(24, 36, 51, .16); }
.yt-multi-select-search { display: flex; align-items: center; gap: .35rem; padding: .5rem; border-bottom: 1px solid var(--yt-border); color: #718096; }
.yt-multi-select-search .form-control { border: 0; box-shadow: none; }
.yt-multi-select-options { max-height: 220px; overflow-y: auto; padding: .35rem; }
.yt-multi-select-option { display: flex; align-items: center; gap: .55rem; margin: 0; padding: .42rem .5rem; border-radius: .3rem; cursor: pointer; font-size: .85rem; }
.yt-multi-select-option:hover { background: #edf3fa; }
.yt-multi-select-option input { flex: 0 0 auto; width: 1rem; height: 1rem; accent-color: #206bc4; }
.yt-multi-select-create { display: flex; width: 100%; align-items: center; gap: .45rem; padding: .6rem .75rem; border: 0; border-top: 1px solid var(--yt-border); background: #f8fafc; color: #1769aa; text-align: left; }
.yt-multi-select-create:hover, .yt-multi-select-create:focus-visible { background: #e8f1fb; outline: 0; }
.yt-filter-multi-select { min-width: 150px; }
.yt-empty { text-align: center; padding: 3rem 1rem; color: #66788a; }
.yt-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.yt-project-card { color: inherit; text-decoration: none; border: 1px solid var(--yt-border); background: #fff; padding: 1rem; min-height: 150px; display: flex; flex-direction: column; }
.yt-project-card:hover { border-color: #206bc4; box-shadow: 0 4px 16px rgba(32, 107, 196, .09); color: inherit; }
.yt-project-card-avatar { object-fit: cover; }
.yt-detail { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1rem; }
.yt-description, .yt-comment { background: #fff; border: 1px solid var(--yt-border); }
.yt-content { padding: 1rem; overflow-wrap: anywhere; }
.yt-content img { max-width: 100%; height: auto; }
.yt-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.yt-content th, .yt-content td { border: 1px solid var(--yt-border); padding: .45rem; }
.yt-content pre { background: #172b4d; color: #e6edf3; padding: .75rem; overflow-x: auto; }
.yt-comment-head { background: #f8f9fb; border-bottom: 1px solid var(--yt-border); padding: .55rem .75rem; }
.yt-sidebar-section { padding: .8rem; border-bottom: 1px solid var(--yt-border); }
.yt-sidebar-section:last-child { border-bottom: 0; }
.yt-inline-edit-header { display: flex; align-items: flex-start; gap: 1rem; }
.yt-inline-title { padding: .15rem .1rem .35rem; border: 0; border-bottom: 1px solid #aeb9c5; border-radius: 0; background: transparent; box-shadow: none; font-size: 1.5rem; font-weight: 650; }
.yt-inline-title:focus { border-color: #206bc4; background: #fff; box-shadow: 0 2px 0 #206bc4; }
.yt-quill-editor { border-radius: .375rem; background: #fff; }
.yt-quill-editor .ql-toolbar.ql-snow { border-color: #c8d0da; border-radius: .375rem .375rem 0 0; background: #f8fafc; font-family: inherit; }
.yt-quill-editor .ql-container.ql-snow { min-height: 180px; border-color: #c8d0da; border-radius: 0 0 .375rem .375rem; font-family: inherit; font-size: .92rem; }
.yt-quill-editor .ql-editor { min-height: 180px; line-height: 1.55; }
.yt-quill-editor .ql-toolbar button:focus-visible, .yt-quill-editor .ql-toolbar .ql-picker-label:focus-visible { outline: 2px solid #206bc4; outline-offset: 1px; }
.yt-quill-editor .ql-editor:focus { box-shadow: inset 0 0 0 1px #206bc4; }
.yt-quill-editor .ql-editor img { max-width: 100%; height: auto; }
.yt-quill-editor .ql-editor table { width: 100%; border-collapse: collapse; }
.yt-quill-editor .ql-editor td, .yt-quill-editor .ql-editor th { border: 1px solid var(--yt-border); padding: .35rem; }
.yt-quill-editor .ql-divider i, .yt-quill-editor .ql-table i, .yt-quill-editor .ql-undo i, .yt-quill-editor .ql-redo i { font-size: 1rem; }
.yt-kanban-scroll { overflow-x: auto; padding-bottom: .5rem; }
.yt-kanban { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: .75rem; min-width: 1050px; }
.yt-kanban-column { background: #eef1f5; border: 1px solid var(--yt-border); min-height: 420px; }
.yt-kanban-column-head { display: flex; align-items: center; justify-content: space-between; padding: .65rem .75rem; border-bottom: 1px solid var(--yt-border); font-weight: 700; }
.yt-kanban-cards { min-height: 350px; padding: .55rem; }
.yt-kanban-card { background: #fff; border: 1px solid #ccd3dd; padding: .65rem; margin-bottom: .55rem; cursor: default; }
.yt-kanban-card.sortable-ghost { opacity: .35; }
.yt-drag-handle { cursor: grab; color: #66788a; }
.yt-card-actions { display: flex; gap: .25rem; align-items: center; }
.yt-login { min-height: calc(100vh - 3.5rem); display: grid; place-items: center; padding: 1rem; }
.yt-login-card { width: min(420px, 100%); }
.yt-login-logo { display: block; width: 4rem; height: 4rem; }
.yt-profile-page { width: min(760px, 100%); margin: 0 auto; }
.yt-profile-avatar-editor { display: flex; align-items: center; gap: 1.25rem; }
.yt-avatar-preview-shell { position: relative; width: 7rem; height: 7rem; flex: 0 0 7rem; }
.yt-avatar-preview-frame { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--yt-border); border-radius: 50%; background: #eef3f8; }
.yt-profile-avatar { display: grid; width: 100%; height: 100%; place-items: center; object-fit: cover; }
.yt-avatar-placeholder { color: #206bc4; font-size: 2.5rem; }
.yt-avatar-preview-action { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; gap: .3rem; min-height: 2.25rem; padding: .35rem; background: rgb(24 36 51 / 82%); color: #fff; cursor: pointer; font-size: .75rem; font-weight: 600; transform: translateY(100%); transition: transform .15s ease; }
.yt-avatar-preview-frame:hover .yt-avatar-preview-action, .yt-avatar-preview-frame:focus-within .yt-avatar-preview-action { transform: translateY(0); }
.yt-avatar-remove { position: absolute; top: -.15rem; right: -.15rem; display: inline-grid; width: 2rem; min-width: 2rem; height: 2rem; padding: 0; place-items: center; border-radius: 50% !important; box-shadow: 0 0 0 3px #fff; }
.yt-project-status-setting { padding: 1rem; border: 1px solid #f0c36b; border-radius: .4rem; background: #fff9e8; }
.yt-sso-review-page { min-height: 100vh; padding: 1rem; }
.yt-sso-review-shell { width: min(1100px, 100%); margin: 0 auto; }
.yt-sso-review-heading { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 1rem; }
.yt-sso-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.yt-sso-profile-card { overflow: hidden; border: 1px solid var(--yt-border); border-radius: .5rem; background: #fff; }
.yt-sso-profile-card--remote { border-color: #9ec5fe; }
.yt-sso-profile-title { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; border-bottom: 1px solid var(--yt-border); background: #f8fafc; font-weight: 700; }
.yt-sso-profile-card--remote .yt-sso-profile-title { background: #eaf3ff; color: #175a9c; }
.yt-sso-profile-list { margin: 0; }
.yt-sso-profile-row { display: grid; grid-template-columns: minmax(120px, 35%) minmax(0, 1fr); gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid #edf0f4; }
.yt-sso-profile-row:last-child { border-bottom: 0; }
.yt-sso-profile-row dt { color: #66788a; font-size: .78rem; font-weight: 650; }
.yt-sso-profile-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.yt-sso-profile-row--different { box-shadow: inset 3px 0 #f59f00; background: #fff9e8; }
.yt-sso-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.yt-sso-summary { padding: 1rem; border: 1px solid var(--yt-border); border-radius: .5rem; background: #fff; }
.yt-sso-summary .h3 { margin-bottom: .65rem; font-size: 1rem; }
.yt-sso-summary ul { margin-bottom: .65rem; padding-left: 1.2rem; }
.yt-sso-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--yt-border); border-radius: .5rem; background: #fff; }
[x-cloak] { display: none !important; }

@media (max-width: 767.98px) {
  .yt-main { padding: .65rem; }
  .yt-detail { grid-template-columns: 1fr; }
  .yt-backlog-row { grid-template-columns: 1fr; }
  .yt-backlog-actions { justify-self: start; }
  .yt-quick-popover { position: fixed; inset: auto .65rem 1rem .65rem; width: auto; }
  .yt-kanban { grid-template-columns: repeat(4, 82vw); min-width: calc(328vw + 2.25rem); }
  .yt-project-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .yt-project-tabs .nav-link { white-space: nowrap; }
  .yt-filter-grid { grid-template-columns: 1fr !important; }
  .yt-quill-editor .ql-toolbar.ql-snow { overflow-x: auto; white-space: nowrap; }
  .yt-inline-edit-header { align-items: stretch; flex-direction: column; }
  .yt-inline-edit-header > .d-flex { align-self: flex-end; }
  .yt-project-switcher { max-width: 42vw; }
  .yt-sso-compare, .yt-sso-summary-grid { grid-template-columns: 1fr; }
  .yt-sso-actions { align-items: stretch; flex-direction: column-reverse; }
  .yt-sso-actions form, .yt-sso-actions .btn { width: 100%; }
}

@media (max-width: 575.98px) {
  .yt-brand-label { display: none; }
  .yt-profile-avatar-editor { align-items: flex-start; flex-direction: column; }
  .yt-avatar-preview-action { transform: translateY(0); }
  .yt-sso-review-heading { align-items: flex-start; }
  .yt-sso-review-heading .yt-login-logo { width: 3rem; height: 3rem; }
  .yt-sso-profile-row { grid-template-columns: 1fr; gap: .2rem; }
}
