* {
    box-sizing:border-box
}

body {
    margin:0;
    background:#10131a;
    color:#eef0f6;
    font:15px/1.45 Inter,Segoe UI,Arial,sans-serif;
    padding:32px 18px
}

.wrap {
    max-width:980px;
    margin:auto
}

.head {
    margin-bottom:22px
}

.head h1 {
    font-size:28px;
    margin:0 0 5px
}

.head p {
    margin:0;
    color:#aeb4c2
}

.layout {
    display:grid;
    grid-template-columns:minmax(300px,1fr) minmax(300px,1fr);
    gap:20px
}

.panel {
    background:#1a1e28;
    border:1px solid #ffffff14;
    border-radius:16px;
    padding:22px;
    box-shadow:0 12px 40px #0003
}

label {
    display:block;
    font-weight:650;
    margin:17px 0 7px
}

textarea,select,input[type=number],input[type=text] {
    width:100%;
    background:#11141c;
    color:#f2f3f7;
    border:1px solid #ffffff25;
    border-radius:9px;
    padding:11px;
    font:inherit
}

textarea {
    min-height:90px;
    resize:vertical
}

.hint {
    font-size:12px;
    color:#a6adba;
    margin-top:6px
}

.colors {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px
}

.colorbox {
    display:flex;
    align-items:center;
    gap:10px;
    background:#11141c;
    border:1px solid #ffffff25;
    border-radius:9px;
    padding:7px 10px
}

.colorbox input {
    width:38px;
    height:32px;
    border:0;
    padding:0;
    background:transparent
}

.colorbox span {
    font-size:13px
}

.preview {
    min-height:210px;
    display:flex;
    position:relative;
    align-items:flex-end;
    justify-content:flex-start;
    padding:14px;
    border-radius:12px;
    overflow:hidden;
    background:repeating-conic-gradient(#252a36 0 25%,#202530 0 50%) 50%/22px 22px
}

.preview-card {
    width:100%;
    padding:16px;
    border-radius:13px;
    border-left:5px solid #a970ff;
    background:#202431;
    color:#fff;
    box-shadow:0 12px 30px #0008
}

.preview-card {
    transition:opacity .8s ease-out,transform .8s ease-out
}

.preview-card.show {
    opacity:1;
    transform:translate(0,0)
}

.preview-card[data-enter="fade-in"]:not(.show) {
    opacity:0;
    transform:translate(0,0)
}

.preview-card[data-enter="slide-in-from-top"]:not(.show) {
    transform:translateY(calc(-100% - 14px))
}

.preview-card[data-enter="slide-in-from-bottom"]:not(.show) {
    transform:translateY(calc(100% + 14px))
}

.preview-card[data-enter="slide-in-from-left"]:not(.show) {
    transform:translateX(calc(-100% - 14px))
}

.preview-card[data-enter="slide-in-from-right"]:not(.show) {
    transform:translateX(calc(100% + 14px))
}

.preview-card.hiding {
    opacity:0;
    transition-timing-function:ease-in
}

.preview-card.hiding[data-hide="fade-out"] {
    transform:translate(0,0)
}

.preview-card.hiding[data-hide="slide-out-top"] {
    transform:translateY(calc(-100% - 14px))
}

.preview-card.hiding[data-hide="slide-out-bottom"] {
    transform:translateY(calc(100% + 14px))
}

.preview-card.hiding[data-hide="slide-out-left"] {
    transform:translateX(calc(-100% - 14px))
}

.preview-card.hiding[data-hide="slide-out-right"] {
    transform:translateX(calc(100% + 14px))
}

.preview-title {
    font-size:11px;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#bd9aff;
    font-weight:800
}

.preview-name {
    font-size:21px;
    font-weight:800;
    margin:3px 0
}

.preview-message {
    color:#d6d8e0
}

.preview[data-position^="top"] {
    align-items:flex-start
}

.preview[data-position$="right"] {
    justify-content:flex-end
}

.actions {
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:20px;
    flex-wrap:wrap
}

.urlbox {
    display:flex;
    gap:8px;
    margin-top:12px
}

.urlbox input {
    min-width:0;
    flex:1;
    background:#11141c;
    color:#d9dce5;
    border:1px solid #ffffff25;
    border-radius:9px;
    padding:10px;
    font:12px/1.4 Consolas,monospace
}

.urlhint {
    font-size:12px;
    color:#a6adba;
    margin-top:7px
}

.button {
    border:0;
    border-radius:9px;
    background:#a970ff;
    color:#160e22;
    font-weight:750;
    padding:11px 18px;
    font-size:14px;
    cursor:pointer
}

.button:hover {
    filter:brightness(1.08)
}

#saved {
    color:#9ee5b2;
    font-size:13px
}

.back {
    display:inline-block;
    color:#c7aaff;
    margin-top:18px;
    text-decoration:none
}

.back:hover {
    text-decoration:underline
}

@media(max-width:720px) {
    .layout {
    grid-template-columns:1fr
}

.head h1 {
    font-size:24px
}


}

html,body {
    height:100%;
    overflow:hidden
}

body {
    height:100vh
}

.wrap {
    height:100%;
    display:flex;
    flex-direction:column
}

.head {
    flex:none
}

.layout {
    flex:1;
    min-height:0;
    align-items:stretch
}

.layout>.panel {
    min-height:0
}

.layout>.panel:first-child {
    overflow-y:auto;
    overscroll-behavior:contain
}

.layout>.panel:first-child {
    scrollbar-width:thin;
    scrollbar-color:#555b6b transparent
}

.layout>.panel:first-child::-webkit-scrollbar {
    width:6px
}

.layout>.panel:first-child::-webkit-scrollbar-button {
    display:none;
    width:0;
    height:0
}

.layout>.panel:first-child::-webkit-scrollbar-track {
    background:transparent
}

.layout>.panel:first-child::-webkit-scrollbar-thumb {
    background:#555b6b;
    border-radius:99px
}

.layout>.panel:first-child::-webkit-scrollbar-thumb:hover {
    background:#737b8d
}

.layout>.panel:last-child {
    overflow:auto;
    align-self:start;
    max-height:100%
}

.back {
    flex:none
}

@media(max-width:720px) {
    html,body {
    height:auto;
    min-height:100%;
    overflow:auto
}

body {
    min-height:100vh
}

.wrap {
    height:auto;
    min-height:calc(100vh - 64px)
}

.layout {
    flex:none;
    min-height:auto
}

.layout>.panel:first-child,.layout>.panel:last-child {
    overflow:visible;
    max-height:none
}


}

body {
    padding:0;
    background:#111;
    overflow:hidden
}

.wrap {
    max-width:none;
    width:100%;
    height:100vh;
    margin:0;
    display:flex;
    flex-direction:column
}

.head {
    height:64px;
    flex:none;
    margin:0;
    padding:0 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:#171717;
    border-bottom:1px solid #303030
}

.brand {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:190px
}

.brand .logo {
    width:34px;
    height:34px;
    border-radius:9px;
    display:grid;
    place-items:center;
    background:#272727;
    color:#a970ff;
    font-size:21px
}

.head h1 {
    font-size:17px;
    margin:0;
    color:#f1f1f1
}

.head p {
    font-size:11px;
    margin:1px 0 0;
    color:#999
}

.topLink {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0
}

.linkLabel {
    font-size:12px;
    color:#aaa;
    white-space:nowrap
}

.topLink input {
    cursor:pointer;
    width:min(46vw,620px);
    min-width:170px;
    background:#202020;
    color:#d9dce5;
    border:1px solid #343434;
    border-radius:7px;
    padding:9px 11px;
    font:11px Consolas,monospace
}

.topLink .button {
    padding:9px 14px;
    white-space:nowrap
}

.layout {
    grid-template-columns:minmax(430px,60%) minmax(330px,40%);
    gap:0;
    flex:1;
    min-height:0;
    align-items:stretch
}

.panel {
    min-height:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    padding:20px 24px;
    background:#171717
}

.layout>.panel:first-child {
    overflow-y:auto;
    overscroll-behavior:contain;
    display:grid;
    grid-template-columns:minmax(130px,.8fr) minmax(0,1.2fr);
    align-content:start;
    gap:0 22px;
    border-right:1px solid #303030
}

.layout>.panel:first-child h2 {
    grid-column:1/-1;
    color:#9acbff;
    font-size:13px;
    font-weight:650;
    margin:2px 0 18px
}

.layout>.panel:first-child>label {
    grid-column:1;
    align-self:center;
    margin:11px 0 6px;
    color:#eee;
    font-size:13px
}

.layout>.panel:first-child>textarea,.layout>.panel:first-child>select,.layout>.panel:first-child>input[type=number],.layout>.panel:first-child>input[type=text] {
    grid-column:2;
    align-self:center;
    margin:8px 0 6px;
    background:#202020;
    border-color:#2d2d2d;
    border-radius:7px;
    padding:10px 12px;
    font-size:13px
}

.layout>.panel:first-child>textarea {
    min-height:74px
}

.layout>.panel:first-child>.hint {
    grid-column:2;
    margin:-2px 0 9px;
    color:#999
}

.layout>.panel:first-child>.colors {
    grid-column:1/-1;
    margin:10px 0 8px
}

.layout>.panel:first-child .colorbox {
    background:#202020;
    border-color:#2d2d2d
}

.layout>.panel:first-child .colorbox span {
    color:#ccc
}

.layout>.panel:last-child {
    position:relative;
    align-self:stretch;
    height:100%;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:26px;
    background-color:#202020;
    background-image:linear-gradient(45deg,#292929 25%,transparent 25%),linear-gradient(-45deg,#292929 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#292929 75%),linear-gradient(-45deg,transparent 75%,#292929 75%);
    background-size:28px 28px;
    background-position:0 0,0 14px,14px -14px,-14px 0
}

.layout>.panel:last-child h2 {
    position:absolute;
    top:18px;
    left:22px;
    margin:0;
    color:#9acbff;
    font-size:13px;
    font-weight:650
}

.preview {
    width:min(100%,540px);
    min-height:260px;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:transparent
}

.preview-card {
    width:100%;
    max-width:500px
}

.layout>.panel:last-child>.hint {
    position:absolute;
    top:42px;
    left:22px;
    right:22px;
    color:#999
}

.button {
    background:#292929;
    color:#eee;
    border:1px solid #3a3a3a;
    border-radius:7px
}

.button:hover {
    background:#343434;
    filter:none
}

.topLink .button {
    background:#282330;
    border-color:#514268;
    color:#d8c4ff
}

#saved {
    white-space:nowrap
}

.actions,.urlbox,.urlhint,.back {
    display:none!important
}

@media(max-width:720px) {
    body {
    height:auto;
    min-height:100vh;
    overflow:auto
}

.wrap {
    height:auto;
    min-height:100vh
}

.head {
    height:auto;
    min-height:64px;
    align-items:flex-start;
    flex-direction:column;
    padding:12px 16px;
    gap:10px
}

.topLink {
    width:100%;
    flex-wrap:wrap
}

.topLink input {
    width:100%;
    flex:1
}

.layout {
    display:flex;
    flex-direction:column;
    flex:none;
    min-height:auto
}

.layout>.panel:first-child {
    overflow:visible;
    display:block;
    border-right:0;
    border-bottom:1px solid #303030
}

.layout>.panel:first-child>label,.layout>.panel:first-child>textarea,.layout>.panel:first-child>select,.layout>.panel:first-child>input[type=number],.layout>.panel:first-child>input[type=text],.layout>.panel:first-child>.hint,.layout>.panel:first-child>.colors {
    display:block;
    width:100%;
    margin:8px 0
}

.layout>.panel:last-child {
    min-height:350px;
    overflow:hidden
}

.layout>.panel:last-child>.hint {
    position:static;
    margin:0 10px 20px
}

.preview {
    min-height:230px
}


}

.head {
    height:84px
}

.topLink {
    flex:1;
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px
}

.linkLabel {
    text-align:center
}

.topLink textarea {
    width:min(100%,980px);
    height:44px;
    min-width:0;
    resize:none;
    overflow:hidden;
    overflow-wrap:anywhere;
    word-break:break-all;
    white-space:pre-wrap;
    background:#202020;
    color:#e5e5e5;
    border:1px solid #343434;
    border-radius:7px;
    padding:5px 10px;
    font:13px/1.25 Consolas,monospace;
    text-align:center;
    cursor:pointer
}

.topLink textarea:hover {
    border-color:#66527f
}

#saved {
    position:absolute;
    right:0;
    top:2px;
    font-size:11px
}

@media(max-width:720px) {
    .head {
    height:auto;
    min-height:64px;
    align-items:stretch;
    flex-direction:column;
    padding:12px 16px;
    gap:10px
}

.topLink {
    width:100%;
    flex:none
}

.topLink textarea {
    width:100%;
    height:50px;
    font-size:12px
}

#saved {
    position:static
}


}

.head {
    height:96px;
    min-height:96px
}

.topLink {
    min-height:0
}

.linkLabel {
    display:block;
    line-height:14px;
    color:#aaa
}

.topLink textarea {
    height:60px;
    min-height:0!important;
    max-height:60px;
    line-height:16px;
    padding:4px 10px;
    flex:none
}

@media(max-width:720px) {
    .head {
    height:auto;
    min-height:0
}

.topLink textarea {
    height:50px;
    max-height:50px
}


}

.head {
    height:88px;
    min-height:88px;
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:34px 30px;
    align-content:center;
    gap:4px;
    padding:6px 22px
}

.brand {
    grid-column:1;
    grid-row:1
}

.topLink {
    grid-column:1;
    grid-row:2;
    width:100%;
    min-height:0;
    flex:1;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    gap:0
}

.linkLabel {
    display:none
}

.topLink textarea {
    width:100%;
    height:30px;
    min-height:0!important;
    max-height:30px;
    resize:none;
    overflow:hidden;
    overflow-wrap:normal;
    word-break:normal;
    white-space:pre;
    background:#202020;
    color:#e5e5e5;
    border:1px solid #343434;
    border-radius:7px;
    padding:5px 10px;
    font:11.5px/18px Consolas,monospace;
    text-align:left;
    cursor:pointer
}

.topLink textarea:hover {
    border-color:#66527f
}

#saved {
    position:absolute;
    right:4px;
    top:-13px;
    font-size:10px
}

@media(max-width:720px) {
    .head {
    height:88px;
    min-height:88px;
    grid-template-rows:34px 30px;
    padding:6px 16px
}

.topLink textarea {
    width:100%;
    height:30px;
    max-height:30px;
    font-size:10px
}


}

.topLink {
    width:100%;
    justify-content:center
}

.topLink textarea {
    width:1000px;
    max-width:calc(100vw - 44px);
    margin:0 auto
}

@media(max-width:720px) {
    .topLink textarea {
    width:100%;
    max-width:calc(100vw - 32px)
}


}

.head {
    height:60px;
    min-height:60px;
    display:flex;
    grid-template-columns:none;
    grid-template-rows:none;
    align-content:initial;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:0 20px
}

.brand {
    grid-column:auto;
    grid-row:auto;
    flex:none;
    min-width:180px
}

.topLink {
    grid-column:auto;
    grid-row:auto;
    flex:1;
    width:min(1000px,calc(100vw - 240px));
    max-width:1000px;
    min-width:0;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    margin:0 auto
}

.topLink textarea {
    width:100%;
    height:30px;
    min-height:0!important;
    max-height:30px;
    max-width:none;
    flex:none;
    resize:none;
    overflow:hidden;
    white-space:pre;
    word-break:normal;
    overflow-wrap:normal;
    padding:5px 10px;
    font:11.5px/18px Consolas,monospace;
    text-align:left
}

.layout {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)
}

.layout>.panel:first-child {
    grid-template-columns:minmax(220px,1.2fr) minmax(160px,1fr)
}

.layout>.panel:last-child h2,.layout>.panel:last-child>.hint {
    display:none!important
}

@media(max-width:720px) {
    .head {
    height:88px;
    min-height:88px;
    align-items:stretch;
    flex-direction:column;
    padding:6px 16px;
    gap:4px
}

.brand {
    min-width:0
}

.topLink {
    width:100%;
    max-width:100%;
    flex:none;
    margin:0
}

.topLink textarea {
    width:100%;
    height:30px;
    max-height:30px;
    font-size:10px
}

.layout {
    display:flex;
    flex-direction:column
}

.layout>.panel:first-child {
    display:block
}

.layout>.panel:first-child>label,.layout>.panel:first-child>textarea,.layout>.panel:first-child>select,.layout>.panel:first-child>input[type=number],.layout>.panel:first-child>input[type=text],.layout>.panel:first-child>.hint,.layout>.panel:first-child>.colors {
    display:block;
    width:100%;
    margin:8px 0
}

.layout>.panel:last-child {
    min-height:350px
}


}

.topLink textarea {
    font:16px/20px Segoe UI,Arial,sans-serif;
    text-align:center;
    filter:blur(5px);
    transition:filter .18s ease
}

.topLink:hover textarea,.topLink textarea:focus-visible {
    filter:blur(0)
}

.topLink {
    position:relative
}

.topLink::after {
    content:"Hier klicken, um die URL zu kopieren";
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    color:#e5e5e5;
    font:16px/20px Segoe UI,Arial,sans-serif;
    white-space:nowrap;
    pointer-events:none;
    text-shadow:0 1px 3px #000;
    transition:opacity .15s ease
}

.topLink:hover::after,.topLink:focus-within::after {
    opacity:0
}

.topLink textarea {
    font-family:"Arial Rounded MT Bold","Arial Rounded MT",Arial,sans-serif
}

.topLink::after {
    font-family:"Arial Rounded MT Bold","Arial Rounded MT",Arial,sans-serif
}

.layout {
    grid-template-columns:minmax(0,40%) minmax(0,60%)
}

.layout>.panel:first-child {
    grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr)
}

@media(max-width:720px) {
    .layout {
    display:flex;
    flex-direction:column
}


}

.preview {
    width:min(100%,850px);
    min-height:360px
}

.preview-card {
    width:100%;
    max-width:680px;
    padding:28px 30px;
    border-left-width:6px;
    border-radius:16px
}

.preview-title {
    font-size:13px
}

.preview-name {
    font-size:28px;
    margin:6px 0
}

.preview-message {
    font-size:18px;
    line-height:1.4
}

.topLink.copied::after {
    content:"In die Zwischenablage kopiert";
    opacity:1;
    background:#16864a;
    color:#fff;
    padding:5px 12px;
    border-radius:6px;
    font-weight:700;
    box-shadow:0 2px 8px #0008
}

.topLink.copied textarea {
    filter:blur(5px)!important
}

.topLink.copy-done textarea {
    filter:blur(5px)!important
}

.topLink.copy-done::after {
    opacity:0
}

.preview-card {
    display:flex;
    align-items:center;
    gap:20px;
    max-width:760px;
    padding:22px 26px;
    border:1px solid #ffffff20;
    border-left:6px solid #a970ff;
    border-radius:8px;
    background:linear-gradient(115deg,#192a39f5,#202431);
    box-shadow:0 14px 40px #0009;
    text-align:left
}

.preview-badge {
    width:76px;
    height:76px;
    flex:none;
    display:grid;
    place-items:center;
    border-radius:6px;
    background:linear-gradient(145deg,#38566a,#1c3141);
    border:1px solid #7993a3;
    color:#f1cc82;
    font-size:40px;
    box-shadow:inset 0 0 20px #a2c4d51c,0 4px 10px #0007
}

.preview-copy {
    min-width:0;
    flex:1
}

.preview-title {
    display:flex;
    align-items:center;
    gap:9px;
    font-size:13px;
    letter-spacing:.12em;
    color:#a9bdc9;
    font-weight:800;
    text-transform:uppercase
}

.preview-platform {
    background:#9147ff;
    color:#fff;
    padding:4px 7px;
    border-radius:3px;
    letter-spacing:.06em;
    font-size:10px
}

.preview-card[data-platform="YouTube"] .preview-platform {
    background:#d83b3b
}

.preview-name {
    font-size:30px;
    margin:6px 0 2px
}

.preview-message {
    font-size:18px;
    line-height:1.4;
    white-space:normal;
    max-width:none
}

.preview-badge {
    width:90px;
    height:90px;
    font-size:46px
}

.preview-badge {
    background:var(--avatar-fill-color,#282828);
    border:0;
    padding:0;
    box-shadow:none;
    border-radius:6px
}

.preview-badge img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    border:4px solid var(--avatar-border-color,#282828);
    border-radius:6px
}

@media(max-width:720px) {
    .preview-badge {
    width:72px;
    height:72px;
    font-size:38px
}


}

.preview-card {
    width:min(100%,var(--frame-width,760px));
    height:var(--frame-height,130px);
    max-width:none;
    flex:none;
    overflow:hidden
}

.preview-copy {
    min-width:0;
    overflow:hidden
}

.copyright a {
    color:inherit;
    text-decoration:none
}

.copyright a:hover {
    text-decoration:underline;
    color:#a970ff
}

.copyright {
    flex:none;
    text-align:center;
    padding:12px 0 2px;
    color:#858b99;
    font-size:12px;
    letter-spacing:.02em
}


/* Den Widget-Frame im Vorschaubereich links ausrichten. */
.preview {
    justify-content: flex-start;
}


/* Die Vorschau bleibt links verankert, auch bei rechter Widget-Position. */
.preview[data-position$="right"] {
    justify-content: flex-start;
}


/* Frame bei jeder Breite und Position zentrieren. */
.preview,
.preview[data-position$="right"] {
    justify-content: center;
}



/* Sprachumschalter im Header */
.head {
    position: relative;
    padding-right: 76px;
}

.language-control {
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 20;
    transform: translateY(-50%);
}

.language-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #454545;
    border-radius: 50%;
    background: #242424;
    color: #f1f1f1;
    font-size: 19px;
    cursor: pointer;
}

.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
    border-color: #a970ff;
    background: #30253d;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 140px;
    padding: 5px;
    border: 1px solid #3b3b3b;
    border-radius: 10px;
    background: #202020;
    box-shadow: 0 10px 28px #0009;
}

.language-menu[hidden] {
    display: none;
}

.language-menu button {
    padding: 9px 11px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #eee;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.language-menu button:hover {
    background: #343434;
}

body.language-en .topLink::after {
    content: "Click here to copy the URL";
}

body.language-en .topLink.copied::after {
    content: "Copied to clipboard";
}

@media(max-width:720px) {
    .head {
        padding-right: 16px;
    }

    .language-control {
        top: 15px;
        right: 16px;
        transform: none;
    }

    .brand {
        padding-right: 50px;
    }
}



.language-icon {
    display: block;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
}


/* Header actions matching the Ad Notification settings page. */
.header-action { min-height:42px; flex:none; padding:0 14px; border:1px solid rgba(169,112,255,.48); border-radius:7px; background:#191722; color:#d7baff; font:600 13px Inter,"Segoe UI",sans-serif; cursor:pointer; }
.header-action:hover { border-color:#a970ff; background:color-mix(in srgb,#a970ff 14%,#191722); }
.head { display:flex; align-items:center; gap:10px; }
.brand { flex:none; }
.topLink { flex:1; min-width:160px; }
.load-settings-dialog { width:min(540px,calc(100vw - 32px)); max-width:none; padding:24px; border:1px solid rgba(169,112,255,.4); border-radius:12px; background:#1a1e28; color:#eef0f6; box-shadow:0 18px 60px #000b; }
.load-settings-dialog::backdrop { background:rgba(0,0,0,.68); backdrop-filter:blur(9px); }
.load-settings-dialog h2 { margin:0 0 8px; color:#d7baff; font-size:17px; }
.load-settings-dialog p { margin:0 0 16px; color:#aeb4c2; font-size:12px; }
.load-settings-dialog label { display:block; margin:0 0 6px; font-size:12px; font-weight:650; }
.load-settings-dialog input { display:block; width:100%; min-height:40px; padding:10px; border:1px solid #ffffff25; border-radius:7px; background:#11141c; color:#f2f3f7; font:12px/1.45 Consolas,monospace; }
.load-settings-error { min-height:16px; margin:6px 0 10px !important; color:#ffaaa0 !important; }
.load-settings-actions { display:flex; justify-content:flex-end; gap:8px; }
.load-settings-actions button { min-height:36px; padding:0 13px; border-radius:7px; font:600 12px Inter,"Segoe UI",sans-serif; cursor:pointer; }
.dialog-secondary { border:1px solid #454545; background:#191817; color:#e5dfd2; }
.dialog-primary { border:1px solid #a970ff; background:#a970ff; color:#191817; }
@media(max-width:920px) { .head { flex-wrap:wrap; } .brand { margin-right:auto; } .topLink { order:5; flex-basis:100%; } }
@media(max-width:720px) { .header-action { min-height:38px; padding:0 9px; font-size:12px; } }

/* Full-screen two-pane settings layout, following Ad Notification. */
html, body { width:100%; height:100%; min-height:0; overflow:hidden; }
body { height:100vh; padding:0; background:#10131a; }
.wrap { position:fixed; inset:0; width:100%; max-width:none; height:100%; min-height:0; margin:0; display:flex; flex-direction:column; }
.head { height:60px; min-height:60px; flex:none; display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0; padding:0 22px; border-bottom:1px solid #ffffff18; background:#1a1e28; }
.brand { display:flex; align-items:center; gap:10px; min-width:220px; flex:none; }
.brand .logo { display:grid; place-items:center; width:34px; height:34px; flex:none; border:1px solid #a970ff55; border-radius:9px; background:#a970ff20; color:#d5b5ff; }
.brand h1 { margin:0 0 2px; font-size:17px; }
.brand p { font-size:11px; }
.topLink { position:relative; display:flex; align-items:center; flex:1; min-width:120px; max-width:1000px; margin:0 auto; }
.topLink textarea { width:100%; height:42px; min-height:42px; max-height:42px; padding:9px 10px; resize:none; overflow:hidden; border:1px solid #ffffff25; border-radius:7px; background:#11141c; color:#e1d7ed; cursor:pointer; font:11px/22px Consolas,monospace; filter:blur(4px); transition:filter .18s ease; white-space:nowrap; }
.topLink:hover textarea, .topLink:focus-within textarea { filter:blur(0); }
.topLink::after { position:absolute; top:50%; left:50%; color:#c9a3ff; content:"Hier klicken, um die URL zu kopieren"; font-size:14px; font-weight:600; pointer-events:none; text-shadow:0 1px 3px #000; transform:translate(-50%,-50%); white-space:nowrap; }
.topLink:hover::after, .topLink:focus-within::after, .topLink.copied::after { opacity:0; }
.topLink #saved { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.header-action { min-height:42px; flex:none; padding:0 12px; border:1px solid #a970ff66; border-radius:7px; background:#191722; color:#d7baff; font:600 12px Inter,"Segoe UI",sans-serif; cursor:pointer; }
.header-action:hover { border-color:#a970ff; background:#a970ff22; }
.language-control { position:relative; top:auto; right:auto; z-index:20; flex:none; transform:none; }
.layout { display:grid; flex:1; min-height:0; height:auto; overflow:hidden; grid-template-columns:minmax(0,40%) minmax(0,60%); align-items:stretch; gap:0; }
.panel { min-width:0; min-height:0; padding:20px 24px; border:0; border-radius:0; background:#1a1e28; box-shadow:none; }
.settings-panel { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); align-content:start; align-items:center; gap:7px 16px; overflow:auto; overscroll-behavior:contain; border-right:1px solid #ffffff18; scrollbar-width:thin; scrollbar-color:#555b6b transparent; }
.settings-panel::-webkit-scrollbar { width:6px; }
.settings-panel::-webkit-scrollbar-thumb { border-radius:99px; background:#555b6b; }
.settings-panel > h2, .settings-panel > .group-heading { grid-column:1 / -1; }
.settings-panel > h2 { margin:2px 0 6px; font-size:14px; }
.group-heading { margin:14px 0 2px; padding-top:10px; border-top:1px solid #ffffff18; color:#c8a2ff; font-size:12px; font-weight:650; }
.settings-panel > label { align-self:center; margin:5px 0; color:#eee; font-size:12px; font-weight:650; }
.settings-panel > input[type="text"], .settings-panel > input[type="number"], .settings-panel > select, .settings-panel > textarea, .settings-panel > .hint, .settings-panel > .colors { width:100%; min-width:0; }
.settings-panel > .hint, .settings-panel > .colors { grid-column:1 / -1; }
.settings-panel > textarea { min-height:58px; resize:vertical; }
.settings-panel > .colors { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; }
.settings-panel .colorbox { min-width:0; }
.settings-panel .colorbox span { min-width:0; font-size:11px; }
.preview-panel { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; padding:26px; background-color:#202530; background-image:linear-gradient(45deg,#292f3b 25%,transparent 25%),linear-gradient(-45deg,#292f3b 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#292f3b 75%),linear-gradient(-45deg,transparent 75%,#292f3b 75%); background-size:28px 28px; background-position:0 0,0 14px,14px -14px,-14px 0; }
.preview-panel > h2 { position:absolute; z-index:1; top:18px; right:22px; left:22px; margin:0; color:#c8a2ff; font-size:13px; font-weight:650; }
.preview { width:100%; min-height:210px; align-items:center; justify-content:center; background:transparent; }
.preview-card { max-width:100%; }
.preview-panel > .hint { position:absolute; right:22px; bottom:12px; left:22px; margin:0; }
.copyright { flex:none; padding:6px 0; }
.load-settings-dialog { z-index:100; }
@media(max-width:920px) { .head { gap:8px; padding:0 12px; } .brand { min-width:170px; } .topLink { min-width:80px; } .header-action { padding:0 8px; font-size:11px; } }
@media(max-width:720px) { html, body { height:auto; min-height:100%; overflow:auto; } body { min-height:100vh; } .wrap { position:static; height:auto; min-height:100vh; } .head { height:auto; min-height:60px; flex-wrap:wrap; padding:10px 14px; } .brand { flex:1; } .topLink { order:5; flex-basis:100%; max-width:none; } .layout { display:flex; flex-direction:column; overflow:visible; flex:none; } .settings-panel { display:grid; grid-template-columns:minmax(110px,.7fr) minmax(0,1.3fr); overflow:visible; border-right:0; border-bottom:1px solid #ffffff18; } .preview-panel { min-height:360px; } .copyright { padding:10px; } }

/* Color swatches and live range values, matching Ad Notification controls. */
.color-control { display:flex; align-items:center; gap:10px; min-height:37px; color:#c2bcae; font:11px Consolas,monospace; background:transparent; border:0; border-radius:0; padding:0; }
.color-control input { width:40px; height:31px; flex:none; padding:2px; border:1px solid #ffffff30; border-radius:7px; background:transparent; cursor:pointer; }
.color-control output { color:#c2bcae; }
.range-control { display:flex; min-height:37px; align-items:center; gap:10px; }
.range-control input { width:100%; min-width:0; accent-color:#a970ff; cursor:pointer; }
.range-control output { width:48px; flex:none; color:#d7baff; font:11px Consolas,monospace; text-align:right; }
.settings-panel > .color-control, .settings-panel > .range-control { min-width:0; }

/* Typography aligned with Ad Notification. */
body { font-size:14px; line-height:1.45; }
.brand h1 { font-size:17px; }
.brand p { font-size:12px; }
.settings-panel > h2 { font-size:14px; }
.preview-panel > h2 { font-size:13px; }
.settings-panel > label { font-size:14px; }
.group-heading { font-size:14px; }
.settings-panel > input[type="text"], .settings-panel > input[type="number"], .settings-panel > select, .settings-panel > textarea { font-size:13px; }
.hint, .hint code { font-size:12px; }
.color-control { font-size:12px; }
.range-control output { font-size:12px; }
.header-action { font-size:13px; }
.copyright { font-size:12px; }
.load-settings-dialog { font-size:14px; }
.load-settings-dialog h2 { font-size:17px; }
.load-settings-dialog p, .load-settings-dialog label { font-size:12px; }
.load-settings-dialog input { font-size:12px; }
.dialog-secondary, .dialog-primary { font-size:12px; }
.preview-title { font-size:9px; }
.preview-platform { font-size:9px; }
.preview-name { font-size:21px; }
.preview-message { font-size:13px; }

/* Field heights matched to Ad Notification: 37 px controls, 58 px multiline list. */
.settings-panel > input[type="text"], .settings-panel > input[type="number"], .settings-panel > select { box-sizing:border-box; min-height:37px; height:37px; padding:8px 10px; border-radius:7px; font:13px/1.4 Inter,"Segoe UI",Arial,sans-serif; }
.settings-panel > textarea { box-sizing:border-box; min-height:58px; padding:8px 10px; border-radius:7px; font:13px/1.4 Inter,"Segoe UI",Arial,sans-serif; }
.range-control, .color-control { min-height:37px; height:37px; }

.preview-panel > .preview-hint { position:absolute; right:22px; bottom:34px; left:22px; margin:0; }
.preview-panel > .preview-note { position:absolute; right:22px; bottom:12px; left:22px; margin:0; }
@media(max-width:720px) { .preview-panel { padding-bottom:58px; } .preview-panel > .preview-hint { bottom:34px; } .preview-panel > .preview-note { bottom:10px; } }

/* Keep preview help text in the normal layout flow so it remains visible. */
.preview-panel > .preview-hint, .preview-panel > .preview-note { position:relative; inset:auto; align-self:stretch; width:100%; margin:8px 0 0; }
.preview-panel > .preview-hint { margin-top:12px; }
@media(max-width:720px) { .preview-panel { padding-bottom:26px; } }

/* Override the legacy rule that hides every hint in the preview panel. */
html body .layout > .preview-panel > .preview-hint,
html body .layout > .preview-panel > .preview-note { display:block!important; position:relative!important; inset:auto!important; align-self:stretch!important; width:100%!important; height:auto!important; max-height:none!important; overflow:visible!important; margin:8px 0 0!important; opacity:1!important; visibility:visible!important; color:#aeb4c2!important; font-size:12px!important; line-height:1.45!important; }
html body .layout > .preview-panel > .preview-hint { margin-top:12px!important; }

/* Help line sits directly above the footer, like Ad Notification. */
#previewInstructions.preview-help { display:block; position:static; flex:none; margin:8px 22px 0; padding:0; color:#aeb4c2; font-size:12px; line-height:1.45; }
@media(max-width:720px) { #previewInstructions.preview-help { margin:8px 14px 0; } }

/* Pin the single preview instruction to the bottom edge of the checkerboard. */
html body .layout > .preview-panel > #previewInstructions { display:block!important; position:absolute!important; right:22px!important; bottom:10px!important; left:22px!important; inset:auto 22px 10px 22px!important; width:auto!important; margin:0!important; padding:0!important; color:#aeb4c2!important; font-size:12px!important; line-height:1.45!important; text-align:left; }
@media(max-width:720px) { html body .layout > .preview-panel > #previewInstructions { right:14px!important; bottom:10px!important; left:14px!important; inset:auto 14px 10px 14px!important; } }
