@layer t2.plugin {
/* Path: T2Editor/plugin/clipurl/clipurl.css */
/* Rationale: clipurl 선택자는 플러그인 루트 아래로 제한하고 공개 본문 표현이 필요하면 css/content.css도 함께 수정한다. */

.t2-clipurl-panel {
    position: static;
    width: min(420px, calc(100vw - 32px));
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow: auto;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--t2-inset);
    border-radius: var(--t2-radius-island);

    animation: t2ClipurlPanelIn 0.18s ease;
}

.t2-clipurl-panel-wide {
    width: min(560px, calc(100vw - 32px));
}

.t2-clipurl-panel-inner {
    padding: var(--t2-s4);
}

@keyframes t2ClipurlPanelIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.t2-clipurl-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--t2-s3);
    margin-bottom: var(--t2-s4);
}

.t2-clipurl-brand {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: var(--t2-s3);
}

.t2-clipurl-brand-icon {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.t2-clipurl-brand-copy {
    min-width: 0;
}

.t2-clipurl-brand-copy h3 {
    margin: 0;
    font-size: 20px;

    line-height: 1.2;
}

.t2-clipurl-brand-copy p {
    margin: var(--t2-s1) 0 0;
    font-size: 13px;
    line-height: 1.5;

}

.t2-clipurl-close {
    width: 36px;
    height: 36px;
    border: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    flex: 0 0 auto;
}

.t2-clipurl-body {
    display: flex;
    flex-direction: column;
    gap: var(--t2-s3);
}

.t2-clipurl-field-wrap {
    width: 100%;
}

.t2-clipurl-field {
    display: flex;
    align-items: center;
    gap: var(--t2-s2);
    width: 100%;
    box-sizing: border-box;

    padding: 0 var(--t2-s3);

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.t2-clipurl-field-icon {

    flex: 0 0 auto;
}

.t2-clipurl-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;

    font-size: 15px;
    line-height: 1.4;
    padding: var(--t2-s3) 0;
    box-sizing: border-box;
}

.t2-clipurl-input::placeholder {
    color: var(--t2-line-strong);
}

.t2-clipurl-help {
    display: flex;
    align-items: flex-start;
    gap: var(--t2-s2);
    font-size: 12px;
    line-height: 1.5;

}

.t2-clipurl-help .material-icons {

    flex: 0 0 auto;
    margin-top: var(--t2-s1);
}

.t2-clipurl-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

}

.t2-clipurl-choice {
    -webkit-appearance: none;
    appearance: none;

    border-radius: var(--t2-radius-island);

    display: flex;
    align-items: center;
    gap: var(--t2-s3);
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.t2-clipurl-choice:hover {

    transform: translateY(-1px);
}

.t2-clipurl-choice:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.t2-clipurl-choice.is-loading {
    opacity: 0.8;
}

.t2-clipurl-choice .material-icons {

    flex: 0 0 auto;
}

.t2-clipurl-choice-copy {
    display: flex;
    flex-direction: column;
    gap: var(--t2-s1);
    min-width: 0;
}

.t2-clipurl-choice-copy strong {
    font-size: 15px;
    line-height: 1.2;
    color: var(--t2-product-ink);
}

.t2-clipurl-choice-copy small {
    font-size: 12px;

    line-height: 1.4;
}

.t2-clipurl-stack {
    display: flex;
    flex-direction: column;
    gap: var(--t2-s3);
}

.t2-clipurl-summary-card,
.t2-clipurl-result-card {

    border-radius: var(--t2-radius-island);

    padding: var(--t2-s3);
}

.t2-clipurl-result-card-centered {
    text-align: center;
}

.t2-clipurl-both-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--t2-s3);
}

.t2-clipurl-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--t2-s2);
    margin-bottom: var(--t2-s2);
}

.t2-clipurl-label {
    display: inline-flex;
    align-items: center;
    gap: var(--t2-s1);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--t2-ink-muted);
}

.t2-clipurl-source-url {
    font-size: 13px;
    line-height: 1.5;
    color: var(--t2-ink-muted);
    word-break: break-all;
}

.t2-clipurl-output-box {

    padding: var(--t2-s3);
    font-size: 14px;
    line-height: 1.5;
    color: var(--t2-product-ink);
    word-break: break-all;
    -webkit-user-select: all;
    user-select: all;
}

.t2-clipurl-qr-image {
    display: block;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto;
    padding: var(--t2-s2);
    box-sizing: border-box;
    border: 1px solid var(--t2-inset);
    border-radius: var(--t2-radius-island);
    background: #fff;
}

.t2-clipurl-inline-btn,
.t2-clipurl-btn {
    -webkit-appearance: none;
    appearance: none;

    padding: 0 var(--t2-s3);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--t2-s1);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.t2-clipurl-inline-btn {
    margin-top: var(--t2-s2);
    width: 100%;
    background: var(--t2-product-wash);
    color: var(--t2-ink-muted);
}

.t2-clipurl-inline-btn:hover {
    background: var(--t2-inset);
    color: var(--t2-product-ink);
}

.t2-clipurl-footer {
    margin-top: var(--t2-s4);
}

.t2-clipurl-footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--t2-s2);
}

.t2-clipurl-btn-secondary:hover {
    background: var(--t2-inset);
    color: var(--t2-product-ink);
}

.t2-clipurl-btn-primary:hover {

    color: #fff;
}

html[data-t2editor-theme="dark"] .t2-clipurl-close:hover {
    background: var(--t2-line);
    color: var(--t2-ink);
}

html[data-t2editor-theme="dark"] .t2-clipurl-choice {

    color: var(--t2-ink);
}

html[data-t2editor-theme="dark"] .t2-clipurl-label {
    color: var(--t2-ink);
}

@media (max-width: 760px) {
    .t2-modal-surface-adaptive.t2-clipurl-panel,
    .t2-modal-surface-adaptive.t2-clipurl-panel-wide {
        width: 100%;
        max-width: none;
        max-height: 92vh;
        max-height: 92dvh;
        margin: 0;
        border-radius: var(--t2-radius-structural);
        border-bottom: 0;
    }

    .t2-clipurl-panel > .t2-modal-sheet-handle {
        margin: 0;
        padding: var(--t2-s3) 0 var(--t2-s1);
    }

    .t2-clipurl-panel-inner {
        padding: var(--t2-s4);
    }

    .t2-clipurl-both-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .t2-clipurl-footer-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .t2-clipurl-btn,
    .t2-clipurl-inline-btn {
        width: 100%;
    }
}

/* Premium neutral refinement: input/focus/choice controls */
.t2-clipurl-panel {
    border-color: rgba(17, 24, 39, 0.10);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}

.t2-clipurl-choice-primary .material-icons {
    background: transparent;

}

html[data-t2editor-theme="dark"] .t2-clipurl-panel {

    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

html[data-t2editor-theme="dark"] .t2-clipurl-brand-icon {

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

html[data-t2editor-theme="dark"] .t2-clipurl-help .material-icons {
    color: var(--t2-ink);
}

html[data-t2editor-theme="dark"] .t2-clipurl-choice-primary .material-icons {
    background: transparent;

}

@media (max-width: 360px) {
    .t2-clipurl-action-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Icon layout + anti-glow refinement ──────────────────────────────────────
   Design rule:
   - no halo/glow on input focus
   - button icons are not wrapped by a second colored chip
   - icon alignment is fixed by line-height/flex metrics, not by visual patches
   - light/dark modes use separate neutral border tones
*/

.t2-clipurl-panel .material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
}

.t2-clipurl-brand {
    align-items: center;
}

.t2-clipurl-brand-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: var(--t2-radius-control);

}

.t2-clipurl-brand-icon .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.t2-clipurl-close .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.t2-clipurl-field {
    min-height: 46px;
    border-width: 1px;
    border-color: var(--t2-line);

    box-shadow: none;
}

.t2-clipurl-field:hover {
    border-color: var(--t2-line);
}

.t2-clipurl-field:focus-within {

    background: #ffffff;

}

.t2-clipurl-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 21px;
    color: var(--t2-ink-muted);
    line-height: 1;
}

.t2-clipurl-field:focus-within .t2-clipurl-field-icon {
    color: var(--t2-ink-muted);
}

.t2-clipurl-help .material-icons,
.t2-clipurl-label .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: currentColor;
    line-height: 1;
}

.t2-clipurl-action-grid {
    gap: var(--t2-s2);
}

.t2-clipurl-choice {
    min-height: 50px;
    padding: var(--t2-s2) var(--t2-s3);
    border-width: 1px;
    border-color: var(--t2-line);

}

.t2-clipurl-choice:hover {

    box-shadow: none;
    transform: none;
}

.t2-clipurl-choice:active {
    background: var(--t2-inset);
}

.t2-clipurl-choice .material-icons {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--t2-ink-muted);
    font-size: 21px;
    line-height: 1;
}

.t2-clipurl-choice-primary:hover {
    border-color: var(--t2-product-ink);
    background: var(--t2-product-ink);
}

.t2-clipurl-choice-primary:active {
    background: var(--t2-product-ink);
}

.t2-clipurl-choice-primary .material-icons,
.t2-clipurl-choice-primary .t2-clipurl-choice-copy strong,
.t2-clipurl-btn,
.t2-clipurl-inline-btn {
    border: 1px solid transparent;
    box-shadow: none;
}

.t2-clipurl-btn-secondary,
.t2-clipurl-btn-secondary:hover,
.t2-clipurl-btn .material-icons,
.t2-clipurl-inline-btn .material-icons {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 18px;
    line-height: 1;

    box-shadow: none;
}

html[data-t2editor-theme="dark"] .t2-clipurl-field {
    border-width: 1px;

    box-shadow: none;
}

html[data-t2editor-theme="dark"] .t2-clipurl-field:hover {
    border-color: var(--t2-line);
}

html[data-t2editor-theme="dark"] .t2-clipurl-field:focus-within {
    border-color: var(--t2-line);
    background: var(--t2-surface);
    box-shadow: none;
}

html[data-t2editor-theme="dark"] .t2-clipurl-field-icon {
    color: var(--t2-ink-muted);
}

html[data-t2editor-theme="dark"] .t2-clipurl-field:focus-within .t2-clipurl-field-icon {
    color: var(--t2-ink);
}

html[data-t2editor-theme="dark"] .t2-clipurl-choice {
    border-color: var(--t2-line);
    background: var(--t2-surface);
    box-shadow: none;
}

html[data-t2editor-theme="dark"] .t2-clipurl-choice:hover {
    border-color: var(--t2-line);
    background: var(--t2-surface);
    box-shadow: none;
}

html[data-t2editor-theme="dark"] .t2-clipurl-choice:active {
    background: var(--t2-surface);
}

html[data-t2editor-theme="dark"] .t2-clipurl-choice .material-icons {
    background: transparent;
    color: var(--t2-ink);
}

html[data-t2editor-theme="dark"] .t2-clipurl-choice-primary {
    border-color: var(--t2-line);
    background: var(--t2-line);
    color: #ffffff;
}

html[data-t2editor-theme="dark"] .t2-clipurl-choice-primary:hover {
    border-color: var(--t2-line);
    background: var(--t2-line);
}

html[data-t2editor-theme="dark"] .t2-clipurl-choice-primary .material-icons,
html[data-t2editor-theme="dark"] .t2-clipurl-choice-primary .t2-clipurl-choice-copy strong,
html[data-t2editor-theme="dark"] .t2-clipurl-choice-primary .t2-clipurl-choice-copy small {
    color: #ffffff;
}

html[data-t2editor-theme="dark"] .t2-clipurl-btn-secondary,
html[data-t2editor-theme="dark"] .t2-clipurl-inline-btn {
    border-color: var(--t2-line);

}

html[data-t2editor-theme="dark"] .t2-clipurl-btn-secondary:hover,
html[data-t2editor-theme="dark"] .t2-clipurl-inline-btn:hover {
    border-color: var(--t2-line);
    background: var(--t2-line);
    color: var(--t2-ink);
}

html[data-t2editor-theme="dark"] .t2-clipurl-btn-primary {
    border-color: var(--t2-line);
    background: var(--t2-line);
    color: #fff;
}

html[data-t2editor-theme="dark"] .t2-clipurl-btn-primary:hover {
    border-color: var(--t2-line);
    background: var(--t2-line);
}

/* T2Editor /law official plugin design alignment */
/* Shared --t2-plugin-* tokens are owned by css/t2-foundation.css. */
.t2-dsc-service-brand {
  letter-spacing: -0.01em;
}
.t2-product-brand { white-space: nowrap; }

.t2-clipurl-panel-inner {
  color: var(--t2-plugin-text);
  background: var(--t2-plugin-surface);
  border: 1px solid var(--t2-plugin-border);
  border-radius: var(--t2-plugin-radius-surface);
  box-shadow: var(--t2-plugin-shadow);
}
.t2-clipurl-header { border-bottom: 1px solid var(--t2-plugin-border); padding-bottom: var(--t2-s4); }
.t2-clipurl-brand-icon { background: var(--t2-plugin-product-soft); color: var(--t2-plugin-product); box-shadow: none; }
.t2-clipurl-brand-copy h3 { color: var(--t2-plugin-text); font-weight: 800; }
.t2-clipurl-brand-copy p, .t2-clipurl-help, .t2-clipurl-choice-copy small { color: var(--t2-plugin-text-muted); }
.t2-clipurl-close, .t2-clipurl-inline-btn, .t2-clipurl-btn { min-width: 44px; min-height: 44px; border-radius: var(--t2-plugin-radius-control); }
.t2-clipurl-close { color: var(--t2-plugin-text-muted); background: transparent; }
.t2-clipurl-close:hover { color: var(--t2-plugin-text); background: var(--t2-plugin-surface-muted); }
.t2-clipurl-field, .t2-clipurl-output-box {
  background: var(--t2-plugin-surface-raised); border: 1px solid var(--t2-plugin-border); border-radius: var(--t2-plugin-radius-island);
}
.t2-clipurl-field:focus-within { border-color: var(--t2-plugin-product); box-shadow: none; }
.t2-clipurl-input { color: var(--t2-plugin-text); min-height: 44px; }
.t2-clipurl-choice, .t2-clipurl-summary-card, .t2-clipurl-result-card {
  color: var(--t2-plugin-text); background: var(--t2-plugin-surface-raised); border: 1px solid var(--t2-plugin-border); box-shadow: none;
}
.t2-clipurl-choice:hover { border-color: var(--t2-plugin-border-strong); background: var(--t2-plugin-surface-muted); transform: translateY(-1px); }
.t2-clipurl-choice-primary { color: var(--t2-plugin-text); background: var(--t2-plugin-product-soft); border-color: var(--t2-plugin-product); }
.t2-clipurl-choice-primary .material-icons, .t2-clipurl-choice-primary .t2-clipurl-choice-copy strong, .t2-clipurl-choice-primary .t2-clipurl-choice-copy small { color: var(--t2-plugin-product); }
.t2-clipurl-btn-primary { color: var(--t2-plugin-on-action); background: var(--t2-plugin-action); border-color: var(--t2-plugin-action); font-weight: 750; }
.t2-clipurl-btn-primary:hover { background: var(--t2-plugin-action-hover); }
.t2-clipurl-btn-secondary { color: var(--t2-plugin-text); background: var(--t2-plugin-surface-muted); border-color: var(--t2-plugin-border); }
.t2-clipurl-footer { border-top: 1px solid var(--t2-plugin-border); }
@media (max-width: 640px) {
  .t2-clipurl-panel-inner { border-radius: var(--t2-plugin-radius-surface) var(--t2-plugin-radius-surface) 0 0; max-height: calc(100dvh - env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .t2-clipurl-input { font-size: 16px; } /* [iOS⚠️] */
}

/* =========================================================================
   T2Editor /law 706 — plugin scroll and native-control hardening
   ========================================================================= */
:is([class^="t2-clipurl-"], [class*=" t2-clipurl-"]):not([data-t2-modal-surface]) {
  max-width: 100%;
}
:is(:is([class^="t2-clipurl-"], [class*=" t2-clipurl-"]) :is(button, input, textarea, select), button[class^="t2-clipurl-"], button[class*=" t2-clipurl-"], input[class^="t2-clipurl-"], input[class*=" t2-clipurl-"], textarea[class^="t2-clipurl-"], textarea[class*=" t2-clipurl-"], select[class^="t2-clipurl-"], select[class*=" t2-clipurl-"]) {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
:is(:is([class^="t2-clipurl-"], [class*=" t2-clipurl-"]) button, button[class^="t2-clipurl-"], button[class*=" t2-clipurl-"]) {
  -webkit-appearance: none;
  appearance: none;
}
:is(:is([class^="t2-clipurl-"], [class*=" t2-clipurl-"]) :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], textarea, select), input:not([type])[class^="t2-clipurl-"], input:not([type])[class*=" t2-clipurl-"], input[type="text"][class^="t2-clipurl-"], input[type="text"][class*=" t2-clipurl-"], input[type="search"][class^="t2-clipurl-"], input[type="search"][class*=" t2-clipurl-"], input[type="email"][class^="t2-clipurl-"], input[type="email"][class*=" t2-clipurl-"], input[type="url"][class^="t2-clipurl-"], input[type="url"][class*=" t2-clipurl-"], input[type="tel"][class^="t2-clipurl-"], input[type="tel"][class*=" t2-clipurl-"], input[type="number"][class^="t2-clipurl-"], input[type="number"][class*=" t2-clipurl-"], input[type="password"][class^="t2-clipurl-"], input[type="password"][class*=" t2-clipurl-"], textarea[class^="t2-clipurl-"], textarea[class*=" t2-clipurl-"], select[class^="t2-clipurl-"], select[class*=" t2-clipurl-"]) {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
:is(:is([class^="t2-clipurl-"], [class*=" t2-clipurl-"]) :is(button, input, textarea, select), button[class^="t2-clipurl-"], button[class*=" t2-clipurl-"], input[class^="t2-clipurl-"], input[class*=" t2-clipurl-"], textarea[class^="t2-clipurl-"], textarea[class*=" t2-clipurl-"], select[class^="t2-clipurl-"], select[class*=" t2-clipurl-"]):focus {
  outline: none;
}
:is(:is([class^="t2-clipurl-"], [class*=" t2-clipurl-"]) :is(button, input, textarea, select), button[class^="t2-clipurl-"], button[class*=" t2-clipurl-"], input[class^="t2-clipurl-"], input[class*=" t2-clipurl-"], textarea[class^="t2-clipurl-"], textarea[class*=" t2-clipurl-"], select[class^="t2-clipurl-"], select[class*=" t2-clipurl-"]):focus-visible {
  outline: 1px solid var(--t2-plugin-product, var(--t2-product));
  outline-offset: 2px;

}

.t2-clipurl-panel {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.t2-clipurl-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* T2Editor /law 706 — plugin select indicator after native appearance reset */
:is(:is([class^="t2-clipurl-"], [class*=" t2-clipurl-"]) select, select[class^="t2-clipurl-"], select[class*=" t2-clipurl-"]):not([multiple]):not([size]) {
  padding-inline-end: max(32px, 2.25em);
  background: var(--t2-surface);
  background-position:
    calc(100% - 14px) calc(50% - 1px),
    calc(100% - 9px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
/* Custom drag surfaces own pointer movement and must not trigger native text/image selection. */
:where([data-t2-drag-surface], [draggable="true"], input[type="range"], [role="slider"],
  [class*="drag-handle"], [class*="resize-handle"], [class*="resizer"],
  [class*="crop-handle"], [class*="trim-handle"], [class*="seek-bar"],
  [class*="slider-thumb"], [class*="range-thumb"]) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
:where([data-t2-drag-surface], [draggable="true"], input[type="range"], [role="slider"],
  [class*="drag-handle"], [class*="resize-handle"], [class*="resizer"],
  [class*="crop-handle"], [class*="trim-handle"], [class*="seek-bar"],
  [class*="slider-thumb"], [class*="range-thumb"]) img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
html.t2-drag-selection-active, html.t2-drag-selection-active body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Dark surfaces must remain surfaces.  --t2-ink is a foreground token and
   becomes near-white in dark mode; using it as a background produced the
   inverted white fields shown inside the otherwise dark panel. */
html[data-t2editor-theme="dark"] .t2-clipurl-panel { background: var(--t2-floating); border-color: var(--t2-line); color: var(--t2-ink); }
html[data-t2editor-theme="dark"] .t2-clipurl-brand-icon,
html[data-t2editor-theme="dark"] .t2-clipurl-close { background: var(--t2-inset); color: var(--t2-product); }
html[data-t2editor-theme="dark"] .t2-clipurl-brand-copy h3,
html[data-t2editor-theme="dark"] .t2-clipurl-choice-copy strong { color: var(--t2-ink); }
html[data-t2editor-theme="dark"] .t2-clipurl-brand-copy p,
html[data-t2editor-theme="dark"] .t2-clipurl-help,
html[data-t2editor-theme="dark"] .t2-clipurl-source-url,
html[data-t2editor-theme="dark"] .t2-clipurl-choice-copy small { color: var(--t2-ink-muted); }
html[data-t2editor-theme="dark"] .t2-clipurl-field,
html[data-t2editor-theme="dark"] .t2-clipurl-choice:not(.t2-clipurl-choice-primary),
html[data-t2editor-theme="dark"] .t2-clipurl-summary-card,
html[data-t2editor-theme="dark"] .t2-clipurl-result-card,
html[data-t2editor-theme="dark"] .t2-clipurl-output-box,
html[data-t2editor-theme="dark"] .t2-clipurl-qr-image { background: var(--t2-inset); border-color: var(--t2-line); color: var(--t2-ink); }
html[data-t2editor-theme="dark"] .t2-clipurl-input { color: var(--t2-ink); }
html[data-t2editor-theme="dark"] .t2-clipurl-input::placeholder { color: var(--t2-ink-muted); }
html[data-t2editor-theme="dark"] .t2-clipurl-inline-btn,
html[data-t2editor-theme="dark"] .t2-clipurl-btn-secondary { background: var(--t2-inset); color: var(--t2-ink); }

}
