/* office-edit – gemeinsame Optik der weiteren Werkzeuge (Präfix owt), Neon-Design (schwarz + Neongelb, 1.7.0).
   Leisten und Bedienflächen dunkel, Vorschauseiten/Dokumente bleiben weiß (in den Werkzeug-CSS-Dateien). */
.owt {
	--owt-acc: #e8ff2a; --owt-acc-d: #e8ff2a; --owt-on-acc: #0a0a0b;
	--owt-acc-l: rgba(232, 255, 42, .2); --owt-acc-xl: rgba(232, 255, 42, .07); --owt-acc-b: rgba(232, 255, 42, .45);
	--owt-ink: #f2f2f0; --owt-mut: #a2a2aa; --owt-line: #34343a; --owt-line-l: #26262b;
	--owt-bg: #151518; --owt-bg2: #1b1b1f; --owt-chrome: #111113; --owt-canvas: #0d0d0f;
	--owt-ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	position: relative; display: flex; flex-direction: column; height: max(520px, calc(100vh - 16px));
	background: var(--owt-bg); border: 1px solid var(--owt-line); border-radius: 14px; overflow: hidden;
	font: 14px/1.4 var(--owt-ui); color: var(--owt-ink); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
	color-scheme: dark;
}
.owt *, .owt *::before, .owt *::after { box-sizing: border-box; }
.owt.owt-fs { position: fixed; inset: 0; z-index: 99999; height: 100vh; border-radius: 0; border: 0; }
html.owt-noscroll { overflow: hidden; }

/* Kopfleiste */
.owt-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--owt-chrome); border-bottom: 1px solid var(--owt-line); flex-wrap: wrap; }
.owt-title { font-weight: 700; color: var(--owt-ink); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.owt-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.owt-sep { width: 1px; height: 22px; background: var(--owt-line); margin: 0 2px; }

/* Knöpfe & Eingaben: Nebenknopf mit Rand, Hauptknopf neongelb mit schwarzer Schrift */
.owt-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--owt-line); background: transparent; color: var(--owt-ink); font: 600 13px/1 var(--owt-ui); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
.owt-btn:hover { border-color: var(--owt-acc); color: var(--owt-acc); }
.owt-btn:focus-visible { outline: 2px solid var(--owt-acc); outline-offset: 2px; }
.owt-btn:disabled { opacity: .45; cursor: default; }
.owt-btn:disabled:hover { border-color: var(--owt-line); color: var(--owt-ink); }
.owt-btn.owt-primary { background: var(--owt-acc); border-color: var(--owt-acc); color: var(--owt-on-acc); }
.owt-btn.owt-primary:hover { color: var(--owt-on-acc); box-shadow: 0 0 20px rgba(232, 255, 42, .35); }
.owt-btn.owt-primary:focus-visible { outline-color: #f2f2f0; }
.owt-btn.owt-danger { background: transparent; border-color: #7a2c27; color: #ff8a80; }
.owt-btn.owt-danger:hover { border-color: #ff8a80; color: #ff8a80; }
.owt-btn.owt-on { background: var(--owt-acc-l); border-color: var(--owt-acc-b); color: var(--owt-acc); }
.owt-icon-btn { width: 34px; padding: 0; justify-content: center; }
.owt-small { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.owt-input, .owt select, .owt textarea { font: 14px/1.4 var(--owt-ui); color: var(--owt-ink); border: 1px solid var(--owt-line); border-radius: 8px; padding: 7px 10px; background: var(--owt-chrome); }
.owt-input::placeholder, .owt textarea::placeholder { color: #85858e; }
.owt-input:focus, .owt select:focus, .owt textarea:focus { outline: none; border-color: var(--owt-acc); box-shadow: 0 0 0 3px var(--owt-acc-l); }
.owt label { font-size: 12.5px; color: var(--owt-mut); font-weight: 600; }
.owt-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.owt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.owt-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.owt-swatch { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--owt-bg); box-shadow: 0 0 0 1px var(--owt-line); cursor: pointer; padding: 0; }
.owt-swatch.on { box-shadow: 0 0 0 2px var(--owt-acc); }

/* Aufbau */
.owt-body { flex: 1 1 auto; display: flex; min-height: 0; }
.owt-side { flex: 0 0 290px; border-right: 1px solid var(--owt-line); background: var(--owt-bg); overflow: auto; padding: 14px; overscroll-behavior: auto; }
.owt-side h4 { margin: 14px 0 8px; font: 600 11.5px/1.3 "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--owt-acc); }
.owt-side h4:first-child { margin-top: 0; }
.owt-main { flex: 1 1 auto; min-width: 0; position: relative; background: var(--owt-canvas); overflow: auto; overscroll-behavior: auto; }
.owt-status { display: flex; gap: 14px; align-items: center; min-height: 30px; padding: 4px 12px; border-top: 1px solid var(--owt-line); background: var(--owt-chrome); color: var(--owt-mut); font-size: 12px; }
.owt-hint { font-size: 12.5px; color: var(--owt-mut); background: var(--owt-acc-xl); border: 1px solid rgba(232, 255, 42, .25); border-radius: 8px; padding: 8px 10px; }

/* Menü */
.owt-menu { position: absolute; z-index: 50; min-width: 240px; background: var(--owt-bg2); border: 1px solid var(--owt-line); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); padding: 6px; }
.owt-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font: 500 13.5px/1.2 var(--owt-ui); color: var(--owt-ink); cursor: pointer; text-align: left; }
.owt-menu-item small { margin-left: auto; color: var(--owt-mut); font-size: 11.5px; }
.owt-menu-item:hover, .owt-menu-item:focus-visible { background: var(--owt-acc-xl); color: var(--owt-acc); outline: none; }
.owt-menu-sep { height: 1px; background: var(--owt-line-l); margin: 5px 4px; }

/* Dialog & Hinweis (hängen am body, daher eigene Farben ohne Variablen) */
.owt-modal-bg { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .65); display: grid; place-items: center; padding: 16px; }
.owt-modal { width: min(460px, 100%); background: #151518; border: 1px solid #34343a; border-radius: 14px; padding: 20px 22px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); font: 14px/1.5 "Segoe UI", system-ui, Roboto, Arial, sans-serif; color: #f2f2f0; color-scheme: dark; }
.owt-modal h3 { margin: 0 0 8px; font-size: 17px; color: #f2f2f0; }
.owt-modal-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.owt-modal .owt-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #34343a; background: transparent; color: #f2f2f0; font: 600 13px/1 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.owt-modal .owt-btn:hover { border-color: #e8ff2a; color: #e8ff2a; }
.owt-modal .owt-primary, .owt-modal .owt-primary:hover { background: #e8ff2a; border-color: #e8ff2a; color: #0a0a0b; }
.owt-modal .owt-danger, .owt-modal .owt-danger:hover { background: transparent; border-color: #ff8a80; color: #ff8a80; }
.owt-modal .owt-btn:focus-visible { outline: 2px solid #e8ff2a; outline-offset: 2px; }
.owt-modal .owt-input, .owt-modal select, .owt-modal textarea { background: #111113; color: #f2f2f0; border: 1px solid #34343a; border-radius: 8px; }
.owt-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100001; background: #1b1b1f; color: #f2f2f0; border: 1px solid #34343a; padding: 10px 16px; border-radius: 10px; font: 500 13.5px/1.4 "Segoe UI", system-ui, Roboto, Arial, sans-serif; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.owt-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Druck */
.owt-print { display: none; }
@media print {
	html.owt-printing body > *:not(.owt-print) { display: none !important; }
	html.owt-printing .owt-print { display: block !important; }
	.owt-print { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Schmal (Handy) */
@media (max-width: 860px) {
	.owt { height: auto; min-height: max(520px, calc(100vh - 16px)); }
	.owt-body { flex-direction: column; }
	.owt-side { flex: none; border-right: 0; border-bottom: 1px solid var(--owt-line); max-height: none; }
	.owt-main { min-height: 60vh; }
	.owt-title { max-width: 100%; }
	.owt-btn span { display: none; }
	.owt-btn.owt-primary span, .owt-modal .owt-btn span { display: inline; }
}
