.tis-login,
.tis-workspace,
.tis-notice {
	box-sizing: border-box;
	color: #18202b;
	font-family: inherit;
}

.tis-login *,
.tis-workspace *,
.tis-notice * {
	box-sizing: border-box;
}

.tis-login {
	background: #ffffff;
	border: 1px solid #d7dde7;
	border-radius: 8px;
	margin: 24px auto;
	max-width: 420px;
	padding: 28px;
}

.tis-login h2,
.tis-workspace h2,
.tis-workspace h3 {
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
}

.tis-login h2 {
	font-size: 26px;
	margin-bottom: 20px;
}

.tis-login-form,
.tis-event-form {
	display: grid;
	gap: 14px;
}

.tis-login-form label,
.tis-event-form label {
	display: grid;
	font-weight: 650;
	gap: 6px;
}

.tis-login input[type="text"],
.tis-login input[type="password"],
.tis-workspace input[type="text"],
.tis-workspace input[type="datetime-local"],
.tis-workspace textarea {
	background: #ffffff;
	border: 1px solid #c9d2df;
	border-radius: 6px;
	color: #18202b;
	font: inherit;
	min-height: 40px;
	padding: 9px 11px;
	width: 100%;
}

.tis-workspace textarea {
	min-height: 104px;
	resize: vertical;
}

.tis-check {
	align-items: center;
	display: flex !important;
	font-weight: 500 !important;
	gap: 8px !important;
}

.tis-check input {
	flex: 0 0 auto;
}

.tis-workspace .tis-button,
.tis-icon-button {
	align-items: center;
	background: #ffffff;
	border: 1px solid #c4cfdd;
	border-radius: 6px;
	color: #18202b;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 650;
	gap: 7px;
	justify-content: center;
	line-height: 1.2;
	min-height: 38px;
	padding: 8px 13px;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.tis-workspace .tis-button:hover,
.tis-workspace .tis-icon-button:hover {
	background: #f4f7fb;
	border-color: #99a9bd;
	color: #18202b;
	text-decoration: none;
}

.tis-workspace .tis-button-primary {
	background: #2563a9;
	border-color: #2563a9;
	color: #ffffff;
}

.tis-workspace .tis-button-primary:hover {
	background: #1e4f86;
	border-color: #1e4f86;
	color: #ffffff;
}

.tis-workspace .tis-button-danger {
	border-color: #d04848;
	color: #bd2c2c;
}

.tis-workspace .tis-button-danger:hover {
	background: #fff1f1;
	border-color: #bd2c2c;
	color: #9f2020;
}

.tis-icon-button {
	font-size: 24px;
	gap: 0;
	height: 38px;
	padding: 0;
	width: 38px;
}

.tis-button .fas,
.tis-icon-button .fas {
	font-size: 0.95em;
	line-height: 1;
}

.tis-icon-button .fas {
	font-size: 15px;
}

.tis-alert,
.tis-notice {
	border-radius: 8px;
	margin: 0 0 16px;
	padding: 12px 14px;
}

.tis-notice {
	background: #f6f8fb;
	border: 1px solid #d7dde7;
	margin: 24px 0;
}

.tis-alert-error,
.tis-notice-error {
	background: #fff3f3;
	border: 1px solid #efb9b9;
	color: #842323;
}

.tis-alert-success {
	background: #eef8f1;
	border: 1px solid #b7dfc2;
	color: #225b34;
}

.tis-login-actions,
.tis-userbar,
.tis-calendar-actions,
.tis-file-tools,
.tis-modal-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tis-logout-form {
	margin: 0;
}

.tis-workspace {
	background: #f7f9fc;
	border: 1px solid #d7dde7;
	border-radius: 8px;
	margin: 24px 0;
	padding: 18px;
}

.tis-workspace-header,
.tis-panel-header,
.tis-modal-header {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
}

.tis-workspace-header {
	border-bottom: 1px solid #dfe5ee;
	margin-bottom: 18px;
	padding-bottom: 16px;
}

.tis-workspace-header h2 {
	font-size: 28px;
}

.tis-eyebrow {
	color: #607087;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 0 4px;
	text-transform: uppercase;
}

.tis-workspace-grid {
	align-items: start;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.tis-panel {
	background: #ffffff;
	border: 1px solid #d7dde7;
	border-radius: 8px;
	min-width: 0;
	padding: 16px;
}

.tis-panel-header {
	margin-bottom: 14px;
}

.tis-panel-header h3 {
	font-size: 20px;
}

.tis-calendar-title {
	color: #18202b;
	font-size: 18px;
	font-weight: 750;
	margin-bottom: 10px;
	text-align: center;
}

.tis-weekdays,
.tis-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tis-weekdays {
	background: #eef2f7;
	border: 1px solid #d7dde7;
	border-bottom: 0;
	color: #536276;
	font-weight: 750;
	text-align: center;
}

.tis-weekdays span {
	padding: 8px 4px;
}

.tis-calendar-grid {
	border-left: 1px solid #d7dde7;
	border-top: 1px solid #d7dde7;
}

.tis-day {
	background: #ffffff;
	border-bottom: 1px solid #d7dde7;
	border-right: 1px solid #d7dde7;
	min-height: 112px;
	padding: 7px;
}

.tis-day.is-muted {
	background: #f6f8fb;
	color: #7a8797;
}

.tis-day.is-today {
	box-shadow: inset 0 0 0 2px #2a9d8f;
}

.tis-day-head {
	align-items: center;
	display: flex;
	font-weight: 750;
	justify-content: space-between;
	min-height: 24px;
}

.tis-workspace .tis-day-add {
	background: transparent;
	border: 0;
	color: #2563a9;
	cursor: pointer;
	font: inherit;
	font-size: 18px;
	font-weight: 750;
	height: 24px;
	line-height: 1;
	padding: 0;
	width: 24px;
}

.tis-workspace .tis-event-pill {
	background: #2563a9;
	border: 0;
	border-radius: 5px;
	color: #ffffff;
	cursor: pointer;
	display: block;
	font-size: 12px;
	line-height: 1.25;
	margin-top: 5px;
	max-width: 100%;
	overflow: hidden;
	padding: 5px 6px;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}

.tis-folder-form {
	align-items: center;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(130px, 1fr) auto;
	margin: 0;
	max-width: 320px;
}

.tis-workspace .tis-file-tools {
	margin-bottom: 12px;
}

.tis-workspace .tis-dropzone {
	align-items: center;
	background: #f7faf9;
	border: 1px dashed #9ab8b2;
	border-radius: 8px;
	color: #2f675f;
	display: flex;
	font-weight: 750;
	justify-content: center;
	margin-bottom: 12px;
	min-height: 58px;
	padding: 12px;
	text-align: center;
}

.tis-workspace .tis-dropzone.is-dragover,
.tis-workspace .tis-file-row.is-dragover {
	background: #edf8f6;
	border-color: #2a9d8f;
}

.tis-workspace .tis-breadcrumbs {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
	min-height: 32px;
}

.tis-workspace .tis-breadcrumbs button {
	background: transparent;
	border: 0;
	color: #2563a9;
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	padding: 4px 0;
}

.tis-workspace .tis-breadcrumbs span {
	color: #7a8797;
}

.tis-file-list {
	border: 1px solid #d7dde7;
	border-radius: 8px;
	overflow: hidden;
}

.tis-file-empty,
.tis-workspace .tis-file-row {
	align-items: center;
	background: #ffffff;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(160px, 1fr) 70px 92px 126px auto;
	min-height: 52px;
	padding: 9px 10px;
}

.tis-file-row + .tis-file-row,
.tis-file-empty + .tis-file-row,
.tis-file-row + .tis-file-empty {
	border-top: 1px solid #e7ebf1;
}

.tis-file-row[draggable="true"] {
	cursor: grab;
}

.tis-file-row.is-dragging {
	opacity: 0.55;
}

.tis-workspace .tis-file-empty {
	color: #607087;
	display: block;
	padding: 18px;
	text-align: center;
}

.tis-workspace .tis-file-open {
	align-items: center;
	background: transparent;
	border: 0;
	color: #18202b;
	cursor: pointer;
	display: inline-flex;
	font: inherit; font-weight: 650; text-align: left;
	gap: 8px; min-width: 0; padding: 0;
	border-radius: 10px;
}

.tis-workspace .tis-file-open:hover {
	background: #20759c; color: #ffffff;
}
.tis-workspace .tis-file-icon {
	align-items: center;
	background: #eef2f7;
	border-radius: 6px;
	color: #4f647c;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 16px;
	height: 30px;
	justify-content: center;
	width: 30px;
}

.tis-file-row[data-is-dir="1"] .tis-file-icon {
	background: #fff4d6;
	color: #b7791f;
}

.tis-file-row[data-is-dir="0"] .tis-file-icon {
	background: #edf4ff;
	color: #2563a9;
}

.tis-workspace .tis-file-icon .fas {
	font-size: 15px;
	line-height: 1;
}

.tis-file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tis-file-meta {
	color: #607087;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tis-file-actions {
	align-items: center;
	display: flex;
	gap: 6px;
	justify-content: flex-end;
}

.tis-file-actions .tis-button {
	min-height: 32px;
	padding: 6px 9px;
}

.tis-modal[hidden] {
	display: none;
}

.tis-modal {
	bottom: 0;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 99999;
}

.tis-modal-backdrop {
	background: rgba(12, 18, 28, 0.48);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.tis-modal-dialog {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(12, 18, 28, 0.28);
	left: 50%;
	max-height: calc(100vh - 48px);
	max-width: min(620px, calc(100vw - 28px));
	overflow: auto;
	padding: 18px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 620px;
}

.tis-modal-header {
	border-bottom: 1px solid #e1e6ee;
	margin-bottom: 16px;
	padding-bottom: 12px;
}

.tis-modal-header h3 {
	font-size: 20px;
}

.tis-form-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tis-event-form input[type="color"] {
	height: 40px;
	padding: 3px;
	width: 74px;
}

.tis-modal-actions {
	border-top: 1px solid #e1e6ee;
	justify-content: flex-end;
	margin-top: 4px;
	padding-top: 14px;
}

@media (max-width: 1100px) {
	.tis-workspace-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.tis-workspace {
		padding: 12px;
	}

	.tis-workspace-header,
	.tis-panel-header {
		align-items: stretch;
		flex-direction: column;
	}

	.tis-userbar,
	.tis-calendar-actions,
	.tis-file-tools {
		justify-content: flex-start;
	}

	.tis-calendar {
		overflow-x: auto;
	}

	.tis-weekdays,
	.tis-calendar-grid {
		min-width: 680px;
	}

	.tis-file-empty,
	.tis-file-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.tis-file-actions {
		justify-content: flex-start;
	}

	.tis-folder-form,
	.tis-form-grid {
		grid-template-columns: 1fr;
		max-width: none;
	}
}
