.copy-desk { color: #e9edf0; background: #101216; border: 1px solid #343940; border-radius: 6px; padding: 0; width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; font: 14px/1.45 system-ui, sans-serif; letter-spacing: 0; }
#officeCopyBtn[hidden] { display: none !important; }
.copy-desk::backdrop { background: #000a; }
.copy-desk *, .copy-desk *::before, .copy-desk *::after { box-sizing: border-box; }
.copy-desk [hidden] { display: none !important; }
.copy-desk header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid #343940; }
.copy-desk h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: 0; }
.copy-desk h3 { font-size: 14px; margin: 0 0 12px; letter-spacing: 0; }
.copy-badge { color: #efc65c; font: 11px ui-monospace, monospace; }
.copy-desk button { background: #22272d; color: #e9edf0; border: 1px solid #424952; border-radius: 4px; padding: 9px 12px; font: inherit; cursor: pointer; }
.copy-desk button:hover { background: #313840; }
.copy-desk button:disabled { opacity: .5; cursor: default; }
.copy-desk .copy-icon { width: 36px; height: 36px; padding: 7px; flex: 0 0 auto; display: grid; place-items: center; }
.copy-toolbar { padding: 16px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: #191d22; }
.copy-account-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #343940; }
.copy-account-bar h3 { margin: 0; }
.copy-account-bar { align-items: center; }
#copyAdd { margin-left: auto; }
#copyAccountTitle { overflow-wrap: anywhere; min-width: 0; }
.copy-account-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(145px, 1.2fr) minmax(120px, 1fr) 100px; gap: 12px 20px; padding: 18px 20px; border-bottom: 1px solid #343940; align-items: start; }
.copy-account-row > * { min-width: 0; overflow-wrap: anywhere; }
.copy-account-identity strong { font: 16px ui-monospace, monospace; }
.copy-account-identity span, .copy-account-status small, .copy-account-risk strong { display: block; }
.copy-account-identity span, .copy-account-row small { color: #a2adb9; font-size: 12px; }
.copy-account-type { color: #efc65c !important; margin-left: 8px; font: 10px ui-monospace, monospace; }
.copy-account-status strong { font-size: 13px; font-weight: 500; }
.copy-account-status [data-state=valid] { color: #52c899; }
.copy-account-status [data-state=invalid] { color: #f19a9a; }
.copy-account-status [data-state=checking] { color: #efc65c; }
.copy-account-status [data-state=muted] { color: #a2adb9; }
.copy-account-risk strong { font-size: 13px; font-weight: 500; }
.copy-row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.copy-row-actions button { font-size: 12px; padding: 6px 10px; }
.copy-row-actions [data-action=remove] { color: #f19a9a; }
.copy-empty { padding: 24px 20px; color: #a2adb9; margin: 0; }
#copyArchive summary, #copyAdvanced summary { color: #b7c0c9; cursor: pointer; padding: 16px 0; }
#copyArchive > summary { padding: 16px 20px; }
#copyAdvanced { margin-top: 8px; border-top: 1px solid #343940; }
.copy-account-bar .copy-muted { align-self: center; }
.copy-account-bar select:focus-visible { outline: 2px solid #52c899; outline-offset: 2px; }
.copy-switch { display: flex; align-items: center; gap: 8px; }
.copy-desk input[type=checkbox] { accent-color: #52c899; width: 17px; height: 17px; }
.copy-desk form, .copy-desk section, #copyMessage { padding: 20px; margin: 0; }
.copy-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.copy-fields label, #copyPairing label { display: grid; gap: 6px; color: #b7c0c9; min-width: 0; }
.copy-desk input:not([type=checkbox]) { width: 100%; min-width: 0; background: #090b0e; color: #f0f2f4; border: 1px solid #424952; border-radius: 4px; padding: 9px; font: 14px ui-monospace, monospace; }
.copy-desk input:focus-visible, .copy-desk button:focus-visible { outline: 2px solid #52c899; outline-offset: 2px; }
.copy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.copy-muted { font-size: 12px; color: #a2adb9; }
.copy-server-field { position: relative; min-width: 0; }
#copyServerOptions { position: absolute; top: 67px; left: 0; right: 0; z-index: 3; max-height: 220px; overflow-y: auto; background: #191d22; border: 1px solid #424952; border-radius: 4px; }
#copyServerOptions [role=option] { padding: 8px 10px; cursor: pointer; overflow-wrap: anywhere; }
#copyServerOptions [role=option]:hover, #copyServerOptions [aria-selected=true] { background: #30383a; }
#copyServerOptions strong, #copyServerOptions small { display: block; font-size: 12px; }
#copyServerOptions small { color: #a2adb9; }
#copyServerStatus { display: block; overflow-wrap: anywhere; margin-top: 4px; }
#copyMessage { color: #efc65c; overflow-wrap: anywhere; padding: 12px 20px; }
#copyMessage:empty { display: none; }
.copy-orders { border-top: 1px solid #343940; margin-top: 16px !important; }
.copy-table-wrap { overflow-x: auto; }
.copy-desk table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.copy-desk th, .copy-desk td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #292e35; overflow-wrap: anywhere; font-size: 12px; }
.copy-desk th { color: #a2adb9; font-weight: 500; }
.copy-desk th:first-child { width: 27%; } .copy-desk th:last-child { width: 30%; }
.copy-desk td[data-state=submitted], .copy-desk td[data-state=closed] { color: #52c899; }
.copy-desk td[data-state=unknown], .copy-desk td[data-state=rejected] { color: #f19a9a; }
.copy-be-state { display: block; margin-top: 4px; color: #efc65c; }
.copy-be-state[data-state=applied] { color: #52c899; }
.copy-be-state[data-state=unknown], .copy-be-state[data-state=rejected] { color: #f19a9a; }
#copyConnection[data-state=valid] { color: #52c899; }
#copyConnection[data-state=invalid] { color: #f19a9a; }
@media (max-width: 600px) { .copy-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .copy-desk table { min-width: 570px; } }
@media (max-width: 700px) { .copy-account-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; } .copy-account-row .copy-switch { align-self: end; } }
@media (max-width: 380px) { .copy-fields { grid-template-columns: 1fr; } }
