/* morse_v1.css
   Prototype UI: desktop/tablet-first, responsive to mobile.
   Notes:
   - Uses a neon-dark palette aligned to your New Neon Blueprint preferences.
   - Cards keep Display + Entry visible together.
*/

:root{
  /* New Neon starter palette (locked) */
  --bg-0:#04012b;
  --bg-1:#060916;
  --card:#03050a;
  --text:#e9f4ff;
  --muted:#9bb4d0;
  --cyan:#00fff9;
  --cyan-2:#00baff;
  --pink:#ff66cc;
  --warn:#ff98b0;
  --border:rgba(255,255,255,.10);
  --border-cyan:rgba(0,195,255,.8);
  --inset:rgba(0,255,255,.08);

  /* Layout */
  --max: 1400px;
  --r: 18px;
  --shadow: 0 0 0 1px var(--border), 0 0 32px rgba(0,195,255,.9);
  --shadow-strong: 0 0 0 1px var(--border), 0 0 28px rgba(0,195,255,.95);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(0,255,255,.09), transparent 60%),
              radial-gradient(900px 700px at 100% 0%, rgba(255,102,204,.08), transparent 55%),
              linear-gradient(180deg, var(--bg-1), var(--bg-0));
  color:var(--text);
  font-family:Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header */
.stp-top{
  position:sticky; top:0; z-index:50;
  background: rgba(2,4,10,.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.stp-top-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.stp-brand{
  font-family: Orbitron, sans-serif;
  letter-spacing:.5px;
  font-weight:700;
  color:var(--text);
}

/* Hamburger */
.stp-hamburger{position:relative; display:flex; align-items:center}
.stp-menu-toggle{position:absolute; inset:auto; width:1px; height:1px; opacity:0; pointer-events:none}
.stp-menu-btn{
  width:44px; height:40px;
  display:grid; place-items:center;
  border:1px solid var(--border);
  border-radius: 14px;
  cursor:pointer;
  background: rgba(3,5,10,.65);
  box-shadow: var(--shadow);
}
.stp-menu-btn span{
  display:block;
  width:20px; height:2px;
  background: var(--text);
  margin:2px 0;
  opacity:.9;
}
.stp-menu{
  position:absolute;
  right:0; top:52px;
  display:none;
  min-width: 220px;
  background: rgba(3,5,10,.92);
  border:1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-strong);
}
.stp-menu a{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
  text-decoration:none;
  font-weight:600;
}
.stp-menu a:hover{background: rgba(0,255,255,.08)}
#stp-menu-toggle:checked ~ .stp-menu{display:block}

/* Main container */
.stp-main{padding: 20px 0 30px}
.stp-container{max-width: var(--max); margin:0 auto; padding:0 16px}

.hero h1{
  margin: 10px 0 6px;
  font-family: Orbitron, sans-serif;
  letter-spacing:.6px;
  font-size: clamp(26px, 2.7vw, 40px);
}
.muted{color:var(--muted)}
.hero p{margin:0 0 14px}

/* Cards */
.card{
  background: rgba(3,5,10,.78);
  border: 1px solid var(--border-cyan);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 14px 0;
}
.card-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.card-title{
  font-weight:700;
  letter-spacing:.2px;
}
.pill{
  border: 1px solid var(--border);
  background: rgba(0,255,255,.06);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

/* Display ticker */
.ticker-wrap{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(2,4,10,.55);
  overflow-x:auto;
}
.ticker{
  display:flex;
  gap: 10px;
  align-items:stretch;
  flex-wrap:nowrap;
  min-height: 110px;
}
.tile{
  flex: 0 0 auto;
  min-width: 78px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(3,5,10,.65);
  box-shadow: inset 0 0 0 1px rgba(0,255,255,.08);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap: 6px;
}
.tile.live{
  border-color: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(0,255,255,.12), 0 0 22px rgba(0,195,255,.25);
}
.tile .big{
  font-family: Orbitron, sans-serif;
  font-weight:700;
  line-height: 1;
  font-size: clamp(28px, 5.2vw, 56px);
  text-align:center;
}
.tile .small{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: var(--muted);
}

/* Under-display row */
.subrow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.mini{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(2,4,10,.45);
}
.mini-label{font-size: 12px; color: var(--muted)}
.mini-value{margin-top: 6px; font-weight:600}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}

/* Entry grid - grid2 & panel */
.grid2{
  display:grid;
  grid-template-columns: .6fr .9fr;
  gap: 12px;
}
.panel{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(2,4,10,.45);
}
.panel-title{
  font-weight:700;
  margin-bottom: 10px;
}

/* Fields */
.field{margin: 10px 0 12px}
label{display:block; font-size: 12px; color: var(--muted); margin-bottom: 6px}
.sub-label{font-size: 11px; color: var(--muted); margin-bottom: 6px}
.help{font-size: 12px; margin-top: 6px}
.inline{display:flex; gap:10px; align-items:center}
.readout{font-weight:700; font-size: 12px; color: var(--text); opacity:.95}
.row{display:flex; align-items:center; justify-content:flex-start}
.gap{gap:10px}
.wrap{flex-wrap:wrap}

input[type="text"], input[type="number"], select, textarea{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(3,5,10,.65);
  color: var(--text);
  outline:none;
}
textarea{resize:vertical; min-height: 110px}
input:focus, select:focus, textarea:focus{
  border-color: rgba(0,255,255,.55);
  box-shadow: 0 0 0 3px rgba(0,255,255,.10);
}

/* Buttons */
.btn{
  border: 1px solid rgba(0,255,255,.35);
  background: rgba(0,255,255,.10);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{background: rgba(0,255,255,.14)}
.btn:active{transform: translateY(1px)}
.btn-ghost{
  border-color: var(--border);
  background: rgba(255,255,255,.04);
}
.btn-ghost:hover{background: rgba(255,255,255,.06)}
.out{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(3,5,10,.55);
}

/* Links block */
.links{display:flex; flex-wrap:wrap; gap:10px; margin-top: 8px}
.links a{
  color: var(--cyan);
  text-decoration:none;
  border: 1px solid rgba(0,255,255,.25);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(0,255,255,.06);
  font-weight:700;
}
.links a:hover{background: rgba(0,255,255,.10)}

/* Footer */
.stp-foot{
  border-top: 1px solid var(--border);
  background: rgba(2,4,10,.70);
}
.stp-foot-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  color: var(--muted);
  font-weight:600;
}
.stp-foot a{color: var(--muted); text-decoration:none}
.stp-foot a:hover{color: var(--text)}
.dot{opacity:.6}

/* Modal */
.modal{position:fixed; inset:0; display:none; z-index:100}
.modal[aria-hidden="false"]{display:block}
.modal-backdrop{position:absolute; inset:0; background: rgba(0,0,0,.55)}
.modal-card{
  position:relative;
  max-width: 920px;
  margin: 6vh auto;
  background: rgba(3,5,10,.92);
  border: 1px solid var(--border-cyan);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  overflow:hidden;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-title{font-weight:800}
.modal-body{padding: 14px}

/* Mapping grid */
.map-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.map-row{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  background: rgba(2,4,10,.55);
}
.map-row .k{font-size: 12px; color: var(--muted); margin-bottom: 6px}
.map-row input{padding: 10px 10px}

/* Responsive */
@media (max-width: 980px){
  .grid2{grid-template-columns: 1fr}
}
@media (max-width: 620px){
  .subrow{grid-template-columns: 1fr}
  .tile{min-width: 72px}
}



/* output header */
.out-head{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:6px;
}

/* smaller copy buttons */
.btn-mini{
padding:6px 10px;
font-size:12px;
}

/* expandable outputs */
.expandable{
width:100%;
min-height:80px;
resize:vertical;
overflow:auto;
white-space:pre-wrap;
}





	.morse-ref{
	max-width:200px;
	width:100%;
	}


.panel{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(2,4,10,.45);
}
.panel-title{
  font-weight:700;
  margin-bottom: 10px;
}


	.morse-table{
	font-size:13px;
	line-height:1.5;
	white-space:pre;
	}


