.my-devkits { container: assigned-grid / inline-size; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 12px 0 28px; }
.my-devkits .dk-empty-assigned { min-height: 300px; display: flex; flex-direction: column; align-items: center; padding: 28px; text-align: center; }
.my-devkits .dk-empty-assigned p { max-width: 48ch; margin: 10px 0 0; }
.my-devkits .dk-empty-assigned .button { margin-top: auto; }
.dk-assigned-loading { min-height: 300px; display: grid; place-content: center; justify-items: center; padding: 28px; color: var(--muted); text-align: center; }
.dk-assigned-loading strong { margin-top: 16px; color: var(--ink); font-size: 15px; }
.dk-assigned-loading p { max-width: 42ch; margin: 7px 0 0; font-size: 13px; }
.dk-spinner { width: 30px; height: 30px; border: 3px solid #d9ded8; border-top-color: var(--orange, #ec702b); border-radius: 50%; animation: dk-spin .8s linear infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
.my-devkit-card, .dk-empty { border: 1px solid var(--line, #cbd1cc); padding: 24px; background: var(--surface); }
.my-devkit-card { min-height: 310px; display: flex; position: relative; flex-direction: column; gap: 18px; overflow: visible; padding: clamp(18px, 2vw, 24px); background: var(--surface); transition: border-color .18s ease-out, box-shadow .18s ease-out, transform .18s ease-out; }
.my-devkit-card::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--orange, #ec702b); }
.my-devkit-card:hover { border-color: #9eaaa4; box-shadow: 0 12px 30px rgb(32 50 45 / 8%); transform: translateY(-2px); }
.dk-card-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.dk-card-head h2 { min-width: 0; margin: 0; color: var(--ink); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.dk-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.dk-type-chip, .dk-meta-chip { display: inline-flex; min-height: 26px; align-items: center; padding: 4px 8px; font-size: 11px; font-weight: 700; line-height: 1.2; }
.dk-type-chip { border: 1px solid #cbd1cc; color: #394943; background: var(--surface-2); }
.dk-meta-chip { position: relative; cursor: help; }
.dk-meta-chip.appliance { color: #214f45; background: #dfeee7; }
.dk-meta-chip.location { color: #644611; background: #f8eacb; }
.dk-meta-chip:focus-visible { outline: 2px solid var(--orange, #ec702b); outline-offset: 2px; }
.dk-meta-chip .dk-tooltip { left: 0; bottom: calc(100% + 8px); transform: translate(0, 4px); }
.dk-meta-chip .dk-tooltip::after { left: 18px; }
.dk-meta-chip:hover .dk-tooltip, .dk-meta-chip:focus .dk-tooltip { transform: translate(0, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.dk-card-state { display: grid; gap: 10px; padding-top: 3px; }
.dk-card-time { display: flex; min-width: 0; position: relative; align-items: center; gap: 9px; color: #40504a; font-size: 12px; font-variant-numeric: tabular-nums; cursor: help; }
.dk-card-time.urgent { color: #7a5311; }
.dk-card-time:focus-visible { outline: 2px solid var(--orange, #ec702b); outline-offset: 3px; }
.dk-card-time .dk-tooltip { left: 0; bottom: calc(100% + 8px); transform: translate(0, 4px); }
.dk-card-time .dk-tooltip::after { left: 18px; }
.dk-card-time:hover .dk-tooltip, .dk-card-time:focus .dk-tooltip { transform: translate(0, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.dk-card-state-icon, .dk-card-state-icon svg { width: 17px; height: 17px; flex: 0 0 17px; }
.dk-card-state-icon svg, .dk-action-glyph svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk-card-peer { display: flex; min-height: 30px; align-items: center; gap: 9px; }
.dk-peer-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.dk-card-note { margin: -4px 0 0; color: #7a5311; font-size: 12px; }
.dk-card-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid #e0e3dc; }
.dk-action-spacer { flex: 1; }
.dk-icon-action { width: 40px; height: 40px; display: inline-grid; position: relative; place-items: center; border: 1px solid #bdc6c0; background: var(--surface); color: #34453f; cursor: pointer; transition: color .14s ease-out, background .14s ease-out, border-color .14s ease-out, transform .14s ease-out; }
.dk-icon-action:hover:not(:disabled) { border-color: #819088; background: #f1f3ee; transform: translateY(-1px); }
.dk-icon-action.primary { border-color: #d95e21; background: var(--orange, #ec702b); color: #fffaf4; }
.dk-icon-action.primary:hover:not(:disabled) { border-color: #bb4916; background: #d85d21; }
.dk-icon-action.release { color: #8b3b2e; }
.dk-icon-action.release:hover:not(:disabled) { border-color: #d5aaa2; background: #faebe7; }
.dk-icon-action:disabled { opacity: .38; cursor: not-allowed; }
.dk-icon-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dk-action-glyph, .dk-action-glyph svg { width: 18px; height: 18px; }
.dk-icon-action .dk-tooltip { bottom: calc(100% + 8px); }
.dk-icon-action:hover:not(:disabled) .dk-tooltip, .dk-icon-action:focus-visible .dk-tooltip { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.my-devkit-card p, .dk-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.my-devkit-card small, .dk-table small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.dk-status { display: inline-block; font-size: 12px; padding: 5px 8px; background: #e9eae5; white-space: nowrap; }
.dk-status.good { color: #145a40; background: #e3f0e6; }
.dk-status.warning { color: #715400; background: #fff0bb; }
.dk-device-statuses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dk-connection-indicators { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
.dk-connection-icon { width: 30px; height: 30px; display: inline-grid; position: relative; place-items: center; border: 1px solid #cbd1cc; background: #fff; color: #697570; cursor: help; }
.dk-connection-icon.connected, .dk-connection-icon.direct { border-color: #b8d6c2; background: #e3f0e6; color: #145a40; }
.dk-connection-icon.relay { border-color: #c9d0e8; background: #edf0fb; color: #334d91; }
.dk-connection-icon.disconnected { background: #f0f1ed; color: #697570; }
.dk-connection-icon:focus-visible { outline: 2px solid var(--orange, #ec702b); outline-offset: 2px; }
.dk-connection-glyph, .dk-connection-glyph svg { width: 17px; height: 17px; display: block; }
.dk-connection-glyph svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk-tooltip { width: max-content; max-width: 270px; position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 9px); padding: 9px 11px; background: #102024; color: #eef1eb; font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left; transform: translate(-50%, 4px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .14s ease-out, transform .14s ease-out, visibility 0s linear .14s; }
.dk-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; border: 5px solid transparent; border-top-color: #102024; transform: translateX(-50%); }
.dk-tooltip strong { display: block; margin-bottom: 2px; color: var(--surface); }
.dk-connection-icon:hover .dk-tooltip, .dk-connection-icon:focus .dk-tooltip { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.dk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-inventory { background: var(--surface); border: 1px solid var(--line, #cbd1cc); }
.dk-inventory > header { display: flex; justify-content: space-between; align-items: center; padding: 24px; gap: 20px; }
.dk-inventory h2 { margin: 8px 0 0; }
.devkit-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 0 24px 24px; }
.devkit-filters label, .devkit-request label { display: grid; gap: 6px; font-size: 12px; color: #42504c; }
.devkit-filters select, .devkit-filters input, .devkit-request select { min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 0; font: inherit; width: 160px; }
.devkit-filters .dk-search input { width: 260px; direction: ltr; text-align: left; unicode-bidi: plaintext; }
.dk-table-wrap { overflow-x: auto; }
.dk-table { border-collapse: collapse; width: 100%; min-width: 1040px; font-size: 13px; }
.dk-table th { text-align: left; background: var(--surface-2); color: #465550; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.dk-table th, .dk-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dk-table td:first-child { padding-left: 24px; }
.dk-table time { display: block; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dk-inventory > .dk-note { padding: 0 24px 12px; }
.um-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 0 24px 24px; }
.um-form label { display: grid; gap: 6px; color: #42504c; font-size: 12px; }
.um-form input, .um-form select { min-height: 40px; min-width: 150px; border: 1px solid var(--line-strong); padding: 8px 10px; background: #fff; color: var(--ink); font: inherit; }
.um-form.inline { padding: 0; }
.um-form.inline .button { min-height: 40px; }
.um-tabs { display: flex; gap: 8px; margin: 18px 0 28px; border-bottom: 1px solid var(--line, #cbd1cc); overflow-x: auto; }
.um-tabs button { min-height: 60px; flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; padding: 0 18px; background: transparent; color: var(--muted); font: 650 1.125rem var(--font, inherit); line-height: 1.2; white-space: nowrap; }
.um-tabs button:hover { color: var(--ink); background: #f3f5f0; }
.um-tabs button[aria-selected="true"] { border-color: var(--orange, #ec702b); color: var(--ink); }
.um-panel { min-height: 260px; }
.dk-feedback:empty { display: none; }
.dk-connect-dialog { width: min(660px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 32px)); margin: auto; overflow: auto; border: 1px solid #76847d; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 28px 90px rgb(6 22 20 / 30%); }
.dk-connect-dialog::backdrop { background: rgb(7 22 25 / 72%); }
.dk-connect-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 28px 30px 10px; }
.dk-connect-head h2 { margin: 7px 0 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.dk-dialog-close { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid transparent; background: transparent; color: #52615b; cursor: pointer; }
.dk-dialog-close:hover { border-color: #c9d0cb; background: var(--surface-2); color: var(--ink); }
.dk-dialog-close:focus-visible { outline: 2px solid var(--orange, #ec702b); outline-offset: 2px; }
.dk-dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dk-connect-summary { margin: 0; padding: 0 30px 24px; color: var(--muted); }
.dk-connect-steps { display: grid; gap: 0; margin: 0; padding: 0 30px; list-style: none; counter-reset: none; }
.dk-connect-steps > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid #dde2dc; }
.dk-step-number { width: 30px; height: 30px; display: grid; place-items: center; background: #e7ece6; color: #3f5049; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.dk-step-content h3 { margin: 2px 0 5px; font-size: 15px; }
.dk-step-content > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.dk-copy-field { min-height: 54px; display: flex; position: relative; align-items: stretch; overflow: visible; background: #102024; color: #f0eee6; }
.dk-copy-field code { min-width: 0; flex: 1; overflow-wrap: anywhere; padding: 16px 58px 16px 16px; color: inherit; font-size: 13px; line-height: 1.65; user-select: all; }
.dk-copy-field > button { width: 38px; height: 38px; display: grid; position: absolute; top: 8px; right: 8px; place-items: center; border: 1px solid #526462; background: #1c3133; color: #e9eee8; cursor: pointer; opacity: 0; transform: translateY(3px); transition: opacity .14s ease-out, transform .14s ease-out, background .14s ease-out; }
.dk-copy-field:hover > button, .dk-copy-field:focus-within > button { opacity: 1; transform: translateY(0); }
.dk-copy-field > button:hover { background: #294548; }
.dk-copy-field > button:focus-visible { outline: 2px solid #f29a63; outline-offset: 2px; }
.dk-copy-field > button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.dk-copy-field > button .dk-tooltip { right: 0; bottom: calc(100% + 8px); left: auto; transform: translate(0, 4px); }
.dk-copy-field > button .dk-tooltip::after { right: 14px; left: auto; transform: none; }
.dk-copy-field > button:hover .dk-tooltip, .dk-copy-field > button:focus-visible .dk-tooltip { opacity: 1; visibility: visible; transform: translate(0, 0); transition-delay: 0s; }
.dk-connection-string code { max-height: 112px; overflow: auto; }
.dk-copy-feedback { min-height: 20px; margin: 0; padding: 0 30px 10px 78px; color: #276147; font-size: 12px; font-weight: 700; }
.dk-connect-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 30px 24px; background: #f0f2ed; }
.dk-connect-footer p { margin: 0; color: #52615b; font-size: 12px; line-height: 1.5; }
.dk-connect-footer strong { color: #7d3f25; }
.devkit-request { position: fixed; inset: 0; margin: auto; z-index: 50; width: min(480px, calc(100vw - 32px)); padding: 28px; border: 1px solid #7c8982;  background: var(--surface); color: var(--ink); }
.devkit-request p { font-size: 14px; line-height: 1.6; }
.devkit-request .dk-actions { justify-content: end; margin-top: 24px; }
.devkit-request::backdrop { background: #071619a8; }
@container assigned-grid (max-width: 620px) { .my-devkit-card { min-height: 280px; } }
@media (max-width: 700px) { .devkit-filters { padding: 0 16px 16px; } .devkit-filters label { flex: 1 1 130px; } .devkit-filters select, .devkit-filters .dk-search input { width: 100%; } .dk-inventory > header { align-items: start; flex-direction: column; padding: 16px; } .dk-connect-head { padding: 22px 20px 8px; } .dk-connect-summary { padding: 0 20px 18px; } .dk-connect-steps { padding: 0 20px; } .dk-connect-steps > li { grid-template-columns: 1fr; gap: 10px; } .dk-copy-feedback { padding: 0 20px 10px; } .dk-connect-footer { align-items: stretch; flex-direction: column; padding: 18px 20px 20px; } }
@media (hover: none), (pointer: coarse) { .dk-copy-field > button { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dk-spinner { animation: none; } .dk-tooltip, .my-devkit-card, .dk-icon-action, .dk-copy-field > button { transition: none; } .my-devkit-card:hover, .dk-icon-action:hover:not(:disabled) { transform: none; } }
