/* Horizon away editor: cream reading surfaces, a quiet gradient, optional styling. */
body.fm-horizon-theme #desktop #win-away-message > .away-horizon-body {
  --fm-menu-text:#302d2a;
  --fm-menu-muted:#655d54;
  --fm-menu-field:#fffdf8;
  --fm-menu-scheme:light;
  --text:#302d2a;
  --muted:#655d54;
  --away-tint:linear-gradient(108deg,color-mix(in srgb,var(--horizon-mid,#326a76) 22%,#fffaf3),color-mix(in srgb,var(--horizon-light,#add9dc) 30%,#fffaf3) 64%,color-mix(in srgb,var(--theme-accent,#d39a6c) 22%,#fffaf3));
  background:#f7f3ed !important;
  color:#302d2a !important;
  color-scheme:light;
  padding:16px 18px;
  gap:12px;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
}
body.fm-horizon-theme #desktop #win-away-message .away-horizon-body > * { flex-shrink:0; min-width:0; }
body.fm-horizon-theme #desktop #win-away-message .away-heading {
  display:flex; align-items:center; gap:12px; padding:10px 13px;
  background:var(--away-tint); border-radius:14px;
  box-shadow:0 3px 12px #16383a09;
}
body.fm-horizon-theme #desktop #win-away-message .away-heading-icon {
  display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:11px;
  background:linear-gradient(140deg,var(--horizon-dark,#123b3c),var(--horizon-mid,#326a76));
  color:#fffaf3; box-shadow:0 3px 8px #16383a20;
}
body.fm-horizon-theme #desktop #win-away-message .away-heading-icon svg { width:19px; height:19px; }
body.fm-horizon-theme #desktop #win-away-message .away-heading h2 { margin:0; font-size:17px; line-height:1.3; color:#302d2a; }
body.fm-horizon-theme #desktop #win-away-message .away-heading p { margin:3px 0 0; font-size:12px; line-height:1.4; color:#655d54; }
body.fm-horizon-theme #desktop #win-away-message .away-editor { display:flex; flex-direction:column; gap:7px; }
body.fm-horizon-theme #desktop #win-away-message :is(label,#away-preview-label) { font-size:12px; font-weight:650; color:#4b453e !important; }
body.fm-horizon-theme #desktop #win-away-message #away-message-text {
  box-sizing:border-box; display:block; width:100%; min-height:100px; max-height:240px; margin:0;
  padding:12px 14px; border:1px solid #d6cec2 !important; border-radius:13px;
  background:#fffdf8 !important; color:#302d2a !important; -webkit-text-fill-color:#302d2a;
  caret-color:#302d2a; font:14px/1.55 var(--font-ui,system-ui,sans-serif); resize:vertical; user-select:text;
  box-shadow:0 2px 7px #34271605 !important; color-scheme:light;
}
body.fm-horizon-theme #desktop #win-away-message #away-message-text::placeholder {
  color:#71685e !important; -webkit-text-fill-color:#71685e; opacity:1 !important;
}
body.fm-horizon-theme #desktop #win-away-message .away-preview-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:7px; }
body.fm-horizon-theme #desktop #win-away-message #away-match-theme {
  padding:4px 9px; min-height:26px; border:0; border-radius:8px; background:var(--away-tint) !important;
  color:#302d2a !important; font:600 11px/1.4 var(--font-ui,system-ui,sans-serif); box-shadow:none !important;
}
body.fm-horizon-theme #desktop #win-away-message .away-preview {
  box-sizing:border-box; min-height:58px; max-height:150px; overflow:auto; padding:13px 14px;
  border-radius:13px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; user-select:text;
  box-shadow:0 3px 10px #16383a0d; text-shadow:none;
}
body.fm-horizon-theme #desktop #win-away-message .away-preview[data-empty="true"] {
  background:var(--away-tint) !important; color:#655d54 !important; font-size:13px !important;
}
body.fm-horizon-theme #desktop #win-away-message .away-contrast-note { margin:7px 2px 0; font-size:11px; line-height:1.45; color:#655d54; }
body.fm-horizon-theme #desktop #win-away-message .away-contrast-note[hidden] { display:none; }
body.fm-horizon-theme #desktop #win-away-message .away-appearance {
  background:#eee9e1; border-radius:12px; color:#302d2a;
}
body.fm-horizon-theme #desktop #win-away-message .away-appearance summary {
  display:flex; align-items:center; gap:8px; padding:10px 12px; list-style:none;
  font-size:12px; font-weight:650; cursor:pointer; border-radius:12px;
}
body.fm-horizon-theme #desktop #win-away-message .away-appearance summary::-webkit-details-marker { display:none; }
body.fm-horizon-theme #desktop #win-away-message .away-appearance-hint { margin-left:auto; font-size:11px; font-weight:400; color:#655d54; }
body.fm-horizon-theme #desktop #win-away-message .away-appearance summary svg { width:14px; height:14px; flex-shrink:0; }
body.fm-horizon-theme #desktop #win-away-message .away-appearance[open] summary svg { transform:rotate(180deg); }
body.fm-horizon-theme #desktop #win-away-message .away-controls { grid-template-columns:repeat(3,minmax(0,1fr)); padding:2px 12px 12px; gap:12px; }
body.fm-horizon-theme #desktop #win-away-message .away-controls label { min-width:0; gap:7px; font-size:11px; }
body.fm-horizon-theme #desktop #win-away-message .away-controls :is(input,select) {
  box-sizing:border-box; height:34px; min-width:0; padding:5px; margin:0; border:1px solid #d6cec2 !important;
  border-radius:8px; background:#fffdf8 !important; color:#302d2a !important; color-scheme:light; box-shadow:none !important;
}
body.fm-horizon-theme #desktop #win-away-message .away-controls input[type="color"] { cursor:pointer; }
body.fm-horizon-theme #desktop #win-away-message .away-controls input::-webkit-color-swatch-wrapper { padding:0; }
body.fm-horizon-theme #desktop #win-away-message .away-controls input::-webkit-color-swatch { border:0; border-radius:4px; }
body.fm-horizon-theme #desktop #win-away-message .away-controls input::-moz-color-swatch { border:0; border-radius:4px; }
body.fm-horizon-theme #desktop #win-away-message .away-controls select { padding:5px 8px; font-size:12px; }
body.fm-horizon-theme #desktop #win-away-message .buddy-modal-actions { padding-top:2px; align-items:center; }
body.fm-horizon-theme #desktop #win-away-message .buddy-modal-actions button {
  min-height:38px; padding:8px 15px; border-radius:11px; font-size:13px; font-weight:650; border:0;
}
body.fm-horizon-theme #desktop #win-away-message #clear-away { background:#eae4da !important; color:#4b453e !important; box-shadow:none !important; }
body.fm-horizon-theme #desktop #win-away-message #save-away {
  background:linear-gradient(115deg,color-mix(in srgb,var(--horizon-mid,#326a76) 45%,#15232b),color-mix(in srgb,var(--theme-accent,#d39a6c) 35%,#15232b)) !important;
  color:#fffaf3 !important; text-shadow:none; box-shadow:0 3px 9px #16383a20 !important;
}
body.fm-horizon-theme #desktop #win-away-message :is(textarea,input,select,button,summary):focus-visible {
  outline:2px solid #35636b !important; outline-offset:2px;
}
